CHANGELOG.md 3.65 KB
Newer Older
liang ce committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
# Changelog

### 7.1.2

* Fixed bug in Node JS Promise polyfill

### 7.1.0

* Added Promise.prototype.finally

### 7.0.2

* Added IE8 compatability back to minify

### 7.0.1

* Fixed a bug in 'catch' keyword in IE8
* Fixed import error when using `require`

## 7.0.0

* Updated code to ES6 module definitions (thanks Andarist)
* Added polyfill.js file
* move compiled files to dist folder

## 6.1.0

* Bug fix for non-array values in `Promise.all()`
* Small optimization checking for making sure `Promise` is called with `new`

## 6.0.0 Deprecated `Promise._setImmediateFn` and `Promise._setUnhandledRejectionFn`

This allows subclassing Promise without rewriting functions

* `Promise._setImmediateFn(<immediateFn>)` has been deprecated. Use `Promise._immediateFn = <immediateFn>` instead.
* `Promise._setUnhandledRejectionFn(<rejectionFn>)` has been deprecated. Use `Promise._unhandledRejectionFn = <rejectionFn>` instead.
  These functions will be removed in the next major version.

### 5.2.1 setTimeout to 0

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

### 5.2.0 Subclassing

Allowed Subclassing. [#27](https://github.com/taylorhakes/promise-polyfill/pull/27)

### 5.1.0 Fixed reliance on setTimeout

Changed possibly unhanded warnings to use asap function instead of setTimeout

## 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

```js
Promise.all(prom1, prom2, prom3);
```

to this

```js
Promise.all([prom1, prom2, prom3]);
```

### 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.

### 4.0.3 Fix case in bower.json

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

### 4.0.2 promise.js case fix in package.json

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

## 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

### 3.0.1 Fixed shadowing issue on setTimeout

New version fixing this major bug https://github.com/taylorhakes/promise-polyfill/pull/17

## 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.

```js
var Promise = require('promise-polyfill');
Promise._setImmedateFn(function(fn) {
  setTimeout(fn, 1);
});
```

### 2.1.0 Promise.\_setImmedateFn

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

### 2.0.2 Simplified Global detection

Simplified attaching to global object

### 2.0.1 Webworker bugfixes

Fixed Webworkers missing window object

## 2.0.0

**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

### 1.1.3 Fixed browserify issue with `this`

### 1.1.2 Updated Promise.resolve to resolve with original Promise

### 1.1.0 Performance Improvements for Modern Browsers

## 1.0.1 Update README.md