Skip to content

Commit

Permalink
chore: release v0.8.20
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Jan 10, 2018
1 parent 8293c37 commit fd91152
Show file tree
Hide file tree
Showing 27 changed files with 1,122 additions and 1,163 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<a name="0.8.20"></a>
## [0.8.20](https://github.com/angular/zone.js/compare/v0.8.19...0.8.20) (2018-01-10)


### Bug Fixes

* **core:** add comment for shorter var/function name ([67e8178](https://github.com/angular/zone.js/commit/67e8178))
* **core:** add file check script in travis build ([615a6c1](https://github.com/angular/zone.js/commit/615a6c1))
* **core:** add helper method in util.ts to shorter zone.wrap/scehduleMacroTask ([8293c37](https://github.com/angular/zone.js/commit/8293c37))
* **core:** add rxjs test ([31832a7](https://github.com/angular/zone.js/commit/31832a7))
* **core:** fix [#989](https://github.com/angular/zone.js/issues/989), remove unuse code, use shorter name to reduce bundle size ([73b0061](https://github.com/angular/zone.js/commit/73b0061))
* **core:** fix shorter name closure conflict ([00a4e31](https://github.com/angular/zone.js/commit/00a4e31))
* **core:** remove unreadable short names ([957351e](https://github.com/angular/zone.js/commit/957351e))



<a name="0.8.18"></a>
## [0.8.18](https://github.com/angular/zone.js/compare/v0.8.17...0.8.18) (2017-09-27)

Expand Down
12 changes: 6 additions & 6 deletions dist/fake-async-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
this.pendingTimers = [];
this.properties = { 'FakeAsyncTestZoneSpec': this };
this.name = 'fakeAsyncTestZone for ' + namePrefix;
// in case user can't access the construction of FakyAsyncTestSpec
// in case user can't access the construction of FakeAsyncTestSpec
// user can also define macroTaskOptions by define a global variable.
if (!this.macroTaskOptions) {
this.macroTaskOptions = global[Zone.__symbol__('FakeAsyncTestMacroTask')];
Expand Down Expand Up @@ -303,16 +303,16 @@
// should pass additional arguments to callback if have any
// currently we know process.nextTick will have such additional
// arguments
var addtionalArgs = void 0;
var additionalArgs = void 0;
if (args) {
var callbackIndex = task.data.callbackIndex;
var callbackIndex = task.data.cbIdx;
if (typeof args.length === 'number' && args.length > callbackIndex + 1) {
addtionalArgs = Array.prototype.slice.call(args, callbackIndex + 1);
additionalArgs = Array.prototype.slice.call(args, callbackIndex + 1);
}
}
this._microtasks.push({
func: task.invoke,
args: addtionalArgs,
args: additionalArgs,
target: task.data && task.data.target
});
break;
Expand Down Expand Up @@ -350,7 +350,7 @@
task.data.isPeriodic = true;
}
else {
// not periodic, use setTimout to simulate
// not periodic, use setTimeout to simulate
task.data['handleId'] = this._setTimeout(task.invoke, delay, callbackArgs);
}
break;
Expand Down
2 changes: 1 addition & 1 deletion dist/webapis-media-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Zone.__load_patch('mediaQuery', function (global, Zone, api) {
if (!global['MediaQueryList']) {
return;
}
api.patchEventTarget(global, [global['MediaQueryList'].prototype], { addEventListenerFnName: 'addListener', removeEventListenerFnName: 'removeListener' });
api.patchEventTarget(global, [global['MediaQueryList'].prototype], { add: 'addListener', rm: 'removeListener' });
});

})));
2 changes: 1 addition & 1 deletion dist/webapis-media-query.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/webapis-rtc-peer-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Zone.__load_patch('RTCPeerConnection', function (global, Zone, api) {
RTCPeerConnection.prototype.addEventListener = RTCPeerConnection.prototype[addSymbol];
RTCPeerConnection.prototype.removeEventListener = RTCPeerConnection.prototype[removeSymbol];
// RTCPeerConnection extends EventTarget, so we must clear the symbol
// to allow pathc RTCPeerConnection.prototype.addEventListener again
// to allow patch RTCPeerConnection.prototype.addEventListener again
RTCPeerConnection.prototype[addSymbol] = null;
RTCPeerConnection.prototype[removeSymbol] = null;
api.patchEventTarget(global, [RTCPeerConnection.prototype], { useGlobalCallback: false });
api.patchEventTarget(global, [RTCPeerConnection.prototype], { useG: false });
});

})));
2 changes: 1 addition & 1 deletion dist/webapis-rtc-peer-connection.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/zone-bluebird.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Zone.__load_patch('bluebird', function (global, Zone, api) {
Zone.__load_patch('bluebird', function (global, Zone) {
// TODO: @JiaLiPassion, we can automatically patch bluebird
// if global.Promise = Bluebird, but sometimes in nodejs,
// global.Promise is not Bluebird, and Bluebird is just be
Expand Down
2 changes: 1 addition & 1 deletion dist/zone-bluebird.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/zone-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Zone.__load_patch('Error', function (global, Zone, api) {
}
}
}
return value.apply(this, [error, structuredStackTrace]);
return value.call(this, error, structuredStackTrace);
};
}
});
Expand All @@ -197,7 +197,7 @@ Zone.__load_patch('Error', function (global, Zone, api) {
var frame = frames_2.shift();
// On safari it is possible to have stack frame with no line number.
// This check makes sure that we don't filter frames on name only (must have
// linenumber)
// line number)
if (/:\d+:\d+/.test(frame)) {
// Get rid of the path so that we don't accidentally find function name in path.
// In chrome the separator is `(` and `@` in FF and safari
Expand Down Expand Up @@ -263,7 +263,7 @@ Zone.__load_patch('Error', function (global, Zone, api) {
// all kinds of tasks with one error thrown.
childDetectZone.run(function () {
childDetectZone.runGuarded(function () {
var fakeTransitionTo = function (toState, fromState1, fromState2) { };
var fakeTransitionTo = function () { };
childDetectZone.scheduleEventTask(blacklistedStackFramesSymbol, function () {
childDetectZone.scheduleMacroTask(blacklistedStackFramesSymbol, function () {
childDetectZone.scheduleMicroTask(blacklistedStackFramesSymbol, function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/zone-error.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fd91152

Please sign in to comment.