Skip to content

chore: upgrade Angular to v21.2.17 - #59

Merged
Helias merged 1 commit into
masterfrom
chore/upgrade-angular-21
Jun 20, 2026
Merged

chore: upgrade Angular to v21.2.17#59
Helias merged 1 commit into
masterfrom
chore/upgrade-angular-21

Conversation

@Helias

@Helias Helias commented Jun 20, 2026

Copy link
Copy Markdown
Member

Upgrades Angular from v20.2.3 to v21.2.17 via ng update.

Changes

  • All @angular/* packages, the CLI, and @angular-devkit/build-angular bumped to v21.
  • TypeScript pulled to 5.9.3 as part of the update.
  • src/main.ts: migration moved deprecated bootstrap options into providers.
  • tsconfig.json: lib updated to a modern ES target.

Notes

  • ng build passes (only pre-existing Sass @import deprecation warnings, unrelated to this upgrade).
  • Stopped at v21 rather than the latest v22 because the v22 CLI requires Node v22.22.3+/24.15.0+/26.0.0+ and the current environment runs v22.22.2. The 21 to 22 hop can follow once Node is bumped.

🤖 Generated with Claude Code

Summary by CodeRabbit

Chores

  • Updated Angular framework to version 21
  • Updated TypeScript compiler to version 5.9.3
  • Enhanced application initialization configuration

Run ng update from v20.2.3 to v21. Bumps all @angular packages, the
CLI, build-angular, and TypeScript to 5.9.3. Migrations move deprecated
bootstrap options to providers in main.ts and update the tsconfig lib
target.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2d0e3f36-4a9c-4522-8500-5aa8be9eda98

📥 Commits

Reviewing files that changed from the base of the PR and between e9c3649 and f126086.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • package.json
  • src/main.ts
  • tsconfig.json
💤 Files with no reviewable changes (1)
  • tsconfig.json

📝 Walkthrough

Walkthrough

Upgrades Angular packages from v20 to v21 and TypeScript from 5.8.3 to 5.9.3 in package.json. Adds provideZoneChangeDetection() to the bootstrapApplication providers in src/main.ts. Updates tsconfig.json to remove the explicit lib array and set useDefineForClassFields to false.

Changes

Angular v21 Upgrade

Layer / File(s) Summary
Angular and TypeScript version bumps
package.json
Angular runtime packages (@angular/*) updated from 20.2.3 to 21.2.17 in dependencies; Angular CLI/build toolchain packages updated to 21.2.16/21.2.17 in devDependencies; typescript bumped from 5.8.3 to 5.9.3.
Bootstrap providers and tsconfig adjustments
src/main.ts, tsconfig.json
provideZoneChangeDetection imported from @angular/core and added to bootstrapApplication providers alongside provideHttpClient(); tsconfig.json removes explicit lib array and adds useDefineForClassFields: false.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Poem

🐇 Hop, hop, the version clock ticked,
From twenty to twenty-one we flicked!
Zone detection now wired in right,
TypeScript shines a little more bright.
The rabbit stamps the lockfile with glee—
Angular's newer, fast, and free! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'chore: upgrade Angular to v21.2.17' directly and clearly summarizes the main change—upgrading Angular dependencies to v21.2.17, which is supported by all the file modifications (package.json, src/main.ts, tsconfig.json).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/upgrade-angular-21

Comment @coderabbitai help to get the list of available commands and usage tips.

@Helias
Helias merged commit 739c352 into master Jun 20, 2026
2 checks passed
@Helias
Helias deleted the chore/upgrade-angular-21 branch June 20, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant