Skip to content

Releases: pmndrs/jotai

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

v1.11.2

12 Dec 10:06
Compare
Choose a tag to compare

This version includes some refactors and improvements to the v2 API pre-release. If you are still new to the v2 API, please check it out. https://jotai.org/docs/guides/migrating-to-v2-api

What's Changed

  • refactor(vanilla): simplify store impl (v2 API) by @dai-shi in #1624
  • fix(vanilla/utils): re-implement unwrap util (v2 API) by @dai-shi in #1628
  • refactor(vanilla/utils): avoid refAtom in selectAtom (v2 API) by @dai-shi in #1629
  • refactor(vanilla/utils): avoid refAtom in splitAtom (v2 API) by @dai-shi in #1630

New Contributors

Full Changelog: v1.11.1...v1.11.2

v1.11.1

06 Dec 13:24
Compare
Choose a tag to compare

v1.11.0 added the pre-release of v2 API. This patch version adds some improvements in the v2 API. It's still unstable, but feedbacks are very welcome.

What's Changed

  • feat(vanilla): refactor v2 API with setSelf removing retry by @dai-shi in #1611
  • feat(vanilla): rename unwrapAtom to unwrap (v2 API) by @dai-shi in #1616

Full Changelog: v1.11.0...v1.11.1

v1.11.0

01 Dec 13:23
Compare
Choose a tag to compare

This includes the pre-release of Jotai v2 API. See RFC #1514.
The v2 API in the pre-release is technically considered unstable, but it's highly recommended to try it before v2. Unless we get any feedback, we don't know what to improve and it will be finalized as is.
Please check the migration guide: https://github.com/pmndrs/jotai/blob/v1.11.0/docs/guides/migrating-to-v2-api.mdx
Feel free to open a new discussion for questions, ideas and so on.

This version has a little breaking change, which is the minimal version of node >=12.20.0 for server side usage.

What's Changed

New Contributors

Full Changelog: v1.10.0...v1.11.0