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
- 5
- changes to make
- 0
- advisories fixed
- 1
- new
- 4
- fixes
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
- Prototype Pollution in immercritical · GHSA-33f9-j839-rf8h
- Prototype Pollution in immerhigh · GHSA-9qmh-276g-x5pj
- Prototype Pollution in immerhigh · GHSA-c36v-fmgq-m8hx
Upgrading to 9.0.6 clears them.
Release by release
- 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
- breaking