Skip to content

Releases: pmndrs/jotai

v2.18.1

09 Mar 14:35

Choose a tag to compare

This release fixes a regression introduced in v2.12.1, which affects an uncommon edge case.

What's Changed

  • fix(vanilla): subscriber not notified when derived read calls store.set by @dmaskasky in #3245
  • fix(vanilla/utils/atomWithObservable): add 'Symbol.observable' type support to 'ObservableLike' by @sukvvon in #3253
  • refactor(vanilla/utils/atomWithStorage): use optional chaining for 'storage.subscribe' by @sukvvon in #3260

Full Changelog: v2.18.0...v2.18.1

v2.18.0

19 Feb 01:09

Choose a tag to compare

We moved jotai/babel to jotai-babel.

Migration Guide

If you use the preset:

  {
-   "presets": ["jotai/babel/preset"]
+   "presets": ["jotai-babel/preset"]
  }

If you use a plugin:

  {
-   "plugins": ["jotai/babel/plugin-debug-label"]
+   "plugins": ["jotai-babel/plugin-debug-label"]
  }

What's Changed

  • refactor(internals): simplify promise handing by @dai-shi in #3232
  • feat: deprecate jotai/babel in favor of jotai-babel by @dai-shi in #3236
  • fix: keep reactivity if get is called in a different atom by @dai-shi in #3241

New Contributors

Full Changelog: v2.17.1...v2.18.0

v2.17.1

04 Feb 03:06

Choose a tag to compare

Small typing improvements. If you are using v2.16 or earlier, we recommend upgrading to the latest version.

What's Changed

New Contributors

Full Changelog: v2.17.0...v2.17.1

v2.17.0

28 Jan 02:06

Choose a tag to compare

This release deprecates some features, which will be dropped in v3.

What's Changed

Full Changelog: v2.16.2...v2.17.0

v2.16.2

13 Jan 12:39

Choose a tag to compare

Fixes unwrap and loadable, resolving a regression introduced in v2.15.2.

What's Changed

  • fix(utils): unwrap should not violate the store mutation rule by @dai-shi in #3213

New Contributors

Full Changelog: v2.16.1...v2.16.2

v2.16.1

26 Dec 03:22

Choose a tag to compare

This fixes an internal API issue that affects ecosystem libraries.

What's Changed

  • fix(internals): buildingblocks should not invoke buildingblock definitions from top-scope by @dmaskasky in #3197

Full Changelog: v2.16.0...v2.16.1

v2.16.0

09 Dec 13:01

Choose a tag to compare

This version deprecates atomFamily in jotai/utils in favor of jotai-family, and includes some internal changes.

What's Changed

  • fix(internals): Minor tweaks to store internals by @dmaskasky in #3186
  • feat(utils): deprecate atomFamily in jotai/utils (migrate to jotai-family) by @dmaskasky in #3187
  • fix(internals): only mounted dependents can be added to mounted.t by @dmaskasky in #3189
  • feat: rename to INTERNAL_onInit by @dai-shi in #3193

Full Changelog: v2.15.2...v2.16.0

v2.15.2

01 Dec 12:15

Choose a tag to compare

This release introduces some internal changes. In particular, it adds a warning when unsupported store mutations (side effects) are detected.

What's Changed

  • fix(internals): add dev-only warning for unsupported side effect by @dai-shi in #3179
  • refactor(utils): prefer onInit over setSelf by @dai-shi in #3172
  • fix(internals): add storeHooks.i to be called when atomState is created by @dmaskasky in #3181

Full Changelog: v2.15.1...v2.15.2

v2.15.1

01 Nov 06:30

Choose a tag to compare

A minor but important fix in utils.

What's Changed

New Contributors

Full Changelog: v2.15.0...v2.15.1

v2.15.0

25 Sep 15:29

Choose a tag to compare

This is another change in the internal functions of the core, to help Jotai ecosystem libraries.

What's Changed

New Contributors

  • @Antisunny made their first contribution in #3155

Full Changelog: v2.14.0...v2.15.0