Releases: pmndrs/jotai
v2.7.0
We've improved the use of WeakMap for better memory management. Please report to us if any regressions are found.
What's Changed
- feat: atomWithRefresh by @dai-shi in #2393
- refactor: make
pendingMap
a WeakMap for better memory management by @dai-shi in #2396 - fix(utils): make 'unwrap' and 'loadable' able to access async atom's resolved value immediately by @iwoplaza in #2417
- fix(types): withStorageValidator by @dai-shi in #2418
- build: change rollup target to ES2018 by @amirhhashemi in #2419
Full Changelog: v2.6.5...v2.7.0
v2.6.5
Some type improvements!
What's Changed
- fix(types): useAtom with one type argument for primitive atoms by @dai-shi in #2386
- fix(types): fix withStorageValidator type by @dai-shi in #2410
New Contributors
- @henrikvilhelmberglund made their first contribution in #2391
Full Changelog: v2.6.4...v2.6.5
v2.6.4
Performance improvement! Check it out!
What's Changed
- refactor: refactoring store and options type by @ssi02014 in #2360
- refactor: modified Args type by @ssi02014 in #2367
- Improve performance of recomputeDependents by @samkline in #2363
- fix(vanilla): fix unexpected cache in jotai-scope by @yf-yang in #2371
New Contributors
- @ssi02014 made their first contribution in #2360
- @samkline made their first contribution in #2363
- @yf-yang made their first contribution in #2371
Full Changelog: v2.6.3...v2.6.4
v2.6.3
Some improvements in core and utils 👏
What's Changed
- fix: atoms should not remount on recalculations (with async dependencies) by @dmaskasky in #2347
- fix(utils): atomWithReducer for jotai-scope by @dai-shi in #2351
- fix(utils/atomWithStorage): defaultStorage with disabled local storage crashes on mount by @benediktschlager in #2354
- feat(vanilla): customizable atom.unstable_is by @dai-shi in #2356
New Contributors
- @SpringHgui made their first contribution in #2320
- @sakurawen made their first contribution in #2358
- @JoltCode made their first contribution in #2357
- @benediktschlager made their first contribution in #2354
Full Changelog: v2.6.2...v2.6.3
v2.6.2
Some improvements for atomWithStorage. Feedback is welcome.
What's Changed
- fix(vanilla): should mount once with atom creator atom by @nogaten in #2319
- feat(utils): createJSONStrage options by @dai-shi in #2324
- feat(utils): add withStorageValidator by @dai-shi in #2336
New Contributors
- @L-Qun made their first contribution in #2318
- @ahme-dev made their first contribution in #2332
- @nogaten made their first contribution in #2319
Full Changelog: v2.6.1...v2.6.2
v2.6.1
This version has two minor improvements for library authors. It's wonderful to see Jotai ecosystem growing. No major bugs have been reported lately. It's fairly okay to say the current version is pretty stable.
What's Changed
- fix(utils): add init property to the return type of atomWithReset by @jaesoekjjang in #2304
- fix(utils): add description for the RESET symbol. by @MiroslavPetrik in #2307
New Contributors
- @wherehows made their first contribution in #2270
- @benson00077 made their first contribution in #2284
- @ioExpander made their first contribution in #2280
- @jaesoekjjang made their first contribution in #2304
Full Changelog: v2.6.0...v2.6.1
v2.6.0
We can now directly use <Provider>
in React Server Components. 🎉
What's Changed
- feat(build): set some files to the client only for React Server Components use case by @himself65 in #2245
- feat(utils): getOnInit option for atomWithStorage by @dai-shi in #2246
New Contributors
- @MiroslavPetrik made their first contribution in #2238
Full Changelog: v2.5.1...v2.6.0
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