Socket
Socket
Sign inDemoInstall

promise-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-polyfill - npm Package Versions

1245

5.2.1

Diff

Changelog

Source

5.2.1 setTimeout to 0

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

taylorhakes
published 5.2.0 •

Changelog

Source

5.2.0 Subclassing

Allowed Subclassing. #27

taylorhakes
published 5.1.0 •

Changelog

Source

5.1.0 Fixed reliance on setTimeout

Changed possibly unhanded warnings to use asap function instead of setTimeout

taylorhakes
published 5.0.0 •

Changelog

Source

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]);
taylorhakes
published 4.0.4 •

Changelog

Source

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.

taylorhakes
published 4.0.3 •

Changelog

Source

4.0.3 Fix case in bower.json

bower.json had Promise.js instead of promise.js

taylorhakes
published 4.0.2 •

Changelog

Source

4.0.2 promise.js case fix in package.json

Fixed promise.js in package.json. It was accidently published as Promise.js

taylorhakes
published 4.0.1 •

Changelog

Source

4.0.1 Unhandled Rejections and Other Fixes

  • Added unhandled rejection warnings to the console
  • Removed Grunt, jasmine and other unused code
  • Renamed Promise.js to lowercase promise.js in multiple places
taylorhakes
published 3.1.0 •

taylorhakes
published 3.0.0 •

Changelog

Source

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);
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc