Skip to content

Releases: pmndrs/zustand

v4.3.2

14 Jan 00:05
Compare
Choose a tag to compare

There was a regression with default export (which is deprecated) in v4.3.0 and v4.3.1. This should fix it.

What's Changed

  • fix(vanilla,shallow): default export regression in CJS by @dai-shi in #1531
  • fix(middleware/persist): Fix the storage type by @MOZGIII in #1540

New Contributors

Full Changelog: v4.3.1...v4.3.2

v4.3.1

10 Jan 11:15
Compare
Choose a tag to compare

This version supersedes v4.3.0.

What's Changed

  • chore: show deprecated message only in DEV by @dai-shi in #1523

Full Changelog: v4.3.0...v4.3.1

v4.3.0

10 Jan 10:45
Compare
Choose a tag to compare

Throughout past years of development, we've learned the (mis)usage of the library. One of our goal is to provide smallest possible APIs. To go further, this version deprecates some features. They are still usable (with warnings), but will be removed in the future.

What's Changed

  • feat: deprecate some APIs toward v5 by @dai-shi in #1403
  • feat: deprecate default export by @dai-shi in #1514
  • fix(middleware/persist): hydrate in sync (new impl with storage option) by @dai-shi in #1518

New Contributors

Full Changelog: v4.2.0...v4.3.0

v4.2.0

01 Jan 01:15
Compare
Choose a tag to compare

This version adds some new features in middleware.

What's Changed

  • feat(middleware/devtools): Better redux devtools. One connection for all zustand stores by @pavlobu in #1435
  • feat(middleware/persist): new storage option by @dai-shi in #1463
  • fix(build): disable esModule and re-export for nodejs by @barelyhuman in #1486

New Contributors

Full Changelog: v4.1.5...v4.2.0

v4.1.5

05 Dec 13:22
Compare
Choose a tag to compare

This version has several small improvements.

What's Changed

  • fix(middleware/devtools): do not use optional catch binding syntax by @mskrzypek in #1431
  • feat(shallow): Add support of Maps and Sets to shallow comparator by @anton-lunev in #1451
  • refactor(vanilla/types): replace hardcoded types with StoreApi type by @Arsikod in #1459
  • Fix: Programmatic module.exports addition for named and default exports in CJS by @barelyhuman in #1460

New Contributors

Full Changelog: v4.1.4...v4.1.5

v4.1.4

31 Oct 12:52
Compare
Choose a tag to compare

This should improve some importing problems. Uncertain if it fixes everything.

What's Changed

  • fix(build): use *.d.mts for esm ('import' condition only) by @dai-shi in #1387
  • fix(build): no import.meta for "module" condition by @dai-shi in #1393

New Contributors

Full Changelog: v4.1.3...v4.1.4

v4.1.3

23 Oct 01:30
Compare
Choose a tag to compare

This improves store types for TS users. We also upgrade rollup. Please report issues if anyone finds any.

What's Changed

  • fix(types): assume getState and setState will always exist on the store by @devanshj in #1371
  • fix(types): fix StateCreator subtyping by @devanshj in #1373

New Contributors

Full Changelog: v4.1.2...v4.1.3

v4.1.2

09 Oct 05:48
Compare
Choose a tag to compare

This includes some fixes for edge cases. Most notably, supporting old TypeScript versions.

What's Changed

  • fix(context): store property missing from useStoreApi by @exuanbo in #1258
  • fix: should use Object.is to compare two value by @hchlq in #1314
  • Rewrite TakeTwo, SkipTwo and Mutate to make them work for older ts versions too by @devanshj in #1348

New Contributors

Full Changelog: v4.1.1...v4.1.2

v4.1.1

22 Aug 02:35
Compare
Choose a tag to compare

In v4.1.0, there are some TypeScript type issues in redux and devtools middleware, which should be fixed.

What's Changed

  • fix(middleware): revert types of redux middleware by @dai-shi in #1206
  • fix(types)(middleware/devtools): copy devtools option types instead of importing by @dai-shi in #1207
  • refactor(types): prefer using import type by @dai-shi in #1208

Full Changelog: v4.1.0...v4.1.1

v4.1.0

18 Aug 23:30
Compare
Choose a tag to compare

This supports non-object state. It's probably one of the biggest changes in API design throughout the zustand development history. But, probably 99.9% of users won't use it 😝 .

What's Changed

New Contributors

Full Changelog: v4.0.0...v4.1.0