Releases: pmndrs/jotai
v2.5.1
This fixes some small issues in jotai/utils.
What's Changed
- fix(utils): unwrap may not return previous value by @satoren in #2216
- Apply publint recommendations by @dbritto-dev in #2219
- fix(utils): useHydrateAtoms type by @dai-shi in #2229
New Contributors
- @satoren made their first contribution in #2216
- @dbritto-dev made their first contribution in #2219
Full Changelog: v2.5.0...v2.5.1
v2.5.0
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
- @ilyasmez made their first contribution in #2159
- @NaamuKim made their first contribution in #2161
- @dmaskasky made their first contribution in #2163
- @joetis06 made their first contribution in #2183
- @ocavue made their first contribution in #2190
- @eryue0220 made their first contribution in #2197
Full Changelog: v2.4.3...v2.5.0
v2.4.3
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
- @kalijonn made their first contribution in #2139
- @stevemolitor made their first contribution in #2150
- @iwoplaza made their first contribution in #2152
Full Changelog: v2.4.2...v2.4.3
v2.4.2
v2.4.1
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
- @gerzonc made their first contribution in #2083
- @ilyapopovs made their first contribution in #2101
- @tmkx made their first contribution in #2099
- @byudaniel made their first contribution in #2100
Full Changelog: v2.4.0...v2.4.1
v2.4.0
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
There was a bug in #2061, which is fixed. It's about a dev-only warning.
What's Changed
New Contributors
- @ivoberger made their first contribution in #2065
- @fz6m made their first contribution in #2066
Full Changelog: v2.3.0...v2.3.1
v2.3.0
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
- refactor(vanilla): simplify store impl by @dai-shi in #2029
- breaking: remove deperecated dev-only methods by @dai-shi in #2054
- feat(utils): stable unwrap by @dai-shi in #2055
- fix(vanilla): improve warning message for multiple instances by @dai-shi in #2061
Full Changelog: v2.2.3...v2.3.0
v2.2.3
This comes with some small improvements.
What's Changed
- fix: declare @types/react as peerDep to avoid phantom dep by @wjw99830 in #2048
- fix(vanilla): check duplicated instances by @dai-shi in #2049
New Contributors
Full Changelog: v2.2.2...v2.2.3
v2.2.2
This includes some fixes for edge cases.
What's Changed
- fix(vanilla): bail out recomputing with the same value by @dai-shi in #2016
- fix(utils): loadable handles sync errors by @dai-shi in #2021
New Contributors
- @vossmalte made their first contribution in #2006
Full Changelog: v2.2.1...v2.2.2