Skip to content

Releases: pmndrs/jotai

v1.8.5

07 Oct 12:14
Compare
Choose a tag to compare

This includes some small fixes in jotai/utils, jotai/zustand, and jotai/devtools.

What's Changed

New Contributors

Full Changelog: v1.8.4...v1.8.5

v1.8.4

19 Sep 12:05
Compare
Choose a tag to compare

This improves useAtom types. We also refactored atomWithQuery in jotai/query (fixing a regression that has been there since v1.7.7) and atomWithObservable in jotai/utils.

What's Changed

  • refactor(types): make Scope clearly internal by @dai-shi in #1411
  • fix(query): create QueryObserver with initial options by @danielr18 in #1417
  • refactor(utils): atomWithObservable by @dai-shi in #1426
  • fix(types): overload useAtom* type for union atom type by @dai-shi in #1427

New Contributors

Full Changelog: v1.8.3...v1.8.4

v1.8.3

06 Sep 12:59
Compare
Choose a tag to compare

jotai/urql supports error handling. This is still a new feature. Feel free to report issues.

What's Changed

New Contributors

Full Changelog: v1.8.2...v1.8.3

v1.8.2

30 Aug 05:17
Compare
Choose a tag to compare

There was some regressions in atomWithStorage and atomWithHash in jotai/utils, which should be fixed. (Feel free to report issues.) Also, this version follows the type changes in urql v6, and it's TypeScript-only breaking for jotai/urql users.

What's Changed

  • refactor(devtools): use useAtomsSnapshot in useAtomsDevtools by @Aslemammad in #1360
  • fix(utils/atomWithStorage): Prevent createJSONStorage from adding subscribe method when window.addEventListener is not defined by @mkossoris in #1375
  • fix(utils/atomWithHash): do not cause error when location is not available by @dai-shi in #1378
  • breaking(types,urql): update @urql/core v6 by @dai-shi in #1382

New Contributors

  • @marsidev made their first contribution in #1374
  • @mkossoris made their first contribution in #1375

Full Changelog: v1.8.1...v1.8.2

v1.8.1

26 Aug 02:56
Compare
Choose a tag to compare

This version includes some bug fixes and improvements, especially in atomFamily and atomWithStorage in jotai/utils.

What's Changed

  • fix(utils): avoid catching storage error in atomWithStorage by @dai-shi in #1363
  • fix(babel): Add abortableAtom to babel plugins by @Thisen in #1365
  • fix(utils/atomFamily): handle edge case with shouldRemove and custom equality function by @dai-shi in #1366
  • refactor(devtools): silent useAtomsSnapshot/useGotoAtomsSnapshot in prod by @Aslemammad in #1367

Full Changelog: v1.8.0...v1.8.1

v1.8.0

19 Aug 10:16
Compare
Choose a tag to compare

This release adds a new internal feature for abortability of async functions. It's provided as abortableAtom util from 'jotai/utils'.

What's Changed

  • feat(core,utils): abortable atom by @dai-shi in #1091
  • breaking(devtools): renew useAtomsSnapshot and useGotoAtomsSnapshot by @dai-shi in #1311
  • feat(utils): support RESET with update function for atomWithStorage/atomWithHash/atomWithReset by @austinwoon in #1346

New Contributors

Full Changelog: v1.7.8...v1.8.0

v1.7.8

08 Aug 00:40
Compare
Choose a tag to compare

This fixes some important logic in core, which has caused some edge-case issues.

What's Changed

  • fix(core): resolve infinite loop issue in loadable util with error propagation by @dai-shi in #1332
  • fix(core): redesign invalidated flag by @dai-shi in #1296

Full Changelog: v1.7.7...v1.7.8

v1.7.7

01 Aug 05:51
Compare
Choose a tag to compare

This version is important for jotai/query. It now works with @tanstack/query-core, and no longer supports react-query, which is deprecated. This is breaking change in jotai/query.

What's Changed

  • breaking(query): migrate to tanstack/query-core v4 & make QueryKey's type generic by @liaoliao666 in #1126
  • fix(query): prevent creating QueryObserver multiple times by @Aslemammad in #1313

New Contributors

Full Changelog: v1.7.6...v1.7.7

v1.7.6

20 Jul 11:17
Compare
Choose a tag to compare

We still had some typing issues introduced in v1.7.3, which is basically reverted with some improvements.
This version also has a new implementation of jotai/query which supports error handling.

What's Changed

  • fix(types): use TS interfaces only for public api by @dai-shi in #1289
  • feat(query): support error handling (full re-implementation) by @dai-shi in #1239

Full Changelog: v1.7.5...v1.7.6

v1.7.5

15 Jul 16:10
Compare
Choose a tag to compare

It includes some refactors in core. Please report issues if any regression is found.

What's Changed

Full Changelog: v1.7.4...v1.7.5