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…
- 4
- changes to make
- 0
- advisories fixed
- 6
- new
- 23
- fixes
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
- Fixed
middleware: Persist migration supporting promise-like
- Fixed
middleware: Devtools action dispatching
- Fixed
- 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
- New
- Fixed
devtools: Correct V8 stack regex when source path contains spaces
- Fixed
persist: clearStorage() should invalidate concurrent async rehydration
- Fixed
- Fixed
devtools: Improve type inference for Devtools initializer
- Fixed
- Fixed
devtools: Support Firefox/Safari stack format in findCallerName
- Fixed
- Fixed
persist: Use latest state in post-rehydration callback
- Fixed
devtools: Correct redux devtools config type extension
- Fixed
- Fixed
persist: Avoid relying on global localStorage
- Fixed
immer: Proper typing for immer middleware in combination with slices
- Fixed
- Fixed
persist: Prevent race condition during concurrent rehydrate calls
- Fixed
13 other lines we could not sort, mostly version bumps
- 5.1.0
The
persistmiddleware now supportsPromiseLikeresults from storage reads, migrations, and migration writes.persist.rehydrate()now returns a nativePromise<void>, which you can await to ensure hydration is complete. - 5.1.0
The
devtoolsmiddleware now supports dispatching store actions directly from Redux DevTools using the newactionCreatorsoption. It also supports nested actions and arguments. - 5.0.9
experimental: Unstable ssrSafe middleware
- 5.0.0
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
createWithEqualityFnanduseStoreWithEqualityFninzustand/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 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.