zustand
5.0.16 · 22 Oct 2026MIT87.8M / weekRepositorynpmAtom feed
Upgrading zustand From 4.4.4 to 5.0.16
28 releases in betweenevery note read
Reading releases, release notes and advisories…
- 5
- changes to make
- 0
- advisories fixed
- 7
- new
- 28
- 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
- breaking4.5.5
Release by release
- 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
5.0.9nothing new or fixed in the note
16 other lines we could not sort, mostly version bumps
- 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.0.0
Stricter types when setState's replace flag is set
- 5.0.0
Persist middleware behavioral change
10 internal lines (docs, tests, tooling) left out.