Never miss a release that matters
AI-powered summaries of every GitHub release.
AI Summaries
Changelogs condensed into clear, actionable insights.
Always Free
Track up to 5 packages at no cost, forever.
Weekly Digest
A curated summary of every release, delivered weekly.
TL;DR
Zustand’s Devtools (state management debugging tool) now has improved type inference, providing a better developer experience.
Fixes Worth Knowing
Type inference within Zustand Devtools is improved, reducing potential errors and improving autocompletion when initializing the tool.
TL;DR
Zustand now correctly handles updates when using Immer (a state immutability library) with nested objects, preventing lost reactivity.
Fixes Worth Knowing
Fixes an issue where state updates using Immer would not trigger re-renders for components observing nested object properties. This improves reliability when managing complex state.
TL;DR
Zustand v5 is nearing release with continued refinements, offering improved TypeScript support and stability for state management (a library for managing application data).
Fixes Worth Knowing
A previous refactor of useShallow has been reverted, restoring prior behavior and resolving related issues.
TL;DR
TypeScript users will find improved type safety and accuracy across Zustand, particularly when using useStore and zustand/shallow (state management library).
New
The persist API (data storage) now includes a getOptions method, allowing more control over persisted state.
Fixes Worth Knowing
Several TypeScript-related issues have been resolved, improving the developer experience and reducing type-related errors. These fixes address issues with interfaces, bivariant methods, and the Partial type used with persist.
TL;DR
Zustand’s persist feature (state persistence) now correctly merges saved data with the current store state, preventing data loss in certain scenarios.
Fixes Worth Knowing
The persist middleware now reliably combines stored values with the latest store state, resolving issues where persisted data could be overwritten.
TL;DR
Zustand now supports middleware, allowing for more complex state logic and side effects (functions that interact with external systems).
New
- Middleware Support: Add middleware to intercept and modify actions before they reach the store.
useZustandAPI: Introduced a new API for more flexible store access.
Fixes Worth Knowing
- Fixed a bug where stores weren’t properly cleaned up on unmount, preventing memory leaks.
Package: Zustand Release:
--- v2.3.0 (2019-11-15) --- v2.3.0 2.3.0 feat: add persist middleware
TL;DR
Zustand now supports persisting store state to local storage, retaining data between sessions (data storage in the browser).
New
- Persist Middleware: Added a middleware option to automatically save and restore store state to
localStorage.
Fixes Worth Knowing
- Resolved an issue with TypeScript definitions for stores with complex types.
Package: Zustand Release:
--- v2.4.0 (2019-12-05) --- v