Packages

immer

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

Upgrading immer From 9.0.21 to 10.0.0

1 release in betweenevery note read

Other targets from 9.0.21Latest11.2.9
  1. 9.0.21yours
  2. 10.0.0target
8
changes to make
0
advisories fixed
0
new
0
fixes

Before you upgrade

Tick each one off as you go
  • breaking10.0.0
  • breaking10.0.0
  • breaking10.0.0
  • breaking10.0.0
  • breaking10.0.0
  • breaking10.0.0
  • breaking10.0.0
  • breaking10.0.0
6 other lines we could not sort, mostly version bumps
  • Immer is now an ESM package that can be directly imported into the browser. CJS should still work, UMD support has been removed.

    10.0.0
  • If you have any enableES5() call, don't migrate

    10.0.0
  • When using getters/ setters icmw plain objects, call useStrictShallowCopy(true) at startup

    10.0.0
  • Replace all default imports: Replace import produce from "immer" with import {produce} from "immer"

    10.0.0
  • Replace all calls to enableAllPlugins() with enablePatches(); enableMapSet(); to be more specific and smoothen future migrations.

    10.0.0
  • If any producer returned a Promise, refactor it to leverage createDraft instead. Roughly:

    10.0.0