Rename ChangeDetectionStrategy.Default to ChangeDetectionStrategy.Eager
Recipe ID
org.openrewrite.angular.migration.rename-default-change-detectionArtifact@openrewrite/recipes-angularRenames the deprecated ChangeDetectionStrategy.Default enum member to its Angular 22 replacement ChangeDetectionStrategy.Eager. Both members have the same value, so the change is behavior preserving.
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.angular.migration.rename-default-change-detectionIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular