pmndrs/zustand
v5.1.0Bear necessities for state management in React with zero-boilerplate hooks and transient updates.
Zustand is a small, fast state management library for React applications. It solves the problem of passing props through dozens of component layers—or writing verbose Redux boilerplate—by letting any component read and update shared application state through a simple hook.
Summaries, compatibility signals, and upgrade commands on this page are generated automatically by AI without human editorial review on an "as-is" basis. Verify against official upstream GitHub release notes before upgrading, see Legal Disclaimer or Report an Error.
The persist middleware now supports PromiseLike result. Drop-in upgrade. Migration: None.
Key Release Highlights (v5.1.0)
- The
persistmiddleware now supportsPromiseLikeresults from storage reads, migrations, and migration writes.persist.rehydrate()now returns a native `Promise<void>... - The
devtoolsmiddleware now supports dispatching store actions directly from Redux DevTools using the newactionCreatorsoption. It also supports nested actions and arguments. - fix(middleware): persist migration supporting promise-like by @dai-shi in #3583
- fix(middleware): devtools action dispatching by @dai-shi in #3595
AI-estimated compatible upgrade signal for zustand in package.json.
npm install zustand@5.1.0Ecosystem Compatibility Matrix & Detected Graph Signals
Zero-Noise Historical Release Timeline (2)
Format: [Core Change] + [Required Action] + [Migration Effort]The persist middleware now supports PromiseLike result. Drop-in upgrade. Migration: None.
perf(react): don't memoize getServerSnapshot in useStore b. Drop-in upgrade. Migration: None.
Upgrade & Migration Q&A (pmndrs/zustand v5.1.0)
Direct Answers for Engineers & AI AgentsIs pmndrs/zustand v5.1.0 safe to upgrade in production?
pmndrs/zustand v5.1.0 is classified as COMPATIBLE (MINOR release). The persist middleware now supports PromiseLike result. Drop-in upgrade. Migration: None.
What breaking changes or compatibility risks exist in pmndrs/zustand v5.1.0?
No breaking API changes or peer dependency conflicts are recorded for pmndrs/zustand v5.1.0 in the Reposen compatibility graph.
What is the bundle size impact of zustand v5.1.0?
zustand v5.1.0 records a +2 B (+0.4%) delta (min+gzip), moving from 489 bytes to 491 bytes.
How do I upgrade zustand to v5.1.0?
Upgrade zustand to v5.1.0 by running "npm install zustand@5.1.0" and applying the migration steps: npm install zustand@5.1.0
Related Engineering Blueprints (1)
Zustand v5: Complete Changelog, New Features, and Migration Guide
Master the Zustand v5 release: React 19 concurrent integration, breaking changes, middleware syntax refactoring, and step-by-step migration patterns.
Ecosystem Compatibility & Migration Guides (1)
Zustand v5 & React 19 State Synchronization and Compatibility
Zustand v5 provides native React 19 support with useSyncExternalStore, eliminating tearing and dropping legacy default exports.
Featured in Daily Cortex Briefs (1)
Browse All Daily Briefs →pmndrs/zustand (v5.1.0) & langchain-ai/langgraphjs (@langchain/vue@1.2.12) — State, Data & UI Evolution
The persist middleware now supports PromiseLike result. Drop-in upgrade. Migration: None.