Skip to content

Commit 0baea55

Browse files
committed
feat(@angular-devkit/schematics): update zone.js to 0.11.8 and add async tagging API support
1. Update to `zone.js` 0.11.8 2. `import 'zone.js/plugins/async-stack-tagging` in `development` mode to support `async tagging API` for better debugging experience. For more information, please refer to this PR angular/angular#46693
1 parent 0e2044e commit 0baea55

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,6 @@
224224
"webpack-subresource-integrity": "5.1.0",
225225
"yargs": "17.5.1",
226226
"yargs-parser": "21.1.1",
227-
"zone.js": "^0.11.3"
227+
"zone.js": "^0.11.8"
228228
}
229229
}

packages/schematics/angular/application/files/src/environments/environment.ts.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ export const environment = {
1414
* on performance if an error is thrown.
1515
*/
1616
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
17+
import 'zone.js/plugins/async-stack-tagging'; // Included with Angular CLI to support async stack tagging API.

packages/schematics/angular/migrations/update-14/angular-packages-version-prefix_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('Migration to update Angular packages version prefix to `^` instead of
3838
'@nguniversal/commom': '^13.1.0',
3939
'rxjs': '~7.4.0',
4040
'tslib': '^2.3.0',
41-
'zone.js': '~0.11.4',
41+
'zone.js': '~0.11.8',
4242
},
4343
devDependencies: {
4444
'@angular-devkit/build-angular': '~13.1.3',
@@ -74,7 +74,7 @@ describe('Migration to update Angular packages version prefix to `^` instead of
7474
'@nguniversal/commom': '^13.1.0',
7575
'rxjs': '~7.4.0',
7676
'tslib': '^2.3.0',
77-
'zone.js': '~0.11.4',
77+
'zone.js': '~0.11.8',
7878
});
7979

8080
expect(pkg['devDependencies']).toEqual({

packages/schematics/angular/utility/latest-versions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"tslib": "^2.3.0",
1919
"ts-node": "~10.9.0",
2020
"typescript": "~4.7.2",
21-
"zone.js": "~0.11.4"
21+
"zone.js": "~0.11.8"
2222
}
2323
}

tests/legacy-cli/e2e/assets/webpack/test-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@angular/router": "^14.0.0-rc",
1313
"@ngtools/webpack": "0.0.0",
1414
"rxjs": "^6.6.7",
15-
"zone.js": "^0.11.4"
15+
"zone.js": "^0.11.8"
1616
},
1717
"devDependencies": {
1818
"sass": "^1.32.8",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11621,9 +11621,9 @@ z-schema@~5.0.2:
1162111621
optionalDependencies:
1162211622
commander "^2.20.3"
1162311623

11624-
zone.js@^0.11.3:
11625-
version "0.11.7"
11626-
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.11.7.tgz#262194267c7b964e8da77ce16b9fba9bea23cfdc"
11627-
integrity sha512-e39K2EdK5JfA3FDuUTVRvPlYV4aBfnOOcGuILhQAT7nzeV12uSrLBzImUM9CDVoncDSX4brR/gwqu0heQ3BQ0g==
11624+
zone.js@^0.11.8:
11625+
version "0.11.8"
11626+
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.11.8.tgz#40dea9adc1ad007b5effb2bfed17f350f1f46a21"
11627+
integrity sha512-82bctBg2hKcEJ21humWIkXRlLBBmrc3nN7DFh5LGGhcyycO2S7FN8NmdvlcKaGFDNVL4/9kFLmwmInTavdJERA==
1162811628
dependencies:
1162911629
tslib "^2.3.0"

0 commit comments

Comments
 (0)