Upgrade PrimeNG components to 18
ProprietaryHandles component renames, deprecations, and removals for PrimeNG 18. Renames Calendar to DatePicker, Dropdown to Select, InputSwitch to ToggleSwitch, OverlayPanel to Popover, and Sidebar to Drawer (TS imports + identifier usages + HTML selectors). Migrates the Messages template usage to the <p-message> + @for loop. Marks removed modules (Chips, TriStateCheckbox, Messages, DataViewLayoutOptions, pAnimate) with TODO stubs, marks deprecated components (TabMenu, Steps, InlineMessage, TabView, pDefer) with TODO comments on their imports, and marks deprecated CSS classes (.p-link, .p-highlight, .p-fluid) and <p-drawer>/<p-sidebar> size usages with HTML TODO comments. All marked sites are written to the ManualMigrationSteps data table.
org. openrewrite. primeng. UpgradeComponentsTo18mod run . --recipe= org. openrewrite. primeng. UpgradeComponentsTo18Install 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.
- Rename
CalendartoDatePicker - Rename
DropdowntoSelect - Rename
InputSwitchtoToggleSwitch - Rename
OverlayPaneltoPopover - Rename
SidebartoDrawer - Rename
Messageinterface toToastMessageOptions - Rename PrimeNG selectors in HTML templates to their v18 equivalents
- Migrate
<p-messages>to<p-message>with@forloop - Migrate
.p-fluidto<p-fluid>wrapper - Mark imports of removed PrimeNG modules with TODO stubs
- Mark deprecated PrimeNG components with TODO comments
- Mark deprecated PrimeNG CSS classes with TODO comments
- Mark
<p-drawer>/<p-sidebar>sizeusages with TODO comments