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. 5.x · latest line
  2. 5.0.16

    22 Oct 2026
    • react: Don't memoize getServerSnapshot in useStore

    • devtools: Apply serialize.reviver when parsing devtools messages

    • devtools: Preserve shared connections during store cleanup

  3. 5.0.15

    13 Aug 2026
    • devtools: Correct V8 stack regex when source path contains spaces

    • persist: clearStorage() should invalidate concurrent async rehydration

  4. 5.0.14

    28 May 2026
    • devtools: Improve type inference for Devtools initializer

  5. 5.0.13

    5 May 2026
    • devtools: Support Firefox/Safari stack format in findCallerName

  6. 5.0.12

    16 Mar 2026
    • persist: Use latest state in post-rehydration callback

    • devtools: Correct redux devtools config type extension

  7. 5.0.11

    1 Feb 2026
    • persist: Avoid relying on global localStorage

    • immer: Proper typing for immer middleware in combination with slices

  8. 5.0.10

    12 Jan 2026
    • persist: Prevent race condition during concurrent rehydrate calls

  9. 5.0.9

    30 Nov 2025
    • experimental: Unstable ssrSafe middleware

  10. 5.0.8

    19 Aug 2025
    • shallow: Undefined value

    • middleare/persist: Return storage promise from setState

  11. 5.0.7

    31 Jul 2025
    • react: useCallback for getSnapshot

  12. 5.0.6

    26 Jun 2025
    • devtools: Avoid inferring action type when explicit action name is provided

  13. 5.0.5

    21 May 2025
    • vanilla: Update shallow compare function and tests

    • Add devtools.cleanup() method

    • devtool: Inferred action type

  14. 5.0.4

    1 May 2025
    • package: react-native condition

  15. 5.0.3

    7 Jan 2025
    • types: Make ExtractState public

    • build: Alias entries in rollup config

  16. 5.0.2

    4 Dec 2024
    • middleware: Devtools type error #2700

    • persist: Fix async migrate on persist middleware

  17. 5.0.1

    30 Oct 2024
    • shallow: Fallback map-like iterator comparison

    • shallow: iterable-like insensitive keys order comparison (alternate implementation)

  18. 5.0.0

    14 Oct 2024
    • removed

      Drop default exports

    • removed

      Drop deprecated features

    • breaking

      Make React 18 the minimum required version

  19. 4.x
  20. 4.5.7

    15 May 2025

    See: #3087

  21. 4.5.6

    7 Jan 2025

    See

  22. 4.5.5

    15 Aug 2024
    • storage: Avoid calling setItem with the state just retrieved

  23. 4.5.4

    26 Jun 2024
    • No type field in package.json

  24. 4.5.3

    26 Jun 2024
    • Migrate to pnpm

    • useStore uses ReadonlyStoreApi

  25. 4.5.2

    2 Mar 2024
    • Return type of persist migrate function changed to PersistedState

  26. 4.5.1

    17 Feb 2024
    • Relax types for persist middleware

  27. 4.5.0

    20 Jan 2024
    • getInitialState

    • Add deprecation notice for getServerState() in WithReact type

  28. 4.4.7

    28 Nov 2023
    • vanilla: Unexpected null state update behavior

  29. 4.4.6

    2 Nov 2023
    • Update export types

  30. 4.4.5

    31 Oct 2023
    • Importing CJS React in ESM

    • Apply publint recommendations

  31. 4.4.4

    21 Oct 2023
    • build: Patch entry points zustand/shallow for CJS

  32. 4.4.3

    5 Oct 2023
    • shallow: Extract shallow vanilla and react

    • types: Mitigate devtools typing

  33. 4.4.2

    2 Oct 2023
    • fix(types)(middleware/devtools): avoid copying types

    • traditional: Make defaultEqualityFn optional in TS Types

    • Add useShallow

  34. 4.4.1

    6 Aug 2023
    • deprecated

      Improve warning for deprecated equalityFn

    • types: Accept undefined equalityFn for the deprecated useStore

  35. 4.4.0

    1 Aug 2023
    • deprecated

      Deprecate equalityFn and add createWithEqualityFn

    • Declare @types/react as peerDep to avoid phantom dep

  36. 4.3.9

    4 Jul 2023
    • build: Mode env for "import" condition"

  37. 4.3.8

    4 May 2023
    • middleware/persist: Improve createJSONStorage for Maps

  38. 4.3.7

    31 Mar 2023
    • middleware/persist: Add skip hydration option #405

    • middleware/persist: Ensure persist does not drop updates in onRehydrateStorage when using a synchronous storage API

    • middleware/persist: Ensure argument for onRehydrateStorage and onHydrate is defined on first hydration

  39. 4.3.6

    6 Mar 2023
    • react, types: Relax react types

  40. 4.3.5

    28 Feb 2023
    • build: re-export createStore from index

  41. 4.3.4

    27 Feb 2023
    • build: UMD names

    • build: Possibly improve ESM for production build

    • build: Add explicit export paths for cjs

  42. 4.3.3

    10 Feb 2023
    • build: Improve patch scripts

    • log: Deprecated messages copyedit for consistency

    • build: Reorder the types field in package.json

  43. 4.3.2

    14 Jan 2023
    • vanilla,shallow: Default export regression in CJS

    • middleware/persist: Fix the storage type

  44. 4.3.1

    10 Jan 2023

    This version supersedes v4.3.0.

  45. 4.3.0

    10 Jan 2023
    • deprecated

      Deprecate some APIs toward v5

    • deprecated

      Deprecate default export

    • middleware/persist: Hydrate in sync (new impl with storage option)

  46. 4.2.0

    1 Jan 2023
    • middleware/devtools: Better redux devtools. One connection for all zustand stores

    • middleware/persist: New storage option

    • build: Disable esModule and re-export for nodejs

  47. 4.1.5

    5 Dec 2022
    • middleware/devtools: Do not use optional catch binding syntax

    • shallow: Add support of Maps and Sets to shallow comparator

    • Programmatic module.exports addition for named and default exports in CJS

  48. 4.1.4

    31 Oct 2022
    • build: Use *.d.mts for esm ('import' condition only)

    • build: No import.meta for "module" condition

  49. 4.1.3

    23 Oct 2022
    • types: Assume getState and setState will always exist on the store

    • types: Fix StateCreator subtyping

  50. 4.1.2

    9 Oct 2022
    • context: Store property missing from useStoreApi

    • Should use Object.is to compare two value

    • Rewrite TakeTwo, SkipTwo and Mutate to make them work for older ts versions too

  51. 4.1.1

    22 Aug 2022
    • middleware: Revert types of redux middleware

    • fix(types)(middleware/devtools): copy devtools option types instead of importing

  52. 4.1.0

    18 Aug 2022
    • fix(types)(middleware/devtools): fix action type in devtools's setState

    • vanilla: non-object state

    • fix(types)(middleware): use official Config type for options