Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: immerjs/immer

v10.2.0

25 Oct 11:31
e1996ce
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

10.2.0 (2025-10-25)

Features

  • Optimize Immer performance where possible, introducesetUseStrictIteration (#1164) (e1996ce)
Assets2
Loading

v10.1.3

01 Sep 18:14
85faaa2
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

10.1.3 (2025-09-01)

Bug Fixes

  • Mark exports as pure, for better tree-shakability (#1124) (85faaa2)
Loading
andreylysenko, grigoriy-reshetniak, Dxig, and marco-arnold reacted with thumbs up emoji
4 people reacted

v10.1.2

01 Sep 18:10
062210e
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

10.1.2 (2025-09-01)

Bug Fixes

  • non-enumerable (immutable) methods on Map/Set (#1069) (aa24400)
  • Update package.json exports for react-native (#1159) (b2fcc66)
Loading

v10.1.1

27 Apr 20:07
e2d222b
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

10.1.1 (2024-04-27)

Bug Fixes

Loading
emrerdem1, Dxig, andreylysenko, and rodamaral reacted with thumbs up emoji
4 people reacted

v10.1.0

27 Apr 19:56
53e3203
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

10.1.0 (2024-04-27)

Features

  • performance: Make non-strict mode faster for classes. Addresses#1071 (53e3203). Immer 10.x solved slow iteration for plain JS objects. This update applies the same handling to class instances. In cases this makes class instance handling 3 times faster. Note that this slightly modifies the behavior of Immer with classes in obscure corner cases, in ways that match current documentation, but do not match previous behavior. If you run into issues with this release icmw. class instances, usesetUseStrictShallowCopy("class_only") to revert to the old behavior. For more details seehttps://immerjs.github.io/immer/complex-objects#semantics-in-detail
Loading

v10.0.4

09 Mar 21:37

Choose a tag to compare

10.0.4 (2024-03-09)

Bug Fixes

Loading
Rel1cx, emrerdem1, giovanifranz, andreylysenko, rodamaral, Dxig, and roman0x58 reacted with rocket emoji
7 people reacted

v10.0.3

02 Oct 06:36
f6736a4
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Choose a tag to compare

10.0.3 (2023-10-02)

Bug Fixes

Loading
rodamaral, vietnamesekid, and andreylysenko reacted with thumbs up emoji
3 people reacted

v10.0.2

09 May 18:24
75e004d
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Choose a tag to compare

10.0.2 (2023-05-09)

Bug Fixes

Loading
tronikelis, rodamaral, 2khan, and andreylysenko reacted with hooray emoji
4 people reacted

v10.0.1

17 Apr 19:00

Choose a tag to compare

10.0.1 (2023-04-17)

Bug Fixes

  • production bundle was loaded incorrectly, fixes#1037 (707e72b)
Loading
Dxig and goldmont reacted with thumbs up emojirodamaral and iamalextodoran reacted with laugh emoji
4 people reacted

v10.0.0

17 Apr 10:38
2ef9a42
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Choose a tag to compare

10.0.0 (2023-04-17)

Release notes

  • [breaking change] Immer 10 only supports modern browsers, that have support forProxy,Reflect,Symbol andMap andSet.
  • [breaking change] There is no longer a UMD build exposed (thanksMark Erikson for modernizing the build setup in#1032!
  • [breaking change] getters and setters are ignored by default on plain object, as this is a very uncommon case and provides a significant performance boost (ca 33%, but depends a lot on the scenario). Fixes#867,#1012. Thankshrsh7th for implementing it in#941!
  • [breaking change] Promise based reducers are no longer supported. Conceptually it is an anti pattern to hold on to drafts over time. If needed the old behavior can still be achieved by leveragingcreateDraft andfinishDraft.
  • [breaking change] ES5 mode (for legacy browsers) has been dropped. If your project relies onenableES5(), you SHOULD NOT upgrade Immer.enableES5 has been removed.
  • [breaking change]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 things
  • [breaking change]enableAllPlugins has been removed, useenablePatches(); enableMapSet() instead
  • [breaking change] shortening the length of a JSON array now results in delete patches, rather than a mutation of thelength property, in accordance with JSON spec. Thankskshramt for implementing this in#964!
  • Immer is now an ESM package that can be directly imported into the browser. CJS should still work, UMD support has been removed.

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 justproduce has remained roughly the same at 3.3 KB.

For more details, see#1015

Migration steps

  1. If you have anyenableES5() call, don't migrate
  2. When using getters/ setters icmw plain objects, calluseStrictShallowCopy(true) at startup
  3. Replace all default imports: Replaceimport produce from "immer" withimport {produce} from "immer"
  4. Replace all calls toenableAllPlugins() withenablePatches(); enableMapSet(); to be more specific and smoothen future migrations.
  5. If any producer returned a Promise, refactor it to leveragecreateDraft instead. Roughly:
constnewState=awaitproduce(oldState,recipe)// becomesconstdraft=createDraft(oldState)awaitrecipe(draft)constnewState=finishDraft(draft)
Loading
outbackStack, Codennnn, Isola92, FaahdNoor, edant92, ahuiiiiiii, guillermoz-nutanix, eikowagenknecht, xianshenglu, raineorshine, and 3 more reacted with thumbs up emojioutbackStack and ahuiiiiiii reacted with laugh emojisajmoni, hrsh7th, sonyarianto, lovetingyuan, rodamaral, stropitek, 1zilc, tronikelis, o-gi, alexandesigner, and 42 more reacted with hooray emoji171h, outbackStack, li1234yun, mcagataykaban, and aplumez reacted with heart emojioutbackStack, tony-scio, and tuliooassis reacted with rocket emojioutbackStack reacted with eyes emoji
68 people reacted
Previous13451112
Previous

[8]ページ先頭

©2009-2025 Movatter.jp