Skip to content

Releases: pmndrs/jotai

v1.6.2

05 Apr 03:10

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

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

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

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

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

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

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

v1.4.9

20 Dec 11:33

Choose a tag to compare

There was a regression in v1.4.7, which was in core and affected utils like atomWithStorage, jotai/xstate and maybe some others. It should be fixed. Please report issues if you find any.

What's Changed

  • fix(core): resolve infinite loop with derived atoms with onMount by @dai-shi in #900

Full Changelog: v1.4.8...v1.4.9

v1.4.8

16 Dec 13:00

Choose a tag to compare

This has some small fixes.

What's Changed

  • fix(type): Fix types on waitForAll to work with destructuring by @russelldavis in #889
  • fix(utils): atomWithStorage with async json storage by @dai-shi in #894

New Contributors

Full Changelog: v1.4.7...v1.4.8

v1.4.7

08 Dec 11:57

Choose a tag to compare

This fixes some bugs, most importantly #877.

What's Changed

  • fix(core): refactor store with suspense promise by @dai-shi in #866
  • fix(utils): fix waitForAll types by @dai-shi in #871
  • fix(core): refactor store readAtomState by @dai-shi in #872
  • fix(core): refactor store (setAtomPromiseOrValue) by @dai-shi in #873
  • fix(core): Bail out of atom.write when atom update and current value are equal by @Thisen in #878
  • fix(core): refactor atomState in store by @dai-shi in #880

New Contributors

Full Changelog: v1.4.6...v1.4.7