From cfeeca79a8e58204161452bcd7b012ebcf496d02 Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Wed, 14 Feb 2024 18:52:46 +0100 Subject: [PATCH] chore: update deps (#23) --- .github/workflows/ci.yml | 2 +- .node-version | 1 + .nvm | 1 - README.md | 20 +------------------- package.json | 26 +++++++++++++------------- 5 files changed, 16 insertions(+), 34 deletions(-) create mode 100644 .node-version delete mode 100644 .nvm diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18e225d..ebf09aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: build_test_release: strategy: matrix: - node-version: ${{ fromJSON((github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') && '[18]' || '[16,18]') }} + node-version: ${{ fromJSON((github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') && '[20]' || '[18,20]') }} os: ${{ fromJSON((github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') && '["ubuntu-latest"]' || '["ubuntu-latest", "windows-latest"]') }} runs-on: ${{ matrix.os }} diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..2edeafb --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20 \ No newline at end of file diff --git a/.nvm b/.nvm deleted file mode 100644 index 25bf17f..0000000 --- a/.nvm +++ /dev/null @@ -1 +0,0 @@ -18 \ No newline at end of file diff --git a/README.md b/README.md index 18aa724..a6c2f66 100644 --- a/README.md +++ b/README.md @@ -83,25 +83,7 @@ export class MoviesStore extends ImmerComponentStore { ## `immerReducer` Inspired by [Alex Okrushko](https://twitter.com/alexokrushko), `immerReducer` is a reducer method that uses the Immer `produce` method. -This method is used by all of the methods in `ngrx-immer` provides. - -## Migrating from `ngrx-etc` to `ngrx-immer` - -You can execute the following script in your project, -this script replaces everything from `ngrx-etc` to the `ngrx-immer` equivalent. - -```bash -npx https://gist.github.com/timdeschryver/efdded8b72bd36ac0a2bc719eca1f161 -``` - -Don't forget to install `ngrx-immer` and `immer` after running the above script. - -| Old (`ngrx-etc`) | New (`ngrx-immer`) | -| -------------------- | ------------------- | -| mutableOn | immerOn | -| createMutableReducer | createImmerReducer | -| | ImmerComponentStore | -| | immerReducer | +This method is used by all the methods in `ngrx-immer` provides. ## FAQ diff --git a/package.json b/package.json index f19a9b6..3bf9be3 100644 --- a/package.json +++ b/package.json @@ -4,24 +4,24 @@ "scripts": { "test": "uvu -r tsm -r tsconfig-paths/register src tests", "build": "ng-packagr -p src/ng-package.json", - "postbuild": "cpy README.md LICENSE dist && cpy schematics ../dist --parents --cwd=src" + "postbuild": "cpy README.md LICENSE dist && cpy schematics ../../dist --parents --cwd=src" }, "devDependencies": { - "@angular/compiler": "^16.0.0", - "@angular/compiler-cli": "^16.0.0", - "@angular/core": "^16.0.0", - "@ngrx/component-store": "^16.0.0", - "@ngrx/store": "^16.0.0", - "cpy-cli": "^4.1.0", - "immer": "^9.0.15", - "ng-packagr": "^16.0.0", - "prettier": "^2.7.1", - "rimraf": "^3.0.2", - "rxjs": "~7.5.5", + "@angular/compiler": "^17.0.0", + "@angular/compiler-cli": "^17.0.0", + "@angular/core": "^17.0.0", + "@ngrx/component-store": "^17.0.0", + "@ngrx/store": "^17.0.0", + "cpy-cli": "^5.0.0", + "immer": "^10.0.3", + "ng-packagr": "^17.0.0", + "prettier": "^3.2.5", + "rimraf": "^5.0.5", + "rxjs": "~7.8.1", "ts-node": "^10.9.1", "tsconfig-paths": "^4.0.0", "tsm": "^2.3.0", - "typescript": "5.0.3", + "typescript": "5.3.3", "uvu": "^0.5.6" } }