Releases: taylorhakes/promise-polyfill
Releases · taylorhakes/promise-polyfill
IE and require fixes
7.0.1 Updated changelog
ES6 Modules
- Updated code to ES6 module definitions (thanks Andarist)
- Added polyfill.js file
- move compiled files to dist folder
IE8 Minify Fixes
Thanks to @shortstories for finding the bug #34
IE11 setImmediate fix
Fixed a bug where setImmediate failed on IE11
Subclassing and Deprecations
This allows subclassing Promise without rewriting functions
Promise._setImmediateFn(<immediateFn>)
has been deprecated. UsePromise._immediateFn = <immediateFn>;
instead.Promise._setUnhandledRejectionFn(<rejectionFn>)
has been deprecated. UsePromise._unhandledRejectionFn = <rejectionFn>
instead.
These functions will be removed in the next major version.
setTimeout to 0
Fixed bug where setTimeout was set to 1 instead of 0 for async execution
Subclassing
Allowed Subclassing. #27
Fixed reliance on setTimeout
Changed possibly unhanded warnings to use asap function instead of setTimeout
Removed multiple params from Promise.all
Removed non standard functionality of passing multiple params to Promise.all. You must pass an array now. You must change this code
Promise.all(prom1, prom2, prom3);
to this
Promise.all([prom1, prom2, prom3]);
IE8 console.warn fix
IE8 does not have console
, unless you open the developer tools. This fix checks to makes sure console.warn
is defined before calling it.