Upgrade to PrimeNG 18
org.openrewrite.primeng.UpgradeTo18Artifact@openrewrite/recipes-angularMigrates PrimeNG 17.x applications to PrimeNG 18. Renames components, migrates PrimeNGConfig to PrimeNG (with signal-backed setters), comments out the obsolete primeng/resources style entries in angular.json, wires providePrimeNG({ theme: { preset: Aura } }) into the root NgModule and adds @primeng/themes to package.json. Anything that can't be deterministically migrated (removed-and-no-direct-replacement components, deprecated CSS classes, structural template changes) gets a TODO comment in source plus a row in the ManualMigrationSteps data table for an agent or human to finish.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.primeng.UpgradeTo18If the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angularDefinition
This recipe runs the following recipes in order.
- Upgrade to Angular 18
org.openrewrite.angular.UpgradeToAngular18 - Upgrade PrimeNG components to 18
org.openrewrite.primeng.UpgradeComponentsTo18 - Migrate
PrimeNGConfigtoPrimeNGorg.openrewrite.primeng.MigratePrimeNgConfigToPrimeNG - Migrate
PrimeNGconfig field assignments to.set()org.openrewrite.primeng.MigratePrimeNGSignalAssignments - Add
providePrimeNGwith a detected theme preset to the root NgModuleorg.openrewrite.primeng.AddPrimengProvider - org.openrewrite.javascript.AddDependency
org.openrewrite.javascript.AddDependency - org.openrewrite.javascript.UpgradeDependencyVersion
org.openrewrite.javascript.UpgradeDependencyVersion