build: update zone.js to 0.9.0 (#28219)
The API changes are due to enabling strict checks in TypeScript (via `strict: true`). The payload size changes in `polyfills.js` are due to more browser APIs being patched in recent versions (e.g. `fetch`, `customElement v1`). PR Close #28219
This commit is contained in:
parent
531fa00992
commit
17f7bdbd60
|
@ -93,7 +93,7 @@
|
||||||
"classlist.js": "^1.1.20150312",
|
"classlist.js": "^1.1.20150312",
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
"rxjs": "^6.3.0",
|
"rxjs": "^6.3.0",
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^0.12.1",
|
"@angular-devkit/build-angular": "^0.12.1",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"uncompressed": {
|
"uncompressed": {
|
||||||
"runtime": 3713,
|
"runtime": 3713,
|
||||||
"main": 509261,
|
"main": 509261,
|
||||||
"polyfills": 53926
|
"polyfills": 59197
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"core-js": "^2.5.4",
|
"core-js": "^2.5.4",
|
||||||
"rxjs": "^6.3.0",
|
"rxjs": "^6.3.0",
|
||||||
"web-animations-js": "^2.3.1",
|
"web-animations-js": "^2.3.1",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^0.10.0",
|
"@angular-devkit/build-angular": "^0.10.0",
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
"core-js": "^2.5.4",
|
"core-js": "^2.5.4",
|
||||||
"rxjs": "^6.3.0",
|
"rxjs": "^6.3.0",
|
||||||
"web-animations-js": "^2.3.1",
|
"web-animations-js": "^2.3.1",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^0.10.0",
|
"@angular-devkit/build-angular": "^0.10.0",
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
"core-js": "^2.5.4",
|
"core-js": "^2.5.4",
|
||||||
"rxjs": "^6.3.0",
|
"rxjs": "^6.3.0",
|
||||||
"web-animations-js": "^2.3.1",
|
"web-animations-js": "^2.3.1",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^0.10.0",
|
"@angular-devkit/build-angular": "^0.10.0",
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
"core-js": "^2.5.4",
|
"core-js": "^2.5.4",
|
||||||
"rxjs": "^6.3.0",
|
"rxjs": "^6.3.0",
|
||||||
"web-animations-js": "^2.3.1",
|
"web-animations-js": "^2.3.1",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^0.10.0",
|
"@angular-devkit/build-angular": "^0.10.0",
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
"rxjs": "^6.3.0",
|
"rxjs": "^6.3.0",
|
||||||
"systemjs": "0.19.39",
|
"systemjs": "0.19.39",
|
||||||
"web-animations-js": "^2.3.1",
|
"web-animations-js": "^2.3.1",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^0.11.0",
|
"@angular-devkit/build-angular": "^0.11.0",
|
||||||
|
|
|
@ -8738,6 +8738,7 @@ yn@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"
|
resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"
|
||||||
|
|
||||||
zone.js@~0.8.26:
|
zone.js@~0.9.0:
|
||||||
version "0.8.26"
|
version "0.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"
|
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.9.0.tgz#f42319d657f7616724ed40c5907d4614b4c683fa"
|
||||||
|
integrity sha512-EfygvVnLxPSCMSgJ4h7SoY+XNr7ybdwvvwEQ70lvMFl9coNnciXSyWi8Kg6znK1ubyUSffkCKvleSQpLuUKw0Q==
|
||||||
|
|
|
@ -11698,6 +11698,7 @@ zip-stream@^1.1.0, zip-stream@^1.2.0:
|
||||||
lodash "^4.8.0"
|
lodash "^4.8.0"
|
||||||
readable-stream "^2.0.0"
|
readable-stream "^2.0.0"
|
||||||
|
|
||||||
zone.js@^0.8.26:
|
zone.js@^0.9.0:
|
||||||
version "0.8.26"
|
version "0.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"
|
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.9.0.tgz#f42319d657f7616724ed40c5907d4614b4c683fa"
|
||||||
|
integrity sha512-EfygvVnLxPSCMSgJ4h7SoY+XNr7ybdwvvwEQ70lvMFl9coNnciXSyWi8Kg6znK1ubyUSffkCKvleSQpLuUKw0Q==
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"master": {
|
"master": {
|
||||||
"uncompressed": {
|
"uncompressed": {
|
||||||
"runtime": 1497,
|
"runtime": 1497,
|
||||||
"main": 164671,
|
"main": 164945,
|
||||||
"polyfills": 38449
|
"polyfills": 43626
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
"uncompressed": {
|
"uncompressed": {
|
||||||
"runtime": 1440,
|
"runtime": 1440,
|
||||||
"main": 14106,
|
"main": 14106,
|
||||||
"polyfills": 38390
|
"polyfills": 43567
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
"uncompressed": {
|
"uncompressed": {
|
||||||
"runtime": 1440,
|
"runtime": 1440,
|
||||||
"main": 212976,
|
"main": 212976,
|
||||||
"polyfills": 38390
|
"polyfills": 43567
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"reflect-metadata": "0.1.12",
|
"reflect-metadata": "0.1.12",
|
||||||
"rxjs": "6.4.0",
|
"rxjs": "6.4.0",
|
||||||
"tslib": "1.9.3",
|
"tslib": "1.9.3",
|
||||||
"zone.js": "0.8.26"
|
"zone.js": "0.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/bazel": "packages-dist:bazel",
|
"@angular/bazel": "packages-dist:bazel",
|
||||||
|
|
|
@ -3700,7 +3700,7 @@ z-schema@~3.18.3:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
commander "^2.7.1"
|
commander "^2.7.1"
|
||||||
|
|
||||||
zone.js@0.8.26:
|
zone.js@0.9.0:
|
||||||
version "0.8.26"
|
version "0.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"
|
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.9.0.tgz#f42319d657f7616724ed40c5907d4614b4c683fa"
|
||||||
integrity sha512-W9Nj+UmBJG251wkCacIkETgra4QgBo/vgoEkb4a2uoLzpQG7qF9nzwoLXWU5xj3Fg2mxGvEDh47mg24vXccYjA==
|
integrity sha512-EfygvVnLxPSCMSgJ4h7SoY+XNr7ybdwvvwEQ70lvMFl9coNnciXSyWi8Kg6znK1ubyUSffkCKvleSQpLuUKw0Q==
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
"typescript": "~3.3.3333",
|
"typescript": "~3.3.3333",
|
||||||
"xhr2": "0.1.4",
|
"xhr2": "0.1.4",
|
||||||
"yargs": "9.0.1",
|
"yargs": "9.0.1",
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.9.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"fsevents": "2.0.1"
|
"fsevents": "2.0.1"
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"rxjs": "^6.0.0",
|
"rxjs": "^6.0.0",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.9.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -27,7 +27,7 @@ export interface PendingMacrotask {
|
||||||
source: string;
|
source: string;
|
||||||
creationLocation: Error;
|
creationLocation: Error;
|
||||||
runCount?: number;
|
runCount?: number;
|
||||||
data: TaskData;
|
data?: TaskData;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TaskData {
|
export interface TaskData {
|
||||||
|
|
|
@ -143,9 +143,10 @@ class MockNgZone extends NgZone {
|
||||||
const tasks = execute.calls.mostRecent().args[1] as PendingMacrotask[];
|
const tasks = execute.calls.mostRecent().args[1] as PendingMacrotask[];
|
||||||
|
|
||||||
expect(tasks.length).toEqual(1);
|
expect(tasks.length).toEqual(1);
|
||||||
expect(tasks[0].data.delay).toEqual(1000);
|
expect(tasks[0].data).toBeTruthy();
|
||||||
|
expect(tasks[0].data !.delay).toEqual(1000);
|
||||||
expect(tasks[0].source).toEqual('setTimeout');
|
expect(tasks[0].source).toEqual('setTimeout');
|
||||||
expect(tasks[0].data.isPeriodic).toEqual(false);
|
expect(tasks[0].data !.isPeriodic).toEqual(false);
|
||||||
|
|
||||||
clearTimeout(id);
|
clearTimeout(id);
|
||||||
}));
|
}));
|
||||||
|
@ -207,11 +208,11 @@ class MockNgZone extends NgZone {
|
||||||
expect(execute).toHaveBeenCalled();
|
expect(execute).toHaveBeenCalled();
|
||||||
|
|
||||||
const update1 = updateCallback.calls.all()[0].args[0] as PendingMacrotask[];
|
const update1 = updateCallback.calls.all()[0].args[0] as PendingMacrotask[];
|
||||||
expect(update1[0].data.delay).toEqual(500);
|
expect(update1[0].data !.delay).toEqual(500);
|
||||||
|
|
||||||
const update2 = updateCallback.calls.all()[1].args[0] as PendingMacrotask[];
|
const update2 = updateCallback.calls.all()[1].args[0] as PendingMacrotask[];
|
||||||
expect(update2[0].data.delay).toEqual(500);
|
expect(update2[0].data !.delay).toEqual(500);
|
||||||
expect(update2[1].data.delay).toEqual(300);
|
expect(update2[1].data !.delay).toEqual(300);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('cancels the done callback if the update callback returns true', fakeAsync(() => {
|
it('cancels the done callback if the update callback returns true', fakeAsync(() => {
|
||||||
|
|
|
@ -87,7 +87,7 @@ function runInTestZone(
|
||||||
// If we do it in ProxyZone then we will get to infinite recursion.
|
// If we do it in ProxyZone then we will get to infinite recursion.
|
||||||
const proxyZone = Zone.current.getZoneWith('ProxyZoneSpec');
|
const proxyZone = Zone.current.getZoneWith('ProxyZoneSpec');
|
||||||
const previousDelegate = proxyZoneSpec.getDelegate();
|
const previousDelegate = proxyZoneSpec.getDelegate();
|
||||||
proxyZone.parent.run(() => {
|
proxyZone !.parent !.run(() => {
|
||||||
const testZoneSpec: ZoneSpec = new AsyncTestZoneSpec(
|
const testZoneSpec: ZoneSpec = new AsyncTestZoneSpec(
|
||||||
() => {
|
() => {
|
||||||
// Need to restore the original zone.
|
// Need to restore the original zone.
|
||||||
|
|
|
@ -11261,7 +11261,7 @@ zip-stream@^1.0.0, zip-stream@^1.1.0, zip-stream@^1.2.0:
|
||||||
lodash "^4.8.0"
|
lodash "^4.8.0"
|
||||||
readable-stream "^2.0.0"
|
readable-stream "^2.0.0"
|
||||||
|
|
||||||
zone.js@^0.8.26:
|
zone.js@^0.9.0:
|
||||||
version "0.8.26"
|
version "0.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"
|
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.9.0.tgz#f42319d657f7616724ed40c5907d4614b4c683fa"
|
||||||
integrity sha512-W9Nj+UmBJG251wkCacIkETgra4QgBo/vgoEkb4a2uoLzpQG7qF9nzwoLXWU5xj3Fg2mxGvEDh47mg24vXccYjA==
|
integrity sha512-EfygvVnLxPSCMSgJ4h7SoY+XNr7ybdwvvwEQ70lvMFl9coNnciXSyWi8Kg6znK1ubyUSffkCKvleSQpLuUKw0Q==
|
||||||
|
|
Loading…
Reference in New Issue