1 | # Changelog
|
2 | ## 6.1.0
|
3 | - Bug fix for non-array values in `Promise.all()`
|
4 | - Small optimization checking for making sure `Promise` is called with `new`
|
5 |
|
6 |
|
7 | ## 6.0.0 Deprecated `Promise._setImmediateFn` and `Promise._setUnhandledRejectionFn`
|
8 | This allows subclassing Promise without rewriting functions
|
9 | - `Promise._setImmediateFn(<immediateFn>)` has been deprecated. Use `Promise._immediateFn = <immediateFn>` instead.
|
10 | - `Promise._setUnhandledRejectionFn(<rejectionFn>)` has been deprecated. Use `Promise._unhandledRejectionFn = <rejectionFn>` instead.
|
11 | These functions will be removed in the next major version.
|
12 |
|
13 | ### 5.2.1 setTimeout to 0
|
14 | Fixed bug where setTimeout was set to 1 instead of 0 for async execution
|
15 |
|
16 | ### 5.2.0 Subclassing
|
17 | Allowed Subclassing. [#27](https://github.com/taylorhakes/promise-polyfill/pull/27)
|
18 |
|
19 | ### 5.1.0 Fixed reliance on setTimeout
|
20 | Changed possibly unhanded warnings to use asap function instead of setTimeout
|
21 |
|
22 | ## 5.0.0 Removed multiple params from Promise.all
|
23 | Removed non standard functionality of passing multiple params to Promise.all. You must pass an array now. You must change this code
|
24 | ```js
|
25 | Promise.all(prom1, prom2, prom3);
|
26 | ```
|
27 | to this
|
28 | ```js
|
29 | Promise.all([prom1, prom2, prom3]);
|
30 | ```
|
31 |
|
32 | ### 4.0.4 IE8 console.warn fix
|
33 | IE8 does not have console, unless you open the developer tools. This fix checks to makes sure console.warn is defined before calling it.
|
34 |
|
35 | ### 4.0.3 Fix case in bower.json
|
36 | bower.json had Promise.js instead of promise.js
|
37 |
|
38 | ### 4.0.2 promise.js case fix in package.json
|
39 | Fixed promise.js in package.json. It was accidently published as Promise.js
|
40 |
|
41 | ## 4.0.1 Unhandled Rejections and Other Fixes
|
42 | - Added unhandled rejection warnings to the console
|
43 | - Removed Grunt, jasmine and other unused code
|
44 | - Renamed Promise.js to lowercase promise.js in multiple places
|
45 |
|
46 | ### 3.0.1 Fixed shadowing issue on setTimeout
|
47 | New version fixing this major bug https://github.com/taylorhakes/promise-polyfill/pull/17
|
48 |
|
49 | ## 3.0.0 Updated setTimeout to not be affected by test mocks
|
50 | 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.
|
51 |
|
52 | ```js
|
53 | var Promise = require('promise-polyfill');
|
54 | Promise._setImmedateFn(function(fn) {
|
55 | setTimeout(fn, 1);
|
56 | });
|
57 | ```
|
58 |
|
59 | ### 2.1.0 Promise._setImmedateFn
|
60 | Removed dead code Promise.immedateFn and added Promise._setImmediateFn(fn);
|
61 |
|
62 | ### 2.0.2 Simplified Global detection
|
63 | Simplified attaching to global object
|
64 |
|
65 | ### 2.0.1 Webworker bugfixes
|
66 | Fixed Webworkers missing window object
|
67 |
|
68 | ## 2.0.0
|
69 | **Changed the following line**
|
70 | ```
|
71 | module.exports = root.Promise ? root.Promise : Promise;
|
72 | ```
|
73 | to
|
74 | ```
|
75 | module.exports = Promise;
|
76 | ```
|
77 |
|
78 | This means the library will not use built-in Promise by default. This allows for more consistency.
|
79 |
|
80 | You can easily add the functionality back.
|
81 | ```
|
82 | var Promise = window.Promise || require('promise-polyfill');
|
83 | ```
|
84 |
|
85 | **Added Promise.immediateFn to allow changing the setImmedate function**
|
86 | ```
|
87 | Promise.immediateFn = window.setAsap;
|
88 | ```
|
89 |
|
90 | ### 1.1.4 Updated Promise to use correct global object in Browser and Node
|
91 |
|
92 | ### 1.1.3 Fixed browserify issue with `this`
|
93 |
|
94 | ### 1.1.2 Updated Promise.resolve to resolve with original Promise
|
95 |
|
96 | ### 1.1.0 Performance Improvements for Modern Browsers
|
97 |
|
98 | ## 1.0.1 Update README.md
|