Skip to content

Commit

Permalink
fix(slice): use correct import
Browse files Browse the repository at this point in the history
  • Loading branch information
Chau Tran authored and Chau Tran committed May 22, 2023
1 parent ead778c commit 646eff3
Show file tree
Hide file tree
Showing 3 changed files with 1,190 additions and 1,415 deletions.
70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,64 +8,64 @@
},
"private": true,
"dependencies": {
"@angular/animations": "15.0.4",
"@angular/common": "15.0.4",
"@angular/compiler": "15.0.4",
"@angular/core": "15.0.4",
"@angular/forms": "15.0.4",
"@angular/platform-browser": "15.0.4",
"@angular/platform-browser-dynamic": "15.0.4",
"@angular/router": "15.0.4",
"@ngrx/store": "15.3.0",
"immer": "~9.0.17",
"lil-gui": "0.17.0",
"proxy-compare": "2.4.0",
"rxjs": "~7.8.0",
"@angular/animations": "16.0.2",
"@angular/common": "16.0.2",
"@angular/compiler": "16.0.2",
"@angular/core": "16.0.2",
"@angular/forms": "16.0.2",
"@angular/platform-browser": "16.0.2",
"@angular/platform-browser-dynamic": "16.0.2",
"@angular/router": "16.0.2",
"@ngrx/store": "16.0.0",
"immer": "~10.0.2",
"lil-gui": "0.18.1",
"proxy-compare": "2.5.1",
"rxjs": "~7.8.1",
"todomvc-app-css": "2.4.2",
"todomvc-common": "1.0.5",
"tslib": "^2.4.1",
"zone.js": "~0.12.0"
"tslib": "^2.5.2",
"zone.js": "~0.13.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "15.0.4",
"@angular-devkit/core": "15.0.4",
"@angular-devkit/schematics": "15.0.4",
"@angular-devkit/build-angular": "16.0.2",
"@angular-devkit/core": "16.0.2",
"@angular-devkit/schematics": "16.0.2",
"@angular-eslint/eslint-plugin": "16.0.2",
"@angular-eslint/eslint-plugin-template": "16.0.2",
"@angular-eslint/template-parser": "16.0.2",
"@angular/cli": "~16.0.0",
"@angular/compiler-cli": "15.0.4",
"@angular/language-service": "15.0.4",
"@angular/cli": "~16.0.2",
"@angular/compiler-cli": "16.0.2",
"@angular/language-service": "16.0.2",
"@nx/eslint-plugin": "16.2.1",
"@nx/jest": "16.2.1",
"@nx/linter": "16.2.1",
"@nx/workspace": "16.2.1",
"@release-it/bumper": "4.0.2",
"@release-it/conventional-changelog": "5.1.1",
"@schematics/angular": "15.0.4",
"@types/jest": "29.4.4",
"@schematics/angular": "16.0.2",
"@types/jest": "29.5.1",
"@types/node": "16.11.7",
"@typescript-eslint/eslint-plugin": "5.59.6",
"@typescript-eslint/parser": "5.59.6",
"all-contributors-cli": "6.24.0",
"commitizen": "4.2.6",
"all-contributors-cli": "6.25.1",
"commitizen": "4.3.0",
"cz-conventional-changelog": "^3.3.0",
"cz-customizable": "7.0.0",
"dotenv-cli": "6.0.0",
"eslint": "8.31.0",
"eslint-config-prettier": "8.6.0",
"jest": "29.4.3",
"jest-environment-jsdom": "29.4.3",
"dotenv-cli": "7.2.1",
"eslint": "8.41.0",
"eslint-config-prettier": "8.8.0",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"jest-preset-angular": "13.1.1",
"ng-packagr": "15.0.3",
"ng-packagr": "16.0.1",
"nx": "16.2.1",
"nx-cloud": "16.0.5",
"postcss": "^8.4.20",
"postcss": "^8.4.23",
"postcss-import": "15.1.0",
"postcss-preset-env": "7.8.3",
"postcss-preset-env": "8.4.1",
"postcss-url": "10.1.3",
"prettier": "2.8.1",
"release-it": "15.6.0",
"prettier": "2.8.8",
"release-it": "15.10.3",
"ts-jest": "29.1.0",
"typescript": "5.0.4",
"@nx/angular": "16.2.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/ngrx-slice/entity/src/lib/state-adapter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import createNextState, { isDraft } from 'immer';
import { produce, isDraft } from 'immer';
import type { PayloadAction } from 'ngrx-slice';
import type { EntityState, PreventAny } from './typings';

Expand Down Expand Up @@ -47,6 +47,6 @@ export function createStateOperator<TData, TArg>(
return state;
}

return createNextState(state, runMutator);
return produce(state, runMutator);
};
}
Loading

0 comments on commit 646eff3

Please sign in to comment.