Skip to content

Releases: pmndrs/zustand

v3.5.11

28 Sep 16:12
Compare
Choose a tag to compare

⚠️ Minimum Node.js requirements (for server-side usage like Next.js): v14.13.0, v12.20.0

This improved devtools middleware. There can still be room for improvement. Free free to open issues and feature requests, and possibly contribute to them.

  • #560 Fix: remove useless internal info in devtools
  • #558 chore(build): simplify exports and support nested subpath

v3.5.10

26 Aug 14:24
Compare
Choose a tag to compare

Our fixes for ESM in v3.5.8 and v3.5.9 were somewhat good and somewhat bad. Now, this should be the better one based on our experience and reported issues. If you still have some issues, please file them.

  • #540 Allow optional REDUX DEVTOOLS "options" object
  • #543 Rollback to initial exports structures with duplicated .js and .mjs files for additional support of bundlers

v3.5.9

17 Aug 12:06
Compare
Choose a tag to compare

We've been struggling with providing package that works for various bundlers and node.
v3.5.8 was expected to solve the issue with node, but it turned out having an issue with webpack 5.
We basically gave up supporting old bundlers. v3.5.9 comes with simplified builds with latest standard.

Note for old bundlers like webpack 4: Unlike previous versions, the bundler will pick cjs build by default. If you need module build, it should be explicit. Free free to open an issue for questions and discussions.

  • #537 Package all files into a single dist folder

v3.5.8

13 Aug 12:03
Compare
Choose a tag to compare

This improves ESM build.

  • #507 fix(build): Improved ESM support for most used bundlers with fallbacks for older bundlers

v3.5.7

13 Jul 23:49
Compare
Choose a tag to compare

This includes a fix for zustand/context for TypeScript.

  • #492 fix(context): Export UseContextStore interface

v3.5.6

09 Jul 13:40
Compare
Choose a tag to compare

This fixed zustand/context types and added "import" export entries for modern bundlers.

  • #486 Revert Provider initialStore types
  • #484 Improve createContext's useStore types
  • #480 fix: package.json exports to have import

v3.5.5

29 Jun 13:12
Compare
Choose a tag to compare

This supports IE11 again. (v3.5.3 and v3.5.4 have an issue.)
It also has various fixes and improvements in the persist middleware.

  • #455 fix(persist): onRehydrateStorage argument not containing the final state
  • #466 feat(persist): add a merge function option
  • #462 fix: do not use generator to support IE11
  • #468 fix(persist): incorrect deserialize return type
  • #470 fix(persist): not hydrating when the stored item doesn't contain a version

v3.5.4

22 Jun 14:26
Compare
Choose a tag to compare

v3.5.3 has an issue in CJS build. Please use this instead.

  • #450 fix: cjs build, no regenerator

v3.5.3

22 Jun 12:26
Compare
Choose a tag to compare

(v3.5.3 includes #419, which causes a build issue in CJS. Please use v3.5.4)

This includes some type improvements in zustand/middleware and improvements/changes in zustand/context.

  • #421 export NamedSet type for combining with immer
  • #437 fix(middleware/persist): argument of onRehydrateStorage for missing migrate function
  • #441 make type NamedSet compatible with type SetState
  • #444 fix(context): stable storeApi
  • #447 Fix/context create store

v3.5.2

05 Jun 09:29
Compare
Choose a tag to compare

This has various small but non-trivial improvements.

  • Allow optional selector in zustand/vanilla #384
  • Fix a return value type of combine #395
  • chore: mark react dependency as optional #408
  • Expose StateStorage type and update persist midlware documentation #412
  • (types): improve types for setState #397
  • Migrating Async/Await to Promise #403