zustand
5.0.16 · 22 Oct 2026MIT87.8M / weekRepositorynpmAtom feed
Your version
4.5.7 is the newest release of 4.x.
In short
1 deprecated1 new2 fixed
- deprecated
This adds
useShallowhook to cover some use cases that are deprecated with v4.4.0 change.
Release note
This adds useShallow hook to cover some use cases that are deprecated with v4.4.0 change. Check out the guide.
Migration Guide
#1991 requires something like below if you are using the devtools middleware and TypeScript.
import { devtools } from 'zustand/middleware'
+ import type {} from '@redux-devtools/extension'What's Changed
fix(types)(middleware/devtools): avoid copying types
traditional: Make defaultEqualityFn optional in TS Types
Add useShallow