Skip to content

Commit

Permalink
feat(@schematics/angular): update zone.js to 0.11.8 and add async tag…
Browse files Browse the repository at this point in the history
…ging 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
  • Loading branch information
JiaLiPassion committed Aug 16, 2022
1 parent 0e2044e commit 690b433
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,6 @@
"webpack-subresource-integrity": "5.1.0",
"yargs": "17.5.1",
"yargs-parser": "21.1.1",
"zone.js": "^0.11.3"
"zone.js": "^0.11.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export const environment = {
* on performance if an error is thrown.
*/
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
import 'zone.js/plugins/async-stack-tagging'; // Included with Angular CLI to support async stack tagging API.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Migration to update Angular packages version prefix to `^` instead of
'@nguniversal/commom': '^13.1.0',
'rxjs': '~7.4.0',
'tslib': '^2.3.0',
'zone.js': '~0.11.4',
'zone.js': '~0.11.8',
},
devDependencies: {
'@angular-devkit/build-angular': '~13.1.3',
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('Migration to update Angular packages version prefix to `^` instead of
'@nguniversal/commom': '^13.1.0',
'rxjs': '~7.4.0',
'tslib': '^2.3.0',
'zone.js': '~0.11.4',
'zone.js': '~0.11.8',
});

expect(pkg['devDependencies']).toEqual({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"tslib": "^2.3.0",
"ts-node": "~10.9.0",
"typescript": "~4.7.2",
"zone.js": "~0.11.4"
"zone.js": "~0.11.8"
}
}
2 changes: 1 addition & 1 deletion tests/legacy-cli/e2e/assets/webpack/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@angular/router": "^14.0.0-rc",
"@ngtools/webpack": "0.0.0",
"rxjs": "^6.6.7",
"zone.js": "^0.11.4"
"zone.js": "^0.11.8"
},
"devDependencies": {
"sass": "^1.32.8",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11621,9 +11621,9 @@ z-schema@~5.0.2:
optionalDependencies:
commander "^2.20.3"

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

0 comments on commit 690b433

Please sign in to comment.