Releases: pmndrs/jotai
v1.9.1
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
- @feute made their first contribution in #1499
- @ahungrynoob made their first contribution in #1507
- @jakkku made their first contribution in #1516
Full Changelog: v1.9.0...v1.9.1
v1.9.0
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
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
- @DavidJFelix made their first contribution in #1476
Full Changelog: v1.8.5...v1.8.6
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