Rename InputSwitch to ToggleSwitch
Recipe ID
org.openrewrite.primeng.RenameInputSwitchToToggleSwitchArtifact@openrewrite/recipes-angularRenames InputSwitch and InputSwitchModule imports from primeng/inputswitch to ToggleSwitch and ToggleSwitchModule from primeng/toggleswitch, and updates all identifier usages. The old names are deprecated in PrimeNG 18.
Composite 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.RenameInputSwitchToToggleSwitchIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angularDefinition
This recipe runs the following recipes in order.
- Rename
InputSwitchidentifiers toToggleSwitchorg.openrewrite.primeng.RenameInputSwitchToToggleSwitch.identifiers - Change import
org.openrewrite.javascript.change-import - Change import
org.openrewrite.javascript.change-import