zustand
5.0.16 · 22 Oct 2026MIT87.8M / weekRepositorynpmAtom feed
Upgrading zustand From 4.5.7 to 5.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 0
- new
- 1
- fix
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
- breaking
Drop default exports
- breaking
Drop deprecated features
- breaking
Make React 18 the minimum required version
- breaking
Make TypeScript 4.5 the minimum required version
- fixed
Fix Immer type inference for
setState
- breaking
10 other lines we could not sort, mostly version bumps
- 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
- 5.0.0
Other small improvements (technically breaking changes)
1 internal line (docs, tests, tooling) left out.