RepoSense RS Monogram
RepoSensereposen.se
/llm.txtGitHub Repo

pmndrs/zustand

v5.1.0

Bear necessities for state management in React with zero-boilerplate hooks and transient updates.

COMPATIBLE
What is pmndrs/zustand?

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.

STATE_MANAGEMENTnpm:zustandTypeScriptreleases.atom
58,898+8,098 stars (24h)
#zustand#react#nextjs
AI Executive Summary & Artifact Size Impact
Quick Summary: What Changed · What To Do · Upgrade Effort

The persist middleware now supports PromiseLike result. Drop-in upgrade. Migration: None.

Semver: MINOR·Manifest: package.json
Artifact Size Impactmin+gzip
+2 B (+0.4%)
0.5 kB → 0.5 kB(489B → 491B)
Breaking Changes, Release Highlights & Migration Snippet

Key Release Highlights (v5.1.0)

  • The persist middleware now supports PromiseLike results from storage reads, migrations, and migration writes. persist.rehydrate() now returns a native `Promise<void>...
  • The devtools middleware now supports dispatching store actions directly from Redux DevTools using the new actionCreators option. 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
Zero Breaking Changes Detected

Verified safe drop-in upgrade for zustand in package.json.

Copy-Paste Upgrade / Migration Snippet
npm install zustand@5.1.0

Ecosystem Compatibility Matrix & Verified Graph Warnings

TypeScript 5.xcompatible— Ships standard TypeScript declaration files without type regressions.

Zero-Noise Historical Release Timeline (2)

Format: [Core Change] + [Required Action] + [Migration Effort]
v5.1.0COMPATIBLE⚖️ +2 B (+0.4%) (min+gzip)

The persist middleware now supports PromiseLike result. Drop-in upgrade. Migration: None.

v5.0.16COMPATIBLE⚖️ -2.4 kB (-83.0%) (min+gzip)

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 Agents

Is 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