Packages

zustand

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

Upgrading zustand From 4.3.9 to 4.5.7

16 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.3.9Latest5.0.16
  1. 4.3.9yours
  2. 13 releases
  3. 4.5.5breaking
  4. 1 release
  5. 4.5.7target

Before you upgrade

Tick each one off as you go
  • breaking4.5.5
  • deprecated4.4.2
  • deprecated4.4.1
  • deprecated4.4.0

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

5 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
  • Update export types

    4.4.6
  • Apply publint recommendations

    4.4.5

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