Releases: taylorhakes/promise-mock
Releases · taylorhakes/promise-mock
Fix ES6 export declaration
2.0.1 Upgraded to 2.0
Breaking change to support ES6 modules
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
promise-polyfill version 7 removed the deprecated API setImmediateFn
. Updated code to use new function.
Fixed ordering bug
Fixed the order in which Promise.run() executes callbacks. Thanks @elliotchi for the fix!