Skip to content

Commit

Permalink
chore: update deps (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Feb 14, 2024
1 parent f8c0b91 commit cfeeca7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 34 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
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit cfeeca7

Please sign in to comment.