Packages

zustand

5.1.0 · 6 Nov 2026MIT94.9M / weekRepositorynpmAtom feed

Upgrading zustand From 4.5.7 to 5.1.0

18 releases in betweenevery note read

Reading releases, release notes and advisories…

  1. 4.5.7yours
  2. 5.0.0major
  3. 16 releases
  4. 5.1.0target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Release by release

  1. 5.1.0

    6 Nov 20262 fixes
    • Fixed

      middleware: Persist migration supporting promise-like

    • Fixed

      middleware: Devtools action dispatching

  2. 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

  3. 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

  4. 5.0.14

    28 May 20261 fix
    • Fixed

      devtools: Improve type inference for Devtools initializer

  5. 5.0.13

    5 May 20261 fix
    • Fixed

      devtools: Support Firefox/Safari stack format in findCallerName

  6. 5.0.12

    16 Mar 20262 fixes
    • Fixed

      persist: Use latest state in post-rehydration callback

    • Fixed

      devtools: Correct redux devtools config type extension

  7. 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

  8. 5.0.10

    12 Jan 20261 fix
    • Fixed

      persist: Prevent race condition during concurrent rehydrate calls

13 other lines we could not sort, mostly version bumps
  • The persist middleware now supports PromiseLike results from storage reads, migrations, and migration writes. persist.rehydrate() now returns a native Promise<void>, which you can await to ensure hydration is complete.

    5.1.0
  • The devtools middleware now supports dispatching store actions directly from Redux DevTools using the new actionCreators option. It also supports nested actions and arguments.

    5.1.0
  • 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

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

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.