Skip to content

fix: CXSPA-11164 Fix schematics - #20895

Merged
sdrozdsap merged 2 commits into
spike/angular-20-upgradefrom
fix/CXSPA-11164
Nov 23, 2025
Merged

sdrozdsap merged 2 commits into
spike/angular-20-upgradefrom
fix/CXSPA-11164

Conversation

@pawelfras

Copy link
Copy Markdown
Contributor
  • bump express to version 5.1.0 to be in line with the version installed in fresh Angular app with SSR
  • adjust server.ts file in storefrontapp and template for server.ts to work with new version of express
  • add typeSeparator: "." to config for Angular's module schematic usage
  • add type: "component" to config for Angular's component schematic usage
  • add applyClassicNamingConvention function to add-spartacus, that change filenames to be in line with classic style guide (e.g. app.ts -> app.component.ts)
  • add removeOutputModeSupportedOnlyInNewSsrApi to add-ssr that removes outputMode option
  • adjust getIndexHtmlPath to get index based on sourceRoot or root from the angular.json file

- bump express to version 5.1.0 to be in line with the version installed in fresh Angular app with SSR
- adjust `server.ts` file in storefrontapp and template for `server.ts` to work with new version of express
- add `typeSeparator: "."` to config for Angular's module schematic usage
- add `type: "component"` to config for Angular's component schematic usage
- add `applyClassicNamingConvention` function to `add-spartacus`, that change filenames to be in line with classic style guide (e.g. app.ts -> app.component.ts)
- add `removeOutputModeSupportedOnlyInNewSsrApi` to `add-ssr` that removes `outputMode` option
- adjust `getIndexHtmlPath` to get index based on `sourceRoot` or `root` from the `angular.json` file
@pawelfras
pawelfras requested a review from a team as a code owner November 21, 2025 15:47
@sdrozdsap
sdrozdsap merged commit 41d3dc5 into spike/angular-20-upgrade Nov 23, 2025
@sdrozdsap
sdrozdsap deleted the fix/CXSPA-11164 branch November 23, 2025 13:09
sdrozdsap pushed a commit that referenced this pull request Nov 27, 2025
sdrozdsap added a commit that referenced this pull request Dec 5, 2025
Nx migration:
- "@nx/angular" bumped to 22.1.1
- "@nx/devkit" bumped to 22.1.1
- "@nx/eslint-plugin" bumped to 22.1.1
- "@nx/jest" bumped to 22.1.1
- "@nx/workspace" bumped to 22.1.1
- "nx" bumped to 22.1.1

Angular migration:
- "@angular/.." libraries bumped from 19.x to 20.3.9
- "@angular-devkit/.." libraries bumped to 20.3.9
- "@angular-eslint/.." libraries bumped to 20.7.0
- "@schematics/angular" bumped to 20.3.9
- "@angular/build" introduced (new package)
- "@ng-select/ng-select" bumped to 20.4.3
- "angular-oauth2-oidc" bumped to 20.0.2
- "ngx-infinite-scroll" bumped to 20.0.0
- "zone.js" bumped to 0.15.1
- "@angular-builders/custom-esbuild" bumped to 20.0.0
- "ng-packagr" bumped to 20.3.2
- "typescript" bumped to 5.9.3
- "express" bumped to 5.1.0
- "@types/node" bumped to 22.19.1
- "glob" bumped to 11.1.0

NgRx:
- "@ngrx/effects" bumped to 20.1.0
- "@ngrx/operators" bumped to 20.1.0
- "@ngrx/router-store" bumped to 20.1.0
- "@ngrx/store" bumped to 20.1.0
- "@ngrx/store-devtools" bumped to 20.1.0

Build issues:
- resolved router guards typing issues
- adjusted type in private wrapCmsGuard method in CmsRoutesImplService
  see: #20863
- adjusted templates using `<ng-select>` to satisfy 'items' input
  see: #20864
- workaround for 'ariaLabelDropdown' input signal
  see: #20862
- use `outputToObservable` to align with signal outputs in new ng-select
- added new builder addressing ng-packagr issues
  see: #20855
- fixed ESLint configuration (disabled prefer-inject rule)

Unit tests:
- "jest" bumped to 30.2.0
- "jest-circus" bumped to 30.2.0
- "jest-environment-jsdom" introduced (new package)
- "jest-environment-node" bumped to 30.2.0
- "jest-util" bumped to 30.2.0
- "jest-preset-angular" bumped to 15.0.3
- "ts-jest" bumped to 29.4.5
- refactored tests to avoid relying on `ng-reflect-*` attributes (removed in Angular 20 dev mode)
  see: angular/angular#60182
- updated snapshots containing Angular version references
- replaced deprecated Jest matcher aliases with canonical names
  see: https://jestjs.io/docs/upgrading-to-jest30#removal-of-alias-matcher-functions
- fixed tests across multiple libraries

Linting:
- "eslint" bumped to 9.28.0
- removed "eslint-plugin-deprecation" (incompatible with ESLint 9)

Schematics:
- fixed schematics for Angular 20 compatibility
  see: #20895
- fixed schematics unit tests
  see: #20896
- fixed installation script
  see: #20909
- added migrations and installation docs
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