All Versions
Latest Version
Avg Release Cycle
10 days
Latest Release
1310 days ago

Changelog History
Page 2

  • v7.0.6 Changes

    July 24, 2020

    7.0.6 (2020-07-24)

    ๐Ÿ› Bug Fixes

    • flow: added types for produceWithPatches (b355838)
  • v7.0.5 Changes

    June 24, 2020

    7.0.5 (2020-06-24)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixed regression in Object.frozen for IE11. Fixes #600 (6371d05)
  • v7.0.4 Changes

    June 22, 2020

    7.0.4 (2020-06-22)

    ๐Ÿ› Bug Fixes

    • โœ… Flow: Add tests for Map and Set and fix base type (9022672)
    • ๐Ÿ†• new map keys were not added if value is undefined (4a1bd65)
  • v7.0.3 Changes

    June 19, 2020

    7.0.3 (2020-06-19)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  getOwnPropertyDescriptors is not available in Internet Explorer and Hermes. Fixes #626 (c7a47e2)
  • v7.0.2 Changes

    June 19, 2020

    7.0.2 (2020-06-19)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixed #620: Symbolic properties were not drafted or finalized correctly (91915cf)
  • v7.0.1 Changes

    June 12, 2020

    7.0.1 (2020-06-12)

    ๐Ÿ› Bug Fixes

    • โž• Add missing type current for pre-TS 3.7 types (7d6b57b)
  • v7.0.0 Changes

    June 10, 2020

    7.0.0 (2020-06-10)

    ๐Ÿ–จ Introduced current, which takes a snapshot of the current state of a draft and finalizes it (but without freezing). Current is a great utility to print the current state during debugging (no Proxies in the way), and the output of current can also be safely leaked outside the producer. Implements #441, #591

    ๐Ÿ›  [BREAKING CHANGE] getters and setters are now handled consistently: own getters and setters will always by copied into fields (like Object.assign does), inherited getters and setters will be left as-is. This should allow using Immer directly on objects that trap their fields, like done in Vue or MobX. Fixes #584, #439, #593, #558

    [BREAKING CHANGE] produce no longer accepts non-draftable objects as first argument

    ๐Ÿ›  [BREAKING CHANGE] original can only be called on drafts and will throw otherwise (fixes #605)

    [BREAKING CHANGE] non-enumerable and symbolic fields will never be frozen

    ๐Ÿ›  [BREAKING CHANGE] the patches for arrays are now computed differently to fix some scenarios in which they were incorrect. In some cases they will be more optimal now, in other cases less. Especially splicing / unshifting items into an existing array might result in a lot of patches. Fixes #468

    ๐Ÿ‘Œ Improved documentation in several areas, there is now a page for typical update patterns and a separate page on how to work with classes. And additional performance tips have been included. Fixes #457, #115, #462

    ๐Ÿ›  Fixed #462: All branches of the produced state should be frozen

    ๐Ÿ›  Fixed #588: Inconsistent behavior with nested produce

    ๐Ÿ›  Fixed #577: Immer might not work with polyfilled symbols

    ๐Ÿ›  Fixed #514, #609: Explicitly calling useProxies(false) shouldnโ€™t check for the presence of Proxy.