Lightweight ES6 Promise polyfill for the browser and node. A+ Compliant
MIT License
Bot releases are hidden (Show)
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
Published by taylorhakes almost 4 years ago
Added Promise.allSettled
Published by taylorhakes over 5 years ago
Published by taylorhakes over 5 years ago
Promise.all([]) failed due to bug in isArray
Published by taylorhakes over 5 years ago
Fixes issue in Promise.race
where passing non promises would error. For instance
Promise.race([1,2,3])
Published by taylorhakes about 6 years ago
Added Closure compiler and typescript doc definitions.
Big thanks to @TimvdLippe
Published by taylorhakes about 6 years ago
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');
Published by taylorhakes over 6 years ago
Fixed an error in Node JS causing throw new Error('unable to locate global object');
.
Thanks @vmihailenco for the fix.
Published by taylorhakes over 6 years ago
Added Promise.protoype.finally. Big thanks to @dfahlander for doing the work.
Published by taylorhakes over 6 years ago
Published by taylorhakes over 6 years ago
Published by taylorhakes almost 7 years ago
Published by taylorhakes about 8 years ago
Thanks to @shortstories for finding the bug https://github.com/taylorhakes/promise-polyfill/issues/34
Published by taylorhakes about 8 years ago
Fixed a bug where setImmediate failed on IE11
Published by taylorhakes about 8 years ago
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.Published by taylorhakes over 8 years ago
Fixed bug where setTimeout was set to 1 instead of 0 for async execution
Published by taylorhakes over 8 years ago
Allowed Subclassing. #27
Published by taylorhakes over 8 years ago
Changed possibly unhanded warnings to use asap function instead of setTimeout
Published by taylorhakes over 8 years ago
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]);
Published by taylorhakes over 8 years ago
IE8 does not have console
, unless you open the developer tools. This fix checks to makes sure console.warn
is defined before calling it.