Migrate .p-fluid to <p-fluid> wrapper
ProprietaryRewrites <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. MigratePFluidToWrappermod run . --recipe= org. openrewrite. primeng. MigratePFluidToWrapperInstall 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.
- Rewrite
.p-fluiddivs to<p-fluid>wrappers - Add
FluidModuleimport to components using<p-fluid>