Packages

zustand

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

Your version

124 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 4.x
  2. 4.0.0

    26 Jul 2022
    • breaking

      vanilla: Drop deprecated store.subscribe with selector

    • breaking

      middleware: Drop deprecated persist options and make removeItem required

    • breaking

      core: Drop v2 hook compatibility

  3. 3.x
  4. 3.7.2

    7 Apr 2022
    • middleware/persist: Merge storage value with the latest store state

  5. 3.7.1

    28 Feb 2022
    • deprecated

      middleware/devtools: Deprecate serialize.options

    • context: Revert removing overloads in UseContextStore

  6. 3.7.0

    10 Feb 2022
    • 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

  7. 3.6.9

    10 Jan 2022
    • build: Generate umd and system files

  8. 3.6.8

    24 Dec 2021
    • deprecated

      middleware/devtools: Deprecate passing name directly instead of an object

    • middleware/devtools: Minor fixes for pause recording feature

    • middleware/devtools: Revert extension connector with try-catch to fix RN usage

  9. 3.6.7

    7 Dec 2021
    • middleware: Devtools work in non-browser

  10. 3.6.6

    3 Dec 2021
    • Rewrite devtools

  11. 3.6.5

    9 Nov 2021
    • types: Fix core types to better handle middleware types

    • middleware: Add onFinishHydration to persist api

  12. 3.6.4

    3 Nov 2021
    • middleware: Devtools to patch api.setState with namedSet and fix middleware types

  13. 3.6.3

    2 Nov 2021
    • core: useDebugValue in useStore

    • middleware: Add persist api

  14. 3.6.2

    30 Oct 2021
    • middleware: Simplify middleware types and allow explicit typing

  15. 3.6.1

    26 Oct 2021
    • context: Custom store type for createContext

    • middleware: Devtools dispatch support

    • middleware: Types and devtools

  16. 3.6.0

    21 Oct 2021
    • types: Better middleware support

    • types: Rename from UseStore to UseBoundStore

    • middleware: subscribeWithSelector middleware

  17. 3.5.14

    19 Oct 2021
    • middleware: Export PersistOptions type definitions

    • middleware: Jump state support in devtools

  18. 3.5.13

    7 Oct 2021
    • persist: Add partialize option

  19. 3.5.12

    1 Oct 2021
    • package: Avoid subpath pattern in exports

  20. 3.5.11

    28 Sep 2021
    • Remove useless internal info in devtools

  21. 3.5.10

    26 Aug 2021
    • Allow optional REDUX DEVTOOLS "options" object

    • Rollback to initial exports structures with duplicated .js and .mjs files for additional support of bundlers

  22. 3.5.9

    17 Aug 2021
    • Package all files into a single dist folder

  23. 3.5.8

    13 Aug 2021
    • build: Improved ESM support for most used bundlers with fallbacks for older bundlers

  24. 3.5.7

    13 Jul 2021
    • context: Export UseContextStore interface

  25. 3.5.6

    9 Jul 2021
    • Revert Provider initialStore types

    • Improve createContext's useStore types

    • Package.json exports to have import

  26. 3.5.5

    29 Jun 2021
    • persist: onRehydrateStorage argument not containing the final state

    • persist: Add a merge function option

    • Do not use generator to support IE11

  27. 3.5.4

    22 Jun 2021
    • Cjs build, no regenerator

  28. 3.5.3

    22 Jun 2021
    • Export NamedSet type for combining with immer

    • middleware/persist: Argument of onRehydrateStorage for missing migrate function

    • Make type NamedSet compatible with type SetState

  29. 3.5.2

    5 Jun 2021
    • Allow optional selector in zustand/vanilla #384

    • Fix a return value type of combine #395

    • Expose StateStorage type and update persist midlware documentation #412

  30. 3.5.1

    8 May 2021
    • Add useStoreApi context hook #380

    • Removed "initialState" parameter from createContext() #382

  31. 3.5.0

    5 May 2021
  32. 3.4.2

    27 Apr 2021
    • persist middleware: Incorrect deserialize type #359

    • Add import of store state json to devtools middleware #373

  33. 3.4.1

    8 Apr 2021
  34. 3.4.0

    6 Apr 2021
    • breaking

      Index.cjs.js is renamed to index.js (explicit cjs usage is no longer documented in readme)

    • breaking

      Index.iife.js is removed (never documented and not configured properly)

  35. 3.3.3

    28 Feb 2021
  36. 3.3.2

    16 Feb 2021
  37. 3.3.1

    10 Jan 2021
  38. 3.3.0

    8 Jan 2021
    • breaking

      storage options is replaced with getStorage

    • breaking

      New blacklist / whitelist options

    • breaking

      New onRehydrateStorage option

  39. 3.2.0

    16 Nov 2020
  40. 3.1.4

    8 Nov 2020
  41. 3.1.3

    23 Sep 2020
  42. 3.1.2

    12 Sep 2020
  43. 3.1.1

    8 Sep 2020
  44. 3.1.0

    3 Sep 2020
  45. 3.0.3

    1 Sep 2020
  46. 3.0.2

    26 Aug 2020
  47. 3.0.1

    18 Aug 2020
  48. 3.0.0

    17 Aug 2020
    • Stability and fixing bugs

    • Making it suitable for concurrent mode

    • Supporting React-fast-refresh

  49. 2.x
  50. 2.2.1 – 2.2.44 releases without a noteShow each