Skip to content

Releases: pmndrs/jotai

v1.6.5

28 Apr 14:57
Compare
Choose a tag to compare

This reverts #1089 which was introduced in v1.6.3, which can behave buggy in some cases.

What's Changed

  • fix(core): resolve infinite loop with loadable of derived async atom in some cases by @riemonyamada in #1118

New Contributors

  • @Nsttt made their first contribution in #1104
  • @riemonyamada made their first contribution in #1118

Full Changelog: v1.6.4...v1.6.5

v1.6.4

15 Apr 14:14
Compare
Choose a tag to compare

⚠️ Please use v1.6.5 and above.


This release contains several small improvements in non-core functions. Some of changes introduce deprecation of simple form, which will be warned.

What's Changed

  • feat(devtools): enabled option in useAtomDevtools by @Aslemammad in #1095
  • feat(devtools): enabled option useAtomsDevtools by @Aslemammad in #1076
  • feat(utils): splitAtom actions for remove/insert/move by @dai-shi in #1097
  • fix(core,utils): improve awaited types and waitForAll type by @dai-shi in #1098
  • fix(utils): make useAtomCallback return sync if possible by @dai-shi in #1101

Full Changelog: v1.6.3...v1.6.4

v1.6.3

09 Apr 14:15
Compare
Choose a tag to compare

⚠️ Please use v1.6.5 and above.


There was a regression in atomWithStorage in v1.6.2, and it's fixed.

What's Changed

  • fix(utils): undefined bug with no entry in storage by @dai-shi in #1088
  • fix(core): handle returning infinite promise in derived atoms by @dai-shi in #1089

Full Changelog: v1.6.2...v1.6.3

v1.6.2

05 Apr 03:10
Compare
Choose a tag to compare

This improves atomWithObservable and fixes some hypothetical issues.

What's Changed

  • fix(utils/atomWithStorage): handle edge case of value inconsistency with subscription by @dai-shi in #1080
  • fix(core,urql): useDebugState and some envvar handling by @dai-shi in #1070
  • fix(utils): Initial data for atomWithObservable by @11bit in #1058

New Contributors

Full Changelog: v1.6.1...v1.6.2

v1.6.1

09 Mar 15:26
Compare
Choose a tag to compare

This includes some small fixes and improvements.

What's Changed

  • fix(utils): atomWithObservable is not resubscribed after remount by @11bit in #1016
  • fix(devtools): better types with official devtools extension types by @Aslemammad in #1049
  • fix(devtools): Add support for debugLabels for atom utils by @Thisen in #1051

New Contributors

Full Changelog: v1.6.0...v1.6.1

v1.6.0

11 Feb 13:12
Compare
Choose a tag to compare

This release includes a long-awaited feature unstable_createStore. Although it's an experimental feature, it opens up possibilities for more use cases. Please feel free to experiment with it. Another change is to have useAtomValue and useSetAtom in core, which is just additional APIs, and we keep previous APIs in jotai/utils. UMD/SystemJS bundles are improved. See details below.

What's Changed

  • breaking(core,utils): remove some deprecated features by @dai-shi in #979
  • feat(build): use __DEV__ to control development mode by @dai-shi in #968
  • feat(core): unstable_createStore by @dai-shi in #922
  • feat(utils/atomWithStorage): Add subscribe to storage events in defaultStorage by @Thisen in #1004
  • feat(core): Move useAtomValue and useSetAtom to core by @Thisen in #989

New Contributors

Full Changelog: v1.5.3...v1.6.0

v1.5.3

18 Jan 07:20
Compare
Choose a tag to compare

This includes several fixes in core. Some of them have been existed for a long time, and can only be revealed in some edge cases. Hope the fixes are fine but if there are some issues found, please report them.

What's Changed

  • fix(core): handle some edge cases with flushPending loop by @dai-shi in #970
  • chore(devtools): correct error message in useAtomsDevtools by @dai-shi in #976
  • fix(core): handle an edge case of changing dependencies without changing atom value by @xbaun in #960
  • fix(core): handle edge cases, not to mount dependency atoms if the atom is not mounted by @xbaun in #961

New Contributors

Full Changelog: v1.5.2...v1.5.3

v1.5.2

12 Jan 12:01
Compare
Choose a tag to compare

v1.5.1 has an issue accidentally in non-browser environment like Next.js and React Native. This should fix it.

What's Changed

  • fix(utils): atomWithStorage should deal with no localStorage by @dai-shi in #951
  • fix(babel): Require that atom is in module scope for react refresh by @Thisen in #952

Full Changelog: v1.5.1...v1.5.2

v1.5.1

11 Jan 00:04
Compare
Choose a tag to compare

This fixes some issues in splitAtom and atomWithStorage in jotai/utils. Also, adds UMD and SystemJS builds for CDN.

What's Changed

  • fix(utils): big refactor on splitAtom to handle stale atoms (no more warning, throwing only if unrecoverable) by @Aslemammad in #925
  • fix(utils): support RESET for atomWithStorage and atomWithHash by @dai-shi in #934
  • fix(build): Generate umd and system files by @romulo94 in #941

New Contributors

Full Changelog: v1.5.0...v1.5.1

v1.5.0

30 Dec 11:35
Compare
Choose a tag to compare

This version drops some deprecated types, adds a new useAtomsDevtools hook for better debugging experience with Redux DevTools Extension, and introduces an experimental (not for production) mode for React 18.

What's Changed

  • breaking(types): remove deprecated types by @dai-shi in #884
  • feat(core): experimental unstable versioned write for limited use case by @dai-shi in #854
    • fix(core): refactor internal state listener by @dai-shi in #914
    • fix(core): refactor with createReadDependencies by @dai-shi in #916
  • feat(devtools): useAtomsDevtools by @Aslemammad in #837

New Contributors

Full Changelog: v1.4.9...v1.5.0