Reposen Monogram
Reposenreposen.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
۵۸٬۹۳۰+۳۲ ★ (24h)
#zustand#react#nextjs
AI Executive Summary & Artifact Size Impact

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.

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(۴۸۹B → ۴۹۱B)
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
No Breaking Changes Flagged (AI Signal)

AI-estimated compatible upgrade signal for zustand in package.json.

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

Ecosystem Compatibility Matrix & Detected Graph Signals

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 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)

All Engineering Articles
8 min read

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)

TagEdge Heuristics
COMPATIBLECOMPATIBLE WITH>= 18.0.0

Zustand v5 & React 19 State Synchronization and Compatibility

Zustand v5 provides native React 19 support with useSyncExternalStore, eliminating tearing and dropping legacy default exports.

Companion: react
Compatibility Guide

Featured in Daily Cortex Briefs (1)

Browse All Daily Briefs →
DATA, STATE & UI PRIMITIVES · v5.1.0Edition 2026-11-06

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.