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.
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
Verified safe drop-in upgrade for zustand in package.json.
npm install zustand@5.1.0Ecosystem Compatibility Matrix & Verified Graph Warnings
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 RepoSense 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