Skip to content
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

chore: CXSPA-4724 Upgrade to Angular 16 #17941

Closed

Conversation

pawelfras
Copy link
Contributor

PR FOR TESTING PURPOSES - DO NOT MERGE

This PR contains all actions related to upgrading Spartacus to Angular 16. The branch has been cut from the epic branch with an upgrade to RxJS 7.

DETAILED Description - TBD

ercultimate and others added 24 commits May 8, 2023 09:35
Manual upgrades:
- Nx upgraded to 16.10.0
- @ng-select/ng-select upgraded to 11.1.1
- @ngx-infinite-scroll upgraded to 16.0.0
- @angular-eslint/schematics upgraded to 16.2.0
- an output of 'nx migrate --run-migrations'
- updating dependencies in libraries 'npm run config:update --bump-versions'
- linting
   - setting `clearContext: true` to all karma config files to avoid `Some of your tests did a full page reload!` error
   - fixing issues caused by changes in Router API - `events: Observable<RouterEvent>` -> `events: Observable<Event>`
   - fixing issues with `jest.spyOn` when used on properties that are not configurable - caused by `zone.js` update (see: angular/angular#50756)
   - fixing `Error: NG04002: Cannot match any routes.` that causes infinite loop of running tests
   - `waitForAsync` causing issues in `unit-level-order-overview.component.spec.ts`
   - fix async test in quick-order.service.spec.ts causing errors thrown in `afterAll`
   - TS issue - `observable.toPromise()` -> `firstValueFrom(observable)` in `schematics` library
   - TS issue - `[] as unknown[]` in `use-default-provide-config.ts`
   - updating schematics snapshot
   - remove `globalSetup: 'jest-preset-angular/global-setup'` to avoid `ngcc` warning
@pawelfras pawelfras force-pushed the feature/CXSPA-4724-angular-16-upgrade branch from 6b000e3 to 7a9b513 Compare October 19, 2023 13:01
- added "@angular-eslint/recommended" plugin to .eslintrc.json
- added to project  eslint rules that are no logner part of @angular-eslint. See: angular-eslint/angular-eslint#1353 (comment)
- all errors related to "@nx/enforce-module-boundaries" marked as warnings (core, storefrontlib + some individual files)
- all errors related to "@angular-eslint/no-empty-lifecycle-method" marked as warnings
@pawelfras pawelfras marked this pull request as ready for review October 20, 2023 13:18
@pawelfras pawelfras requested a review from a team as a code owner October 20, 2023 13:18
@pawelfras pawelfras requested a review from a team October 20, 2023 13:18
- validate-lint.sh: '@nrwl/cli' has been removed - use 'nx' instead
@pawelfras pawelfras force-pushed the feature/CXSPA-4724-angular-16-upgrade branch from 4c3d642 to eb27fd6 Compare October 23, 2023 07:30
@pawelfras pawelfras marked this pull request as ready for review October 23, 2023 08:07
@github-actions github-actions bot marked this pull request as draft October 23, 2023 08:24
- main.server.ts: "renderModuleFactory" as heeb removed from "@angular/platform-server" - use "renderModule" instead
@pawelfras pawelfras marked this pull request as ready for review October 23, 2023 11:18
@pawelfras pawelfras changed the base branch from epic/pf-rxjs-7-before-6.6 to epic/CXSPA-2897 October 24, 2023 13:12
Base automatically changed from epic/CXSPA-2897 to develop-next-major October 24, 2023 13:14
@github-actions github-actions bot marked this pull request as draft October 24, 2023 14:16
@pawelfras pawelfras marked this pull request as ready for review October 24, 2023 14:16
@github-actions github-actions bot marked this pull request as draft October 24, 2023 14:19
- remove 'BrowserModule.withServerTransition' from storefrontapp and schematics' snapshot
@pawelfras pawelfras marked this pull request as ready for review October 25, 2023 11:39
@github-actions github-actions bot marked this pull request as draft October 25, 2023 11:59
- remove 'BrowserModule.withServerTransition' from storefrontapp and schematics' snapshot
@pawelfras pawelfras marked this pull request as ready for review October 25, 2023 13:41
@github-actions github-actions bot marked this pull request as draft October 25, 2023 14:16
@pawelfras pawelfras marked this pull request as ready for review October 26, 2023 06:26
@github-actions github-actions bot marked this pull request as draft October 26, 2023 07:26
- Angular upgraded to 16.2.10
- NX upgraded to 17.0.0
@pawelfras pawelfras marked this pull request as ready for review October 26, 2023 09:11
@github-actions github-actions bot marked this pull request as draft October 26, 2023 09:43
@pawelfras pawelfras marked this pull request as ready for review October 26, 2023 10:44
@pawelfras
Copy link
Contributor Author

Test PR is no longer needed. The update to Angular 16 has been addressed in a different PR: #18022

@pawelfras pawelfras closed this Nov 16, 2023
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.

2 participants