promise-polyfill

Lightweight ES6 Promise polyfill for the browser and node. A+ Compliant

MIT License

Downloads
15.2M
Stars
2.2K
Committers
28

Bot releases are visible (Hide)

promise-polyfill - 8.2.2 Latest Release

Published by taylorhakes over 2 years ago

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

promise-polyfill - 8.2.0

Published by taylorhakes almost 4 years ago

Added Promise.allSettled

promise-polyfill - Fixed publishing of dist folder

Published by taylorhakes over 5 years ago

promise-polyfill - Fix bug in isArray and Promise.all([])

Published by taylorhakes over 5 years ago

Promise.all([]) failed due to bug in isArray

promise-polyfill - Promise.race bug fix

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])
promise-polyfill - Closure compiler/typescript support

Published by taylorhakes about 6 years ago

Added Closure compiler and typescript doc definitions.
Big thanks to @TimvdLippe

promise-polyfill - 8.0.0

Published by taylorhakes about 6 years ago

  • Polyfill default promise with finally if it doesn't exist if you use polyfill.js
  • If using require with webpack 2+, you now need to do
var Promise = require('promise-polyfill').default;

instead of

var Promise = require('promise-polyfill');
  • Removed files /dist/promise.js and /dist/promise.min.js. These files were not used unless you downloaded them directly from the repo. They were not used by ES6 modules, CommonJS or polyfill.js
    The file lead to issues because they overrode the global Promise by default.
promise-polyfill - Fixed `global` issue in Node JS

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.

promise-polyfill - Promise.prototype.finally

Published by taylorhakes over 6 years ago

Added Promise.protoype.finally. Big thanks to @dfahlander for doing the work.

promise-polyfill - IE8 minification fixes

Published by taylorhakes over 6 years ago

promise-polyfill - IE and require fixes

Published by taylorhakes over 6 years ago

promise-polyfill - ES6 Modules

Published by taylorhakes almost 7 years ago

  • Updated code to ES6 module definitions (thanks Andarist)
  • Added polyfill.js file
  • move compiled files to dist folder
promise-polyfill - IE8 Minify Fixes

Published by taylorhakes about 8 years ago

Thanks to @shortstories for finding the bug https://github.com/taylorhakes/promise-polyfill/issues/34

promise-polyfill - IE11 setImmediate fix

Published by taylorhakes about 8 years ago

Fixed a bug where setImmediate failed on IE11

https://github.com/taylorhakes/promise-polyfill/issues/31

promise-polyfill - Subclassing and Deprecations

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.
    These functions will be removed in the next major version.
promise-polyfill - setTimeout to 0

Published by taylorhakes over 8 years ago

Fixed bug where setTimeout was set to 1 instead of 0 for async execution

promise-polyfill - Subclassing

Published by taylorhakes over 8 years ago

Allowed Subclassing. #27

promise-polyfill - Fixed reliance on setTimeout

Published by taylorhakes over 8 years ago

Changed possibly unhanded warnings to use asap function instead of setTimeout

promise-polyfill - Removed multiple params from Promise.all

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]);
promise-polyfill - IE8 console.warn fix

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.