fix(deps): update dependency immer to v10 #4371
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
9.0.21
->10.0.2
Release Notes
immerjs/immer
v10.0.2
Compare Source
Bug Fixes
Objectish
type (#1043) (75e004d)v10.0.1
Compare Source
Bug Fixes
v10.0.0
Compare Source
Release notes
Proxy
,Reflect
,Symbol
andMap
andSet
.createDraft
andfinishDraft
.enableES5()
, you SHOULD NOT upgrade Immer.enableES5
has been removed.produce
is no longer exposed as thedefault
export. This improves eco system compatibility, and makes sure that there is only one correct way of doing thingsenableAllPlugins
has been removed, useenablePatches(); enableMapSet()
insteadlength
property, in accordance with JSON spec. Thanks kshramt for implementing this in #964!Overall, there is a rough performance increase of 33% for Immer (and in some cases significantly higher), and the (non gzipped) bundle size has reduced from 16 to 11.5 KB, while the the minimal gzipped import of just
produce
has remained roughly the same at 3.3 KB.For more details, see #1015
Migration steps
enableES5()
call, don't migrateuseStrictShallowCopy(true)
at startupimport produce from "immer"
withimport {produce} from "immer"
enableAllPlugins()
withenablePatches(); enableMapSet();
to be more specific and smoothen future migrations.createDraft
instead. Roughly:Configuration
📅 Schedule: Branch creation - "every weekend,every weekday after 6pm,every weekday before 6am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.