Skip to content

Releases: pmndrs/jotai

v2.11.3

01 Feb 02:39
Compare
Choose a tag to compare

Unfortunately, we encountered another regression with the v2.11 rearchitecture. We hope there are no more issues, but we can't be sure if it's stable unless no more are reported. Please give it a try and let us know if you find anything!

What's Changed

  • fix(store): recompute dependents on eager evaluation in writeAtomState by @dmaskasky in #2965

Full Changelog: v2.11.2...v2.11.3

v2.11.2

31 Jan 00:49
Compare
Choose a tag to compare

There was a regression in v2.11.1, which is fixed in this patch.

What's Changed

  • fix(core): derived atom is not re-evaluated if it read between multiple set by @dai-shi in

New Contributors

Full Changelog: v2.11.1...v2.11.2

v2.11.1

20 Jan 13:30
Compare
Choose a tag to compare

Jotai v2.11.0 was a big change, and we faced some fundamental issues. It required time to reconsider the architecture from the ground up. We've added various tests, and this patch version should be more stable.

Having that said, we are still in the middle of the re-architecture. If you prefer to stay away from bleeding-edge features and encounter no bugs, feel free to keep using the previous versions.

Kudos to @dmaskasky

What's Changed

New Contributors

Full Changelog: v2.11.0...v2.11.1

v2.11.0

23 Dec 06:05
Compare
Choose a tag to compare

There are no public API changes, but some internal behaviors have been improved. Now, atom updates are batched in a single write, which might provide a performance benefit in certain edge cases. This feature has been requested actually for a long time, and it's finally implemented. See also #2782.

What's Changed

New Contributors

Full Changelog: v2.10.4...v2.11.0

v2.10.4

16 Dec 14:26
Compare
Choose a tag to compare

A minor improvement for some edge cases. (For more information, see #2789.)

What's Changed

  • fix(store): do not recompute unmounted atoms eagerly by @dai-shi in #2849

New Contributors

Full Changelog: v2.10.3...v2.10.4

v2.10.3

20 Nov 12:27
Compare
Choose a tag to compare

This fixes various edge cases. Huge thanks to @dmaskasky ! 🎉

What's Changed

Full Changelog: v2.10.2...v2.10.3

v2.10.2

11 Nov 11:36
Compare
Choose a tag to compare

Fixed some jotai/utils for a regression in v2.10.0.

What's Changed

  • fix(unstable_derive): trap atom methods by @dai-shi in #2741
  • Throw error on useAtom(undefined) or useAtom(null) by @kevinschaich in #2778
  • fix(utils): make 'loadable' update immediate after resolve by @e7h4n in #2790
  • fix(utils): make 'unwrap' update immediate after resolve by @organize in #2794

New Contributors

Full Changelog: v2.10.1...v2.10.2

v2.10.1

15 Oct 11:23
Compare
Choose a tag to compare

This fixes a bug in an extreme edge case. If you find this change breaks something, please report to us.

What's Changed

  • fix(core): recompute dependents in edge cases by @dai-shi in #2742

New Contributors

Full Changelog: v2.10.0...v2.10.1

v2.10.0

20 Sep 01:37
Compare
Choose a tag to compare

It comes with another significant internal change to address some edge cases.

Since v2.9.0, we've been working on some internal refactors to support more edge cases and clean up the code.

Users are encouraged to update to the new versions eventually, but if you're satisfied with the current situation and prefer to avoid temporary instability, you can stick with v2.8.4 for now.

What's Changed

  • breaking(core): avoid continuable promise in store api by @dai-shi in #2695

New Contributors

Full Changelog: v2.9.3...v2.10.0

v2.9.3

13 Aug 02:49
Compare
Choose a tag to compare

This fixes a regression in an edge case that is introduced in v2.6.4.

What's Changed

  • fix(store): derived atom not updating when its value changes if another atom is read it conditionally by @yuneco in #2700
  • experimental(core): expose unstable_derive by @dai-shi in #2652

New Contributors

Full Changelog: v2.9.2...v2.9.3