v2.13.1
This version fixes some types in utils.
- fix: useHydrateAtoms tuple types support looser definitions by @dmaskasky in https://github.com/pmndrs/jotai/pull/3117
- fix(utils/atomWithObservable): avoid external symbol type by @dai-shi in https://github.com/pmndrs/jotai/pull/3122
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.13.0...v2.13.1
v2.13.0
This removes the deprecated devstore. Be sure to use the latest jotai-devtools.
- Make @babel/{core,template} optional peer dependencies by @ikeyan in https://github.com/pmndrs/jotai/pull/3093
- breaking: drop deprecated devstore by @dai-shi in https://github.com/pmndrs/jotai/pull/3095
- fix(utils): support multiple args for useHydrateAtoms by @dmaskasky in https://github.com/pmndrs/jotai/pull/3100
- @bytetigers made their first contribution in https://github.com/pmndrs/jotai/pull/3097
- @bytesingsong made their first contribution in https://github.com/pmndrs/jotai/pull/3098
- @eeemmmmmm made their first contribution in https://github.com/pmndrs/jotai/pull/3102
- @ikeyan made their first contribution in https://github.com/pmndrs/jotai/pull/3093
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.12.5...v2.13.0
v2.12.5
An improvement for some edge cases.
- fix: support non-native promises by @dai-shi in https://github.com/pmndrs/jotai/pull/3068
- @donaldthai made their first contribution in https://github.com/pmndrs/jotai/pull/3073
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.12.4...v2.12.5
v2.12.4
We deprecate devstore capability, which will be dropped in the next minor version. Please use the latest jotai-devtools library.
- deprecate devstore by @dai-shi in https://github.com/pmndrs/jotai/pull/3023
- fix(package): react-native condition by @dai-shi in https://github.com/pmndrs/jotai/pull/3042
- fix(utils): allow undefined for atomWithStorage subscriber return by @caffeinewriter in https://github.com/pmndrs/jotai/pull/3055
- @caffeinewriter made their first contribution in https://github.com/pmndrs/jotai/pull/3056
- @CanRau made their first contribution in https://github.com/pmndrs/jotai/pull/3051
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.12.3...v2.12.4
v2.12.3
This introduces an internal capability for jotai-devtools.
- fix: expose an internal function for devtools by @dai-shi in https://github.com/pmndrs/jotai/pull/3045
- fix(react): experimental option to make attaching promise status controllable by @dai-shi in https://github.com/pmndrs/jotai/pull/3026
- @siyou made their first contribution in https://github.com/pmndrs/jotai/pull/3029
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.12.2...v2.12.3
v2.12.2
It includes some refactors and some minor fixes.
- refactor(vanilla, react): change exported functions to 'function declarations' and non-exported ones to 'arrow functions' by @sukvvon in https://github.com/pmndrs/jotai/pull/3002
- fix(core): improve error handling with multiple errors in flashCallbacks by @nightohl in https://github.com/pmndrs/jotai/pull/3011
- fix(utils): atomWithObservable option for React 19 behavior by @dai-shi in https://github.com/pmndrs/jotai/pull/3016
- fix(utils): Fix deepFreeze fails for boolean, number, string by @devuxer in https://github.com/pmndrs/jotai/pull/3018
- refactor(core): avoid onCancel hack by @dai-shi in https://github.com/pmndrs/jotai/pull/3019
- @Muneeb-juttt made their first contribution in https://github.com/pmndrs/jotai/pull/2997
- @a10nik made their first contribution in https://github.com/pmndrs/jotai/pull/2996
- @zakudriver made their first contribution in https://github.com/pmndrs/jotai/pull/3017
- @nightohl made their first contribution in https://github.com/pmndrs/jotai/pull/3011
- @devuxer made their first contribution in https://github.com/pmndrs/jotai/pull/3018
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.12.1...v2.12.2
v2.12.1
This fixes an internal behavior necessary for some Jotai ecosystem libraries.
- fix(core): Remove extra onChange store hook in recomputeInvalidatedDependents by @dmaskasky in https://github.com/pmndrs/jotai/pull/2982
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.12.0...v2.12.1
v2.12.0
This introduces a significant change in the history of Jotai development. The Jotai core aims to remain minimal while supporting the growth of the ecosystem. It now exposes some internal functions for the ecosystem.
For library authors, please make sure to pin the jotai
package version if you rely on these internal functions.
Huge thanks to @dmaskasky for helping finalize the API.
- feat(core): expose internals instead of unstable_derive by @dai-shi in https://github.com/pmndrs/jotai/pull/2911
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.11.3...v2.12.0
v2.11.3
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!
- fix(store): recompute dependents on eager evaluation in writeAtomState by @dmaskasky in https://github.com/pmndrs/jotai/pull/2965
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.11.2...v2.11.3
v2.11.2
There was a regression in v2.11.1, which is fixed in this patch.
- fix(core): derived atom is not re-evaluated if it read between multiple set by @dai-shi in
- @moonheekim0118 made their first contribution in https://github.com/pmndrs/jotai/pull/2961
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.11.1...v2.11.2