feat: Upgrade Angular 16.2.1 → 21.2.11#19
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Conversation
Major version upgrade spanning Angular 16 → 21 with all breaking changes handled: - Update all @angular/* packages to 21.2.11 - Update TypeScript 4.9.5 → 5.9.3 - Update RxJS 6 → 7 (fix throwError to factory form) - Update zone.js 0.13 → 0.16 - Replace HttpClientModule with provideHttpClient(withFetch()) - Replace BrowserAnimationsModule with provideAnimationsAsync() - Add standalone: false to all NgModule-declared components/directives - Switch moduleResolution from 'node' to 'bundler' - Fix moment imports to use default import syntax - Remove deprecated polyfills.ts, test.ts, e2e/, protractor - Update ESLint config for angular-eslint 21 - Replace karma-coverage-istanbul-reporter with karma-coverage - Remove deprecated packages (codelyzer, ts-node, core-js, etc.) - Document all breaking changes in BREAKING_CHANGES.md
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Protractor and the e2e directory were removed but the npm script was left behind. Spotted by Devin Review.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Major Angular version upgrade from 16.2.1 to 21.2.11 (5 major versions), with all breaking changes handled, deprecated APIs fixed, and dependencies updated.
Key changes:
@angular/*packages updated to 21.2.xnodetobundlerthrowErrorupdated to factory function formstandalone: falseto all NgModule-declared components (Angular 19+ default)polyfills.ts,test.ts,e2e/,protractor.conf.jskarma-coverage-istanbul-reporterwithkarma-coveragee2escript from package.jsonAll breaking changes are documented in
BREAKING_CHANGES.md.Review & Testing Checklist for Human
npm run buildnpm run lintnpm start(requires Spring PetClinic backend at localhost:9966)BREAKING_CHANGES.mdfor completenessNotes
browserbuilder (webpack) is retained inangular.jsoninstead of the newerapplicationbuilder (esbuild) due to a known incompatibility with Bootstrap 3's duplicate font file references. Thebrowserbuilder is still supported in Angular 21.prefer-standalone,prefer-inject, andtemplate/prefer-control-floware disabled — these are style recommendations for new Angular patterns (standalone components,inject()function,@if/@forcontrol flow) that would require a full codebase refactor beyond the scope of a version upgrade.e2e/directory was removed since Protractor is no longer supported. A migration to Playwright or Cypress is recommended for E2E testing.Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/121f358bf89f43d6840230e5a0e06ac0
Requested by: @DhrovS