Packages

zustand

5.0.16 · 22 Oct 2026MIT87.8M / weekRepositorynpmAtom feed

Your version

3.7.0

10 Feb 2022Where it was published

3.7.2 is the newest release of 3.x.

In short

1 breaking2 new2 fixed

  • breaking

    This release is to prepare for v4 release, which will include some breaking changes.

Release note

This release is to prepare for v4 release, which will include some breaking changes. Especially typing store with middleware will be changed. This release gives partial migration path (see tests/middlewareTypes.test.tsx for examples), so it's highly recommended to try this version before v4 comes and report issues.

It also fixes some small typing issues and improves UMD/SystemJS bundling. Oh, and last but not least, vite users don't need to set NODE_ENV anymore.

What's Changed

  • devtools: Don't show jsdoc deprecation warning when no options are passed

  • middleware: Match vanilla StateCreator type in subscribeWithSelector

  • build: Use __DEV__ to control development mode

  • Migrations regarding higher kinded mutators for v4