Phase 1: Upgrade Angular 16 to 17#12
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Conversation
- Run ng update schematics for @angular/core, @angular/cli, @angular/cdk, @angular/material, @angular-eslint - Update rxjs from ^6.3.1 to ^7.8.0 and fix throwError to use factory function - Update zone.js to ~0.14.10, typescript to 5.4.5, @types/node to ^20.0.0 - Remove codelyzer, protractor, @types/jasminewd2, core-js - Remove e2e project from angular.json and delete protractor.conf.js - Update tsconfig.json lib and module to es2022 - Fix rxjs/index imports in spec files for RxJS 7 compatibility - Migrate browserTarget to buildTarget in angular.json (via ng update schematic)
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:
|
This was referenced Apr 23, 2026
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
Upgrades the Angular framework from v16 to v17 via
ng updateschematics, along with companion dependency updates and cleanup of deprecated tooling.Angular & tooling upgrades (via
ng update):@angular/core,@angular/cli, and all@angular/*packages: 16.2.x → 17.3.x@angular/materialand@angular/cdk: 16.2.1 → 17.3.10@angular-eslint/*: 16.1.x → 17.5.3typescript: 4.9.5 → 5.4.5browserTarget→buildTargetmigration inangular.json(applied by schematic)Manual dependency updates:
rxjs: ^6.3.1 → ^7.8.0zone.js: ~0.13.1 → ~0.14.10@types/node: ^12.11.1 → ^20.0.0tsconfig.json:libandmoduleupdated from es2017/es2020 to es2022Removals:
protractor+protractor.conf.js+ e2e project inangular.json+e2enpm scriptcodelyzer(deprecated, replaced by angular-eslint)@types/jasminewd2(Protractor types)core-js(unnecessary with modern browsers + Angular 17)Code fixes:
error.service.ts:throwError(message)→throwError(() => message)(RxJS 7 breaking change)from 'rxjs/index'→from 'rxjs'(path not exported in RxJS 7)Production build (
ng build --configuration production) and all 43 unit tests pass.Review & Testing Checklist for Human
src/app/pets/,src/app/visits/) and mat-select (src/app/vets/vet-edit/) may have subtle styling regressions that unit tests cannot catch. Runng serveand check these forms.throwErrorfactory fix and import path fixes were applied, but confirm error handling works at runtime by triggering a backend error (e.g., start the app without the Spring backend running and verify error messages display correctly).core-jsremoval is safe — If the app must support older browsers (e.g., IE11), this removal would be a problem. Angular 17 dropped IE11 support, so this should be fine, but verify there are no specific browser support requirements.e2e/directory — The Protractor config and angular.json e2e project were removed, but thee2e/folder with test files still exists on disk. Consider deleting it or keeping it for reference during a future Playwright/Cypress migration.Notes
@angular-devkit/build-angular:browser(not migrated to the newapplicationbuilder). This is deprecated but still functional in Angular 17 and avoids additional config churn in this phase.useDefineForClassFields: falseis preserved intsconfig.jsonas required by this codebase.Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/010af0d2621c4376ac0819869f987cf9