Skip to content
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
masterfrom
claude/fix-npm-audit-issues-Hmckw
Open

Upgrade Angular to v21 and update TypeScript configuration#3
bobbyg603 wants to merge 1 commit into
masterfrom
claude/fix-npm-audit-issues-Hmckw

Conversation

@bobbyg603
Copy link
Copy Markdown
Member

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

  • Angular Framework Upgrade: Updated all Angular packages from v19 to v21 (@angular/core, @angular/common, @angular/compiler, @angular/forms, @angular/platform-browser, and related packages)
  • Build Tools: Upgraded @Angular-devkit and @angular/cli from v19 to v21
  • TypeScript: Updated from v5.6.3 to v5.9.3
  • Module Resolution: Changed moduleResolution from "node" to "bundler" in tsconfig.json to align with Angular 21 best practices
  • Module Target: Updated module from "es2020" to "es2022" and lib from "es2020" to "es2022" for better ES2022 support
  • Supporting Dependencies:
    • Updated @types/node from v20.14.11 to v20.19.39
    • Updated ng-packagr from v19.0.1 to v21.2.3
    • Updated rxjs from v6.5.4 to v6.6.7
    • Updated zone.js from ~0.15.0 to ^0.15.1
    • Added rimraf v6.1.3 as a new dev dependency

Notable Details

  • The TypeScript configuration changes align with Angular 21's recommended settings for modern module resolution and ES2022 target compatibility
  • All version constraints use caret (^) notation to allow patch and minor updates while maintaining stability

https://claude.ai/code/session_01FDjf5PF4iPZZysz6vn78i9

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.
Copilot AI review requested due to automatic review settings May 7, 2026 17:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.x and TypeScript to ^5.9.3.
  • Adjusted tsconfig.json to use moduleResolution: "bundler" and ES2022 module/lib.
  • Added rimraf and 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 thread package.json
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 thread package.json
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",
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants