Releases: pmndrs/jotai
v1.8.5
This includes some small fixes in jotai/utils
, jotai/zustand
, and jotai/devtools
.
What's Changed
- fix(utils): fix atomWithObservable interface by @dai-shi in #1431
- refactor(zustand): Removed unnecessary unknown extends by @u-yas in #1453
- fix(devtools): double init call by @Aslemammad in #1456
New Contributors
- @masashi-sutou made their first contribution in #1440
- @u-yas made their first contribution in #1453
Full Changelog: v1.8.4...v1.8.5
v1.8.4
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
- @grabbou made their first contribution in #1407
- @danielr18 made their first contribution in #1417
Full Changelog: v1.8.3...v1.8.4
v1.8.3
jotai/urql
supports error handling. This is still a new feature. Feel free to report issues.
What's Changed
- feat(urql): jotai/urql error handling by @dai-shi in #1381
- fix(core,utils): loadable with StrictMode by @dai-shi in #1397
- fix(types): patch awaited for ts < 4.5 by @dai-shi in #1399
New Contributors
- @mccambridge made their first contribution in #1389
Full Changelog: v1.8.2...v1.8.3
v1.8.2
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
Full Changelog: v1.8.1...v1.8.2
v1.8.1
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
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
- @darrenfdes made their first contribution in #1351
Full Changelog: v1.7.8...v1.8.0
v1.7.8
v1.7.7
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
- @austinwoon made their first contribution in #1294
- @liaoliao666 made their first contribution in #1126
- @Sajad-Sharhani made their first contribution in #1111
Full Changelog: v1.7.6...v1.7.7
v1.7.6
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
It includes some refactors in core. Please report issues if any regression is found.
What's Changed
- fix(babel): Update atom list by @Thisen in #1279
- fix(core): improve versionedWrite logic by @dai-shi in #1244
- fix(xstate): Allow restarting a machine in a global atom by @jahglow in #1281
Full Changelog: v1.7.4...v1.7.5