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:
JiaLiPassion 2019-01-18 09:52:34 +09:00 committed by Miško Hevery
parent 531fa00992
commit 17f7bdbd60
18 changed files with 41 additions and 38 deletions

View File

@ -93,7 +93,7 @@
"classlist.js": "^1.1.20150312",
"core-js": "^2.4.1",
"rxjs": "^6.3.0",
"zone.js": "^0.8.26"
"zone.js": "^0.9.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.12.1",

View File

@ -4,7 +4,7 @@
"uncompressed": {
"runtime": 3713,
"main": 509261,
"polyfills": 53926
"polyfills": 59197
}
}
}

View File

@ -24,7 +24,7 @@
"core-js": "^2.5.4",
"rxjs": "^6.3.0",
"web-animations-js": "^2.3.1",
"zone.js": "~0.8.26"
"zone.js": "~0.9.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.10.0",

View File

@ -27,7 +27,7 @@
"core-js": "^2.5.4",
"rxjs": "^6.3.0",
"web-animations-js": "^2.3.1",
"zone.js": "~0.8.26"
"zone.js": "~0.9.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.10.0",

View File

@ -25,7 +25,7 @@
"core-js": "^2.5.4",
"rxjs": "^6.3.0",
"web-animations-js": "^2.3.1",
"zone.js": "~0.8.26"
"zone.js": "~0.9.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.10.0",

View File

@ -32,7 +32,7 @@
"core-js": "^2.5.4",
"rxjs": "^6.3.0",
"web-animations-js": "^2.3.1",
"zone.js": "~0.8.26"
"zone.js": "~0.9.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.10.0",

View File

@ -39,7 +39,7 @@
"rxjs": "^6.3.0",
"systemjs": "0.19.39",
"web-animations-js": "^2.3.1",
"zone.js": "~0.8.26"
"zone.js": "~0.9.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.11.0",

View File

@ -8738,6 +8738,7 @@ yn@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"
zone.js@~0.8.26:
version "0.8.26"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"
zone.js@~0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.9.0.tgz#f42319d657f7616724ed40c5907d4614b4c683fa"
integrity sha512-EfygvVnLxPSCMSgJ4h7SoY+XNr7ybdwvvwEQ70lvMFl9coNnciXSyWi8Kg6znK1ubyUSffkCKvleSQpLuUKw0Q==

View File

@ -11698,6 +11698,7 @@ zip-stream@^1.1.0, zip-stream@^1.2.0:
lodash "^4.8.0"
readable-stream "^2.0.0"
zone.js@^0.8.26:
version "0.8.26"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"
zone.js@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.9.0.tgz#f42319d657f7616724ed40c5907d4614b4c683fa"
integrity sha512-EfygvVnLxPSCMSgJ4h7SoY+XNr7ybdwvvwEQ70lvMFl9coNnciXSyWi8Kg6znK1ubyUSffkCKvleSQpLuUKw0Q==

View File

@ -3,8 +3,8 @@
"master": {
"uncompressed": {
"runtime": 1497,
"main": 164671,
"polyfills": 38449
"main": 164945,
"polyfills": 43626
}
}
},
@ -13,7 +13,7 @@
"uncompressed": {
"runtime": 1440,
"main": 14106,
"polyfills": 38390
"polyfills": 43567
}
}
},
@ -22,7 +22,7 @@
"uncompressed": {
"runtime": 1440,
"main": 212976,
"polyfills": 38390
"polyfills": 43567
}
}
},

View File

@ -13,7 +13,7 @@
"reflect-metadata": "0.1.12",
"rxjs": "6.4.0",
"tslib": "1.9.3",
"zone.js": "0.8.26"
"zone.js": "0.9.0"
},
"devDependencies": {
"@angular/bazel": "packages-dist:bazel",

View File

@ -3700,7 +3700,7 @@ z-schema@~3.18.3:
optionalDependencies:
commander "^2.7.1"
zone.js@0.8.26:
version "0.8.26"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"
integrity sha512-W9Nj+UmBJG251wkCacIkETgra4QgBo/vgoEkb4a2uoLzpQG7qF9nzwoLXWU5xj3Fg2mxGvEDh47mg24vXccYjA==
zone.js@0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.9.0.tgz#f42319d657f7616724ed40c5907d4614b4c683fa"
integrity sha512-EfygvVnLxPSCMSgJ4h7SoY+XNr7ybdwvvwEQ70lvMFl9coNnciXSyWi8Kg6znK1ubyUSffkCKvleSQpLuUKw0Q==

View File

@ -101,7 +101,7 @@
"typescript": "~3.3.3333",
"xhr2": "0.1.4",
"yargs": "9.0.1",
"zone.js": "^0.8.26"
"zone.js": "^0.9.0"
},
"optionalDependencies": {
"fsevents": "2.0.1"

View File

@ -17,15 +17,15 @@
},
"peerDependencies": {
"rxjs": "^6.0.0",
"zone.js": "~0.8.26"
"zone.js": "~0.9.0"
},
"repository": {
"type": "git",
"url": "https://github.com/angular/angular.git"
},
"ng-update": {
"migrations":"./schematics/migrations.json",
"migrations": "./schematics/migrations.json",
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
},
"sideEffects": false
}
}

View File

@ -27,7 +27,7 @@ export interface PendingMacrotask {
source: string;
creationLocation: Error;
runCount?: number;
data: TaskData;
data?: TaskData;
}
export interface TaskData {

View File

@ -143,9 +143,10 @@ class MockNgZone extends NgZone {
const tasks = execute.calls.mostRecent().args[1] as PendingMacrotask[];
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].data.isPeriodic).toEqual(false);
expect(tasks[0].data !.isPeriodic).toEqual(false);
clearTimeout(id);
}));
@ -207,11 +208,11 @@ class MockNgZone extends NgZone {
expect(execute).toHaveBeenCalled();
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[];
expect(update2[0].data.delay).toEqual(500);
expect(update2[1].data.delay).toEqual(300);
expect(update2[0].data !.delay).toEqual(500);
expect(update2[1].data !.delay).toEqual(300);
}));
it('cancels the done callback if the update callback returns true', fakeAsync(() => {

View File

@ -87,7 +87,7 @@ function runInTestZone(
// If we do it in ProxyZone then we will get to infinite recursion.
const proxyZone = Zone.current.getZoneWith('ProxyZoneSpec');
const previousDelegate = proxyZoneSpec.getDelegate();
proxyZone.parent.run(() => {
proxyZone !.parent !.run(() => {
const testZoneSpec: ZoneSpec = new AsyncTestZoneSpec(
() => {
// Need to restore the original zone.
@ -113,4 +113,4 @@ function runInTestZone(
proxyZoneSpec.setDelegate(testZoneSpec);
});
return Zone.current.runGuarded(fn, context);
}
}

View File

@ -11261,7 +11261,7 @@ zip-stream@^1.0.0, zip-stream@^1.1.0, zip-stream@^1.2.0:
lodash "^4.8.0"
readable-stream "^2.0.0"
zone.js@^0.8.26:
version "0.8.26"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"
integrity sha512-W9Nj+UmBJG251wkCacIkETgra4QgBo/vgoEkb4a2uoLzpQG7qF9nzwoLXWU5xj3Fg2mxGvEDh47mg24vXccYjA==
zone.js@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.9.0.tgz#f42319d657f7616724ed40c5907d4614b4c683fa"
integrity sha512-EfygvVnLxPSCMSgJ4h7SoY+XNr7ybdwvvwEQ70lvMFl9coNnciXSyWi8Kg6znK1ubyUSffkCKvleSQpLuUKw0Q==