npm / zustand
zustand
What changed in zustand 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
1 new APIs and options1 tooling9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initzustand 511 changes
New APIs and options 1
An experimental middleware is available for a new usage with Next.js.
Tooling 1
Improves typing in the devtools middleware.
Fixes and other changes 9
clearStorage() now invalidates concurrent asynchronous rehydration.
Corrected the V8 stack regex when a source path contains spaces.
Improves type inference for the Devtools initializer.
Supports Firefox and Safari stack formats when finding the caller name in devtools middleware.
Corrected the Redux DevTools configuration type extension.
The post-rehydration callback now uses the latest state.
Fixes immer middleware typing when used in combination with slices.
The persist middleware no longer relies on global localStorage.
Fixes a race condition during concurrent rehydrate calls in the persist middleware.