Migrate .p-fluid to <p-fluid> wrapper

Proprietary

Rewrites <div class="…p-fluid…">…</div> to <p-fluid class="…">…</p-fluid> and adds a FluidModule import from primeng/fluid to the corresponding component file. PrimeNG 18 removed the .p-fluid CSS class; the <p-fluid> wrapper component is its replacement.

org.openrewrite.primeng.MigratePFluidToWrapper
mod run . --recipe=org.openrewrite.primeng.MigratePFluidToWrapper

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

Recipe list

It runs these recipes, in this order.

  1. Rewrite .p-fluid divs to <p-fluid> wrappers
  2. Add FluidModule import to components using <p-fluid>