@openrewrite/recipes-angular 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +35 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +174 -54
- package/dist/index.js.map +1 -1
- package/dist/libraries/cdk/find-cdk-signature-changes.d.ts +3 -2
- package/dist/libraries/cdk/find-cdk-signature-changes.d.ts.map +1 -1
- package/dist/libraries/cdk/find-cdk-signature-changes.js +9 -57
- package/dist/libraries/cdk/find-cdk-signature-changes.js.map +1 -1
- package/dist/libraries/cdk/migrate-cdk-stepper.d.ts.map +1 -1
- package/dist/libraries/cdk/migrate-cdk-stepper.js +1 -17
- package/dist/libraries/cdk/migrate-cdk-stepper.js.map +1 -1
- package/dist/libraries/cdk/migrate-drag-drop-registry.d.ts.map +1 -1
- package/dist/libraries/cdk/migrate-drag-drop-registry.js +1 -15
- package/dist/libraries/cdk/migrate-drag-drop-registry.js.map +1 -1
- package/dist/libraries/cdk/migrate-focus-trap-factory-create.d.ts.map +1 -1
- package/dist/libraries/cdk/migrate-focus-trap-factory-create.js +4 -6
- package/dist/libraries/cdk/migrate-focus-trap-factory-create.js.map +1 -1
- package/dist/libraries/cdk/remove-cdk-super-arguments.d.ts.map +1 -1
- package/dist/libraries/cdk/remove-cdk-super-arguments.js +5 -19
- package/dist/libraries/cdk/remove-cdk-super-arguments.js.map +1 -1
- package/dist/libraries/cdk/remove-dialog-component-factory-resolver.d.ts +11 -0
- package/dist/libraries/cdk/remove-dialog-component-factory-resolver.d.ts.map +1 -0
- package/dist/libraries/cdk/remove-dialog-component-factory-resolver.js +72 -0
- package/dist/libraries/cdk/remove-dialog-component-factory-resolver.js.map +1 -0
- package/dist/libraries/cdk/remove-portal-factory-resolver-arguments.d.ts.map +1 -1
- package/dist/libraries/cdk/remove-portal-factory-resolver-arguments.js +8 -21
- package/dist/libraries/cdk/remove-portal-factory-resolver-arguments.js.map +1 -1
- package/dist/libraries/cdk/upgrade-to-cdk.d.ts.map +1 -1
- package/dist/libraries/cdk/upgrade-to-cdk.js +4 -2
- package/dist/libraries/cdk/upgrade-to-cdk.js.map +1 -1
- package/dist/libraries/components/lst.d.ts +9 -2
- package/dist/libraries/components/lst.d.ts.map +1 -1
- package/dist/libraries/components/lst.js +28 -0
- package/dist/libraries/components/lst.js.map +1 -1
- package/dist/libraries/components/package-version.d.ts +7 -0
- package/dist/libraries/components/package-version.d.ts.map +1 -0
- package/dist/libraries/components/package-version.js +73 -0
- package/dist/libraries/components/package-version.js.map +1 -0
- package/dist/libraries/components/symbols.d.ts.map +1 -1
- package/dist/libraries/components/symbols.js +1 -3
- package/dist/libraries/components/symbols.js.map +1 -1
- package/dist/libraries/material/find-chip-input-event-without-chip-input.d.ts.map +1 -1
- package/dist/libraries/material/find-chip-input-event-without-chip-input.js +2 -15
- package/dist/libraries/material/find-chip-input-event-without-chip-input.js.map +1 -1
- package/dist/libraries/material/find-material-constructor-changes.d.ts.map +1 -1
- package/dist/libraries/material/find-material-constructor-changes.js +7 -18
- package/dist/libraries/material/find-material-constructor-changes.js.map +1 -1
- package/dist/libraries/material/find-mixin-error-state-without-state-changes.d.ts.map +1 -1
- package/dist/libraries/material/find-mixin-error-state-without-state-changes.js +6 -11
- package/dist/libraries/material/find-mixin-error-state-without-state-changes.js.map +1 -1
- package/dist/libraries/material/find-removed-material-members.js +3 -3
- package/dist/libraries/material/find-removed-material-members.js.map +1 -1
- package/dist/libraries/material/material-version.d.ts +0 -2
- package/dist/libraries/material/material-version.d.ts.map +1 -1
- package/dist/libraries/material/material-version.js +4 -52
- package/dist/libraries/material/material-version.js.map +1 -1
- package/dist/libraries/material/migrate-list-item-harness-content-loader.d.ts.map +1 -1
- package/dist/libraries/material/migrate-list-item-harness-content-loader.js +5 -7
- package/dist/libraries/material/migrate-list-item-harness-content-loader.js.map +1 -1
- package/dist/libraries/material/migrate-material-secondary-entry-points.d.ts.map +1 -1
- package/dist/libraries/material/migrate-material-secondary-entry-points.js +4 -6
- package/dist/libraries/material/migrate-material-secondary-entry-points.js.map +1 -1
- package/dist/libraries/material/remove-mat-stepper-document-argument.d.ts.map +1 -1
- package/dist/libraries/material/remove-mat-stepper-document-argument.js +3 -18
- package/dist/libraries/material/remove-mat-stepper-document-argument.js.map +1 -1
- package/dist/libraries/material/remove-update-active-link-argument.d.ts.map +1 -1
- package/dist/libraries/material/remove-update-active-link-argument.js +3 -6
- package/dist/libraries/material/remove-update-active-link-argument.js.map +1 -1
- package/dist/libraries/material/rename-material-members.d.ts +3 -3
- package/dist/libraries/material/rename-material-members.d.ts.map +1 -1
- package/dist/libraries/material/rename-material-members.js +6 -6
- package/dist/libraries/material/rename-material-members.js.map +1 -1
- package/dist/libraries/ngrx/add-ngrx-operators-dependency.d.ts +16 -0
- package/dist/libraries/ngrx/add-ngrx-operators-dependency.d.ts.map +1 -0
- package/dist/libraries/ngrx/add-ngrx-operators-dependency.js +153 -0
- package/dist/libraries/ngrx/add-ngrx-operators-dependency.js.map +1 -0
- package/dist/libraries/ngrx/disable-signal-store-protected-state.d.ts +13 -0
- package/dist/libraries/ngrx/disable-signal-store-protected-state.d.ts.map +1 -0
- package/dist/libraries/ngrx/disable-signal-store-protected-state.js +146 -0
- package/dist/libraries/ngrx/disable-signal-store-protected-state.js.map +1 -0
- package/dist/libraries/ngrx/find-entity-get-initial-state-arguments.d.ts +8 -0
- package/dist/libraries/ngrx/find-entity-get-initial-state-arguments.d.ts.map +1 -0
- package/dist/libraries/ngrx/find-entity-get-initial-state-arguments.js +53 -0
- package/dist/libraries/ngrx/find-entity-get-initial-state-arguments.js.map +1 -0
- package/dist/libraries/ngrx/find-entity-select-id-usage.d.ts +8 -0
- package/dist/libraries/ngrx/find-entity-select-id-usage.d.ts.map +1 -0
- package/dist/libraries/ngrx/find-entity-select-id-usage.js +69 -0
- package/dist/libraries/ngrx/find-entity-select-id-usage.js.map +1 -0
- package/dist/libraries/ngrx/find-eslintrc-ngrx-config.d.ts +8 -0
- package/dist/libraries/ngrx/find-eslintrc-ngrx-config.d.ts.map +1 -0
- package/dist/libraries/ngrx/find-eslintrc-ngrx-config.js +141 -0
- package/dist/libraries/ngrx/find-eslintrc-ngrx-config.js.map +1 -0
- package/dist/libraries/ngrx/find-method-callback-inputs.d.ts +8 -0
- package/dist/libraries/ngrx/find-method-callback-inputs.d.ts.map +1 -0
- package/dist/libraries/ngrx/find-method-callback-inputs.js +75 -0
- package/dist/libraries/ngrx/find-method-callback-inputs.js.map +1 -0
- package/dist/libraries/ngrx/find-removed-ngrx-20-apis.d.ts +8 -0
- package/dist/libraries/ngrx/find-removed-ngrx-20-apis.d.ts.map +1 -0
- package/dist/libraries/ngrx/find-removed-ngrx-20-apis.js +25 -0
- package/dist/libraries/ngrx/find-removed-ngrx-20-apis.js.map +1 -0
- package/dist/libraries/ngrx/find-removed-ngrx-apis.d.ts +14 -0
- package/dist/libraries/ngrx/find-removed-ngrx-apis.d.ts.map +1 -0
- package/dist/libraries/ngrx/find-removed-ngrx-apis.js +58 -0
- package/dist/libraries/ngrx/find-removed-ngrx-apis.js.map +1 -0
- package/dist/libraries/ngrx/find-select-query-param-usage.d.ts +8 -0
- package/dist/libraries/ngrx/find-select-query-param-usage.d.ts.map +1 -0
- package/dist/{migration/replace-create-ng-module-ref.js → libraries/ngrx/find-select-query-param-usage.js} +16 -18
- package/dist/libraries/ngrx/find-select-query-param-usage.js.map +1 -0
- package/dist/libraries/ngrx/find-union-deep-signals.d.ts +22 -0
- package/dist/libraries/ngrx/find-union-deep-signals.d.ts.map +1 -0
- package/dist/libraries/ngrx/find-union-deep-signals.js +279 -0
- package/dist/libraries/ngrx/find-union-deep-signals.js.map +1 -0
- package/dist/libraries/ngrx/migrate-create-feature-selector-generics.d.ts +10 -0
- package/dist/libraries/ngrx/migrate-create-feature-selector-generics.d.ts.map +1 -0
- package/dist/libraries/ngrx/migrate-create-feature-selector-generics.js +53 -0
- package/dist/libraries/ngrx/migrate-create-feature-selector-generics.js.map +1 -0
- package/dist/libraries/ngrx/migrate-create-selector-generics.d.ts +10 -0
- package/dist/libraries/ngrx/migrate-create-selector-generics.d.ts.map +1 -0
- package/dist/libraries/ngrx/migrate-create-selector-generics.js +80 -0
- package/dist/libraries/ngrx/migrate-create-selector-generics.js.map +1 -0
- package/dist/libraries/ngrx/migrate-effect-decorators.d.ts +11 -0
- package/dist/libraries/ngrx/migrate-effect-decorators.d.ts.map +1 -0
- package/dist/libraries/ngrx/migrate-effect-decorators.js +133 -0
- package/dist/libraries/ngrx/migrate-effect-decorators.js.map +1 -0
- package/dist/libraries/ngrx/migrate-provide-effects-array.d.ts +10 -0
- package/dist/libraries/ngrx/migrate-provide-effects-array.d.ts.map +1 -0
- package/dist/libraries/ngrx/migrate-provide-effects-array.js +59 -0
- package/dist/libraries/ngrx/migrate-provide-effects-array.js.map +1 -0
- package/dist/libraries/ngrx/migrate-reactive-component-module.d.ts +10 -0
- package/dist/libraries/ngrx/migrate-reactive-component-module.d.ts.map +1 -0
- package/dist/libraries/ngrx/migrate-reactive-component-module.js +83 -0
- package/dist/libraries/ngrx/migrate-reactive-component-module.js.map +1 -0
- package/dist/libraries/ngrx/migrate-store-devtools-connect-in-zone.d.ts +11 -0
- package/dist/libraries/ngrx/migrate-store-devtools-connect-in-zone.d.ts.map +1 -0
- package/dist/libraries/ngrx/migrate-store-devtools-connect-in-zone.js +127 -0
- package/dist/libraries/ngrx/migrate-store-devtools-connect-in-zone.js.map +1 -0
- package/dist/libraries/ngrx/migrate-tap-response.d.ts +8 -0
- package/dist/libraries/ngrx/migrate-tap-response.d.ts.map +1 -0
- package/dist/libraries/ngrx/migrate-tap-response.js +87 -0
- package/dist/libraries/ngrx/migrate-tap-response.js.map +1 -0
- package/dist/libraries/ngrx/ngrx-migration.d.ts +29 -0
- package/dist/libraries/ngrx/ngrx-migration.d.ts.map +1 -0
- package/dist/libraries/ngrx/ngrx-migration.js +104 -0
- package/dist/libraries/ngrx/ngrx-migration.js.map +1 -0
- package/dist/libraries/ngrx/remove-create-feature-generics.d.ts +10 -0
- package/dist/libraries/ngrx/remove-create-feature-generics.d.ts.map +1 -0
- package/dist/libraries/ngrx/remove-create-feature-generics.js +49 -0
- package/dist/libraries/ngrx/remove-create-feature-generics.js.map +1 -0
- package/dist/libraries/ngrx/rename-computed-to-props.d.ts +8 -0
- package/dist/libraries/ngrx/rename-computed-to-props.d.ts.map +1 -0
- package/dist/libraries/ngrx/rename-computed-to-props.js +129 -0
- package/dist/libraries/ngrx/rename-computed-to-props.js.map +1 -0
- package/dist/libraries/ngrx/rename-eslint-plugin-v9-imports.d.ts +8 -0
- package/dist/libraries/ngrx/rename-eslint-plugin-v9-imports.d.ts.map +1 -0
- package/dist/{migration/rename-angular-js-globals.js → libraries/ngrx/rename-eslint-plugin-v9-imports.js} +19 -23
- package/dist/libraries/ngrx/rename-eslint-plugin-v9-imports.js.map +1 -0
- package/dist/libraries/ngrx/rename-rx-method-unsubscribe.d.ts +8 -0
- package/dist/libraries/ngrx/rename-rx-method-unsubscribe.d.ts.map +1 -0
- package/dist/libraries/ngrx/rename-rx-method-unsubscribe.js +65 -0
- package/dist/libraries/ngrx/rename-rx-method-unsubscribe.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-12.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-12.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-12.js +55 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-12.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-13.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-13.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-13.js +65 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-13.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-14.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-14.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-14.js +62 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-14.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-15.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-15.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-15.js +73 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-15.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-16.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-16.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-16.js +65 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-16.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-17.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-17.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-17.js +63 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-17.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-18.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-18.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-18.js +75 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-18.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-19.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-19.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-19.js +68 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-19.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-20.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-20.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-20.js +65 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-20.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-21.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-21.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-21.js +64 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-21.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-22.d.ts +14 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-22.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-22.js +67 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-22.js.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-support.d.ts +5 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-support.d.ts.map +1 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-support.js +33 -0
- package/dist/libraries/ngrx/upgrade-to-ngrx-support.js.map +1 -0
- package/dist/libraries/primeng/18/add-primeng-provider.d.ts +2 -16
- package/dist/libraries/primeng/18/add-primeng-provider.d.ts.map +1 -1
- package/dist/libraries/primeng/18/add-primeng-provider.js +2 -22
- package/dist/libraries/primeng/18/add-primeng-provider.js.map +1 -1
- package/dist/libraries/primeng/18/index.d.ts +1 -6
- package/dist/libraries/primeng/18/index.d.ts.map +1 -1
- package/dist/libraries/primeng/18/index.js +3 -13
- package/dist/libraries/primeng/18/index.js.map +1 -1
- package/dist/libraries/primeng/18/mark-deprecated-css-classes.d.ts +0 -6
- package/dist/libraries/primeng/18/mark-deprecated-css-classes.d.ts.map +1 -1
- package/dist/libraries/primeng/18/mark-deprecated-css-classes.js +9 -21
- package/dist/libraries/primeng/18/mark-deprecated-css-classes.js.map +1 -1
- package/dist/libraries/primeng/18/mark-drawer-size.d.ts +0 -7
- package/dist/libraries/primeng/18/mark-drawer-size.d.ts.map +1 -1
- package/dist/libraries/primeng/18/mark-drawer-size.js +1 -10
- package/dist/libraries/primeng/18/mark-drawer-size.js.map +1 -1
- package/dist/libraries/primeng/18/mark-removed-primeng-modules.d.ts.map +1 -1
- package/dist/libraries/primeng/18/mark-removed-primeng-modules.js +2 -4
- package/dist/libraries/primeng/18/mark-removed-primeng-modules.js.map +1 -1
- package/dist/libraries/primeng/18/migrate-messages-to-message-loop.d.ts +0 -6
- package/dist/libraries/primeng/18/migrate-messages-to-message-loop.d.ts.map +1 -1
- package/dist/libraries/primeng/18/migrate-messages-to-message-loop.js +4 -11
- package/dist/libraries/primeng/18/migrate-messages-to-message-loop.js.map +1 -1
- package/dist/libraries/primeng/18/migrate-p-fluid-to-wrapper.d.ts +2 -17
- package/dist/libraries/primeng/18/migrate-p-fluid-to-wrapper.d.ts.map +1 -1
- package/dist/libraries/primeng/18/migrate-p-fluid-to-wrapper.js +7 -32
- package/dist/libraries/primeng/18/migrate-p-fluid-to-wrapper.js.map +1 -1
- package/dist/libraries/primeng/18/migrate-primeng-config.d.ts.map +1 -1
- package/dist/libraries/primeng/18/migrate-primeng-config.js +26 -17
- package/dist/libraries/primeng/18/migrate-primeng-config.js.map +1 -1
- package/dist/libraries/primeng/18/migrate-primeng-signal-assignments.d.ts +0 -4
- package/dist/libraries/primeng/18/migrate-primeng-signal-assignments.d.ts.map +1 -1
- package/dist/libraries/primeng/18/migrate-primeng-signal-assignments.js +9 -42
- package/dist/libraries/primeng/18/migrate-primeng-signal-assignments.js.map +1 -1
- package/dist/libraries/primeng/18/rename-template-selectors.d.ts +0 -4
- package/dist/libraries/primeng/18/rename-template-selectors.d.ts.map +1 -1
- package/dist/libraries/primeng/18/rename-template-selectors.js +3 -15
- package/dist/libraries/primeng/18/rename-template-selectors.js.map +1 -1
- package/dist/libraries/primeng/18/upgrade-components-to-18.d.ts.map +1 -1
- package/dist/libraries/primeng/18/upgrade-components-to-18.js +16 -13
- package/dist/libraries/primeng/18/upgrade-components-to-18.js.map +1 -1
- package/dist/migration/add-default-configuration.d.ts.map +1 -1
- package/dist/migration/add-default-configuration.js +4 -3
- package/dist/migration/add-default-configuration.js.map +1 -1
- package/dist/migration/add-localize-polyfill.d.ts.map +1 -1
- package/dist/migration/add-localize-polyfill.js +3 -1
- package/dist/migration/add-localize-polyfill.js.map +1 -1
- package/dist/migration/add-no-incremental-hydration.d.ts.map +1 -1
- package/dist/migration/add-no-incremental-hydration.js +17 -12
- package/dist/migration/add-no-incremental-hydration.js.map +1 -1
- package/dist/migration/add-static-false-to-view-queries.d.ts +0 -8
- package/dist/migration/add-static-false-to-view-queries.d.ts.map +1 -1
- package/dist/migration/add-static-false-to-view-queries.js +0 -8
- package/dist/migration/add-static-false-to-view-queries.js.map +1 -1
- package/dist/migration/add-testbed-teardown.d.ts.map +1 -1
- package/dist/migration/add-testbed-teardown.js +2 -1
- package/dist/migration/add-testbed-teardown.js.map +1 -1
- package/dist/migration/angular-http-support.d.ts.map +1 -1
- package/dist/migration/angular-http-support.js +3 -3
- package/dist/migration/angular-http-support.js.map +1 -1
- package/dist/migration/angular-version.d.ts +18 -0
- package/dist/migration/angular-version.d.ts.map +1 -0
- package/dist/migration/angular-version.js +110 -0
- package/dist/migration/angular-version.js.map +1 -0
- package/dist/migration/enable-aot-build.d.ts.map +1 -1
- package/dist/migration/enable-aot-build.js +9 -9
- package/dist/migration/enable-aot-build.js.map +1 -1
- package/dist/migration/escape-block-syntax-characters.d.ts +13 -0
- package/dist/migration/escape-block-syntax-characters.d.ts.map +1 -0
- package/dist/migration/escape-block-syntax-characters.js +362 -0
- package/dist/migration/escape-block-syntax-characters.js.map +1 -0
- package/dist/migration/explicit-standalone-flag.d.ts.map +1 -1
- package/dist/migration/explicit-standalone-flag.js +1 -2
- package/dist/migration/explicit-standalone-flag.js.map +1 -1
- package/dist/migration/js-support.d.ts +4 -0
- package/dist/migration/js-support.d.ts.map +1 -1
- package/dist/migration/js-support.js +13 -1
- package/dist/migration/js-support.js.map +1 -1
- package/dist/migration/json-support.d.ts +3 -2
- package/dist/migration/json-support.d.ts.map +1 -1
- package/dist/migration/json-support.js +3 -2
- package/dist/migration/json-support.js.map +1 -1
- package/dist/migration/migrate-constructor-to-inject.js +3 -8
- package/dist/migration/migrate-constructor-to-inject.js.map +1 -1
- package/dist/migration/migrate-input-to-signal.d.ts.map +1 -1
- package/dist/migration/migrate-input-to-signal.js +6 -12
- package/dist/migration/migrate-input-to-signal.js.map +1 -1
- package/dist/migration/migrate-model-with-output.d.ts.map +1 -1
- package/dist/migration/migrate-model-with-output.js +1 -3
- package/dist/migration/migrate-model-with-output.js.map +1 -1
- package/dist/migration/migrate-output-to-signal.d.ts.map +1 -1
- package/dist/migration/migrate-output-to-signal.js +7 -79
- package/dist/migration/migrate-output-to-signal.js.map +1 -1
- package/dist/migration/migrate-query-to-signal.d.ts.map +1 -1
- package/dist/migration/migrate-query-to-signal.js +7 -12
- package/dist/migration/migrate-query-to-signal.js.map +1 -1
- package/dist/migration/migrate-to-solution-style-tsconfig.d.ts.map +1 -1
- package/dist/migration/migrate-to-solution-style-tsconfig.js +9 -5
- package/dist/migration/migrate-to-solution-style-tsconfig.js.map +1 -1
- package/dist/migration/move-document-to-core.d.ts +1 -1
- package/dist/migration/move-document-to-core.d.ts.map +1 -1
- package/dist/migration/move-document-to-core.js +23 -3
- package/dist/migration/move-document-to-core.js.map +1 -1
- package/dist/migration/remove-browser-module-with-server-transition.js.map +1 -1
- package/dist/migration/remove-component-factory-resolver.d.ts.map +1 -1
- package/dist/migration/remove-component-factory-resolver.js +6 -2
- package/dist/migration/remove-component-factory-resolver.js.map +1 -1
- package/dist/migration/remove-entry-components.d.ts.map +1 -1
- package/dist/migration/remove-entry-components.js +0 -5
- package/dist/migration/remove-entry-components.js.map +1 -1
- package/dist/migration/remove-es5-browser-support.js +1 -1
- package/dist/migration/remove-es5-browser-support.js.map +1 -1
- package/dist/migration/remove-extract-css.d.ts.map +1 -1
- package/dist/migration/remove-extract-css.js +1 -1
- package/dist/migration/remove-extract-css.js.map +1 -1
- package/dist/migration/remove-response-json-unwrap.d.ts.map +1 -1
- package/dist/migration/remove-response-json-unwrap.js +3 -20
- package/dist/migration/remove-response-json-unwrap.js.map +1 -1
- package/dist/migration/remove-zone-js-polyfill.d.ts +0 -4
- package/dist/migration/remove-zone-js-polyfill.d.ts.map +1 -1
- package/dist/migration/remove-zone-js-polyfill.js +0 -4
- package/dist/migration/remove-zone-js-polyfill.js.map +1 -1
- package/dist/migration/rename-check-no-changes.js +1 -1
- package/dist/migration/rename-check-no-changes.js.map +1 -1
- package/dist/migration/rename-default-change-detection.js +2 -2
- package/dist/migration/rename-default-change-detection.js.map +1 -1
- package/dist/migration/replace-async-with-wait-for-async.d.ts +4 -0
- package/dist/migration/replace-async-with-wait-for-async.d.ts.map +1 -1
- package/dist/migration/replace-async-with-wait-for-async.js +13 -15
- package/dist/migration/replace-async-with-wait-for-async.js.map +1 -1
- package/dist/migration/replace-date-pipe-default-timezone.d.ts +19 -0
- package/dist/migration/replace-date-pipe-default-timezone.d.ts.map +1 -0
- package/dist/migration/replace-date-pipe-default-timezone.js +198 -0
- package/dist/migration/replace-date-pipe-default-timezone.js.map +1 -0
- package/dist/migration/replace-get-current-navigation.d.ts.map +1 -1
- package/dist/migration/replace-get-current-navigation.js +4 -11
- package/dist/migration/replace-get-current-navigation.js.map +1 -1
- package/dist/migration/replace-headers-with-http-headers.d.ts.map +1 -1
- package/dist/migration/replace-headers-with-http-headers.js +1 -3
- package/dist/migration/replace-headers-with-http-headers.js.map +1 -1
- package/dist/migration/replace-http-client-module.js +1 -1
- package/dist/migration/replace-http-client-module.js.map +1 -1
- package/dist/migration/replace-inject-flags.d.ts.map +1 -1
- package/dist/migration/replace-inject-flags.js +12 -53
- package/dist/migration/replace-inject-flags.js.map +1 -1
- package/dist/migration/replace-preserve-query-params.d.ts.map +1 -1
- package/dist/migration/replace-preserve-query-params.js +1 -3
- package/dist/migration/replace-preserve-query-params.js.map +1 -1
- package/dist/migration/replace-request-options.d.ts.map +1 -1
- package/dist/migration/replace-request-options.js +4 -8
- package/dist/migration/replace-request-options.js.map +1 -1
- package/dist/migration/replace-testbed-get-with-inject.d.ts +3 -0
- package/dist/migration/replace-testbed-get-with-inject.d.ts.map +1 -1
- package/dist/migration/replace-testbed-get-with-inject.js +4 -1
- package/dist/migration/replace-testbed-get-with-inject.js.map +1 -1
- package/dist/migration/replace-untyped-forms.d.ts +0 -12
- package/dist/migration/replace-untyped-forms.d.ts.map +1 -1
- package/dist/migration/replace-untyped-forms.js +31 -100
- package/dist/migration/replace-untyped-forms.js.map +1 -1
- package/dist/migration/replace-validator-with-validators.d.ts +3 -0
- package/dist/migration/replace-validator-with-validators.d.ts.map +1 -1
- package/dist/migration/replace-validator-with-validators.js +47 -21
- package/dist/migration/replace-validator-with-validators.js.map +1 -1
- package/dist/migration/replace-view-encapsulation-native.d.ts.map +1 -1
- package/dist/migration/replace-view-encapsulation-native.js +2 -4
- package/dist/migration/replace-view-encapsulation-native.js.map +1 -1
- package/dist/migration/update-component-template-url.d.ts +0 -12
- package/dist/migration/update-component-template-url.d.ts.map +1 -1
- package/dist/migration/update-component-template-url.js +34 -102
- package/dist/migration/update-component-template-url.js.map +1 -1
- package/dist/migration/update-tsconfig-module.d.ts.map +1 -1
- package/dist/migration/update-tsconfig-module.js +2 -1
- package/dist/migration/update-tsconfig-module.js.map +1 -1
- package/dist/migration/upgrade-angular-dependencies.d.ts.map +1 -1
- package/dist/migration/upgrade-angular-dependencies.js +5 -1
- package/dist/migration/upgrade-angular-dependencies.js.map +1 -1
- package/dist/migration/upgrade-angular-peer-libs-to-18.d.ts +2 -4
- package/dist/migration/upgrade-angular-peer-libs-to-18.d.ts.map +1 -1
- package/dist/migration/upgrade-angular-peer-libs-to-18.js +2 -4
- package/dist/migration/upgrade-angular-peer-libs-to-18.js.map +1 -1
- package/dist/migration/upgrade-to-angular-10.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-10.js +12 -9
- package/dist/migration/upgrade-to-angular-10.js.map +1 -1
- package/dist/migration/upgrade-to-angular-11.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-11.js +22 -14
- package/dist/migration/upgrade-to-angular-11.js.map +1 -1
- package/dist/migration/upgrade-to-angular-12.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-12.js +15 -10
- package/dist/migration/upgrade-to-angular-12.js.map +1 -1
- package/dist/migration/upgrade-to-angular-13.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-13.js +16 -9
- package/dist/migration/upgrade-to-angular-13.js.map +1 -1
- package/dist/migration/upgrade-to-angular-14.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-14.js +18 -11
- package/dist/migration/upgrade-to-angular-14.js.map +1 -1
- package/dist/migration/upgrade-to-angular-15.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-15.js +19 -9
- package/dist/migration/upgrade-to-angular-15.js.map +1 -1
- package/dist/migration/upgrade-to-angular-16.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-16.js +29 -18
- package/dist/migration/upgrade-to-angular-16.js.map +1 -1
- package/dist/migration/upgrade-to-angular-17.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-17.js +18 -8
- package/dist/migration/upgrade-to-angular-17.js.map +1 -1
- package/dist/migration/upgrade-to-angular-18.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-18.js +39 -35
- package/dist/migration/upgrade-to-angular-18.js.map +1 -1
- package/dist/migration/upgrade-to-angular-19.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-19.js +30 -19
- package/dist/migration/upgrade-to-angular-19.js.map +1 -1
- package/dist/migration/upgrade-to-angular-20.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-20.js +35 -20
- package/dist/migration/upgrade-to-angular-20.js.map +1 -1
- package/dist/migration/upgrade-to-angular-21.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-21.js +23 -16
- package/dist/migration/upgrade-to-angular-21.js.map +1 -1
- package/dist/migration/upgrade-to-angular-22.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-22.js +51 -29
- package/dist/migration/upgrade-to-angular-22.js.map +1 -1
- package/dist/migration/upgrade-to-angular-8.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-8.js +3 -2
- package/dist/migration/upgrade-to-angular-8.js.map +1 -1
- package/dist/migration/upgrade-to-angular-9.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-9.js +19 -16
- package/dist/migration/upgrade-to-angular-9.js.map +1 -1
- package/dist/search/find-analyze-for-entry-components-usage.js +1 -1
- package/dist/search/find-analyze-for-entry-components-usage.js.map +1 -1
- package/dist/search/find-angular-decorator.d.ts.map +1 -1
- package/dist/search/find-angular-decorator.js +4 -2
- package/dist/search/find-angular-decorator.js.map +1 -1
- package/dist/search/find-animation-driver-matches-element.js +1 -1
- package/dist/search/find-animation-driver-matches-element.js.map +1 -1
- package/dist/search/find-async-test-helper-usage.d.ts.map +1 -1
- package/dist/search/find-async-test-helper-usage.js +3 -3
- package/dist/search/find-async-test-helper-usage.js.map +1 -1
- package/dist/search/find-browser-transfer-state-module-usage.js +2 -2
- package/dist/search/find-browser-transfer-state-module-usage.js.map +1 -1
- package/dist/search/find-can-match-usage.js +1 -1
- package/dist/search/find-can-match-usage.js.map +1 -1
- package/dist/search/find-check-no-changes-usage.d.ts.map +1 -1
- package/dist/search/find-check-no-changes-usage.js +4 -6
- package/dist/search/find-check-no-changes-usage.js.map +1 -1
- package/dist/search/find-common-module-usage.js +1 -1
- package/dist/search/find-common-module-usage.js.map +1 -1
- package/dist/search/find-compiler-factory-usage.js +2 -2
- package/dist/search/find-compiler-factory-usage.js.map +1 -1
- package/dist/search/find-date-pipe-default-timezone-usage.js +3 -3
- package/dist/search/find-date-pipe-default-timezone-usage.js.map +1 -1
- package/dist/search/find-effect-timing-usage.d.ts.map +1 -1
- package/dist/search/find-effect-timing-usage.js +4 -10
- package/dist/search/find-effect-timing-usage.js.map +1 -1
- package/dist/search/find-empty-projectable-nodes.d.ts.map +1 -1
- package/dist/search/find-empty-projectable-nodes.js +5 -9
- package/dist/search/find-empty-projectable-nodes.js.map +1 -1
- package/dist/search/find-fake-async-usage.d.ts.map +1 -1
- package/dist/search/find-fake-async-usage.js +9 -11
- package/dist/search/find-fake-async-usage.js.map +1 -1
- package/dist/search/find-hammer-js-usage.d.ts.map +1 -1
- package/dist/search/find-hammer-js-usage.js +7 -7
- package/dist/search/find-hammer-js-usage.js.map +1 -1
- package/dist/search/find-http-xhr-backend-usage.js +1 -1
- package/dist/search/find-http-xhr-backend-usage.js.map +1 -1
- package/dist/search/find-implicit-params-inheritance.d.ts.map +1 -1
- package/dist/search/find-implicit-params-inheritance.js +6 -8
- package/dist/search/find-implicit-params-inheritance.js.map +1 -1
- package/dist/search/find-karma-usage.js +1 -1
- package/dist/search/find-karma-usage.js.map +1 -1
- package/dist/search/find-ng-class-usage.js +1 -1
- package/dist/search/find-ng-class-usage.js.map +1 -1
- package/dist/search/find-ng-style-usage.js +1 -1
- package/dist/search/find-ng-style-usage.js.map +1 -1
- package/dist/search/find-path-match-type-usage.js +2 -2
- package/dist/search/find-path-match-type-usage.js.map +1 -1
- package/dist/search/find-platform-dynamic-server-usage.d.ts.map +1 -1
- package/dist/search/find-platform-dynamic-server-usage.js +2 -2
- package/dist/search/find-platform-dynamic-server-usage.js.map +1 -1
- package/dist/search/find-platform-worker-usage.d.ts.map +1 -1
- package/dist/search/find-platform-worker-usage.js +2 -2
- package/dist/search/find-platform-worker-usage.js.map +1 -1
- package/dist/search/find-provide-routes-usage.js +1 -1
- package/dist/search/find-provide-routes-usage.js.map +1 -1
- package/dist/search/find-provided-in-deprecated-usage.js +2 -2
- package/dist/search/find-provided-in-deprecated-usage.js.map +1 -1
- package/dist/search/find-reflective-injector-usage.js +2 -2
- package/dist/search/find-reflective-injector-usage.js.map +1 -1
- package/dist/search/find-render-application-usage.js +3 -3
- package/dist/search/find-render-application-usage.js.map +1 -1
- package/dist/search/find-render-module-factory-usage.js +2 -2
- package/dist/search/find-render-module-factory-usage.js.map +1 -1
- package/dist/search/find-resource-cache-provider-usage.d.ts.map +1 -1
- package/dist/search/find-resource-cache-provider-usage.js +2 -2
- package/dist/search/find-resource-cache-provider-usage.js.map +1 -1
- package/dist/search/find-server-transfer-state-module-usage.d.ts.map +1 -1
- package/dist/search/find-server-transfer-state-module-usage.js +2 -2
- package/dist/search/find-server-transfer-state-module-usage.js.map +1 -1
- package/dist/search/find-setup-testing-router-usage.js +2 -2
- package/dist/search/find-setup-testing-router-usage.js.map +1 -1
- package/dist/search/find-template-safe-navigation.js +1 -1
- package/dist/search/find-template-safe-navigation.js.map +1 -1
- package/dist/search/find-testability-pending-request-usage.js +1 -1
- package/dist/search/find-testability-pending-request-usage.js.map +1 -1
- package/dist/search/find-with-no-dom-reuse-usage.js +2 -2
- package/dist/search/find-with-no-dom-reuse-usage.js.map +1 -1
- package/dist/search/find-wrapped-value-usage.js +1 -1
- package/dist/search/find-wrapped-value-usage.js.map +1 -1
- package/dist/search/find-zone-js-usage.d.ts.map +1 -1
- package/dist/search/find-zone-js-usage.js +3 -5
- package/dist/search/find-zone-js-usage.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +121 -36
- package/src/libraries/cdk/find-cdk-signature-changes.ts +15 -41
- package/src/libraries/cdk/migrate-cdk-stepper.ts +2 -12
- package/src/libraries/cdk/migrate-drag-drop-registry.ts +2 -10
- package/src/libraries/cdk/migrate-focus-trap-factory-create.ts +4 -4
- package/src/libraries/cdk/remove-cdk-super-arguments.ts +8 -15
- package/src/libraries/cdk/remove-dialog-component-factory-resolver.ts +50 -0
- package/src/libraries/cdk/remove-portal-factory-resolver-arguments.ts +9 -13
- package/src/libraries/cdk/upgrade-to-cdk.ts +4 -2
- package/src/libraries/components/lst.ts +27 -1
- package/src/libraries/components/package-version.ts +59 -0
- package/src/libraries/components/symbols.ts +1 -3
- package/src/libraries/material/find-chip-input-event-without-chip-input.ts +3 -10
- package/src/libraries/material/find-material-constructor-changes.ts +8 -15
- package/src/libraries/material/find-mixin-error-state-without-state-changes.ts +8 -11
- package/src/libraries/material/find-removed-material-members.ts +6 -6
- package/src/libraries/material/material-version.ts +3 -48
- package/src/libraries/material/migrate-list-item-harness-content-loader.ts +4 -4
- package/src/libraries/material/migrate-material-secondary-entry-points.ts +4 -6
- package/src/libraries/material/remove-mat-stepper-document-argument.ts +4 -12
- package/src/libraries/material/remove-update-active-link-argument.ts +4 -6
- package/src/libraries/material/rename-material-members.ts +8 -9
- package/src/libraries/ngrx/add-ngrx-operators-dependency.ts +127 -0
- package/src/libraries/ngrx/disable-signal-store-protected-state.ts +141 -0
- package/src/libraries/ngrx/find-entity-get-initial-state-arguments.ts +33 -0
- package/src/libraries/ngrx/find-entity-select-id-usage.ts +45 -0
- package/src/libraries/ngrx/find-eslintrc-ngrx-config.ts +94 -0
- package/src/libraries/ngrx/find-method-callback-inputs.ts +51 -0
- package/src/libraries/ngrx/find-removed-ngrx-20-apis.ts +20 -0
- package/src/libraries/ngrx/find-removed-ngrx-apis.ts +51 -0
- package/src/libraries/ngrx/find-select-query-param-usage.ts +31 -0
- package/src/libraries/ngrx/find-union-deep-signals.ts +250 -0
- package/src/libraries/ngrx/migrate-create-feature-selector-generics.ts +40 -0
- package/src/libraries/ngrx/migrate-create-selector-generics.ts +65 -0
- package/src/libraries/ngrx/migrate-effect-decorators.ts +110 -0
- package/src/libraries/ngrx/migrate-provide-effects-array.ts +41 -0
- package/src/libraries/ngrx/migrate-reactive-component-module.ts +60 -0
- package/src/libraries/ngrx/migrate-store-devtools-connect-in-zone.ts +119 -0
- package/src/libraries/ngrx/migrate-tap-response.ts +64 -0
- package/src/libraries/ngrx/ngrx-migration.ts +93 -0
- package/src/libraries/ngrx/remove-create-feature-generics.ts +31 -0
- package/src/libraries/ngrx/rename-computed-to-props.ts +100 -0
- package/src/libraries/ngrx/rename-eslint-plugin-v9-imports.ts +31 -0
- package/src/libraries/ngrx/rename-rx-method-unsubscribe.ts +45 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-12.ts +36 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-13.ts +45 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-14.ts +42 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-15.ts +53 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-16.ts +45 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-17.ts +43 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-18.ts +55 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-19.ts +48 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-20.ts +45 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-21.ts +44 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-22.ts +47 -0
- package/src/libraries/ngrx/upgrade-to-ngrx-support.ts +32 -0
- package/src/libraries/primeng/18/add-primeng-provider.ts +2 -22
- package/src/libraries/primeng/18/index.ts +1 -6
- package/src/libraries/primeng/18/mark-deprecated-css-classes.ts +9 -21
- package/src/libraries/primeng/18/mark-drawer-size.ts +1 -10
- package/src/libraries/primeng/18/mark-removed-primeng-modules.ts +2 -4
- package/src/libraries/primeng/18/migrate-messages-to-message-loop.ts +4 -11
- package/src/libraries/primeng/18/migrate-p-fluid-to-wrapper.ts +7 -32
- package/src/libraries/primeng/18/migrate-primeng-config.ts +26 -21
- package/src/libraries/primeng/18/migrate-primeng-signal-assignments.ts +9 -32
- package/src/libraries/primeng/18/rename-template-selectors.ts +3 -15
- package/src/libraries/primeng/18/upgrade-components-to-18.ts +16 -13
- package/src/migration/add-default-configuration.ts +4 -3
- package/src/migration/add-localize-polyfill.ts +3 -1
- package/src/migration/add-no-incremental-hydration.ts +18 -12
- package/src/migration/add-static-false-to-view-queries.ts +0 -8
- package/src/migration/add-testbed-teardown.ts +2 -1
- package/src/migration/angular-http-support.ts +5 -4
- package/src/migration/angular-version.ts +105 -0
- package/src/migration/enable-aot-build.ts +9 -9
- package/src/migration/escape-block-syntax-characters.ts +300 -0
- package/src/migration/explicit-standalone-flag.ts +1 -2
- package/src/migration/js-support.ts +12 -1
- package/src/migration/json-support.ts +3 -2
- package/src/migration/migrate-constructor-to-inject.ts +1 -6
- package/src/migration/migrate-input-to-signal.ts +5 -12
- package/src/migration/migrate-model-with-output.ts +1 -3
- package/src/migration/migrate-output-to-signal.ts +6 -81
- package/src/migration/migrate-query-to-signal.ts +5 -11
- package/src/migration/migrate-to-solution-style-tsconfig.ts +9 -5
- package/src/migration/move-document-to-core.ts +17 -5
- package/src/migration/remove-browser-module-with-server-transition.ts +1 -1
- package/src/migration/remove-component-factory-resolver.ts +8 -3
- package/src/migration/remove-entry-components.ts +0 -4
- package/src/migration/remove-es5-browser-support.ts +1 -1
- package/src/migration/remove-extract-css.ts +1 -1
- package/src/migration/remove-response-json-unwrap.ts +3 -14
- package/src/migration/remove-zone-js-polyfill.ts +0 -4
- package/src/migration/rename-check-no-changes.ts +1 -1
- package/src/migration/rename-default-change-detection.ts +2 -2
- package/src/migration/replace-async-with-wait-for-async.ts +15 -15
- package/src/migration/replace-date-pipe-default-timezone.ts +171 -0
- package/src/migration/replace-get-current-navigation.ts +5 -12
- package/src/migration/replace-headers-with-http-headers.ts +1 -3
- package/src/migration/replace-http-client-module.ts +1 -1
- package/src/migration/replace-inject-flags.ts +10 -48
- package/src/migration/replace-preserve-query-params.ts +1 -3
- package/src/migration/replace-request-options.ts +3 -8
- package/src/migration/replace-testbed-get-with-inject.ts +4 -1
- package/src/migration/replace-untyped-forms.ts +27 -100
- package/src/migration/replace-validator-with-validators.ts +48 -24
- package/src/migration/replace-view-encapsulation-native.ts +2 -3
- package/src/migration/update-component-template-url.ts +37 -133
- package/src/migration/update-tsconfig-module.ts +2 -1
- package/src/migration/upgrade-angular-dependencies.ts +6 -0
- package/src/migration/upgrade-angular-peer-libs-to-18.ts +2 -4
- package/src/migration/upgrade-to-angular-10.ts +12 -9
- package/src/migration/upgrade-to-angular-11.ts +22 -14
- package/src/migration/upgrade-to-angular-12.ts +15 -10
- package/src/migration/upgrade-to-angular-13.ts +16 -9
- package/src/migration/upgrade-to-angular-14.ts +18 -11
- package/src/migration/upgrade-to-angular-15.ts +19 -9
- package/src/migration/upgrade-to-angular-16.ts +29 -18
- package/src/migration/upgrade-to-angular-17.ts +18 -8
- package/src/migration/upgrade-to-angular-18.ts +39 -35
- package/src/migration/upgrade-to-angular-19.ts +30 -19
- package/src/migration/upgrade-to-angular-20.ts +35 -20
- package/src/migration/upgrade-to-angular-21.ts +23 -16
- package/src/migration/upgrade-to-angular-22.ts +51 -29
- package/src/migration/upgrade-to-angular-8.ts +3 -2
- package/src/migration/upgrade-to-angular-9.ts +19 -16
- package/src/search/find-analyze-for-entry-components-usage.ts +1 -1
- package/src/search/find-angular-decorator.ts +5 -2
- package/src/search/find-animation-driver-matches-element.ts +1 -1
- package/src/search/find-async-test-helper-usage.ts +3 -3
- package/src/search/find-browser-transfer-state-module-usage.ts +2 -2
- package/src/search/find-can-match-usage.ts +1 -1
- package/src/search/find-check-no-changes-usage.ts +7 -7
- package/src/search/find-common-module-usage.ts +1 -1
- package/src/search/find-compiler-factory-usage.ts +2 -2
- package/src/search/find-date-pipe-default-timezone-usage.ts +3 -3
- package/src/search/find-effect-timing-usage.ts +7 -12
- package/src/search/find-empty-projectable-nodes.ts +6 -10
- package/src/search/find-fake-async-usage.ts +12 -12
- package/src/search/find-hammer-js-usage.ts +8 -6
- package/src/search/find-http-xhr-backend-usage.ts +1 -1
- package/src/search/find-implicit-params-inheritance.ts +9 -9
- package/src/search/find-karma-usage.ts +1 -1
- package/src/search/find-ng-class-usage.ts +1 -1
- package/src/search/find-ng-style-usage.ts +1 -1
- package/src/search/find-path-match-type-usage.ts +2 -2
- package/src/search/find-platform-dynamic-server-usage.ts +2 -2
- package/src/search/find-platform-worker-usage.ts +2 -2
- package/src/search/find-provide-routes-usage.ts +1 -1
- package/src/search/find-provided-in-deprecated-usage.ts +2 -2
- package/src/search/find-reflective-injector-usage.ts +2 -2
- package/src/search/find-render-application-usage.ts +3 -3
- package/src/search/find-render-module-factory-usage.ts +2 -2
- package/src/search/find-resource-cache-provider-usage.ts +2 -2
- package/src/search/find-server-transfer-state-module-usage.ts +2 -2
- package/src/search/find-setup-testing-router-usage.ts +2 -2
- package/src/search/find-template-safe-navigation.ts +1 -1
- package/src/search/find-testability-pending-request-usage.ts +1 -1
- package/src/search/find-with-no-dom-reuse-usage.ts +2 -2
- package/src/search/find-wrapped-value-usage.ts +1 -1
- package/src/search/find-zone-js-usage.ts +3 -4
- package/dist/libraries/primeng/18/rename-calendar-to-datepicker.d.ts +0 -8
- package/dist/libraries/primeng/18/rename-calendar-to-datepicker.d.ts.map +0 -1
- package/dist/libraries/primeng/18/rename-calendar-to-datepicker.js +0 -49
- package/dist/libraries/primeng/18/rename-calendar-to-datepicker.js.map +0 -1
- package/dist/libraries/primeng/18/rename-dropdown-to-select.d.ts +0 -8
- package/dist/libraries/primeng/18/rename-dropdown-to-select.d.ts.map +0 -1
- package/dist/libraries/primeng/18/rename-dropdown-to-select.js +0 -49
- package/dist/libraries/primeng/18/rename-dropdown-to-select.js.map +0 -1
- package/dist/libraries/primeng/18/rename-inputswitch-to-toggleswitch.d.ts +0 -8
- package/dist/libraries/primeng/18/rename-inputswitch-to-toggleswitch.d.ts.map +0 -1
- package/dist/libraries/primeng/18/rename-inputswitch-to-toggleswitch.js +0 -49
- package/dist/libraries/primeng/18/rename-inputswitch-to-toggleswitch.js.map +0 -1
- package/dist/libraries/primeng/18/rename-message-interface.d.ts +0 -8
- package/dist/libraries/primeng/18/rename-message-interface.d.ts.map +0 -1
- package/dist/libraries/primeng/18/rename-message-interface.js +0 -43
- package/dist/libraries/primeng/18/rename-message-interface.js.map +0 -1
- package/dist/libraries/primeng/18/rename-overlaypanel-to-popover.d.ts +0 -8
- package/dist/libraries/primeng/18/rename-overlaypanel-to-popover.d.ts.map +0 -1
- package/dist/libraries/primeng/18/rename-overlaypanel-to-popover.js +0 -49
- package/dist/libraries/primeng/18/rename-overlaypanel-to-popover.js.map +0 -1
- package/dist/libraries/primeng/18/rename-sidebar-to-drawer.d.ts +0 -8
- package/dist/libraries/primeng/18/rename-sidebar-to-drawer.d.ts.map +0 -1
- package/dist/libraries/primeng/18/rename-sidebar-to-drawer.js +0 -49
- package/dist/libraries/primeng/18/rename-sidebar-to-drawer.js.map +0 -1
- package/dist/migration/rename-after-render.d.ts +0 -8
- package/dist/migration/rename-after-render.d.ts.map +0 -1
- package/dist/migration/rename-after-render.js +0 -41
- package/dist/migration/rename-after-render.js.map +0 -1
- package/dist/migration/rename-angular-js-globals.d.ts +0 -8
- package/dist/migration/rename-angular-js-globals.d.ts.map +0 -1
- package/dist/migration/rename-angular-js-globals.js.map +0 -1
- package/dist/migration/rename-pending-tasks.d.ts +0 -8
- package/dist/migration/rename-pending-tasks.d.ts.map +0 -1
- package/dist/migration/rename-pending-tasks.js +0 -41
- package/dist/migration/rename-pending-tasks.js.map +0 -1
- package/dist/migration/rename-zoneless-provider.d.ts +0 -8
- package/dist/migration/rename-zoneless-provider.d.ts.map +0 -1
- package/dist/migration/rename-zoneless-provider.js +0 -41
- package/dist/migration/rename-zoneless-provider.js.map +0 -1
- package/dist/migration/replace-create-ng-module-ref.d.ts +0 -8
- package/dist/migration/replace-create-ng-module-ref.d.ts.map +0 -1
- package/dist/migration/replace-create-ng-module-ref.js.map +0 -1
- package/dist/migration/replace-router-link-with-href.d.ts +0 -8
- package/dist/migration/replace-router-link-with-href.d.ts.map +0 -1
- package/dist/migration/replace-router-link-with-href.js +0 -55
- package/dist/migration/replace-router-link-with-href.js.map +0 -1
- package/src/libraries/primeng/18/rename-calendar-to-datepicker.ts +0 -33
- package/src/libraries/primeng/18/rename-dropdown-to-select.ts +0 -33
- package/src/libraries/primeng/18/rename-inputswitch-to-toggleswitch.ts +0 -33
- package/src/libraries/primeng/18/rename-message-interface.ts +0 -27
- package/src/libraries/primeng/18/rename-overlaypanel-to-popover.ts +0 -33
- package/src/libraries/primeng/18/rename-sidebar-to-drawer.ts +0 -33
- package/src/migration/rename-after-render.ts +0 -24
- package/src/migration/rename-angular-js-globals.ts +0 -37
- package/src/migration/rename-pending-tasks.ts +0 -24
- package/src/migration/rename-zoneless-provider.ts +0 -24
- package/src/migration/replace-create-ng-module-ref.ts +0 -32
- package/src/migration/replace-router-link-with-href.ts +0 -37
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {requires, upgradeNgRxDependencies} from "./upgrade-to-ngrx-support";
|
|
9
|
+
import {renameSymbols} from "../components/symbols";
|
|
10
|
+
import {UpgradeToNgRx14CodeChanges} from "./upgrade-to-ngrx-14";
|
|
11
|
+
import {MigrateProvideEffectsArray} from "./migrate-provide-effects-array";
|
|
12
|
+
import {RemoveCreateFeatureGenerics} from "./remove-create-feature-generics";
|
|
13
|
+
import {MigrateReactiveComponentModule} from "./migrate-reactive-component-module";
|
|
14
|
+
import {FindRemovedNgRx15Apis} from "./find-removed-ngrx-apis";
|
|
15
|
+
|
|
16
|
+
export class UpgradeToNgRx15CodeChanges extends Recipe {
|
|
17
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx15CodeChanges";
|
|
18
|
+
readonly displayName = "NgRx 15 code changes";
|
|
19
|
+
readonly description = "The source changes of the NgRx 15 migration, without the dependency version bumps, after those of NgRx 14: " +
|
|
20
|
+
"spreads the array passed to `provideEffects`, removes the type arguments of `createFeature`, renames " +
|
|
21
|
+
"`getSelectors` of `@ngrx/router-store`, replaces `ReactiveComponentModule`, and finds the removed `@Effect()` " +
|
|
22
|
+
"and `ReactiveComponentModule` that are left. " +
|
|
23
|
+
"Use `UpgradeToNgRx15` unless you are composing a migration to a later major.";
|
|
24
|
+
|
|
25
|
+
async recipeList(): Promise<Recipe[]> {
|
|
26
|
+
return [
|
|
27
|
+
new UpgradeToNgRx14CodeChanges(),
|
|
28
|
+
new MigrateProvideEffectsArray(),
|
|
29
|
+
new RemoveCreateFeatureGenerics(),
|
|
30
|
+
...renameSymbols([
|
|
31
|
+
{module: '@ngrx/router-store', name: 'getSelectors', newName: 'getRouterSelectors'},
|
|
32
|
+
]),
|
|
33
|
+
new MigrateReactiveComponentModule(),
|
|
34
|
+
new FindRemovedNgRx15Apis(),
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class UpgradeToNgRx15 extends Recipe {
|
|
40
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx15";
|
|
41
|
+
readonly displayName = "Upgrade to NgRx 15";
|
|
42
|
+
readonly description = "Migrates NgRx applications to NgRx 15: upgrades the `@ngrx/*` packages to 15.x and makes the source " +
|
|
43
|
+
"changes of `ng update` for `@ngrx/store`, `@ngrx/effects`, `@ngrx/router-store` and `@ngrx/component` 15, " +
|
|
44
|
+
"including those of NgRx 12 to 14. " +
|
|
45
|
+
requires(15);
|
|
46
|
+
|
|
47
|
+
async recipeList(): Promise<Recipe[]> {
|
|
48
|
+
return [
|
|
49
|
+
new UpgradeToNgRx15CodeChanges(),
|
|
50
|
+
await upgradeNgRxDependencies(15),
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {requires, upgradeNgRxDependencies} from "./upgrade-to-ngrx-support";
|
|
9
|
+
import {renameSymbols} from "../components/symbols";
|
|
10
|
+
import {UpgradeToNgRx15CodeChanges} from "./upgrade-to-ngrx-15";
|
|
11
|
+
|
|
12
|
+
export class UpgradeToNgRx16CodeChanges extends Recipe {
|
|
13
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx16CodeChanges";
|
|
14
|
+
readonly displayName = "NgRx 16 code changes";
|
|
15
|
+
readonly description = "The source changes of the NgRx 16 migration, without the dependency version bumps, after those of NgRx 15: " +
|
|
16
|
+
"renames `getMockStore` to `createMockStore`, and `LetModule` and `PushModule` to `LetDirective` and `PushPipe`. " +
|
|
17
|
+
"Use `UpgradeToNgRx16` unless you are composing a migration to a later major.";
|
|
18
|
+
|
|
19
|
+
async recipeList(): Promise<Recipe[]> {
|
|
20
|
+
return [
|
|
21
|
+
new UpgradeToNgRx15CodeChanges(),
|
|
22
|
+
...renameSymbols([
|
|
23
|
+
{module: '@ngrx/store/testing', name: 'getMockStore', newName: 'createMockStore'},
|
|
24
|
+
{module: '@ngrx/store', name: 'getMockStore', newName: 'createMockStore'},
|
|
25
|
+
{module: '@ngrx/component', name: 'LetModule', newName: 'LetDirective'},
|
|
26
|
+
{module: '@ngrx/component', name: 'PushModule', newName: 'PushPipe'},
|
|
27
|
+
]),
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class UpgradeToNgRx16 extends Recipe {
|
|
33
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx16";
|
|
34
|
+
readonly displayName = "Upgrade to NgRx 16";
|
|
35
|
+
readonly description = "Migrates NgRx applications to NgRx 16: upgrades the `@ngrx/*` packages to 16.x and makes the source " +
|
|
36
|
+
"changes of `ng update @ngrx/store@16` and `ng update @ngrx/component@16`, including those of NgRx 12 to 15. " +
|
|
37
|
+
requires(16);
|
|
38
|
+
|
|
39
|
+
async recipeList(): Promise<Recipe[]> {
|
|
40
|
+
return [
|
|
41
|
+
new UpgradeToNgRx16CodeChanges(),
|
|
42
|
+
await upgradeNgRxDependencies(16),
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {requires, upgradeNgRxDependencies} from "./upgrade-to-ngrx-support";
|
|
9
|
+
import {UpgradeToNgRx16CodeChanges} from "./upgrade-to-ngrx-16";
|
|
10
|
+
import {MigrateStoreDevtoolsConnectInZone} from "./migrate-store-devtools-connect-in-zone";
|
|
11
|
+
import {FindRemovedNgRx17Apis} from "./find-removed-ngrx-apis";
|
|
12
|
+
|
|
13
|
+
export class UpgradeToNgRx17CodeChanges extends Recipe {
|
|
14
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx17CodeChanges";
|
|
15
|
+
readonly displayName = "NgRx 17 code changes";
|
|
16
|
+
readonly description = "The source changes of the NgRx 17 migration, without the dependency version bumps, after those of NgRx 16: " +
|
|
17
|
+
"replaces `connectOutsideZone` with `connectInZone` in the store devtools config, and finds the removed " +
|
|
18
|
+
"`LetModule` and `PushModule`. " +
|
|
19
|
+
"Use `UpgradeToNgRx17` unless you are composing a migration to a later major.";
|
|
20
|
+
|
|
21
|
+
async recipeList(): Promise<Recipe[]> {
|
|
22
|
+
return [
|
|
23
|
+
new UpgradeToNgRx16CodeChanges(),
|
|
24
|
+
new MigrateStoreDevtoolsConnectInZone(),
|
|
25
|
+
new FindRemovedNgRx17Apis(),
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class UpgradeToNgRx17 extends Recipe {
|
|
31
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx17";
|
|
32
|
+
readonly displayName = "Upgrade to NgRx 17";
|
|
33
|
+
readonly description = "Migrates NgRx applications to NgRx 17: upgrades the `@ngrx/*` packages to 17.x and makes the source " +
|
|
34
|
+
"changes of `ng update @ngrx/store-devtools@17`, including those of NgRx 12 to 16. " +
|
|
35
|
+
requires(17);
|
|
36
|
+
|
|
37
|
+
async recipeList(): Promise<Recipe[]> {
|
|
38
|
+
return [
|
|
39
|
+
new UpgradeToNgRx17CodeChanges(),
|
|
40
|
+
await upgradeNgRxDependencies(17),
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {requires, upgradeNgRxDependencies} from "./upgrade-to-ngrx-support";
|
|
9
|
+
import {renameSymbols} from "../components/symbols";
|
|
10
|
+
import {UpgradeToNgRx17CodeChanges} from "./upgrade-to-ngrx-17";
|
|
11
|
+
import {AddNgRxOperatorsDependency} from "./add-ngrx-operators-dependency";
|
|
12
|
+
import {DisableSignalStoreProtectedState} from "./disable-signal-store-protected-state";
|
|
13
|
+
import {FindSelectQueryParamUsage} from "./find-select-query-param-usage";
|
|
14
|
+
|
|
15
|
+
export class UpgradeToNgRx18CodeChanges extends Recipe {
|
|
16
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx18CodeChanges";
|
|
17
|
+
readonly displayName = "NgRx 18 code changes";
|
|
18
|
+
readonly description = "The source changes of the NgRx 18 migration, without the dependency version bumps: " +
|
|
19
|
+
"moves `concatLatestFrom` and `tapResponse` to `@ngrx/operators` and declares that package where it is imported, renames " +
|
|
20
|
+
"`TypedAction` to `Action` and `StateSignal` to `WritableStateSource`, keeps the state of signal stores " +
|
|
21
|
+
"unprotected, and finds the uses of `selectQueryParam`. Use `UpgradeToNgRx18` unless you are composing a " +
|
|
22
|
+
"migration to a later major.";
|
|
23
|
+
|
|
24
|
+
async recipeList(): Promise<Recipe[]> {
|
|
25
|
+
return [
|
|
26
|
+
new UpgradeToNgRx17CodeChanges(),
|
|
27
|
+
...renameSymbols([
|
|
28
|
+
{module: '@ngrx/effects', name: 'concatLatestFrom', newName: 'concatLatestFrom', newModule: '@ngrx/operators'},
|
|
29
|
+
{module: '@ngrx/component-store', name: 'tapResponse', newName: 'tapResponse', newModule: '@ngrx/operators'},
|
|
30
|
+
]),
|
|
31
|
+
new AddNgRxOperatorsDependency(),
|
|
32
|
+
...renameSymbols([
|
|
33
|
+
{module: '@ngrx/store/src/models', name: 'TypedAction', newName: 'Action', newModule: '@ngrx/store'},
|
|
34
|
+
{module: '@ngrx/store', name: 'TypedAction', newName: 'Action'},
|
|
35
|
+
{module: '@ngrx/signals', name: 'StateSignal', newName: 'WritableStateSource'},
|
|
36
|
+
]),
|
|
37
|
+
new DisableSignalStoreProtectedState(),
|
|
38
|
+
new FindSelectQueryParamUsage(),
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class UpgradeToNgRx18 extends Recipe {
|
|
44
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx18";
|
|
45
|
+
readonly displayName = "Upgrade to NgRx 18";
|
|
46
|
+
readonly description = "Migrates NgRx applications to NgRx 18: upgrades the `@ngrx/*` packages to 18.x and makes " +
|
|
47
|
+
"the source changes of `ng update @ngrx/store@18` and `ng update @ngrx/signals@18`. " + requires(18);
|
|
48
|
+
|
|
49
|
+
async recipeList(): Promise<Recipe[]> {
|
|
50
|
+
return [
|
|
51
|
+
new UpgradeToNgRx18CodeChanges(),
|
|
52
|
+
await upgradeNgRxDependencies(18),
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {requires, upgradeNgRxDependencies} from "./upgrade-to-ngrx-support";
|
|
9
|
+
import {renameSymbols} from "../components/symbols";
|
|
10
|
+
import {UpgradeToNgRx18CodeChanges} from "./upgrade-to-ngrx-18";
|
|
11
|
+
import {RenameSignalStoreFeatureComputedToProps} from "./rename-computed-to-props";
|
|
12
|
+
import {RenameRxMethodUnsubscribe} from "./rename-rx-method-unsubscribe";
|
|
13
|
+
|
|
14
|
+
export class UpgradeToNgRx19CodeChanges extends Recipe {
|
|
15
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx19CodeChanges";
|
|
16
|
+
readonly displayName = "NgRx 19 code changes";
|
|
17
|
+
readonly description = "The source changes of the NgRx 19 migration, without the dependency version bumps, after " +
|
|
18
|
+
"those of NgRx 18: renames `computed` to `props` in signal store features and `EntityComputed` to " +
|
|
19
|
+
"`EntityProps`, and `unsubscribe` of `rxMethod` to `destroy`. Use `UpgradeToNgRx19` unless you are " +
|
|
20
|
+
"composing a migration to a later major.";
|
|
21
|
+
|
|
22
|
+
async recipeList(): Promise<Recipe[]> {
|
|
23
|
+
return [
|
|
24
|
+
new UpgradeToNgRx18CodeChanges(),
|
|
25
|
+
new RenameSignalStoreFeatureComputedToProps(),
|
|
26
|
+
...renameSymbols([
|
|
27
|
+
{module: '@ngrx/signals/entities', name: 'EntityComputed', newName: 'EntityProps'},
|
|
28
|
+
{module: '@ngrx/signals/entities', name: 'NamedEntityComputed', newName: 'NamedEntityProps'},
|
|
29
|
+
]),
|
|
30
|
+
new RenameRxMethodUnsubscribe(),
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class UpgradeToNgRx19 extends Recipe {
|
|
36
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx19";
|
|
37
|
+
readonly displayName = "Upgrade to NgRx 19";
|
|
38
|
+
readonly description = "Migrates NgRx applications to NgRx 19: upgrades the `@ngrx/*` packages to 19.x and makes " +
|
|
39
|
+
"the source changes of `ng update @ngrx/store@19` and `ng update @ngrx/signals@19`, including those of " +
|
|
40
|
+
"NgRx 18. " + requires(19);
|
|
41
|
+
|
|
42
|
+
async recipeList(): Promise<Recipe[]> {
|
|
43
|
+
return [
|
|
44
|
+
new UpgradeToNgRx19CodeChanges(),
|
|
45
|
+
await upgradeNgRxDependencies(19),
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {requires, upgradeNgRxDependencies} from "./upgrade-to-ngrx-support";
|
|
9
|
+
import {UpgradeToNgRx19CodeChanges} from "./upgrade-to-ngrx-19";
|
|
10
|
+
import {MigrateTapResponse} from "./migrate-tap-response";
|
|
11
|
+
import {FindRemovedNgRx20Apis} from "./find-removed-ngrx-20-apis";
|
|
12
|
+
import {FindEntityGetInitialStateArguments} from "./find-entity-get-initial-state-arguments";
|
|
13
|
+
|
|
14
|
+
export class UpgradeToNgRx20CodeChanges extends Recipe {
|
|
15
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx20CodeChanges";
|
|
16
|
+
readonly displayName = "NgRx 20 code changes";
|
|
17
|
+
readonly description = "The source changes of the NgRx 20 migration, without the dependency version bumps, after " +
|
|
18
|
+
"those of NgRx 19: passes an object to `tapResponse`, and finds the removed `act` operator and the " +
|
|
19
|
+
"`getInitialState` calls that pass additional state. Use `UpgradeToNgRx20` unless you are composing a " +
|
|
20
|
+
"migration to a later major.";
|
|
21
|
+
|
|
22
|
+
async recipeList(): Promise<Recipe[]> {
|
|
23
|
+
return [
|
|
24
|
+
new UpgradeToNgRx19CodeChanges(),
|
|
25
|
+
new MigrateTapResponse(),
|
|
26
|
+
new FindRemovedNgRx20Apis(),
|
|
27
|
+
new FindEntityGetInitialStateArguments(),
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class UpgradeToNgRx20 extends Recipe {
|
|
33
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx20";
|
|
34
|
+
readonly displayName = "Upgrade to NgRx 20";
|
|
35
|
+
readonly description = "Migrates NgRx applications to NgRx 20: upgrades the `@ngrx/*` packages to 20.x and makes " +
|
|
36
|
+
"the source changes of `ng update @ngrx/store@20` and `ng update @ngrx/signals@20`, including those of " +
|
|
37
|
+
"NgRx 18 and 19. " + requires(20);
|
|
38
|
+
|
|
39
|
+
async recipeList(): Promise<Recipe[]> {
|
|
40
|
+
return [
|
|
41
|
+
new UpgradeToNgRx20CodeChanges(),
|
|
42
|
+
await upgradeNgRxDependencies(20),
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {requires, upgradeNgRxDependencies} from "./upgrade-to-ngrx-support";
|
|
9
|
+
import {renameSymbols} from "../components/symbols";
|
|
10
|
+
import {UpgradeToNgRx20CodeChanges} from "./upgrade-to-ngrx-20";
|
|
11
|
+
import {FindMethodCallbackInputs} from "./find-method-callback-inputs";
|
|
12
|
+
|
|
13
|
+
export class UpgradeToNgRx21CodeChanges extends Recipe {
|
|
14
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx21CodeChanges";
|
|
15
|
+
readonly displayName = "NgRx 21 code changes";
|
|
16
|
+
readonly description = "The source changes of the NgRx 21 migration, without the dependency version bumps, after " +
|
|
17
|
+
"those of NgRx 20: renames `withEffects` to `withEventHandlers`, and finds the `rxMethod` and " +
|
|
18
|
+
"`signalMethod` calls whose input is a callback. Use `UpgradeToNgRx21` unless you are composing a " +
|
|
19
|
+
"migration to a later major.";
|
|
20
|
+
|
|
21
|
+
async recipeList(): Promise<Recipe[]> {
|
|
22
|
+
return [
|
|
23
|
+
new UpgradeToNgRx20CodeChanges(),
|
|
24
|
+
...renameSymbols([
|
|
25
|
+
{module: '@ngrx/signals/events', name: 'withEffects', newName: 'withEventHandlers'},
|
|
26
|
+
]),
|
|
27
|
+
new FindMethodCallbackInputs(),
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class UpgradeToNgRx21 extends Recipe {
|
|
33
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx21";
|
|
34
|
+
readonly displayName = "Upgrade to NgRx 21";
|
|
35
|
+
readonly description = "Migrates NgRx applications to NgRx 21: upgrades the `@ngrx/*` packages to 21.x and makes " +
|
|
36
|
+
"the source changes of `ng update @ngrx/store@21`, including those of NgRx 18 to 20. " + requires(21);
|
|
37
|
+
|
|
38
|
+
async recipeList(): Promise<Recipe[]> {
|
|
39
|
+
return [
|
|
40
|
+
new UpgradeToNgRx21CodeChanges(),
|
|
41
|
+
await upgradeNgRxDependencies(21),
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {requires, upgradeNgRxDependencies} from "./upgrade-to-ngrx-support";
|
|
9
|
+
import {UpgradeToNgRx21CodeChanges} from "./upgrade-to-ngrx-21";
|
|
10
|
+
import {RenameEslintPluginV9Imports} from "./rename-eslint-plugin-v9-imports";
|
|
11
|
+
import {FindEslintrcNgRxConfig} from "./find-eslintrc-ngrx-config";
|
|
12
|
+
import {FindEntitySelectIdUsage} from "./find-entity-select-id-usage";
|
|
13
|
+
import {FindUnionDeepSignals} from "./find-union-deep-signals";
|
|
14
|
+
|
|
15
|
+
export class UpgradeToNgRx22CodeChanges extends Recipe {
|
|
16
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx22CodeChanges";
|
|
17
|
+
readonly displayName = "NgRx 22 code changes";
|
|
18
|
+
readonly description = "The source changes of the NgRx 22 migration, without the dependency version bumps, after " +
|
|
19
|
+
"those of NgRx 21: renames the `@ngrx/eslint-plugin/v9` imports, and finds the NgRx plugin in eslintrc " +
|
|
20
|
+
"configs, the uses of `EntityAdapter.selectId` and the state unions that become deep signals. Use " +
|
|
21
|
+
"`UpgradeToNgRx22` unless you are composing a migration to a later major.";
|
|
22
|
+
|
|
23
|
+
async recipeList(): Promise<Recipe[]> {
|
|
24
|
+
return [
|
|
25
|
+
new UpgradeToNgRx21CodeChanges(),
|
|
26
|
+
new RenameEslintPluginV9Imports(),
|
|
27
|
+
new FindEslintrcNgRxConfig(),
|
|
28
|
+
new FindEntitySelectIdUsage(),
|
|
29
|
+
new FindUnionDeepSignals(),
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class UpgradeToNgRx22 extends Recipe {
|
|
35
|
+
readonly name = "org.openrewrite.angular.ngrx.UpgradeToNgRx22";
|
|
36
|
+
readonly displayName = "Upgrade to NgRx 22";
|
|
37
|
+
readonly description = "Migrates NgRx applications to NgRx 22: upgrades the `@ngrx/*` packages to 22.x and makes " +
|
|
38
|
+
"the source changes of `ng update @ngrx/store@22` and `ng update @ngrx/signals@22`, including those of " +
|
|
39
|
+
"NgRx 18 to 21. " + requires(22);
|
|
40
|
+
|
|
41
|
+
async recipeList(): Promise<Recipe[]> {
|
|
42
|
+
return [
|
|
43
|
+
new UpgradeToNgRx22CodeChanges(),
|
|
44
|
+
await upgradeNgRxDependencies(22),
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {Recipe} from "@openrewrite/rewrite";
|
|
8
|
+
import {prepareJavaRecipe} from "@openrewrite/rewrite/rpc";
|
|
9
|
+
|
|
10
|
+
// The `ng-update.packageGroup` of @ngrx/store, which `ng update @ngrx/store` moves to the same version.
|
|
11
|
+
// The packages share one version line, so @ngrx/signals, which has its own `ng update`, moves with them.
|
|
12
|
+
// `@ngrx/operators` exists since 18 and `@ngrx/signals` since 17; the others go back past 12.
|
|
13
|
+
const ngrxPackages = [
|
|
14
|
+
"store", "effects", "entity", "router-store", "data", "schematics", "store-devtools",
|
|
15
|
+
"component-store", "component", "eslint-plugin", "operators", "signals",
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
export function ngrxPackagesOf(major: number): string[] {
|
|
19
|
+
return ngrxPackages.filter(name => !(name === "operators" && major < 18) && !(name === "signals" && major < 17));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function upgradeNgRxDependencies(major: number): Promise<Recipe> {
|
|
23
|
+
return prepareJavaRecipe("org.openrewrite.javascript.UpgradeDependencyVersions", {
|
|
24
|
+
versions: Object.fromEntries(ngrxPackagesOf(major).map(name => [`@ngrx/${name}`, `${major}.x`])),
|
|
25
|
+
reconcileNpmPeerDependencies: true,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const requires = (major: number) => `NgRx ${major} requires Angular ${major}. ` +
|
|
30
|
+
`\`UpgradeToAngular${major}\` includes this migration and moves both in one edit; run this recipe alone only ` +
|
|
31
|
+
`on a project that is on Angular ${major} already, since an older Angular makes the package manager refuse the ` +
|
|
32
|
+
`bump, unless \`legacy-peer-deps\` lets it through.`;
|
|
@@ -64,12 +64,6 @@ function mapThemeToDarkMode(themeName: string): DarkMode {
|
|
|
64
64
|
return 'disabled';
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
/**
|
|
68
|
-
* Internal sub-recipe that strips any `primeng/resources` entry from the `styles`
|
|
69
|
-
* array in `angular.json`. Folded into `AddPrimengProvider`'s recipeList: now that
|
|
70
|
-
* the parent recipe wires in the v18 replacement (`providePrimeNG({ theme: { preset } })`),
|
|
71
|
-
* the v17 paths can be deleted cleanly — no TODO comments, no manual-migration row.
|
|
72
|
-
*/
|
|
73
67
|
class RemovePrimengResourcesFromAngularJson extends Recipe {
|
|
74
68
|
readonly name = "org.openrewrite.primeng.AddPrimengProvider.remove-primeng-resources";
|
|
75
69
|
readonly displayName = "Remove `primeng/resources` style references from `angular.json`";
|
|
@@ -102,22 +96,8 @@ class RemovePrimengResourcesFromAngularJson extends Recipe {
|
|
|
102
96
|
}
|
|
103
97
|
|
|
104
98
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* in your application providers.
|
|
108
|
-
*
|
|
109
|
-
* Scanner phase: looks at `angular.json`'s `styles` array for any `primeng/resources/themes/<X>`
|
|
110
|
-
* reference and maps `<X>` to the closest v18 preset (Aura, Lara, Nora, or Material).
|
|
111
|
-
*
|
|
112
|
-
* Editor phase: in the root `@NgModule` (the one with a `bootstrap:` field), appends
|
|
113
|
-
* `providePrimeNG({ theme: { preset: <Preset> } })` to its `providers` array and adds
|
|
114
|
-
* `import { providePrimeNG } from 'primeng/config';`
|
|
115
|
-
* `import <Preset> from '@primeng/themes/<preset>';`
|
|
116
|
-
*
|
|
117
|
-
* Sub-recipe: a follow-up `RemovePrimengResourcesFromAngularJson` deletes the v17 theme
|
|
118
|
-
* paths from `angular.json` since the new provider supersedes them. The two changes go
|
|
119
|
-
* together — adding the provider without removing the broken paths, or vice versa, leaves
|
|
120
|
-
* the project unbuildable.
|
|
99
|
+
* The provider and the removal of the v17 `primeng/resources` paths go together: either change alone leaves the project
|
|
100
|
+
* unbuildable.
|
|
121
101
|
*/
|
|
122
102
|
export class AddPrimengProvider extends ScanningRecipe<AddPrimengProviderAcc> {
|
|
123
103
|
readonly name = "org.openrewrite.primeng.AddPrimengProvider";
|
|
@@ -9,16 +9,11 @@ export {UpgradeComponentsTo18} from './upgrade-components-to-18';
|
|
|
9
9
|
export {MigratePrimeNgConfigToPrimeNG} from './migrate-primeng-config';
|
|
10
10
|
export {MigratePrimeNGSignalAssignments} from './migrate-primeng-signal-assignments';
|
|
11
11
|
export {MigrateMessagesToMessageLoop} from './migrate-messages-to-message-loop';
|
|
12
|
-
export {RenameCalendarToDatePicker} from './rename-calendar-to-datepicker';
|
|
13
|
-
export {RenameDropdownToSelect} from './rename-dropdown-to-select';
|
|
14
|
-
export {RenameInputSwitchToToggleSwitch} from './rename-inputswitch-to-toggleswitch';
|
|
15
|
-
export {RenameOverlayPanelToPopover} from './rename-overlaypanel-to-popover';
|
|
16
|
-
export {RenameSidebarToDrawer} from './rename-sidebar-to-drawer';
|
|
17
|
-
export {RenameMessageInterface} from './rename-message-interface';
|
|
18
12
|
export {RenameTemplateSelectors} from './rename-template-selectors';
|
|
19
13
|
export {MarkRemovedPrimengModules} from './mark-removed-primeng-modules';
|
|
20
14
|
export {MarkDeprecatedPrimengComponents} from './mark-deprecated-components';
|
|
21
15
|
export {MarkDeprecatedPrimengCssClasses} from './mark-deprecated-css-classes';
|
|
16
|
+
export {MigratePFluidToWrapper} from './migrate-p-fluid-to-wrapper';
|
|
22
17
|
export {MarkDrawerSize} from './mark-drawer-size';
|
|
23
18
|
export {AddPrimengProvider} from './add-primeng-provider';
|
|
24
19
|
export {ManualMigrationStep} from './manual-migration-steps';
|
|
@@ -31,20 +31,15 @@ const DEPRECATED_CLASSES: DeprecatedClass[] = [
|
|
|
31
31
|
// to `<p-fluid class="…">` and adds the FluidModule import). It's intentionally not flagged here.
|
|
32
32
|
];
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* Mark every occurrence of a removed PrimeNG v17 CSS class (`p-link`, `p-highlight`,
|
|
36
|
-
* `p-fluid`) in HTML templates with an HTML TODO comment, and write a row to the
|
|
37
|
-
* `ManualMigrationSteps` data table. The class itself is left in place — replacements
|
|
38
|
-
* are component-specific and need a human/AI agent to choose the right substitute.
|
|
39
|
-
*/
|
|
40
34
|
export class MarkDeprecatedPrimengCssClasses extends Recipe {
|
|
41
35
|
readonly name = "org.openrewrite.primeng.MarkDeprecatedPrimengCssClasses";
|
|
42
36
|
readonly displayName = "Mark deprecated PrimeNG CSS classes with TODO comments";
|
|
43
37
|
readonly description = "For every HTML template that references a CSS class removed in PrimeNG 18 " +
|
|
44
|
-
"(`.p-link`, `.p-highlight
|
|
45
|
-
"the offending element and writes a row to the `ManualMigrationSteps` data table.
|
|
46
|
-
"is left in place
|
|
47
|
-
"
|
|
38
|
+
"(`.p-link`, `.p-highlight`) in a static `class` attribute, inserts a `<!-- TODO: ... -->` comment " +
|
|
39
|
+
"immediately before the offending element and writes a row to the `ManualMigrationSteps` data table. " +
|
|
40
|
+
"The class itself is left in place, as the replacements are context-dependent (component-specific " +
|
|
41
|
+
"selectors, etc.) and need a human or AI agent to apply. Binding forms such as `[class.p-link]` and " +
|
|
42
|
+
"`[ngClass]` are not matched, and `.p-fluid` is handled by `MigratePFluidToWrapper`.";
|
|
48
43
|
|
|
49
44
|
private dataTable = new DataTable<ManualMigrationStep>(
|
|
50
45
|
MANUAL_MIGRATION_STEPS_NAME,
|
|
@@ -63,28 +58,22 @@ export class MarkDeprecatedPrimengCssClasses extends Recipe {
|
|
|
63
58
|
if (!t.sourcePath.endsWith('.html')) return t;
|
|
64
59
|
|
|
65
60
|
let updated = t.text;
|
|
66
|
-
let modified = false;
|
|
67
61
|
|
|
68
62
|
for (const {className, todo} of DEPRECATED_CLASSES) {
|
|
69
|
-
// Match an opening tag whose
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
// perfect about parsing HTML — false positives are tolerable for a
|
|
73
|
-
// search-style recipe; missed matches are not.
|
|
63
|
+
// Match an opening tag whose static `class` attribute contains the deprecated
|
|
64
|
+
// class name (`class="… p-link …"`); bindings such as `[class.p-link]` or
|
|
65
|
+
// `[ngClass]` are not matched.
|
|
74
66
|
const tagRe = new RegExp(`(^|\\n)([ \\t]*)(<[a-zA-Z][\\w-]*(?:\\s+[^>]*?)?\\b(?:class\\s*=\\s*"[^"]*\\b${className}\\b[^"]*"|class\\s*=\\s*'[^']*\\b${className}\\b[^']*')[^>]*>)`, 'g');
|
|
75
67
|
const todoMarker = `<!-- TODO: PrimeNG 18 — ${todo} -->`;
|
|
76
68
|
|
|
77
|
-
let alreadyMarked = false;
|
|
78
69
|
updated = updated.replace(tagRe, (match, lead, indent, tag) => {
|
|
79
70
|
// Idempotence: skip if a previous run already inserted this exact TODO above.
|
|
80
71
|
const before = match.indexOf(tag);
|
|
81
72
|
const precedingChunk = updated.slice(0, updated.indexOf(match) + before);
|
|
82
73
|
if (precedingChunk.endsWith(todoMarker + '\n' + indent)
|
|
83
74
|
|| precedingChunk.endsWith(todoMarker + indent)) {
|
|
84
|
-
alreadyMarked = true;
|
|
85
75
|
return match;
|
|
86
76
|
}
|
|
87
|
-
modified = true;
|
|
88
77
|
dataTable.insertRow(p, {
|
|
89
78
|
sourcePath: t.sourcePath,
|
|
90
79
|
recipe: recipeName,
|
|
@@ -94,10 +83,9 @@ export class MarkDeprecatedPrimengCssClasses extends Recipe {
|
|
|
94
83
|
});
|
|
95
84
|
return `${lead}${indent}${todoMarker}\n${indent}${tag}`;
|
|
96
85
|
});
|
|
97
|
-
void alreadyMarked;
|
|
98
86
|
}
|
|
99
87
|
|
|
100
|
-
if (
|
|
88
|
+
if (updated === t.text) return t;
|
|
101
89
|
return {
|
|
102
90
|
...t,
|
|
103
91
|
text: updated,
|
|
@@ -16,13 +16,6 @@ import {
|
|
|
16
16
|
const TARGET_TAGS = ['p-drawer', 'p-sidebar'];
|
|
17
17
|
const TODO_TEXT = "PrimeNG 18 removed the `size` input on `<p-drawer>`/`<p-sidebar>`. Replace `[size]=\"...\"` / `size=\"...\"` with a responsive CSS utility on the `[style]` input or `styleClass`.";
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* Mark `<p-drawer>` and `<p-sidebar>` elements that bind the removed `size` input in
|
|
21
|
-
* templates. Adds an HTML TODO comment immediately before the element and writes a row
|
|
22
|
-
* to the `ManualMigrationSteps` data table. The attribute itself is left in place because
|
|
23
|
-
* the right replacement is template-context-dependent (responsive style class, fixed
|
|
24
|
-
* width, etc.).
|
|
25
|
-
*/
|
|
26
19
|
export class MarkDrawerSize extends Recipe {
|
|
27
20
|
readonly name = "org.openrewrite.primeng.MarkDrawerSize";
|
|
28
21
|
readonly displayName = "Mark `<p-drawer>` / `<p-sidebar>` `size` usages with TODO comments";
|
|
@@ -49,7 +42,6 @@ export class MarkDrawerSize extends Recipe {
|
|
|
49
42
|
if (!t.sourcePath.endsWith('.html')) return t;
|
|
50
43
|
|
|
51
44
|
let updated = t.text;
|
|
52
|
-
let modified = false;
|
|
53
45
|
|
|
54
46
|
for (const tag of TARGET_TAGS) {
|
|
55
47
|
// Match opening tags of the target component that include a [size]="…" or
|
|
@@ -61,7 +53,6 @@ export class MarkDrawerSize extends Recipe {
|
|
|
61
53
|
if (before.endsWith(todoMarker + '\n' + indent) || before.endsWith(todoMarker + indent)) {
|
|
62
54
|
return match;
|
|
63
55
|
}
|
|
64
|
-
modified = true;
|
|
65
56
|
dataTable.insertRow(p, {
|
|
66
57
|
sourcePath: t.sourcePath,
|
|
67
58
|
recipe: recipeName,
|
|
@@ -73,7 +64,7 @@ export class MarkDrawerSize extends Recipe {
|
|
|
73
64
|
});
|
|
74
65
|
}
|
|
75
66
|
|
|
76
|
-
if (
|
|
67
|
+
if (updated === t.text) return t;
|
|
77
68
|
return {
|
|
78
69
|
...t,
|
|
79
70
|
text: updated,
|
|
@@ -54,7 +54,7 @@ export class MarkRemovedPrimengModules extends Recipe {
|
|
|
54
54
|
readonly name = "org.openrewrite.primeng.MarkRemovedPrimengModules";
|
|
55
55
|
readonly displayName = "Mark imports of removed PrimeNG modules with TODO stubs";
|
|
56
56
|
readonly description = "For each `import` of a PrimeNG module that no longer exists in v18 " +
|
|
57
|
-
"(`primeng/chips`, `primeng/tristatecheckbox`, `primeng/messages`, `primeng/dataviewlayoutoptions`), " +
|
|
57
|
+
"(`primeng/chips`, `primeng/tristatecheckbox`, `primeng/messages`, `primeng/dataviewlayoutoptions`, `primeng/animate`), " +
|
|
58
58
|
"replaces the broken import statement with a `const <Name>: any = null;` stub annotated by a TODO " +
|
|
59
59
|
"comment that describes the v18 replacement. Also strips the corresponding entries from `@NgModule` " +
|
|
60
60
|
"`imports`, `declarations`, and `exports` arrays since Angular's compiler rejects `null` values there. " +
|
|
@@ -149,7 +149,6 @@ export class MarkRemovedPrimengModules extends Recipe {
|
|
|
149
149
|
const newClass = firstArg;
|
|
150
150
|
if (!newClass.body) return a;
|
|
151
151
|
|
|
152
|
-
let modified = false;
|
|
153
152
|
const newStatements = newClass.body.statements.map(stmtEl => {
|
|
154
153
|
const stmt = stmtEl.element;
|
|
155
154
|
if (stmt.kind !== JS.Kind.PropertyAssignment) return stmtEl;
|
|
@@ -170,7 +169,6 @@ export class MarkRemovedPrimengModules extends Recipe {
|
|
|
170
169
|
|
|
171
170
|
if (filteredElems.length === arr.initializer.elements.length) return stmtEl;
|
|
172
171
|
|
|
173
|
-
modified = true;
|
|
174
172
|
return {
|
|
175
173
|
...stmtEl,
|
|
176
174
|
element: {
|
|
@@ -186,7 +184,7 @@ export class MarkRemovedPrimengModules extends Recipe {
|
|
|
186
184
|
};
|
|
187
185
|
});
|
|
188
186
|
|
|
189
|
-
if (
|
|
187
|
+
if (newStatements.every((s, i) => s === newClass.body!.statements[i])) return a;
|
|
190
188
|
|
|
191
189
|
return create(a, draft => {
|
|
192
190
|
const body = (draft.arguments!.elements[0].element as any).body!;
|