Upgrade to PrimeNG 21

MSAL

Upgrades an Angular project from PrimeNG 20 to PrimeNG 21, after the upgrades from PrimeNG 18 to 20 it composes. Moves primeng to ^21.1.10 together with the theme package, in the projects on PrimeNG 18 to 20 whose Angular PrimeNG 21 accepts, and then, in the projects where that upgrade landed, migrates the imports, selectors, inputs and outputs the major renamed or removed, in TypeScript and in Angular templates. What takes judgement, such as the members PrimeNG turned into signals, is marked for review and listed in the PrimeNgMigrationWork data table, and so is each project left as it is, with the reason: an Angular the major does not accept, a PrimeNG 17 or older, or a package manager refusing the upgrade. A project on PrimeNG 17 or older is left alone entirely, so migrate it to PrimeNG 18 first, as org.openrewrite.primeng.UpgradeTo18 does. PrimeNG 21 needs @angular/core ^21.0.7, so run it after the Angular upgrade the project needs.

org.openrewrite.javascript.migrate.primeng.UpgradeToPrimeNG21
mod run . --recipe=org.openrewrite.javascript.migrate.primeng.UpgradeToPrimeNG21

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.