Packages

zustand

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

Upgrading zustand From 4.5.4 to 5.0.16

20 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.5.4Newest 4.x4.5.7
  1. 4.5.4yours
  2. 4.5.5breaking
  3. 2 releases
  4. 5.0.0major
  5. 15 releases
  6. 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

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

11 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

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