Skip to content

Releases: pmndrs/jotai

v2.1.0

06 May 03:54
Compare
Choose a tag to compare

This includes some improvements as well as some breaking changes in unstable features.

What's Changed

  • fix(vanilla): better promise handling by @dai-shi in #1851
  • fix(atomWithStorage): handle RESET/removeItem from cross-tab storage updates by @nderscore in #1882
  • breaking(vanilla): remove deprecated store dev methods by @dai-shi in #1893
  • fix(react): Infer useHydrateAtoms value types from atom.read ReturnType by @ericdowell in #1898
  • chore(tests): migrate to vitest by @arjunvegda in #1839

New Contributors

Full Changelog: v2.0.4...v2.1.0

v2.0.4

10 Apr 03:42
Compare
Choose a tag to compare

This includes some small improvements. One of them is to improve Deno compatibility.

What's Changed

  • fix(atomWithStorage, createJSONStorage): scope subscriptions to specified browser storage by @nderscore in #1814
  • fix(babel): improve debug label support for third-party jotai libraries by @arjunvegda in #1818
  • fix(react): atom type inference in hooks by @Thisen in #1866
  • chore: add extentsion in imports by @dai-shi in #1823

New Contributors

Full Changelog: v2.0.3...v2.0.4

v2.0.3

02 Mar 09:49
Compare
Choose a tag to compare

This release includes important features for upcoming devtools.

What's Changed

New Contributors

Full Changelog: v2.0.2...v2.0.3

v2.0.2

16 Feb 13:54
Compare
Choose a tag to compare

This version add some small improvements, mostly for some minor cases.

What's Changed

  • fix(vanilla): async derived atom not updated (race condition in an edge case) by @gimelfarb in #1768
  • fix(utils): tweak atomWithDefault types for better DX by @dai-shi in #1770
  • fix(build): UMD names by @dai-shi in #1772

New Contributors

Full Changelog: v2.0.1...v2.0.2

v2.0.1

09 Feb 14:37
Compare
Choose a tag to compare

This adds various small improvements. Docs are also updated.

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.0.1

v2.0.0

31 Jan 12:59
Compare
Choose a tag to compare

🎉 🎉 🎉 Jotai v2 is here! 🍾 🍾 🍾

Backward compatible for JS users without async atoms

Async atom behavior is revisited and changed. TypeScript types are changed and improved.

New Store API

Exposes createStore which opens up new usages. With its power, it can be misused. Let's look for best practice. Feedback is appreciated.

Migration Guide

https://github.com/pmndrs/jotai/blob/v2.0.0/docs/guides/migrating-to-v2-api.mdx

What's Changed

  • breaking: replace old api with v2 api by @dai-shi in #1671
  • breaking(build): drop module condition in exports by @dai-shi in #1675

New Contributors

Full Changelog: v1.13.1...v2.0.0

v1.13.1

16 Jan 13:11
Compare
Choose a tag to compare

Following v1.13.0, this version drops jotai/react/devtools entry point which was for pre-released v2 API. The same feature will be provided from jotai-devtools package.

What's Changed

  • fix(react): delete pre-released v2 API devtools by @dai-shi in #1686

New Contributors

Full Changelog: v1.13.0...v1.13.1

v1.13.0

10 Jan 12:15
Compare
Choose a tag to compare

We are working on improving devtools for v2 API. To mitigate the migration, jotai/devtools is moved to jotai-devtools in this version. Please be aware that you need to manually install jotai-devtools.

What's Changed

  • fix(vanilla): reading async atom twice before resolving (v2 API) by @dai-shi in #1670
  • feat(devtools): move to peer dependency by @dai-shi in #1672
  • feat(devtools): deprecate jotai/devtools to prepare for v2 by @dai-shi in #1677

New Contributors

Full Changelog: v1.12.1...v1.13.0

v1.12.1

30 Dec 11:03
Compare
Choose a tag to compare

This version adds a few improvements in v2 API pre-release.

What's Changed

  • fix(vanilla): bail out notifying with same values (v2 API) by @dai-shi in #1654
  • fix(vanilla): do not invoke callback on subscribe (v2 API) by @dai-shi in #1659

Full Changelog: v1.12.0...v1.12.1

v1.12.0

20 Dec 04:41
Compare
Choose a tag to compare

We are getting ready for v2 release. What you can do now is to update to this version, and a) check deprecation messages and/or b) try/migrate pre-released v2 API. https://github.com/pmndrs/jotai/blob/v1.12.0/docs/guides/migrating-to-v2-api.mdx

What's Changed

  • feat: deprecate integrations and some utils to prepare for v2 by @dai-shi in #1631
  • fix(vanilla): make restore atoms dev only (v2 API) by @dai-shi in #1648

New Contributors

Full Changelog: v1.11.2...v1.12.0