Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Feb 14, 2024
1 parent f8c0b91 commit 8a7bfcf
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
1 change: 0 additions & 1 deletion .nvm

This file was deleted.

20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,7 @@ export class MoviesStore extends ImmerComponentStore<MoviesState> {
## `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

Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
"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"
}
}
3 changes: 3 additions & 0 deletions src/dist/schematics/migrations/migration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"schematics": {}
}

0 comments on commit 8a7bfcf

Please sign in to comment.