All Versions
32
Latest Version
Avg Release Cycle
91 days
Latest Release
37 days ago

Changelog History
Page 1

  • v11.1.8 Changes

    May 08, 2026

    11.1.8 (2026-05-08)

    ๐Ÿ› Bug Fixes

    • โšก๏ธ update current and original typings to assert draft value is unwrapped (#1236) (bf2d154)
  • v11.1.7 Changes

    May 06, 2026

    11.1.7 (2026-05-06)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ‘Œ improve higher order type inference for WritableDraft (#1205) (7390d6c)
  • v11.1.6 Changes

    May 04, 2026

    11.1.6 (2026-05-04)

    ๐Ÿ› Bug Fixes

    • โœ‚ remove invalid curried producer type (#1216) (b40b04f)
  • v11.1.5 Changes

    May 04, 2026

    11.1.5 (2026-05-04)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ– handle nested proxies after spreading and inserting into an array (d3bc436)
  • v11.1.4 Changes

    February 10, 2026

    11.1.4 (2026-02-10)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ– handle nested proxies after spreading and inserting into an array (90a7765)
  • v11.1.3 Changes

    December 29, 2025

    11.1.3 (2025-12-29)

    ๐Ÿ› Bug Fixes

  • v11.1.2 Changes

    December 29, 2025

    11.1.2 (2025-12-29)

    ๐Ÿ› Bug Fixes

    • ๐Ÿš€ bogus commit to retest release (c329ddb)
  • v11.1.0 Changes

    December 23, 2025

    11.1.0 (2025-12-20)

    ๐Ÿ”‹ This feature release adds a new optional "array method overrides" plugin that significantly speeds up array methods when accessing drafts.

    ๐Ÿ”„ Changelog

    ๐ŸŽ Performance Improvements

    ๐Ÿ“‡ As part of the recent performance optimization work, our benchmarks showed that all Proxy-based immutable update libraries were drastically slower than vanilla JS when calling both mutating and non-mutating array methods. After investigation, it turns out that an array method like arr.filter() causes the Proxy's get trap to trigger for every single item in the array. This in turn forces creation of a new Proxy and internal Immer metadata for every item, even though this was just a read operation and no items were being updated.

    This release adds a new enableArrayMethods plugin that will override draft array methods to bypass the draft and directly operate on the underlying wrapped array instance. This significantly speeds up array operations.

    ๐Ÿ”Œ When enabled, the plugin overrides these array methods:

    • Mutating: push, pop, shift, unshift, splice, reverse, sort
    • Non-mutating: filter, slice, concat, flat, find, findIndex, findLast, findLastIndex, some, every, indexOf, lastIndexOf, includes, join, toString, toLocaleString

    Our benchmarks show that the overridden methods (plus the other perf changes in Immer 10.2 and 11.0) are 50-80% faster than the baseline behavior of Immer 10.1.

    ๐Ÿ”Œ The plugin adds about 1.5-2K minified to Immer's bundle size.

    ๐Ÿ”Œ It's important to note that the plugin does change the "safe to mutate a draft" semantics of Immer. Any of these methods that receives an array item as a callback argument will not automatically wrap that item in a Proxy!. That means that if you try to mutate an argument in a method such as filter, it will actually mutate the real underlying object, which will cause bugs in your app. This is an intentional design tradeoff. Semantically, all of these methods imply read-only access to array values, so if your code tries to mutate an array item in a callback, that is a bug in your code.

    Note that this does not override map, flatMap, forEach, or reduce / reduceRight. Those methods do imply either side effects and potential mutations, or returning arbitrary values. Given that, we determined it was both safest and simplest to keep their behavior as-is.

    ๐Ÿ‘€ See the Array Methods Plugin docs page for further details on the behavior of the overridden methods.

    What's Changed

    • โšก๏ธ Override array methods to avoid proxy creation while iterating and updating by @markerikson in #1184
  • v11.0.1 Changes

    November 28, 2025

    11.0.1 (2025-11-28)

    ๐Ÿ› Bug Fixes

    • ๐Ÿš€ (dummy fix to release freeze fix per #1193) (99e59a8)
  • v11.0.0 Changes

    November 23, 2025

    11.0.0 (2025-11-23)

    ๐ŸŽ Performance Improvements

    • Rewrite finalization system to use a callback approach instead of tree traversal (#1183) (d6c1202)

    ๐Ÿ’ฅ BREAKING CHANGES

    • 0๏ธโƒฃ enable loose iteration by default

    • Simplify some iteration checks

    • ๐Ÿ‘ Allow passing type to get/set utils to skip archetype lookup

    • Convert assigned_ to Map

    • Enable loose iteration

    • Replace recursive tree finalization with targeted callbacks

    Ported Mutative's "finalization callback" approach as a more targeted and performant implementation for finalization compared to the existing recursive tree traversal approach:

    • โž• Added cleanup callbacks for each draft that's created
    • โž• Added callbacks to handle root drafts, assigned values, and recursing
      inside of plain values
    • โšก๏ธ Updated state creation to return [draft, state] to avoid a lookup
    • Rewrote patch generation system to work with callbacks instead of
      during tree traversal

    • โšก๏ธ Update self-reference test with new behavior

    • Apply code review suggestions

    • ๐Ÿ”Œ Byte-shave scopes and patch plugin usage

    • Inline finalizeAssigned

    • ๐Ÿšš Move fixPotentialSetContents to plugin

    • Byte-shave typeof utils

    • Byte-shave Object references

    • Byte-shave field names and arrow functions