forked from housseindjirdeh/angular2-hn
-
Notifications
You must be signed in to change notification settings - Fork 3
Upgrade Angular from 9.0.1 to 18.2.14 #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
devin-ai-integration
wants to merge
10
commits into
master
Choose a base branch
from
devin/1762123762-angular-9-to-18-upgrade
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Upgrade Angular from 9.0.1 to 18.2.14 #93
devin-ai-integration
wants to merge
10
commits into
master
from
devin/1762123762-angular-9-to-18-upgrade
Conversation
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
- Updated Angular packages from 9.0.1 to 10.2.5 - Updated TypeScript from 3.7.5 to 4.0.8 - Renamed browserslist to .browserslistrc - Updated TSLint to version 6 - Updated TypeScript compiler options (module and target) - Applied Angular migration schematics Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
- Updated Angular packages from 10.2.5 to 11.2.14 - Updated TypeScript to 4.1.6 - Removed deprecated angular.json options - Added relativeLinkResolution: 'legacy' to RouterModule - Applied ViewEncapsulation.Native → ShadowDom migration - Applied NavigationExtras migrations - Applied async → waitForAsync migration Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
- Updated Angular packages from 11.2.14 to 12.2.17 - Updated TypeScript to 4.3.5 - Updated zone.js to 0.11.8 - Removed deprecated angular.json options - Updated zone.js syntax in polyfills.ts, test.ts, environment.ts - Removed emitDecoratorMetadata from tsconfig.json - Applied lazy loading and Web Worker migrations - Replaced deprecated --prod flag in package.json - Applied ActivatedRouteSnapshot.fragment nullable migration Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
- Updated Angular packages from 12.2.17 to 13.4.0 - Updated TypeScript to 4.6.4 - Removed IE-specific polyfills from polyfills.ts - Removed deprecated angular.json options - Updated .gitignore to include '.angular/cache' - Applied routerLink migration - Updated test.ts for new teardown behavior - Removed entryComponents (no longer necessary) Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
- Updated Angular packages from 13.4.0 to 14.3.0 - Updated Angular CLI to 14.2.13 - Removed 'defaultProject' from angular.json - Replaced 'defaultCollection' with 'schematicCollections' - Updated package version prefix from '~' to '^' - Updated TypeScript compilation target to 'ES2020' - Applied Routes pathMatch strict union type migration - Applied Forms model type parameter migration Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
- Updated Angular packages from 14.3.0 to 15.2.10 - Updated Angular CLI to 15.2.11 - Updated TypeScript to 4.9.5 - Removed require calls from src/test.ts - Updated TypeScript compiler target to ES2022 and useDefineForClassFields - Removed deprecated relativeLinkResolution from app.routes.ts - Build system changed from Webpack to esbuild Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
- Updated Angular packages from 15.2.10 to 16.2.12 - Updated Angular CLI to 16.2.16 - Updated zone.js from 0.11.8 to 0.13.3 - Guard and resolver interfaces migration (no changes) - Removed deprecated moduleId property migration (no changes) Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
- Updated Angular packages from 16.2.12 to 17.3.12 - Updated Angular CLI to 17.3.17 - Updated TypeScript from 4.9.5 to 5.4.5 (major TypeScript 5 upgrade) - Updated zone.js from 0.13.3 to 0.14.10 (target version) - Replaced deprecated options in angular.json - Applied Angular v17 new control flow syntax migration - Applied TransferState imports migration Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
- Updated Angular packages from 17.3.12 to 18.2.14 - Updated Angular CLI to 18.2.21 - Migrated to new application builder (build system) - Updated output location to dist/angular-hnpwa/browser - Applied Angular 18 migrations (HTTP modules, afterRender, etc) - TypeScript and zone.js already at target versions (5.4.5, 0.14.10) Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
Manual fixes after Angular 18 upgrade: - Fixed deprecated RxJS imports in hackernews-api.service.ts, item-details.component.ts, and user.component.ts - Changed 'rxjs/Observable' to 'rxjs' - Changed 'rxjs/Subscription' to 'rxjs' - Upgraded RxJS from ~6.5.4 to ^7.8.0 - Removed rxjs-compat dependency (no longer needed) - Removed Protractor from devDependencies (deprecated) - Removed 'e2e' script from package.json - Removed Protractor e2e configuration from angular.json - zone.js import already updated by automated migrations Co-Authored-By: travis@cognition.ai <travis@cognition.ai>
🤖 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:
|
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.
Upgrade Angular from 9.0.1 to 18.2.14
Summary
This PR upgrades the Angular2-HN Progressive Web App from Angular 9.0.1 to Angular 18.2.14, spanning 9 major versions using the recommended incremental upgrade approach (
ng updatefor each version: 9→10→11→12→13→14→15→16→17→18).Key Changes:
dist/angular-hnpwa→dist/angular-hnpwa/browserConfiguration Updates:
rxjs/Observable→rxjs,rxjs/Subscription→rxjs)Build Status:
npm run build)Review & Testing Checklist for Human
Notes
dist/angular-hnpwa/browserinstead ofdist/angular-hnpwa. If deployment scripts reference the old path, they will need to be updated.:host > > >) and division operators. These will become errors in Dart Sass 2.0.0.Link to Devin run: https://app.devin.ai/sessions/a28e751b587745918f641946e7b3cb38
Requested by: @travismarceau (travis@cognition.ai)
Commits (10 total):