Packages

zustand

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

Upgrading zustand From 4.4.6 to 4.5.7

9 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.4.6Latest5.0.16
  1. 4.4.6yours
  2. 6 releases
  3. 4.5.5breaking
  4. 1 release
  5. 4.5.7target
1
change to make
0
advisories fixed
1
new
5
fixes

Before you upgrade

Tick each one off as you go
  • breaking4.5.5

Release by release

  1. 4.5.6 – 4.5.72 releases, nothing new or fixed in the notes

  2. 4.5.5

    Migration needed15 Aug 20241 fix
    • breaking

      :warning: We thought this was fixing a bug, but it actually introduced a behavioral breaking change.

    • fixed

      storage: Avoid calling setItem with the state just retrieved

  3. 4.5.4

    26 Jun 20241 fix
    • fixed

      No type field in package.json

  4. 4.5.3nothing new or fixed in the note

  5. 4.5.2

    2 Mar 20241 fix
    • fixed

      Return type of persist migrate function changed to PersistedState

  6. 4.5.1nothing new or fixed in the note

  7. 4.5.0

    20 Jan 20241 new · 1 fix
    • new

      getInitialState

    • fixed

      Add deprecation notice for getServerState() in WithReact type

  8. 4.4.7

    28 Nov 20231 fix
    • fixed

      vanilla: Unexpected null state update behavior

3 other lines we could not sort, mostly version bumps
  • Migrate to pnpm

    4.5.3
  • useStore uses ReadonlyStoreApi

    4.5.3
  • Relax types for persist middleware

    4.5.1

4 internal lines (docs, tests, tooling) left out.