This repository was archived by the owner on May 8, 2026. It is now read-only.
Upgrade Angular to v21 and update TypeScript configuration#3
Open
bobbyg603 wants to merge 1 commit into
Open
Conversation
Upgrade Angular framework, CLI, and build tooling to v21 to resolve all reported audit issues (XSS in @angular/core/common/compiler, serialize-javascript RCE, tar path traversal, and related transitive vulnerabilities). Also bump TypeScript to ^5.9 and ng-packagr to ^21 to satisfy the v21 peer requirements. - Add rimraf as an explicit devDependency (previously available only transitively through older CLI versions). - Update tsconfig.json moduleResolution to "bundler" and module/lib targets to es2022 so subpath exports in @angular/core (e.g. @angular/core/primitives/di) resolve correctly. npm audit now reports 0 vulnerabilities and the library builds successfully.
There was a problem hiding this comment.
Pull request overview
Upgrades the workspace to Angular v21 toolchain and modernizes TypeScript compiler settings to align with Angular 21’s recommended ES2022/bundler-oriented configuration.
Changes:
- Updated Angular framework + CLI/devkit packages to
^21.2.xand TypeScript to^5.9.3. - Adjusted
tsconfig.jsonto usemoduleResolution: "bundler"and ES2022module/lib. - Added
rimrafand updated related tooling versions.
Reviewed changes
Copilot reviewed 1 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tsconfig.json | Switches module resolution to bundler and updates module/lib targets to ES2022. |
| package.json | Bumps Angular/CLI/devkit, TypeScript, and other tooling dependencies; adds rimraf. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+27
to
+31
| "ng-packagr": "^21.2.3", | ||
| "rimraf": "^6.1.3", | ||
| "rxjs": "^6.6.7", | ||
| "tslint": "~6.1.3", | ||
| "typescript": "^5.6.3", | ||
| "zone.js": "~0.15.0" | ||
| "typescript": "^5.9.3", |
Comment on lines
+16
to
+21
| "@angular-devkit/build-angular": "^21.2.10", | ||
| "@angular-devkit/core": "^21.2.10", | ||
| "@angular/cli": "^21.2.10", | ||
| "@angular/common": "^21.2.12", | ||
| "@angular/compiler": "^21.2.12", | ||
| "@angular/compiler-cli": "^21.2.12", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR upgrades the Angular framework and related tooling to version 21, along with corresponding updates to TypeScript configuration and dependencies to maintain compatibility with the latest Angular ecosystem.
Key Changes
moduleResolutionfrom "node" to "bundler" in tsconfig.json to align with Angular 21 best practicesmodulefrom "es2020" to "es2022" andlibfrom "es2020" to "es2022" for better ES2022 supportNotable Details
https://claude.ai/code/session_01FDjf5PF4iPZZysz6vn78i9