Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit fd91152

Browse files
committed
chore: release v0.8.20
1 parent 8293c37 commit fd91152

27 files changed

+1122
-1163
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<a name="0.8.20"></a>
2+
## [0.8.20](https://github.com/angular/zone.js/compare/v0.8.19...0.8.20) (2018-01-10)
3+
4+
5+
### Bug Fixes
6+
7+
* **core:** add comment for shorter var/function name ([67e8178](https://github.com/angular/zone.js/commit/67e8178))
8+
* **core:** add file check script in travis build ([615a6c1](https://github.com/angular/zone.js/commit/615a6c1))
9+
* **core:** add helper method in util.ts to shorter zone.wrap/scehduleMacroTask ([8293c37](https://github.com/angular/zone.js/commit/8293c37))
10+
* **core:** add rxjs test ([31832a7](https://github.com/angular/zone.js/commit/31832a7))
11+
* **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))
12+
* **core:** fix shorter name closure conflict ([00a4e31](https://github.com/angular/zone.js/commit/00a4e31))
13+
* **core:** remove unreadable short names ([957351e](https://github.com/angular/zone.js/commit/957351e))
14+
15+
16+
117
<a name="0.8.18"></a>
218
## [0.8.18](https://github.com/angular/zone.js/compare/v0.8.17...0.8.18) (2017-09-27)
319

dist/fake-async-test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
this.pendingTimers = [];
162162
this.properties = { 'FakeAsyncTestZoneSpec': this };
163163
this.name = 'fakeAsyncTestZone for ' + namePrefix;
164-
// in case user can't access the construction of FakyAsyncTestSpec
164+
// in case user can't access the construction of FakeAsyncTestSpec
165165
// user can also define macroTaskOptions by define a global variable.
166166
if (!this.macroTaskOptions) {
167167
this.macroTaskOptions = global[Zone.__symbol__('FakeAsyncTestMacroTask')];
@@ -303,16 +303,16 @@
303303
// should pass additional arguments to callback if have any
304304
// currently we know process.nextTick will have such additional
305305
// arguments
306-
var addtionalArgs = void 0;
306+
var additionalArgs = void 0;
307307
if (args) {
308-
var callbackIndex = task.data.callbackIndex;
308+
var callbackIndex = task.data.cbIdx;
309309
if (typeof args.length === 'number' && args.length > callbackIndex + 1) {
310-
addtionalArgs = Array.prototype.slice.call(args, callbackIndex + 1);
310+
additionalArgs = Array.prototype.slice.call(args, callbackIndex + 1);
311311
}
312312
}
313313
this._microtasks.push({
314314
func: task.invoke,
315-
args: addtionalArgs,
315+
args: additionalArgs,
316316
target: task.data && task.data.target
317317
});
318318
break;
@@ -350,7 +350,7 @@
350350
task.data.isPeriodic = true;
351351
}
352352
else {
353-
// not periodic, use setTimout to simulate
353+
// not periodic, use setTimeout to simulate
354354
task.data['handleId'] = this._setTimeout(task.invoke, delay, callbackArgs);
355355
}
356356
break;

dist/webapis-media-query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Zone.__load_patch('mediaQuery', function (global, Zone, api) {
2222
if (!global['MediaQueryList']) {
2323
return;
2424
}
25-
api.patchEventTarget(global, [global['MediaQueryList'].prototype], { addEventListenerFnName: 'addListener', removeEventListenerFnName: 'removeListener' });
25+
api.patchEventTarget(global, [global['MediaQueryList'].prototype], { add: 'addListener', rm: 'removeListener' });
2626
});
2727

2828
})));

dist/webapis-media-query.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/webapis-rtc-peer-connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ Zone.__load_patch('RTCPeerConnection', function (global, Zone, api) {
2828
RTCPeerConnection.prototype.addEventListener = RTCPeerConnection.prototype[addSymbol];
2929
RTCPeerConnection.prototype.removeEventListener = RTCPeerConnection.prototype[removeSymbol];
3030
// RTCPeerConnection extends EventTarget, so we must clear the symbol
31-
// to allow pathc RTCPeerConnection.prototype.addEventListener again
31+
// to allow patch RTCPeerConnection.prototype.addEventListener again
3232
RTCPeerConnection.prototype[addSymbol] = null;
3333
RTCPeerConnection.prototype[removeSymbol] = null;
34-
api.patchEventTarget(global, [RTCPeerConnection.prototype], { useGlobalCallback: false });
34+
api.patchEventTarget(global, [RTCPeerConnection.prototype], { useG: false });
3535
});
3636

3737
})));

dist/webapis-rtc-peer-connection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zone-bluebird.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Use of this source code is governed by an MIT-style license that can be
1919
* found in the LICENSE file at https://angular.io/license
2020
*/
21-
Zone.__load_patch('bluebird', function (global, Zone, api) {
21+
Zone.__load_patch('bluebird', function (global, Zone) {
2222
// TODO: @JiaLiPassion, we can automatically patch bluebird
2323
// if global.Promise = Bluebird, but sometimes in nodejs,
2424
// global.Promise is not Bluebird, and Bluebird is just be

dist/zone-bluebird.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zone-error.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Zone.__load_patch('Error', function (global, Zone, api) {
171171
}
172172
}
173173
}
174-
return value.apply(this, [error, structuredStackTrace]);
174+
return value.call(this, error, structuredStackTrace);
175175
};
176176
}
177177
});
@@ -197,7 +197,7 @@ Zone.__load_patch('Error', function (global, Zone, api) {
197197
var frame = frames_2.shift();
198198
// On safari it is possible to have stack frame with no line number.
199199
// This check makes sure that we don't filter frames on name only (must have
200-
// linenumber)
200+
// line number)
201201
if (/:\d+:\d+/.test(frame)) {
202202
// Get rid of the path so that we don't accidentally find function name in path.
203203
// In chrome the separator is `(` and `@` in FF and safari
@@ -263,7 +263,7 @@ Zone.__load_patch('Error', function (global, Zone, api) {
263263
// all kinds of tasks with one error thrown.
264264
childDetectZone.run(function () {
265265
childDetectZone.runGuarded(function () {
266-
var fakeTransitionTo = function (toState, fromState1, fromState2) { };
266+
var fakeTransitionTo = function () { };
267267
childDetectZone.scheduleEventTask(blacklistedStackFramesSymbol, function () {
268268
childDetectZone.scheduleMacroTask(blacklistedStackFramesSymbol, function () {
269269
childDetectZone.scheduleMicroTask(blacklistedStackFramesSymbol, function () {

dist/zone-error.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)