Packages

zustand

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

Upgrading zustand From 4.5.7 to 5.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.5.7Latest5.0.16
  1. 4.5.7yours
  2. 5.0.0target
4
changes to make
0
advisories fixed
0
new
1
fix

Start here

Before you upgrade

Tick each one off as you go
  • breaking5.0.0
  • breaking5.0.0
  • breaking5.0.0
  • breaking5.0.0

Release by release

  1. 5.0.0

    Migration needed14 Oct 20241 fix
    • breaking

      Drop default exports

    • breaking

      Drop deprecated features

    • breaking

      Make React 18 the minimum required version

    • breaking

      Make TypeScript 4.5 the minimum required version

    • fixed

      Fix Immer type inference for setState

10 other lines we could not sort, mostly version bumps
  • No new features

    5.0.0
  • Drop many old things

    5.0.0
  • Migration from v4 should be smooth.

    5.0.0
  • Make use-sync-external-store a peer dependency (required for createWithEqualityFn and useStoreWithEqualityFn in zustand/traditional)

    5.0.0
  • Drop UMD/SystemJS support

    5.0.0
  • Organize entry points in the package.json

    5.0.0
  • Drop ES5 support

    5.0.0
  • Stricter types when setState's replace flag is set

    5.0.0
  • Persist middleware behavioral change

    5.0.0
  • Other small improvements (technically breaking changes)

    5.0.0

1 internal line (docs, tests, tooling) left out.