promise-polyfill
Advanced tools
Changelog
5.2.1 setTimeout to 0
Fixed bug where setTimeout was set to 1 instead of 0 for async execution
Changelog
5.1.0 Fixed reliance on setTimeout
Changed possibly unhanded warnings to use asap function instead of setTimeout
Changelog
5.0.0 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]);
Changelog
4.0.4 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.
Changelog
4.0.3 Fix case in bower.json
bower.json had Promise.js instead of promise.js
Changelog
4.0.2 promise.js case fix in package.json
Fixed promise.js in package.json. It was accidently published as Promise.js
Changelog
4.0.1 Unhandled Rejections and Other Fixes
Changelog
3.0.0 Updated setTimeout to not be affected by test mocks
This is considered a breaking change because people may have been using this functionality. If you would like to keep version 2 functionality, set Promise._setImmediateFn on promise-polyfill
like the code below.
var Promise = require('promise-polyfill');
Promise._setImmedateFn(function(fn) {
setTimeout(fn, 1);
});