Commit ff23d3a
authored
Upgrade to Angular 18 (#19614)
Nx migration:
- "@angular-eslint/eslint-plugin" bumped to 18.4.2,
- "@angular-eslint/eslint-plugin-template" bumped to 18.4.2,
- "@angular-eslint/template-parser" bumped to 18.4.2,
- "@nx/angular" bumped to 20.1.3
- "@nx/devkit" bumped to 20.1.3
- "@nx/eslint-plugin" bumped to 20.1.3
- "@nx/jest" bumped to 20.1.3
- "@nx/workspace" bumped to 20.1.3
- "@types/jest" bumped to 29.5.14
- "jest" bumped to 29.7.0
- "jest-preset-angular" bumped to 14.1.1
- "nx" bumped to 20.1.3,
- "useInferencePlugins": false added to nx.json
for more, see: https://nx.dev/concepts/inferred-tasks#existing-nx-workspaces
- "useLegacyCache": true added to nx.json
for more, see: https://nx.dev/nx-api/devkit/documents/Workspace#uselegacycach
- /.nx/workspace-data added to .gitignore and .prettierignore
Angular migration:
- "@angular/.." libraries bumped from 17.0.5 to 18.2.9
- "@angular-devkit/.." libraries bumped from 17.0.5 to 18.2.9
- "@angular-eslint/.." libraries bumped from 17.1.0 to 18.4.2
- "@typescript-eslint/" libraries bumped from 6.13.1 to 7.2.0
- "@schematics/angular" bumped from 17.0.5 to 18.2.9
- "@ng-select/ng-select" bumped from 12.0.4 to 13.9.0
- "ngx-infinite-scroll" bumped from 17.0.0 to 18.0.0
- "zone.js" bumped from 0.14.2 to 0.14.10
- "@angular-builders/custom-webpack" bumped from 15.0.0 to 18.0.0
- "ng-packagr" bumped from 17.0.2 to 18.2.1
- replaced deprecated HTTP related modules with provider functions
- fixed issues after replacement in some tests (redundant code) (?)
- adjusted 'form-errors.component.ts' to new 'AbstractControl' shape
- set 'MessageService' as optional in form.component.ts and remove it from FormModule providers' array
- replaced boolean | UrlTree return type with GuardResult for canActivate guard functions and related code with
NgRx:
- "@ngrx/effects" bumped from 17.0.1 to 18.1.0
- "@ngrx/router-store" bumped from 17.0.1 to 18.1.0
- "@ngrx/store" bumped from 17.0.1 to 18.1.0
- "@ngrx/store-devtools" bumped from 17.0.1 to 18.1.0
- "@ngrx/operators" introduced
- TypedAction removed in favour of Action
Build issues:
- replaced Observable<boolean | UrlTree> with combined Observable<GuardResult> from @angular/router
for more, see: feat(router): Add ability to return UrlTree with NavigationBehaviorOptions from guards angular/angular#45023
- add node to "types" in all tsconfig.schematics.json to support node API
- remove redundant dist and assets property from nested ng-package.json in CDP, OPF and OMF
for more, see: https://github.com/ng-packagr/ng-packagr/pull/2754/files
- Unit tests:
- add support for RedirectCommand type in guard tests
- adjust order-return-requrest-list.component.spec.ts to look for input[aria-controls="order-return-table"] instead of div[aria-controls="order-return-table"] due to changes in ng-select
for more, see: fix(wcag): adds role 'combobox' to input ng-select/ng-select#2428
- remove recommended property from eslint rules
- add fix-jsdom-environment.ts containing fix for missing support of structuredClone in jest-environment-jsdom
for more, see: [Bug]: structuredClone is not defined jsdom/jsdom#3363 (comment)
- convertAnnotatedSourceToFailureCase is now imported from @angular-eslint/test-utils(new dependency) instead from @angular-eslint/utils
- include TS files in tsconfig.spec.json
- replace/remove redundant RouterTestingModule
- update snapshots in schematics tests
Linting:
- added new @stylistic/eslint-plugin-ts due to moving some there som config from @typescript-eslint/eslint-plugin:
- quotes
- member-delimiter-style
- semi
- type-annotation-spacing`
for more, see e.g.: https://typescript-eslint.io/rules/member-delimiter-style/
- removed redundant rules from legacy-ng-cli-compat files
Schematics:
- fixed type in file-utils_spec.ts
- update dependencies.json
- adjusted schema.json to work with new Angular
for more, see: fix(@angular/cli): support default options for multiselect list x-prompt angular/angular-cli#28842
- Linter for styles:
- fixed issues caught after bumping minor version of "stylelint" packages (when upgrading package-lock.json)
- added "integration-libs" to the linter scope1 parent 849ba77 commit ff23d3a
File tree
547 files changed
+15186
-27441
lines changed- core-libs/setup
- ssr/engine/__snapshots__
- docs/migration/2211_ng18
- feature-libs
- asm
- customer-360
- occ/adapters
- root/interceptors
- styles/components
- occ/adapters
- root
- interceptors
- services
- schematics/add-asm/__snapshots__
- styles/components
- cart
- base
- components
- add-to-cart
- added-to-cart-dialog
- cart-details
- cart-proceed-to-checkout
- mini-cart
- validation
- cart-item-warning
- cart-warnings
- core
- guards
- store/effects
- occ/adapters
- import-export/components
- export-entries
- import-export
- quick-order/components/quick-order/table/item
- saved-cart
- components
- add-to-saved-cart
- details/saved-cart-details-overview
- list
- core/store/effects
- occ/adapters
- schematics/add-cart
- __snapshots__
- wish-list/components
- add-to-wishlist
- wish-list-item
- checkout
- b2b
- components
- checkout-review-submit
- guards
- occ/adapters
- base
- components
- checkout-place-order
- checkout-progress
- checkout-progress-mobile-bottom
- checkout-progress-mobile-top
- checkout-review-submit
- checkout-review
- checkout-review-payment
- checkout-review-shipping
- guards
- occ/adapters
- root/http-interceptors
- scheduled-replenishment/components
- checkout-place-order
- checkout-schedule-replenishment-order
- schematics/add-checkout
- __snapshots__
- customer-ticketing
- components
- list/customer-ticketing-list
- my-account-v2
- occ/adapters
- schematics/add-customer-ticketing/__snapshots__
- estimated-delivery-date
- schematics/add-estimated-delivery-date/__snapshots__
- show-estimated-delivery-date/components
- order
- components
- amend-order
- amend-order-actions
- cancellations
- cancel-order-confirmation
- cancel-order
- returns
- return-order-confirmation
- return-order
- guards
- my-account-v2
- order-details
- my-account-v2/order-details-actions
- order-detail-actions
- order-detail-items
- order-consigned-entries
- order-detail-reorder
- reorder-dialog
- order-history
- my-account-v2
- replenishment-order-details/replenishment-order-cancellation
- replenishment-order-history
- return-request-list
- core/store/effects
- occ/adapters
- schematics/add-order/__snapshots__
- organization
- account-summary
- occ/adapters
- root/http-interceptors
- administration
- components
- budget
- cost-centers
- details
- cost-center
- budgets
- assigned
- details
- permission/details
- unit
- links
- addresses/list
- approvers
- assigned
- children
- cost-centers
- list/toggle-link
- user-group
- details
- permissions
- assigned
- users
- assigned
- user
- approvers
- assigned
- details
- permissions
- assigned
- user-groups
- assigned
- core
- guards
- store/effects
- occ/adapters
- order-approval
- components
- details/order-approval-detail-form
- list
- core/store/effects
- occ/adapters
- schematics/add-organization
- __snapshots__
- unit-order
- components/unit-level-order-history
- core/store/effects
- occ/adapters
- user-registration
- components/form
- occ/adapters
- pdf-invoices
- occ/adapters
- schematics/add-pdf-invoices/__snapshots__
- pickup-in-store
- components/container
- pickup-option-dialog
- store-list
- core/store
- actions
- effects
- occ/adapters
- root
- schematics/add-pickup-in-store/__snapshots__
- styles
- product-configurator
- common/components
- configurator-cart-entry-info
- configure-cart-entry
- configure-product
- service
- rulebased
- components
- attribute
- product-card
- types
- multi-selection-bundle
- single-selection-bundle-dropdown
- single-selection-bundle
- overview-notification-banner
- tab-bar
- core/state/effects
- cpq
- occ
- rest
- occ/variant
- root/cpq/interceptor
- styles
- schematics/add-product-configurator/__snapshots__
- textfield
- components/add-to-cart-button
- core/state/effects
- occ
- product-multi-dimensional
- schematics/add-product-multi-dimensional
- __snapshots__
- selector/components/guards
- product
- future-stock/occ/adapters
- schematics/add-product
- __snapshots__
- variants/components
- guards
- product-variants-container
- variant-color-selector
- variant-size-selector
- variant-style-selector
- qualtrics
- schematics/add-qualtrics/__snapshots__
- quote
- components
- cart-guard
- header/overview
- links
- list
- occ/adapters
- schematics/add-quote/__snapshots__
- requested-delivery-date
- occ/adapters
- schematics/add-requested-delivery-date/__snapshots__
- smartedit
- root/http-interceptors
- schematics/add-smartedit/__snapshots__
- storefinder
- components
- store-finder-grid
- store-finder-list-item
- store-finder-search-result
- store-finder-list
- store-finder-search
- store-finder-store-description
- store-finder-stores-count
- store-finder-store
- store-finder
- core/store/effects
- occ/adapters
- schematics/add-storefinder/__snapshots__
- tracking
- personalization/root/http-interceptors
- schematics/add-tracking
- user
- account
- components
- login-form
- login-register
- login
- my-account-v2-user
- otp-login-form
- verification-token-form
- occ/adapters
- profile
- components
- address-book
- close-account/components/close-account
- forgot-password
- register
- reset-password
- update-email
- update-password
- update-profile
- occ/adapters
- schematics/add-user
- __snapshots__
- integration-libs
- cdc
- components/gigya-raas
- core/auth/services/user-authentication
- organization/user-registration
- root
- consent-management
- guards
- user-account/login-form
- user-profile
- forgot-password
- register
- cdp
- customer-ticketing
- cds
- src
- merchandising
- adapters/strategy
- cms-components/merchandising-carousel
- profiletag/http-interceptors
- recent-searches
- trending-searches
- cpq-quote
- cpq-quote-discount/components/cpq-quote-discount-tbody
- digital-payments
- src/checkout/adapters
- epd-visualization
- components
- visual-picking/visual-picking-tab
- product-filter
- product-list
- compact-add-to-cart
- paged-list
- visual-viewer
- epd-visualization-api/adapters
- storage-v1
- visualization-v1
- schematics/add-epd-visualization/__snapshots__
- styles/components
- visual-picking
- visual-viewer
- omf
- order
- opf
- base/opf-api/adapters
- checkout/styles/components
- cta/opf-api/adapters
- order
- payment/opf-api/adapters
- quick-buy/opf-api/adapters
- schematics/add-opf
- __snapshots__
- opps
- root
- coupon-codes/http-interceptors
- login-required
- s4-service
- checkout
- components
- checkout-review-submit
- guards
- occ/adapter
- order
- components
- cancel-service-order
- guards
- s4-service-order-detail-actions
- occ/adapters
- s4om
- root/components/schedule-lines
- schematics/add-s4om
- styles
- segment-refs
- root/http-interceptors
- projects
- core
- src
- anonymous-consents/http-interceptors
- auth
- client-auth
- http-interceptors
- services
- user-auth
- guards
- http-interceptors
- services
- cms/store/effects
- global-message/http-interceptors
- http/http-timeout
- i18n/i18next/i18next-backend
- occ
- adapters
- cms
- product
- site-context
- user
- interceptors
- services
- product/store/effects
- routing
- configurable-routes/url-translation
- external-routes
- facade
- protected-routes
- store
- effects
- reducers
- site-context/store/effects
- site-theme/store/effects
- user/store/effects
- schematics
- src
- add-spartacus
- add-ssr
- __snapshots__
- ng-add/__snapshots__
- storefrontlib
- cms-components
- content
- banner-carousel
- banner
- link
- paragraph
- video
- myaccount
- my-coupons
- coupon-card
- my-interests
- product
- carousel
- product-carousel-item
- product-carousel
- product-references
- product-list
- container
- product-scroll
- product-grid-item
- product-list-item
- product-summary
- stock-notification
- stock-notification-dialog
- user
- login-route
- logout
- cms-structure
- guards
- services
- layout/main
- storefrontstyles
- tools
- eslint-plugins
- eslint-rules
- environments
- rules
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
547 files changed
+15186
-27441
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | | - | |
29 | 25 | | |
30 | 26 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 27 | | |
35 | 28 | | |
36 | | - | |
37 | 29 | | |
38 | 30 | | |
39 | 31 | | |
40 | | - | |
41 | | - | |
42 | 32 | | |
43 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | | - | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | | - | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | | - | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| |||
0 commit comments