Packages

immer

11.2.9 · 22 Oct 2026MIT89.4M / weekRepositoryHomepagenpmAtom feed

Upgrading immer From 6.0.9 to 7.0.0

1 release in betweenevery note read

Other targets from 6.0.9Latest11.2.9
  1. 6.0.9yours
  2. 7.0.0target

Before you upgrade

Tick each one off as you go
  • breaking7.0.0
  • breaking7.0.0
  • breaking7.0.0
  • breaking7.0.0
  • breaking7.0.0

Security

3 advisories still affect 7.0.0

Upgrading to 9.0.6 clears them.

Release by release

  1. 7.0.0

    Migration needed10 Jun 20201 new · 4 fixes
    • breaking

      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

      Produce no longer accepts non-draftable objects as first argument

    • breaking

      Original can only be called on drafts and will throw otherwise (fixes #605)

    • breaking

      non-enumerable and symbolic fields will never be frozen