Releases: pmndrs/zustand
Releases Β· pmndrs/zustand
v3.5.9
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
This improves ESM build.
- #507 fix(build): Improved ESM support for most used bundlers with fallbacks for older bundlers
v3.5.7
This includes a fix for zustand/context
for TypeScript.
- #492 fix(context): Export UseContextStore interface
v3.5.6
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
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
v3.5.3 has an issue in CJS build. Please use this instead.
- #450 fix: cjs build, no regenerator
v3.5.3
(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
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
v3.5.1
This includes some fixes in zustand/context
.
- Add useStoreApi context hook #380
- Removed "initialState" parameter from createContext() #382
v3.5.0
This modifies State
base type. It's stricter than before and can be a breaking change for TS users. This also adds a new bundle zustand/context
which provides a helper function for the usage with React context.