Upgrade to NgRx 16

Proprietary

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

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

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