Skip to content

Releases: pmndrs/jotai

v2.6.1

28 Dec 15:30
Compare
Choose a tag to compare

This version has two minor improvements for library authors. It's wonderful to see Jotai ecosystem growing. No major bugs have been reported lately. It's fairly okay to say the current version is pretty stable.

What's Changed

New Contributors

Full Changelog: v2.6.0...v2.6.1

v2.6.0

25 Nov 02:34
Compare
Choose a tag to compare

We can now directly use <Provider> in React Server Components. 🎉

What's Changed

  • feat(build): set some files to the client only for React Server Components use case by @himself65 in #2245
  • feat(utils): getOnInit option for atomWithStorage by @dai-shi in #2246

New Contributors

Full Changelog: v2.5.1...v2.6.0

v2.5.1

05 Nov 11:49
Compare
Choose a tag to compare

This fixes some small issues in jotai/utils.

What's Changed

New Contributors

Full Changelog: v2.5.0...v2.5.1

v2.5.0

23 Oct 13:51
Compare
Choose a tag to compare

This fixes some bugs, one of which was critical for jotai-effect. It also adds a new internal capability that may help extensions such as jotai-scope.

What's Changed

  • feat(vanilla): prefer using this for atom config by @dai-shi in #2186
  • fix(vanilla): avoid re-computing unmounted derived atoms in an edge case by @eryue0220 in #2197
  • fix(vanilla): deal with promise resolving race condition by @dmaskasky in #2199
  • refactor(vanilla): simplify conditions by @dai-shi in #2202

New Contributors

Full Changelog: v2.4.3...v2.5.0

v2.4.3

27 Sep 15:33
Compare
Choose a tag to compare

This fixes a regression in an edge case, which has existed since v2.1.1.

What's Changed

  • fix(vanilla): Returning the same Promise twice from an atom getter causes Promise chaining cycle. by @iwoplaza in #2152

New Contributors

Full Changelog: v2.4.2...v2.4.3

v2.4.2

07 Sep 14:48
Compare
Choose a tag to compare

There was a bug in v2.4.0 (and v2.4.1) in an edge case, which is now fixed.

What's Changed

  • fix(vanilla): should update derived atoms during write by @dai-shi in #2111

New Contributors

Full Changelog: v2.4.1...v2.4.2

v2.4.1

31 Aug 13:25
Compare
Choose a tag to compare

There was a regression in v2.3.0, which is fixed.

What's Changed

  • fix(vanilla): should recompute state after onMount by @tmkx in #2099
  • fix(utils/atomWithStorage): Prevent createJSONStorage from adding subscribe method when window.Storage is not defined by @byudaniel in #2100

New Contributors

Full Changelog: v2.4.0...v2.4.1

v2.4.0

23 Aug 12:46
Compare
Choose a tag to compare

This version fixes an edge case in core that has existed since v2.0.0.

What's Changed

  • fix(vanilla): should only mount dependencies if the atom is mounted by @dai-shi in #2078
  • fix(vanilla): should update with conditional dependencies by @dai-shi in #2086
  • fix(utils): Do not set a splitted atom when not actually modified by @arnodb in #2088

New Contributors

Full Changelog: v2.3.1...v2.4.0

v2.3.1

08 Aug 02:30
Compare
Choose a tag to compare

There was a bug in #2061, which is fixed. It's about a dev-only warning.

What's Changed

  • fix: global number of instances flag by @fz6m in #2066

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

07 Aug 01:52
Compare
Choose a tag to compare

Jotai v2's store API is framework-agnostic. The primary use case is for React, but the store can be used for other frameworks. One of the difficulties was handling promises, and there has been unstable_unwrap util since Jotai v2.0.0. Now, it's considered stable and becomes unwrap util (see docs for details).

What's Changed

Full Changelog: v2.2.3...v2.3.0