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" } }