Skip to content

Releases: sindresorhus/p-cancelable

v4.0.1

19 Jul 14:03
Compare
Choose a tag to compare
  • Fix: Ensure the state is only changed if the promise was pending (#34) 31fbf8f

v4.0.0...v4.0.1

v4.0.0

24 Apr 15:04
Compare
Choose a tag to compare

Breaking

Improvements

  • Improve the message error when attaching onCancel after the promise settled (#31) aab3b8d

v3.0.0...v4.0.0

v3.0.0

31 May 13:29
Compare
Choose a tag to compare

Breaking

v2.1.1...v3.0.0

v2.1.1

02 May 10:21
Compare
Choose a tag to compare
  • Fix TypeScript type for the cancel method (#28) c80c3ee

v2.1.0...v2.1.1

v2.1.0

10 Mar 06:57
Compare
Choose a tag to compare
  • Immediately call onCancel handlers when a promise is canceled (#24) d292dcc

v2.0.0...v2.1.0

v2.0.0

31 Mar 20:03
Compare
Choose a tag to compare

Breaking:

  • Require Node.js 8 05b0479
  • Throw error if onCancel is called after promise settlement (#18) c4ebb36
  • Refactor TypeScript definition to CommonJS compatible export (#19) 72aae92
    • If you're a TS users, you'll need to change import PCancelable from 'p-cancelable'; to import PCancelable = require('p-cancelable');

v1.1.0...v2.0.0

v1.1.0

08 Mar 08:43
Compare
Choose a tag to compare

v1.0.0...v1.1.0