From 607fd498e6d4e153492ac15b118a399b27d82809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Tue, 21 Nov 2023 17:30:23 +0100 Subject: [PATCH] feat(angular): update ngrx to v17 (#20247) --- package.json | 6 +- packages/angular/migrations.json | 12 ++ packages/angular/src/utils/versions.ts | 2 +- pnpm-lock.yaml | 180 ++++++++++++++++++++----- 4 files changed, 166 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 8a8c3743e273b..86d72262ada1c 100644 --- a/package.json +++ b/package.json @@ -62,9 +62,9 @@ "@nestjs/testing": "^9.0.0", "@nuxt/kit": "^3.8.1", "@nuxt/schema":"^3.8.1", - "@ngrx/effects": "~16.0.0", - "@ngrx/router-store": "~16.0.0", - "@ngrx/store": "~16.0.0", + "@ngrx/effects": "~17.0.0", + "@ngrx/router-store": "~17.0.0", + "@ngrx/store": "~17.0.0", "@nx/angular": "17.1.1", "@nx/cypress": "17.1.1", "@nx/devkit": "17.1.1", diff --git a/packages/angular/migrations.json b/packages/angular/migrations.json index c8e48bab35695..b2608867c9fad 100644 --- a/packages/angular/migrations.json +++ b/packages/angular/migrations.json @@ -1505,6 +1505,18 @@ "alwaysAddToPackageJson": false } } + }, + "17.2.0-ngrx": { + "version": "17.2.0-beta.3", + "requires": { + "@angular/core": "^17.0.0" + }, + "packages": { + "@ngrx/store": { + "version": "~17.0.0", + "alwaysAddToPackageJson": false + } + } } } } diff --git a/packages/angular/src/utils/versions.ts b/packages/angular/src/utils/versions.ts index 66e131140bbf9..3f960b91852b3 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 = '~17.0.0'; export const angularDevkitVersion = '~17.0.0'; export const ngPackagrVersion = '~17.0.0'; -export const ngrxVersion = '~16.0.0'; +export const ngrxVersion = '~17.0.0'; export const rxjsVersion = '~7.8.0'; export const zoneJsVersion = '~0.14.0'; export const angularJsVersion = '1.7.9'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6e25d82d90380..dbe318b6aaf26 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + overrides: minimist: ^1.2.6 underscore: ^1.12.1 @@ -246,7 +250,7 @@ devDependencies: version: 9.1.6(@nestjs/common@9.1.6)(@nestjs/core@9.1.6) '@nestjs/schematics': specifier: ^9.1.0 - version: 9.1.0(chokidar@3.5.3)(typescript@4.9.4) + version: 9.1.0(typescript@5.2.2) '@nestjs/swagger': specifier: ^6.0.0 version: 6.1.3(@nestjs/common@9.1.6)(@nestjs/core@9.1.6)(reflect-metadata@0.1.13) @@ -254,14 +258,14 @@ devDependencies: specifier: ^9.0.0 version: 9.1.6(@nestjs/common@9.1.6)(@nestjs/core@9.1.6)(@nestjs/platform-express@9.1.6) '@ngrx/effects': - specifier: ~16.0.0 - version: 16.0.0(@angular/core@17.0.0)(@ngrx/store@16.0.0)(rxjs@7.8.1) + specifier: ~17.0.0 + version: 17.0.0(@angular/core@17.0.0)(@ngrx/store@17.0.0)(rxjs@7.8.1) '@ngrx/router-store': - specifier: ~16.0.0 - version: 16.0.0(@angular/common@17.0.0)(@angular/core@17.0.0)(@angular/router@17.0.0)(@ngrx/store@16.0.0)(rxjs@7.8.1) + specifier: ~17.0.0 + version: 17.0.0(@angular/common@17.0.0)(@angular/core@17.0.0)(@angular/router@17.0.0)(@ngrx/store@17.0.0)(rxjs@7.8.1) '@ngrx/store': - specifier: ~16.0.0 - version: 16.0.0(@angular/core@17.0.0)(rxjs@7.8.1) + specifier: ~17.0.0 + version: 17.0.0(@angular/core@17.0.0)(rxjs@7.8.1) '@nuxt/kit': specifier: ^3.8.1 version: 3.8.1(rollup@2.79.0) @@ -579,7 +583,7 @@ devDependencies: version: 2.14.0(eslint@8.46.0) eslint-plugin-import: specifier: 2.26.0 - version: 2.26.0(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-typescript@3.5.2)(eslint@8.46.0) + version: 2.26.0(@typescript-eslint/parser@6.10.0)(eslint@8.46.0) eslint-plugin-jsx-a11y: specifier: 6.6.1 version: 6.6.1(eslint@8.46.0) @@ -6317,6 +6321,20 @@ packages: - chokidar dev: true + /@nestjs/schematics@9.1.0(typescript@5.2.2): + resolution: {integrity: sha512-/7CyMTnPJSK9/xD9CkCqwuHPOlHVlLC2RDnbdCJ7mIO07SdbBbY14msTqtYW9VRQtsjZPLh1GTChf7ryJUImwA==} + peerDependencies: + typescript: '>=4.3.5' + dependencies: + '@angular-devkit/core': 15.2.4(chokidar@3.5.3) + '@angular-devkit/schematics': 15.2.4(chokidar@3.5.3) + jsonc-parser: 3.2.0 + pluralize: 8.0.0 + typescript: 5.2.2 + transitivePeerDependencies: + - chokidar + dev: true + /@nestjs/swagger@6.1.3(@nestjs/common@9.1.6)(@nestjs/core@9.1.6)(reflect-metadata@0.1.13): resolution: {integrity: sha512-H9C/yRgLFb5QrAt6iGrYmIX9X7Q0zXkgZaTNUATljUBra+RCWrEUbLHBcGjTAOtcIyGV/vmyCLv68YSVcZoE0Q==} peerDependencies: @@ -6445,40 +6463,50 @@ packages: requiresBuild: true optional: true - /@ngrx/effects@16.0.0(@angular/core@17.0.0)(@ngrx/store@16.0.0)(rxjs@7.8.1): - resolution: {integrity: sha512-l3H/yCwVl8DPmUasOEDthdv9lZMhCSJwBxfSXjUW7gKJVEamP3PSuvExp0ZpW9RULPblgcfTM1TH8VcPAHelQw==} + /@ngrx/effects@17.0.0(@angular/core@17.0.0)(@ngrx/store@17.0.0)(rxjs@7.8.1): + resolution: {integrity: sha512-1IK/N4ifyqZFlbstgH+mCBxwNW0FEWTINO2kWEGGb0IZ4lcZaN1GKAqDws69t0011H3bLQePdYLvXH9HJG1qTw==} peerDependencies: - '@angular/core': ^16.0.0 - '@ngrx/store': 16.0.0 + '@angular/core': ^17.0.0 + '@ngrx/store': 17.0.0 rxjs: ^6.5.3 || ^7.5.0 dependencies: '@angular/core': 17.0.0(rxjs@7.8.1)(zone.js@0.14.0) - '@ngrx/store': 16.0.0(@angular/core@17.0.0)(rxjs@7.8.1) + '@ngrx/operators': 17.0.0-beta.0(rxjs@7.8.1) + '@ngrx/store': 17.0.0(@angular/core@17.0.0)(rxjs@7.8.1) rxjs: 7.8.1 - tslib: 2.5.0 + tslib: 2.6.2 + dev: true + + /@ngrx/operators@17.0.0-beta.0(rxjs@7.8.1): + resolution: {integrity: sha512-EbO8AONuQ6zo2v/mPyBOi4y0CTAp1x4Z+bx7ZF+Pd8BL5ma53BTCL1TmzaeK5zPUe0yApudLk9/ZbHXPnVox5A==} + peerDependencies: + rxjs: ^6.5.3 || ^7.4.0 + dependencies: + rxjs: 7.8.1 + tslib: 2.6.2 dev: true - /@ngrx/router-store@16.0.0(@angular/common@17.0.0)(@angular/core@17.0.0)(@angular/router@17.0.0)(@ngrx/store@16.0.0)(rxjs@7.8.1): - resolution: {integrity: sha512-i36reUxFSkpnEr01yZufe8H5J6Na0q/5Ul3HmT1HSG5cw0y2xIHWk2MpvCLIJjr3WeGSLvVpkQUYEdkkgmJOdw==} + /@ngrx/router-store@17.0.0(@angular/common@17.0.0)(@angular/core@17.0.0)(@angular/router@17.0.0)(@ngrx/store@17.0.0)(rxjs@7.8.1): + resolution: {integrity: sha512-ctlNdwptgZ5GAtmAZSAnC44dofSQYQSKN8IzPlrAU2EZF0KDLGOgqMK4QnF1oBHZ57JHHNbZMscXy3gxZ18n9Q==} peerDependencies: - '@angular/common': ^16.0.0 - '@angular/core': ^16.0.0 - '@angular/router': ^16.0.0 - '@ngrx/store': 16.0.0 + '@angular/common': ^17.0.0 + '@angular/core': ^17.0.0 + '@angular/router': ^17.0.0 + '@ngrx/store': 17.0.0 rxjs: ^6.5.3 || ^7.5.0 dependencies: '@angular/common': 17.0.0(@angular/core@17.0.0)(rxjs@7.8.1) '@angular/core': 17.0.0(rxjs@7.8.1)(zone.js@0.14.0) '@angular/router': 17.0.0(@angular/common@17.0.0)(@angular/core@17.0.0)(@angular/platform-browser@17.0.0)(rxjs@7.8.1) - '@ngrx/store': 16.0.0(@angular/core@17.0.0)(rxjs@7.8.1) + '@ngrx/store': 17.0.0(@angular/core@17.0.0)(rxjs@7.8.1) rxjs: 7.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true - /@ngrx/store@16.0.0(@angular/core@17.0.0)(rxjs@7.8.1): - resolution: {integrity: sha512-bmr0KLITh9u1DJO51USTc4OAKX+su06efhTdNiQV/wagifpbC4kA8zr2hdstKMNG3Z5EKTX3XLFanIiREkd6JQ==} + /@ngrx/store@17.0.0(@angular/core@17.0.0)(rxjs@7.8.1): + resolution: {integrity: sha512-jIK4r3IUKPjHmhfgnUYrN7eie+NdFfPNArUQiL+NeiEeuomsYWaUF6PwiRSnRCqbZhRMvqPWiIWcd0/ql5YJlg==} peerDependencies: - '@angular/core': ^16.0.0 + '@angular/core': ^17.0.0 rxjs: ^6.5.3 || ^7.5.0 dependencies: '@angular/core': 17.0.0(rxjs@7.8.1)(zone.js@0.14.0) @@ -6809,6 +6837,42 @@ packages: - typescript dev: true + /@nrwl/js@15.8.0(@swc-node/register@1.6.8)(@swc/core@1.3.86)(nx@15.8.0)(prettier@2.7.1)(typescript@5.2.2): + resolution: {integrity: sha512-l2Q7oFpzx6ul7G0nKpMkrvnIEaOY+X8fc2g2Db5WqpnnBdfkrtWXZPg/O4DQ1p9O6BXrZ+Q2AK9bfgnliiwyEg==} + dependencies: + '@babel/core': 7.22.9 + '@babel/plugin-proposal-class-properties': 7.18.6(@babel/core@7.22.9) + '@babel/plugin-proposal-decorators': 7.21.0(@babel/core@7.22.9) + '@babel/plugin-transform-runtime': 7.22.9(@babel/core@7.22.9) + '@babel/preset-env': 7.22.5(@babel/core@7.22.9) + '@babel/preset-typescript': 7.22.5(@babel/core@7.22.9) + '@babel/runtime': 7.22.6 + '@nrwl/devkit': 15.8.0(nx@15.8.0)(typescript@5.2.2) + '@nrwl/workspace': 15.8.0(@swc-node/register@1.6.8)(@swc/core@1.3.86)(eslint@8.46.0)(prettier@2.7.1)(typescript@5.2.2) + '@phenomnomnominal/tsquery': 4.1.1(typescript@5.2.2) + babel-plugin-const-enum: 1.2.0(@babel/core@7.22.9) + babel-plugin-macros: 2.8.0 + babel-plugin-transform-typescript-metadata: 0.3.2(@babel/core@7.22.9) + chalk: 4.1.2 + fast-glob: 3.2.7 + fs-extra: 11.1.1 + ignore: 5.2.4 + js-tokens: 4.0.0 + minimatch: 3.0.5 + source-map-support: 0.5.19 + tree-kill: 1.2.2 + tslib: 2.6.2 + transitivePeerDependencies: + - '@babel/traverse' + - '@swc-node/register' + - '@swc/core' + - debug + - nx + - prettier + - supports-color + - typescript + dev: true + /@nrwl/js@17.1.1(@swc-node/register@1.6.8)(@swc/core@1.3.86)(@types/node@18.16.9)(nx@17.1.1)(typescript@5.2.2)(verdaccio@5.15.4): resolution: {integrity: sha512-1w8M9am/OXFLhRFLi5jzwDm2RfIRtFeI4Oinuuam2sTjJ46BplRzRmszYnX25J0a1OHH1P/hgVKq4iHcKOo8nQ==} dependencies: @@ -6835,7 +6899,7 @@ packages: optional: true dependencies: '@nrwl/devkit': 15.8.0(nx@15.8.0)(typescript@5.2.2) - '@nrwl/js': 15.8.0(@swc-node/register@1.6.8)(@swc/core@1.3.86)(eslint@8.46.0)(nx@17.1.1)(prettier@2.7.1)(typescript@5.2.2) + '@nrwl/js': 15.8.0(@swc-node/register@1.6.8)(@swc/core@1.3.86)(nx@15.8.0)(prettier@2.7.1)(typescript@5.2.2) '@phenomnomnominal/tsquery': 4.1.1(typescript@5.2.2) eslint: 8.46.0 tmp: 0.2.1 @@ -16159,6 +16223,35 @@ packages: - supports-color dev: true + /eslint-module-utils@2.7.4(@typescript-eslint/parser@6.10.0)(eslint-import-resolver-node@0.3.6)(eslint@8.46.0): + resolution: {integrity: sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: '*' + eslint-import-resolver-node: '*' + eslint-import-resolver-typescript: '*' + eslint-import-resolver-webpack: '*' + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + eslint: + optional: true + eslint-import-resolver-node: + optional: true + eslint-import-resolver-typescript: + optional: true + eslint-import-resolver-webpack: + optional: true + dependencies: + '@typescript-eslint/parser': 6.10.0(eslint@8.46.0)(typescript@5.2.2) + debug: 3.2.7(supports-color@8.1.1) + eslint: 8.46.0 + eslint-import-resolver-node: 0.3.6 + transitivePeerDependencies: + - supports-color + dev: true + /eslint-plugin-cypress@2.14.0(eslint@8.46.0): resolution: {integrity: sha512-eW6tv7iIg7xujleAJX4Ujm649Bf5jweqa4ObPEIuueYRyLZt7qXGWhCY/n4bfeFW/j6nQZwbIBHKZt6EKcL/cg==} peerDependencies: @@ -16199,6 +16292,37 @@ packages: - supports-color dev: true + /eslint-plugin-import@2.26.0(@typescript-eslint/parser@6.10.0)(eslint@8.46.0): + resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + dependencies: + '@typescript-eslint/parser': 6.10.0(eslint@8.46.0)(typescript@5.2.2) + array-includes: 3.1.6 + array.prototype.flat: 1.3.1 + debug: 2.6.9 + doctrine: 2.1.0 + eslint: 8.46.0 + eslint-import-resolver-node: 0.3.6 + eslint-module-utils: 2.7.4(@typescript-eslint/parser@6.10.0)(eslint-import-resolver-node@0.3.6)(eslint@8.46.0) + has: 1.0.3 + is-core-module: 2.11.0 + is-glob: 4.0.3 + minimatch: 3.1.2 + object.values: 1.1.6 + resolve: 1.22.1 + tsconfig-paths: 3.14.1 + transitivePeerDependencies: + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color + dev: true + /eslint-plugin-jsx-a11y@6.6.1(eslint@8.46.0): resolution: {integrity: sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==} engines: {node: '>=4.0'} @@ -28965,7 +29089,3 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} dev: true - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false