From e9ee9982737a38e935d52cc1ff9267b2ff3207b0 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Wed, 30 Nov 2022 11:21:57 +0000 Subject: [PATCH] feat(angular): add migration for ngrx 15 --- package.json | 6 ++--- packages/angular/migrations.json | 34 ++++++++++++++++++++++++++ packages/angular/src/utils/versions.ts | 2 +- yarn.lock | 24 +++++++++--------- 4 files changed, 50 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index a30b95b14d0c5..9437541e82dd9 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,9 @@ "@nestjs/schematics": "^9.0.0", "@nestjs/swagger": "^6.0.0", "@nestjs/testing": "^9.0.0", - "@ngrx/effects": "~14.0.0", - "@ngrx/router-store": "~14.0.0", - "@ngrx/store": "~14.0.0", + "@ngrx/effects": "~15.0.0", + "@ngrx/router-store": "~15.0.0", + "@ngrx/store": "~15.0.0", "@nguniversal/builders": "~15.0.0", "@nrwl/cypress": "15.3.0-beta.6", "@nrwl/devkit": "15.3.0-beta.6", diff --git a/packages/angular/migrations.json b/packages/angular/migrations.json index df9c73e2cdbf7..a18093127e861 100644 --- a/packages/angular/migrations.json +++ b/packages/angular/migrations.json @@ -1671,6 +1671,40 @@ "alwaysAddToPackageJson": false } } + }, + "15.2.4": { + "version": "15.2.4-beta.0", + "packages": { + "packages": { + "@ngrx/store": { + "version": "~15.0.0", + "alwaysAddToPackageJson": false + }, + "@ngrx/effects": { + "version": "~15.0.0", + "alwaysAddToPackageJson": false + }, + "@ngrx/entity": { + "version": "~15.0.0", + "alwaysAddToPackageJson": false + }, + "@ngrx/router-store": { + "version": "~15.0.0", + "alwaysAddToPackageJson": false + }, + "@ngrx/schematics": { + "version": "~15.0.0", + "alwaysAddToPackageJson": false + }, + "@ngrx/store-devtools": { + "version": "~15.0.0", + "alwaysAddToPackageJson": false + }, + "@ngrx/component-store": { + "version": "~15.0.0" + } + } + } } } } diff --git a/packages/angular/src/utils/versions.ts b/packages/angular/src/utils/versions.ts index 58d3e13c240be..f91792ae3537f 100644 --- a/packages/angular/src/utils/versions.ts +++ b/packages/angular/src/utils/versions.ts @@ -3,7 +3,7 @@ export const nxVersion = require('../../package.json').version; export const angularVersion = '~15.0.0'; export const angularDevkitVersion = '~15.0.0'; export const ngPackagrVersion = '~15.0.0'; -export const ngrxVersion = '~15.0.0-beta.0'; +export const ngrxVersion = '~15.0.0'; export const rxjsVersion = '~7.5.0'; export const zoneJsVersion = '~0.11.4'; export const angularJsVersion = '1.7.9'; diff --git a/yarn.lock b/yarn.lock index 4eab9a0c37e5a..8dcfe39fb4a60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3688,24 +3688,24 @@ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.0.0.tgz#c54a5a739dee04b20338d305226a2acdf701f67f" integrity sha512-FFOGGWwTCRMu9W7MF496Urefxtuo2lttxF1vwS+1rIRsKvuLrWhVaVTj3T8sf2EBL6gtJbmh4TYlizS+obnGKA== -"@ngrx/effects@~14.0.0": - version "14.0.2" - resolved "https://registry.yarnpkg.com/@ngrx/effects/-/effects-14.0.2.tgz#4f448de91462a5905a58b4db8c860270e567ee83" - integrity sha512-1VBJ9eBoeCKSBDkn+wllV1gFGLBrRwq5So0F0QUX2rPcjpE5N1pdpuLAmmwQ84f8nttVlMOx4P9kcEM8qW9jLg== +"@ngrx/effects@~15.0.0": + version "15.0.0" + resolved "https://registry.yarnpkg.com/@ngrx/effects/-/effects-15.0.0.tgz#9d4ab000ca8af8fa9012e4586425541de8b79ec4" + integrity sha512-EfYmGYFF1bNLPCRPnfAZnppT47RPwpprZK6HSQQ1fvV0sA0FYKQilg93ictNhDv+0IhMBZJEbR/hBMYyi4rkBg== dependencies: tslib "^2.0.0" -"@ngrx/router-store@~14.0.0": - version "14.0.2" - resolved "https://registry.yarnpkg.com/@ngrx/router-store/-/router-store-14.0.2.tgz#4e7b3e042eadee85c9b3328415547ac34ceefdda" - integrity sha512-kW4//ipsZioVFeHPHQeKdn+8O0V2sPp3ydXuarsZGiosq2uQbKvYaUQqRNz2CtNyrn0z2Tw0zdEbLnvQhNrOog== +"@ngrx/router-store@~15.0.0": + version "15.0.0" + resolved "https://registry.yarnpkg.com/@ngrx/router-store/-/router-store-15.0.0.tgz#6f132798a421631f9b2015d5273f95a0cc2658d3" + integrity sha512-WBgT2uI/CejfYfdi3cjDsp9Q5UZTFnTcTGMTDFT8HujrCD75PxVw8ad9k2GMqp7j96qE13xi+8VRknQyUPx3HA== dependencies: tslib "^2.0.0" -"@ngrx/store@~14.0.0": - version "14.0.2" - resolved "https://registry.yarnpkg.com/@ngrx/store/-/store-14.0.2.tgz#f9ab5fd68ea219aeb39276a9ba0e3e24b20e39aa" - integrity sha512-ogxcK7fj4zXCxCVJXzX2+jbVCfvC7ehbvbD5oWXT7GFajUIvA8FSXQzapUPAQEqFbjxgFzhjMFBApMaOcfleIQ== +"@ngrx/store@~15.0.0": + version "15.0.0" + resolved "https://registry.yarnpkg.com/@ngrx/store/-/store-15.0.0.tgz#aec52a4139f6bb11e71752630e437001a77f5dd6" + integrity sha512-zGEK7pgL9X1M2d+tF5tJRjN9dUibfPnyAFcI0+375gBkUSU2gJxuphB0NoGPVJMtLFsW+5yI4+kjui7M6nsaYQ== dependencies: tslib "^2.0.0"