Skip to content

Commit

Permalink
Updates to stable immer-peasy
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlplusb committed Jun 28, 2019
1 parent f526916 commit 3144e24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"react": "^16.8.0"
},
"dependencies": {
"immer-peasy": "^4.0.0-beta.0",
"immer-peasy": "3.1.3",
"memoizerific": "^1.11.3",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
Expand Down
7 changes: 2 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ import {
} from './helpers';

/**
* immer is an implementation detail, so we are not going to use its auto freeze
* behaviour, which throws errors if trying to mutate state. It's also risky
* for production builds as has a perf overhead.
*
* @see https://github.com/mweststrate/immer#auto-freezing
* The auto freeze feature of immer doesn't seem to work in our testing. We have
* explicitly disabled it to avoid perf issues.
*/
setAutoFreeze(false);

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3455,10 +3455,10 @@ iltorb@^2.0.5:
prebuild-install "^5.2.1"
which-pm-runs "^1.0.0"

immer-peasy@^4.0.0-beta.0:
version "4.0.0-beta.0"
resolved "https://registry.yarnpkg.com/immer-peasy/-/immer-peasy-4.0.0-beta.0.tgz#d1ba5297bcf4cb6b42089653f61c80252ba51c4a"
integrity sha512-DazOrbz+fToZ3DC1kf3PI7YVa47fElgA4nc7G5JHYkGwfWEzk0b0Hiix+oQjMoRnLOuKZm6P3C+9uPtzIeMjJw==
immer-peasy@3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/immer-peasy/-/immer-peasy-3.1.3.tgz#d0ea8d388f47ec6b15ab2ca19ffb9f0bf4310110"
integrity sha512-WzoZ96A93jOmcDOLNChMWAqy+ZU8vEYQx2DcKjgo7P5SToiJs+GL+5yQbWzH8X02Lhvv6xrGgVNa1xbki66Eow==

import-fresh@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit 3144e24

Please sign in to comment.