Skip to content

Releases: taylorhakes/promise-polyfill

Fix case in bower.json

09 Apr 20:18
Compare
Choose a tag to compare

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

promise.js case fix in package.json

22 Mar 01:24
Compare
Choose a tag to compare

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

Unhandled Rejections and Other Fixes

19 Mar 16:19
Compare
Choose a tag to compare
  • Added unhandled rejection warnings to the console
  • Removed Grunt, jasmine and other unused code
  • Renamed Promise.js to lowercase promise.js in multiple places

Fixed shadowing issue on setTimeout

12 Jan 13:33
Compare
Choose a tag to compare

New version fixing this major bug #17

Updated setTimeout to not be affected by test mocks

09 Jan 16:46
Compare
Choose a tag to compare

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);
});

Promise._setImmedateFn

25 Jun 04:18
Compare
Choose a tag to compare

Removed dead code Promise.immedateFn and added Promise._setImmediateFn(fn);

Simplified Global detection

01 Apr 02:08
Compare
Choose a tag to compare
v2.0.2

Simplified attaching to global object

Webworker bugfixes

30 Mar 22:25
Compare
Choose a tag to compare

Bug fixes:

  • Webworkers missing window object

v2.0.0: Removed degrading to built in promise

03 Feb 23:39
Compare
Choose a tag to compare

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;

1.1.4 Updated Promise to use correct global object in Browser and Node