Skip to content

Releases: pmndrs/jotai

v1.9.1

01 Nov 07:19
Compare
Choose a tag to compare

Some fixes. We are still not very confident with ESM bundling. Please feel free to open issues/discussions.

What's Changed

  • fix(build): no import.meta for "module" condition by @dai-shi in #1501
  • fix(utils): modify atomWithHash to keep pathname when the replaceState option is set to true by @jakkku in #1506

New Contributors

Full Changelog: v1.9.0...v1.9.1

v1.9.0

27 Oct 01:07
Compare
Choose a tag to compare

There's one of big decisions made probably since the initial release. There has been many feature requests for jotai/query and jotai/urql which exceed original API design. We re-implemented them in separate repositories providing more features, and keep the existing functionality with wrappers (which will be deprecated in the future). Please check docs.

There are other changes with build for ESM. Please feel free to open issues and discussions if you have any.

What's Changed

  • feat(query): new implementation with peer dep by @dai-shi in #1435
  • feat(urql): new implementation with peer dep by @dai-shi in #1473
  • fix(babel): Fix custom atom names for identifiers by @Thisen in #1489
  • fix(build): use *.d.mts for esm ('import' condition only) by @dai-shi in #1496

New Contributors

Full Changelog: v1.8.6...v1.9.0

v1.8.6

18 Oct 09:49
Compare
Choose a tag to compare

Jotai babel plugin is customizable!

What's Changed

  • fix(core): make atomWithObservable to work with versionedWrite by @dai-shi in #1474
  • feat(babel): Support custom atom names by @Thisen in #1480

New Contributors

Full Changelog: v1.8.5...v1.8.6

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