Skip to content

v2.0.0: Removed degrading to built in promise

Compare
Choose a tag to compare
@taylorhakes taylorhakes released this 03 Feb 23:39
· 180 commits to master since this release

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;