Packages

zustand

5.0.16 · 22 Oct 2026MIT87.8M / weekRepositorynpmAtom feed

Upgrading zustand From 3.1.1 to 5.0.16

90 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.1.1Newest 3.x3.7.2
  1. 3.1.1yours
  2. 39 releases
  3. 4.0.0major
  4. 33 releases
  5. 5.0.0major
  6. 15 releases
  7. 5.0.16target

Start here

Before you upgrade

Tick each one off as you go
  • breaking5.0.0
  • breaking5.0.0
  • breaking5.0.0
  • breaking5.0.0
  • breaking4.5.5
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0

Release by release

  1. 5.0.16

    22 Oct 20261 new · 3 fixes
    • new

      react: Don't memoize getServerSnapshot in useStore

    • fixed

      devtools: Apply serialize.reviver when parsing devtools messages

    • fixed

      devtools: Preserve shared connections during store cleanup

    • fixed

      persist: Preserve external devtools action arguments

  2. 5.0.15

    13 Aug 20262 fixes
    • fixed

      devtools: Correct V8 stack regex when source path contains spaces

    • fixed

      persist: clearStorage() should invalidate concurrent async rehydration

  3. 5.0.14

    28 May 20261 fix
    • fixed

      devtools: Improve type inference for Devtools initializer

  4. 5.0.13

    5 May 20261 fix
    • fixed

      devtools: Support Firefox/Safari stack format in findCallerName

  5. 5.0.12

    16 Mar 20262 fixes
    • fixed

      persist: Use latest state in post-rehydration callback

    • fixed

      devtools: Correct redux devtools config type extension

  6. 5.0.11

    1 Feb 20262 fixes
    • fixed

      persist: Avoid relying on global localStorage

    • fixed

      immer: Proper typing for immer middleware in combination with slices

  7. 5.0.10

    12 Jan 20261 fix
    • fixed

      persist: Prevent race condition during concurrent rehydrate calls

  8. 5.0.9nothing new or fixed in the note

27 other lines we could not sort, mostly version bumps
  • experimental: Unstable ssrSafe middleware

    5.0.9
  • No new features

    5.0.0
  • Drop many old things

    5.0.0
  • Migration from v4 should be smooth.

    5.0.0
  • Make use-sync-external-store a peer dependency (required for createWithEqualityFn and useStoreWithEqualityFn in zustand/traditional)

    5.0.0
  • Drop UMD/SystemJS support

    5.0.0
  • Organize entry points in the package.json

    5.0.0
  • Drop ES5 support

    5.0.0
  • Stricter types when setState's replace flag is set

    5.0.0
  • Persist middleware behavioral change

    5.0.0

42 internal lines (docs, tests, tooling) left out.