Upgrade to NgRx 21

Proprietary

Migrates NgRx applications to NgRx 21: upgrades the @ngrx/* packages to 21.x and makes the source changes of ng update @ngrx/store@21, including those of NgRx 18 to 20. NgRx 21 requires Angular 21. UpgradeToAngular21 includes this migration and moves both in one edit; run this recipe alone only on a project that is on Angular 21 already, since an older Angular makes the package manager refuse the bump, unless legacy-peer-deps lets it through.

org.openrewrite.angular.ngrx.UpgradeToNgRx21
mod run . --recipe=org.openrewrite.angular.ngrx.UpgradeToNgRx21

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