Releases: taylorhakes/promise-polyfill
Releases · taylorhakes/promise-polyfill
8.2.2
8.2.0
Added Promise.allSettled
Fixed publishing of dist folder
8.1.3 Fixed dist files
Fix bug in isArray and Promise.all([])
Promise.all([]) failed due to bug in isArray
Promise.race bug fix
Fixes issue in Promise.race
where passing non promises would error. For instance
Promise.race([1,2,3])
Closure compiler/typescript support
Added Closure compiler and typescript doc definitions.
Big thanks to @TimvdLippe
8.0.0
- 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.
Fixed `global` issue in Node JS
Fixed an error in Node JS causing throw new Error('unable to locate global object');
.
Thanks @vmihailenco for the fix.
Promise.prototype.finally
Added Promise.protoype.finally. Big thanks to @dfahlander for doing the work.
IE8 minification fixes
7.0.2 Fix incompatibility with IE8 in minified version