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

Commit 0990f82

Browse files
committed
chore: release v0.8.27
1 parent 8ce5e33 commit 0990f82

27 files changed

+2006
-962
lines changed

CHANGELOG.md

+36
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
<a name="0.8.27"></a>
2+
## [0.8.27](https://github.com/angular/zone.js/compare/v0.8.26...0.8.27) (2019-01-08)
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:** fix interval will still run after cancelled error ([#1156](https://github.com/angular/zone.js/issues/1156)) ([eb72ff4](https://github.com/angular/zone.js/commit/eb72ff4))
11+
* **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))
12+
* **duplicate:** fix [#1081](https://github.com/angular/zone.js/issues/1081), load patch should also check the duplicate flag ([#1121](https://github.com/angular/zone.js/issues/1121)) ([8ce5e33](https://github.com/angular/zone.js/commit/8ce5e33))
13+
* **event:** fix [#1110](https://github.com/angular/zone.js/issues/1110), nodejs EventEmitter should support Symbol eventName ([#1113](https://github.com/angular/zone.js/issues/1113)) ([96420d6](https://github.com/angular/zone.js/commit/96420d6))
14+
* **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))
15+
* **format:** update clang-format to 1.2.3 ([f238908](https://github.com/angular/zone.js/commit/f238908))
16+
* **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))
17+
* **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))
18+
* **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))
19+
* **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))
20+
* **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))
21+
* **tsc:** tsconfig.json strict:true ([915042d](https://github.com/angular/zone.js/commit/915042d))
22+
* **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))
23+
* **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))
24+
25+
26+
### Features
27+
28+
* **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))
29+
* **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))
30+
* **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))
31+
* **custom-element:** patch customElement v1 APIs ([#1133](https://github.com/angular/zone.js/issues/1133)) ([427705f](https://github.com/angular/zone.js/commit/427705f))
32+
* **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))
33+
* **fetch:** schedule macroTask when fetch ([#1075](https://github.com/angular/zone.js/issues/1075)) ([bf88c34](https://github.com/angular/zone.js/commit/bf88c34))
34+
35+
36+
137
<a name="0.8.26"></a>
238
## [0.8.26](https://github.com/angular/zone.js/compare/v0.8.25...0.8.26) (2018-04-08)
339

dist/fake-async-test.js

+23-19
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ var __spread = (undefined && undefined.__spread) || function () {
154154
}
155155
}
156156
}
157+
lastCurrentTime = this._currentTime;
157158
this._currentTime = finalTime;
159+
if (doTick) {
160+
doTick(this._currentTime - lastCurrentTime);
161+
}
158162
};
159163
Scheduler.prototype.flush = function (limit, flushPeriodic, doTick) {
160164
if (limit === void 0) { limit = 20; }
@@ -243,14 +247,14 @@ var __spread = (undefined && undefined.__spread) || function () {
243247
args[_i] = arguments[_i];
244248
}
245249
fn.apply(global, args);
246-
if (_this._lastError === null) {
250+
if (_this._lastError === null) { // Success
247251
if (completers.onSuccess != null) {
248252
completers.onSuccess.apply(global);
249253
}
250254
// Flush microtasks only on success.
251255
_this.flushMicrotasks();
252256
}
253-
else {
257+
else { // Failure
254258
if (completers.onError != null) {
255259
completers.onError.apply(global);
256260
}
@@ -549,23 +553,23 @@ Zone.__load_patch('fakeasync', function (global, Zone, api) {
549553
ProxyZoneSpec && ProxyZoneSpec.assertPresent().resetDelegate();
550554
}
551555
/**
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-
*/
556+
* Wraps a function to be executed in the fakeAsync zone:
557+
* - microtasks are manually executed by calling `flushMicrotasks()`,
558+
* - timers are synchronous, `tick()` simulates the asynchronous passage of time.
559+
*
560+
* If there are any pending timers at the end of the function, an exception will be thrown.
561+
*
562+
* Can be used to wrap inject() calls.
563+
*
564+
* ## Example
565+
*
566+
* {@example core/testing/ts/fake_async.ts region='basic'}
567+
*
568+
* @param fn
569+
* @returns The function wrapped to be executed in the fakeAsync zone
570+
*
571+
* @experimental
572+
*/
569573
function fakeAsync(fn) {
570574
// Not using an arrow function to preserve context passed from call site
571575
return function () {

dist/proxy.js

+1
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/webapis-media-query.js

+1-1
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

+9-8
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)