← All recipes
Moderne licensed

Mark deprecated PrimeNG CSS classes with TODO comments

Recipe IDorg.openrewrite.primeng.MarkDeprecatedPrimengCssClassesArtifact@openrewrite/recipes-angular

For every HTML template that references a CSS class removed in PrimeNG 18 (.p-link, .p-highlight, .p-fluid), inserts a <!-- TODO: ... --> comment immediately before the offending element and writes a row to the ManualMigrationSteps data table. The class itself is left in place — the replacements are context-dependent (component-specific selectors, the new fluid input, etc.) and need a human or AI agent to apply.

Single recipeProprietary

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.MarkDeprecatedPrimengCssClasses

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular