Skip to content

3.0.0

Compare
Choose a tag to compare
@ForbesLindesay ForbesLindesay released this 26 Apr 13:39
1fc71a4

Breaking Changes

  • Restricted "exports" in package.json (for node 14+) (#30)

    The only ways to import this are now:

    import isPromise from 'is-promise';

    or

    const isPromise = require('is-promise');

    If you were requiring things like the package.json file within the package, these are not part of the public API, and will no longer be accessible.

  • is-promise now uses "default" exports in ES Modules environments (#30)

    If you were using ES6 style imports via

    import * as isPromise from 'is-promise';

    you will need to update this to

    import isPromise from 'is-promise';

    If you were using CommonJS style require, no change is needed.

  • This package now comes bundled with TypeScript definitions (#31)

    This means you may get new errors that you didn't see before if you are using TypeScript. If you are not using TypeScript, this change will not impact you.