# What changed in zustand

> 11 changes in zustand 5 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/zustand/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## zustand 5

### New APIs and options

- An experimental middleware is available for a new usage with Next.js. (5.0.9) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.9)

### Tooling

- Improves typing in the devtools middleware. (5.0.11) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.11)

### Fixes and other changes

- clearStorage() now invalidates concurrent asynchronous rehydration. (5.0.15) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.15)
- Corrected the V8 stack regex when a source path contains spaces. (5.0.15) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.15)
- Improves type inference for the Devtools initializer. (5.0.14) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.14)
- Supports Firefox and Safari stack formats when finding the caller name in devtools middleware. (5.0.13) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.13)
- Corrected the Redux DevTools configuration type extension. (5.0.12) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.12)
- The post-rehydration callback now uses the latest state. (5.0.12) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.12)
- Fixes immer middleware typing when used in combination with slices. (5.0.11) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.11)
- The persist middleware no longer relies on global localStorage. (5.0.11) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.11)
- Fixes a race condition during concurrent rehydrate calls in the persist middleware. (5.0.10) — [release notes](https://github.com/pmndrs/zustand/releases/tag/v5.0.10)
