Packages

zustand

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

Upgrading zustand From 1.0.7 to 5.0.16

103 releases in betweennotes for 98

Reading releases, release notes and advisories…

  1. 1.0.7yours
  2. 2.0.0major
  3. 6 releases
  4. 3.0.0major
  5. 44 releases
  6. 4.0.0major
  7. 33 releases
  8. 5.0.0major
  9. 15 releases
  10. 5.0.16target
31+
changes to make
0
advisories fixed
37+
new
111+
fixes

Counted from 98 of 103 release notes. Advisories are counted from the advisory database, in full.

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

35 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

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