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

Commit 5090cc9

Browse files
committed
chore: release v0.8.27
1 parent afa1363 commit 5090cc9

27 files changed

+1762
-1021
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
<a name="0.8.27"></a>
2+
## [0.8.27](https://github.com/angular/zone.js/compare/v0.8.26...0.8.27) (2018-12-13)
3+
4+
5+
### Bug Fixes
6+
7+
* **bluebird:** fix [#1112](https://github.com/angular/zone.js/issues/1112), bluebird chained callback should return a Bluebird Promise ([#1114](https://github.com/angular/zone.js/issues/1114)) ([6ba3169](https://github.com/angular/zone.js/commit/6ba3169))
8+
* **core:** fix [#1108](https://github.com/angular/zone.js/issues/1108), window.onerror should have (message, source, lineno, colno, error) signiture ([#1109](https://github.com/angular/zone.js/issues/1109)) ([49e0548](https://github.com/angular/zone.js/commit/49e0548))
9+
* **core:** fix [#1153](https://github.com/angular/zone.js/issues/1153), ZoneTask.toString should always be a string ([#1166](https://github.com/angular/zone.js/issues/1166)) ([afa1363](https://github.com/angular/zone.js/commit/afa1363))
10+
* **core:** use then directly when promise is not patchable ([#1079](https://github.com/angular/zone.js/issues/1079)) ([d7e0a31](https://github.com/angular/zone.js/commit/d7e0a31))
11+
* **event:** should pass boolean to addEventListener if not support passive ([#1053](https://github.com/angular/zone.js/issues/1053)) ([e9536ec](https://github.com/angular/zone.js/commit/e9536ec))
12+
* **format:** update clang-format to 1.2.3 ([f238908](https://github.com/angular/zone.js/commit/f238908))
13+
* **memory:** Add protection against excessive on prop patching ([#1106](https://github.com/angular/zone.js/issues/1106)) ([875086f](https://github.com/angular/zone.js/commit/875086f))
14+
* **node:** fix [#1164](https://github.com/angular/zone.js/issues/1164), don't patch uncaughtException to prevent endless loop ([#1170](https://github.com/angular/zone.js/issues/1170)) ([33a0ad6](https://github.com/angular/zone.js/commit/33a0ad6))
15+
* **node:** node patched method should copy original delegate's symbol properties ([#1095](https://github.com/angular/zone.js/issues/1095)) ([0a2f6ff](https://github.com/angular/zone.js/commit/0a2f6ff))
16+
* **onProperty:** user quoted access for __Zone_ignore_on_properties ([#1134](https://github.com/angular/zone.js/issues/1134)) ([7201d44](https://github.com/angular/zone.js/commit/7201d44))
17+
* **test:** karma-dist should test bundle under dist ([#1049](https://github.com/angular/zone.js/issues/1049)) ([0720d79](https://github.com/angular/zone.js/commit/0720d79))
18+
* **tsc:** tsconfig.json strict:true ([915042d](https://github.com/angular/zone.js/commit/915042d))
19+
* **xhr:** fix [#1072](https://github.com/angular/zone.js/issues/1072), should set scheduled flag to target ([#1074](https://github.com/angular/zone.js/issues/1074)) ([34c12e5](https://github.com/angular/zone.js/commit/34c12e5))
20+
* **xhr:** should invoke xhr task after onload is triggered ([#1055](https://github.com/angular/zone.js/issues/1055)) ([2aab9c8](https://github.com/angular/zone.js/commit/2aab9c8))
21+
22+
23+
### Features
24+
25+
* **build:** Upgrade to TypeScript 2.9 and rxjs6 ([#1122](https://github.com/angular/zone.js/issues/1122)) ([31fc127](https://github.com/angular/zone.js/commit/31fc127))
26+
* **core:** upgrade to typescript 3.0.3 ([#1132](https://github.com/angular/zone.js/issues/1132)) ([60adc9c](https://github.com/angular/zone.js/commit/60adc9c))
27+
* **Core:** fix [#910](https://github.com/angular/zone.js/issues/910), add a flag to allow user to ignore duplicate Zone error ([#1093](https://github.com/angular/zone.js/issues/1093)) ([a86c6d5](https://github.com/angular/zone.js/commit/a86c6d5))
28+
* **custom-element:** patch customElement v1 APIs ([#1133](https://github.com/angular/zone.js/issues/1133)) ([427705f](https://github.com/angular/zone.js/commit/427705f))
29+
* **error:** fix [#975](https://github.com/angular/zone.js/issues/975), can config how to load blacklist zone stack frames ([#1045](https://github.com/angular/zone.js/issues/1045)) ([ff3d545](https://github.com/angular/zone.js/commit/ff3d545))
30+
* **fetch:** schedule macroTask when fetch ([#1075](https://github.com/angular/zone.js/issues/1075)) ([bf88c34](https://github.com/angular/zone.js/commit/bf88c34))
31+
32+
33+
134
<a name="0.8.26"></a>
235
## [0.8.26](https://github.com/angular/zone.js/compare/v0.8.25...0.8.26) (2018-04-08)
336

dist/fake-async-test.js

Lines changed: 24 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,6 @@
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-
var __read = (undefined && undefined.__read) || function (o, n) {
22-
var m = typeof Symbol === "function" && o[Symbol.iterator];
23-
if (!m) return o;
24-
var i = m.call(o), r, ar = [], e;
25-
try {
26-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
27-
}
28-
catch (error) { e = { error: error }; }
29-
finally {
30-
try {
31-
if (r && !r.done && (m = i["return"])) m.call(i);
32-
}
33-
finally { if (e) throw e.error; }
34-
}
35-
return ar;
36-
};
37-
var __spread = (undefined && undefined.__spread) || function () {
38-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
39-
return ar;
40-
};
4121
(function (global) {
4222
var OriginalDate = global.Date;
4323
var FakeDate = /** @class */ (function () {
@@ -49,7 +29,7 @@ var __spread = (undefined && undefined.__spread) || function () {
4929
}
5030
else {
5131
var args = Array.prototype.slice.call(arguments);
52-
return new (OriginalDate.bind.apply(OriginalDate, __spread([void 0], args)))();
32+
return new (OriginalDate.bind.apply(OriginalDate, [void 0].concat(args)))();
5333
}
5434
}
5535
FakeDate.now = function () {
@@ -154,7 +134,11 @@ var __spread = (undefined && undefined.__spread) || function () {
154134
}
155135
}
156136
}
137+
lastCurrentTime = this._currentTime;
157138
this._currentTime = finalTime;
139+
if (doTick) {
140+
doTick(this._currentTime - lastCurrentTime);
141+
}
158142
};
159143
Scheduler.prototype.flush = function (limit, flushPeriodic, doTick) {
160144
if (limit === void 0) { limit = 20; }
@@ -243,14 +227,14 @@ var __spread = (undefined && undefined.__spread) || function () {
243227
args[_i] = arguments[_i];
244228
}
245229
fn.apply(global, args);
246-
if (_this._lastError === null) {
230+
if (_this._lastError === null) { // Success
247231
if (completers.onSuccess != null) {
248232
completers.onSuccess.apply(global);
249233
}
250234
// Flush microtasks only on success.
251235
_this.flushMicrotasks();
252236
}
253-
else {
237+
else { // Failure
254238
if (completers.onError != null) {
255239
completers.onError.apply(global);
256240
}
@@ -549,23 +533,23 @@ Zone.__load_patch('fakeasync', function (global, Zone, api) {
549533
ProxyZoneSpec && ProxyZoneSpec.assertPresent().resetDelegate();
550534
}
551535
/**
552-
* Wraps a function to be executed in the fakeAsync zone:
553-
* - microtasks are manually executed by calling `flushMicrotasks()`,
554-
* - timers are synchronous, `tick()` simulates the asynchronous passage of time.
555-
*
556-
* If there are any pending timers at the end of the function, an exception will be thrown.
557-
*
558-
* Can be used to wrap inject() calls.
559-
*
560-
* ## Example
561-
*
562-
* {@example core/testing/ts/fake_async.ts region='basic'}
563-
*
564-
* @param fn
565-
* @returns The function wrapped to be executed in the fakeAsync zone
566-
*
567-
* @experimental
568-
*/
536+
* Wraps a function to be executed in the fakeAsync zone:
537+
* - microtasks are manually executed by calling `flushMicrotasks()`,
538+
* - timers are synchronous, `tick()` simulates the asynchronous passage of time.
539+
*
540+
* If there are any pending timers at the end of the function, an exception will be thrown.
541+
*
542+
* Can be used to wrap inject() calls.
543+
*
544+
* ## Example
545+
*
546+
* {@example core/testing/ts/fake_async.ts region='basic'}
547+
*
548+
* @param fn
549+
* @returns The function wrapped to be executed in the fakeAsync zone
550+
*
551+
* @experimental
552+
*/
569553
function fakeAsync(fn) {
570554
// Not using an arrow function to preserve context passed from call site
571555
return function () {

dist/proxy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var ProxyZoneSpec = /** @class */ (function () {
2323
if (defaultSpecDelegate === void 0) { defaultSpecDelegate = null; }
2424
this.defaultSpecDelegate = defaultSpecDelegate;
2525
this.name = 'ProxyZone';
26+
this._delegateSpec = null;
2627
this.properties = { 'ProxyZoneSpec': this };
2728
this.propertyKeys = null;
2829
this.lastTaskState = null;

dist/proxy.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-media-query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Zone.__load_patch('mediaQuery', function (global, Zone, api) {
6969
patchRemoveListener(mql);
7070
}
7171
else if (mql['addListener']) {
72-
// proto not exists, or proto has no addListener method
72+
// proto not exists, or proto has no addListener method
7373
// try to patch mql instance
7474
patchAddListener(mql);
7575
patchRemoveListener(mql);

dist/wtf.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@
4747
return retValue;
4848
};
4949
WtfZoneSpec.prototype.onInvoke = function (parentZoneDelegate, currentZone, targetZone, delegate, applyThis, applyArgs, source) {
50-
var scope = WtfZoneSpec.invokeScope[source];
50+
var src = source || 'unknown';
51+
var scope = WtfZoneSpec.invokeScope[src];
5152
if (!scope) {
52-
scope = WtfZoneSpec.invokeScope[source] =
53+
scope = WtfZoneSpec.invokeScope[src] =
5354
wtfEvents.createScope("Zone:invoke:" + source + "(ascii zone)");
5455
}
5556
return wtfTrace.leaveScope(scope(zonePathName(targetZone)), parentZoneDelegate.invoke(targetZone, delegate, applyThis, applyArgs, source));
@@ -88,15 +89,15 @@
8889
instance(zonePathName(targetZone), shallowObj(task.data, 2));
8990
return retValue;
9091
};
91-
WtfZoneSpec.forkInstance = wtfEnabled && wtfEvents.createInstance('Zone:fork(ascii zone, ascii newZone)');
92+
WtfZoneSpec.forkInstance = wtfEnabled ? wtfEvents.createInstance('Zone:fork(ascii zone, ascii newZone)') : null;
9293
WtfZoneSpec.scheduleInstance = {};
9394
WtfZoneSpec.cancelInstance = {};
9495
WtfZoneSpec.invokeScope = {};
9596
WtfZoneSpec.invokeTaskScope = {};
9697
return WtfZoneSpec;
9798
}());
9899
function shallowObj(obj, depth) {
99-
if (!depth)
100+
if (!obj || !depth)
100101
return null;
101102
var out = {};
102103
for (var key in obj) {
@@ -118,10 +119,10 @@
118119
}
119120
function zonePathName(zone) {
120121
var name = zone.name;
121-
zone = zone.parent;
122-
while (zone != null) {
123-
name = zone.name + '::' + name;
124-
zone = zone.parent;
122+
var localZone = zone.parent;
123+
while (localZone != null) {
124+
name = localZone.name + '::' + name;
125+
localZone = localZone.parent;
125126
}
126127
return name;
127128
}

0 commit comments

Comments
 (0)