Skip to content

Releases: taylorhakes/promise-mock

Fix ES6 export declaration

29 Dec 04:28
Compare
Choose a tag to compare
2.0.1

Upgraded to 2.0

Breaking change to support ES6 modules

28 Dec 06:35
Compare
Choose a tag to compare

It is suggested to use ES6 syntax to import module for webpack or rollup.

import PromiseMock from 'promise-mock';

If you are still using require/commonjs with webpack or rollup, you must reference the default property.

const PromiseMock = require('promise-mock').default;

In node, you can use it like normal

const PromiseMock = require('promise-mock');

This is a weird quirk of supporting ES6 and commonjs modules.

promise-polyfill 7 fix

27 Dec 04:59
Compare
Choose a tag to compare

promise-polyfill version 7 removed the deprecated API setImmediateFn. Updated code to use new function.

Fixed ordering bug

15 May 04:25
Compare
Choose a tag to compare

Fixed the order in which Promise.run() executes callbacks. Thanks @elliotchi for the fix!

new Promise() fix

19 Jul 12:20
Compare
Choose a tag to compare

Fixed new Promise issue. Thanks to @scamden for fixing. #3