NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3932 most downloaded on npm
Lightweight promise polyfill. A+ compliant
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 1.4 years
Most releases are documented
notes for 29 of 46 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
46 releases · first in 2014
Nothing published for this version
Nothing published for this version
This is the same code as 8.2.0. A bugfix was introduced in 8.2.1 to fix testing issues, but it caused IE11 to fail
This is the same code as 8.2.0. A bugfix was introduced in 8.2.1 to fix testing issues, but it caused IE11 to fail
One column per quarter.
Nothing published for this version
* Added Promise.allSettled
Nothing published for this version
Promise.all([]) failed due to bug in isArray
Promise.all([]) failed due to bug in isArray
Fixes issue in Promise.race where passing non promises would error. For instance `js Promise.race([1,2,3]) `
Fixes issue in Promise.race where passing non promises would error. For instance
Promise.race([1,2,3])
Added Closure compiler and typescript doc definitions. Big thanks to @TimvdLippe
Added Closure compiler and typescript doc definitions. Big thanks to @TimvdLippe
Polyfill default promise with finally if it doesn't exist if you use polyfill.js
finally if it doesn't exist if you use polyfill.jsrequire with webpack 2+, you now need to dovar Promise = require('promise-polyfill').default;
instead of
var Promise = require('promise-polyfill');
Fixed an error in Node JS causing throw new Error('unable to locate global object');.
Fixed an error in Node JS causing throw new Error('unable to locate global object');.
Thanks @vmihailenco for the fix.
Nothing published for this version
Added Promise.protoype.finally. Big thanks to @dfahlander for doing the work.
Added Promise.protoype.finally. Big thanks to @dfahlander for doing the work.
Added IE8 compatability back to minify
Promise._setImmediateFn( ) has been deprecated. Use Promise._immediateFn = instead.
requirePromise.all()Promise is called with newPromise._setImmediateFn and Promise._setUnhandledRejectionFnThis allows subclassing Promise without rewriting functions
Promise._setImmediateFn(<immediateFn>) has been deprecated. Use Promise._immediateFn = <immediateFn> instead.Promise._setUnhandledRejectionFn(<rejectionFn>) has been deprecated. Use Promise._unhandledRejectionFn = <rejectionFn> instead.
These functions will be removed in the next major version.Updated code to ES6 module definitions (thanks Andarist)
Nothing published for this version
Thanks to @shortstories for finding the bug https://github.com/taylorhakes/promise-polyfill/issues/34
Thanks to @shortstories for finding the bug https://github.com/taylorhakes/promise-polyfill/issues/34
Fixed a bug where setImmediate failed on IE11
Fixed a bug where setImmediate failed on IE11
https://github.com/taylorhakes/promise-polyfill/issues/31
Promise._setImmediateFn( ) has been deprecated. Use Promise._immediateFn = ; instead.
This allows subclassing Promise without rewriting functions
Promise._setImmediateFn(<immediateFn>) has been deprecated. Use Promise._immediateFn = <immediateFn>; instead.Promise._setUnhandledRejectionFn(<rejectionFn>) has been deprecated. Use Promise._unhandledRejectionFn = <rejectionFn> instead.
These functions will be removed in the next major version.Fixed bug where setTimeout was set to 1 instead of 0 for async execution
Fixed bug where setTimeout was set to 1 instead of 0 for async execution
Allowed Subclassing. #27
Allowed Subclassing. #27
Changed possibly unhanded warnings to use asap function instead of setTimeout
Changed possibly unhanded warnings to use asap function instead of setTimeout
Changed possibly unhanded warnings to use asap function instead of setTimeout
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]);
Removed non standard functionality of passing multiple params to Promise.all. You must pass an array now. You must change this code
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 does not have console, unless you open the developer tools. This fix checks to makes sure console.warn is defined before calling it.
IE8 does not have console, unless you open the developer tools. This fix checks to makes sure console.warn is defined before calling it.
bower.json had Promise.js instead of promise.js
bower.json had Promise.js instead of promise.js
Fixed promise.js in package.json. It was accidently published as Promise.js
Fixed promise.js in package.json. It was accidently published as Promise.js
Fixed promise.js in package.json. It was accidently published as Promise.js
Added unhandled rejection warnings to the console
New version fixing this major bug https://github.com/taylorhakes/promise-polyfill/pull/17
New version fixing this major bug https://github.com/taylorhakes/promise-polyfill/pull/17
This is considered a breaking change because people may have been using this functionality. If you would like to keep version 2 functionality, set Pro…
In version 2 mocking setTimeout in Jasmine and Sinon would affect promise-polyfill resolution. Since native Promise is not affected by mocks, this library has been updated to behave the same way.
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);
});
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Removed dead code Promise.immedateFn and added Promise._setImmediateFn(fn);
Removed dead code Promise.immedateFn and added Promise._setImmediateFn(fn);
Simplified attaching to global object
Simplified attaching to global object
Webworkers missing window object
Bug fixes:
Fixed Webworkers missing window object
Changed the following line
module.exports = root.Promise ? root.Promise : Promise;
to
module.exports = Promise;
This means the library will not use built-in Promise by default. This allows for more consistency.
You can easily add the functionality back.
var Promise = window.Promise || require('promise-polyfill');
Added Promise.immediateFn to allow changing the setImmedate function
Promise.immediateFn = window.setAsap;
` module.exports = root.Promise ? root.Promise : Promise; `
module.exports = root.Promise ? root.Promise : Promise;
to
module.exports = Promise;
This means the library will not use built-in Promise by default. This allows for more consistency.
You can easily add the functionality back.
var Promise = window.Promise || require('promise-polyfill');
Promise.immediateFn = window.setAsap;
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
## 1.0.1 Update README.md
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →