unstale

npm / zustand

zustand

What changed in zustand 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

1 new APIs and options1 tooling9 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

zustand 511 changes

New APIs and options 1

  • An experimental middleware is available for a new usage with Next.js.

    5.0.9release notes

Tooling 1

Fixes and other changes 9

  • clearStorage() now invalidates concurrent asynchronous rehydration.

    5.0.15release notes

  • Corrected the V8 stack regex when a source path contains spaces.

    5.0.15release notes

  • Improves type inference for the Devtools initializer.

    5.0.14release notes

  • Supports Firefox and Safari stack formats when finding the caller name in devtools middleware.

    5.0.13release notes

  • Corrected the Redux DevTools configuration type extension.

    5.0.12release notes

  • The post-rehydration callback now uses the latest state.

    5.0.12release notes

  • Fixes immer middleware typing when used in combination with slices.

    5.0.11release notes

  • The persist middleware no longer relies on global localStorage.

    5.0.11release notes

  • Fixes a race condition during concurrent rehydrate calls in the persist middleware.

    5.0.10release notes