immer
11.2.9 · 22 Oct 2026MIT89.4M / weekRepositoryHomepagenpmAtom feed
Upgrading immer From 10.0.3 to 10.2.0
6 releases in betweenevery note read
Release by release
- new
Optimize Immer performance where possible, introduce
setUseStrictIteration
- new
- fixed
Mark exports as pure, for better tree-shakability
- fixed
- fixed
non-enumerable (immutable) methods on Map/Set
- fixed
Update package.json exports for react-native
- fixed
- fixed
Export lost types
- fixed
Make
applyPatchesto acceptreadonly Patch
- fixed
- new
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, use
setUseStrictShallowCopy("class_only")to revert to the old behavior. For more details see immerjs.github.io/immer/complex-objects
- new