v2.18.0
We moved jotai/babel to jotai-babel.
If you use the preset:
{
- "presets": ["jotai/babel/preset"]
+ "presets": ["jotai-babel/preset"]
}
If you use a plugin:
{
- "plugins": ["jotai/babel/plugin-debug-label"]
+ "plugins": ["jotai-babel/plugin-debug-label"]
}
- refactor(internals): simplify promise handing by @dai-shi in https://github.com/pmndrs/jotai/pull/3232
- feat: deprecate jotai/babel in favor of jotai-babel by @dai-shi in https://github.com/pmndrs/jotai/pull/3236
- fix: keep reactivity if get is called in a different atom by @dai-shi in https://github.com/pmndrs/jotai/pull/3241
- @pavan-sh made their first contribution in https://github.com/pmndrs/jotai/pull/3238
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.17.1...v2.18.0
v2.17.1
Small typing improvements. If you are using v2.16 or earlier, we recommend upgrading to the latest version.
- fix(core/types): Wrong variance on the WritableAtom Result type parameter by @atomanyih in https://github.com/pmndrs/jotai/pull/3135
- chore: leftover with #3219 by @dai-shi in https://github.com/pmndrs/jotai/pull/3231
- @atomanyih made their first contribution in https://github.com/pmndrs/jotai/pull/3135
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.17.0...v2.17.1
v2.17.0
This release deprecates some features, which will be dropped in v3.
- deprecate loadable util by @dai-shi in https://github.com/pmndrs/jotai/pull/3217
- breaking: remove unstable_onInit by @dai-shi in https://github.com/pmndrs/jotai/pull/3219
- deprecate setSelf in the atom read function by @dai-shi in https://github.com/pmndrs/jotai/pull/3220
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.16.2...v2.17.0
v2.16.2
Fixes unwrap and loadable, resolving a regression introduced in v2.15.2.
- fix(utils): unwrap should not violate the store mutation rule by @dai-shi in https://github.com/pmndrs/jotai/pull/3213
- @dev-itsheng made their first contribution in https://github.com/pmndrs/jotai/pull/3206
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.16.1...v2.16.2
v2.16.1
This fixes an internal API issue that affects ecosystem libraries.
- fix(internals): buildingblocks should not invoke buildingblock definitions from top-scope by @dmaskasky in https://github.com/pmndrs/jotai/pull/3197
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.16.0...v2.16.1
v2.16.0
This version deprecates atomFamily in jotai/utils in favor of jotai-family, and includes some internal changes.
- fix(internals): Minor tweaks to store internals by @dmaskasky in https://github.com/pmndrs/jotai/pull/3186
- feat(utils): deprecate atomFamily in
jotai/utils(migrate tojotai-family) by @dmaskasky in https://github.com/pmndrs/jotai/pull/3187 - fix(internals): only mounted dependents can be added to mounted.t by @dmaskasky in https://github.com/pmndrs/jotai/pull/3189
- feat: rename to INTERNAL_onInit by @dai-shi in https://github.com/pmndrs/jotai/pull/3193
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.15.2...v2.16.0
v2.15.2
This release introduces some internal changes. In particular, it adds a warning when unsupported store mutations (side effects) are detected.
- fix(internals): add dev-only warning for unsupported side effect by @dai-shi in https://github.com/pmndrs/jotai/pull/3179
- refactor(utils): prefer onInit over setSelf by @dai-shi in https://github.com/pmndrs/jotai/pull/3172
- fix(internals): add storeHooks.i to be called when atomState is created by @dmaskasky in https://github.com/pmndrs/jotai/pull/3181
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.15.1...v2.15.2
v2.15.1
A minor but important fix in utils.
- fix(unwrap): recover from errors by @darrenclark in https://github.com/pmndrs/jotai/pull/3163
- @darrenclark made their first contribution in https://github.com/pmndrs/jotai/pull/3163
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.15.0...v2.15.1
v2.15.0
This is another change in the internal functions of the core, to help Jotai ecosystem libraries.
- feat(internals): External building blocks surface by @dmaskasky in https://github.com/pmndrs/jotai/pull/3149
- breaking: drop atom.unstable_is by @dai-shi in https://github.com/pmndrs/jotai/pull/3150
- add: read atom store hook and store hook tests by @dmaskasky in https://github.com/pmndrs/jotai/pull/3151
- @Antisunny made their first contribution in https://github.com/pmndrs/jotai/pull/3155
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.14.0...v2.15.0
v2.14.0
This version changes the internal functions of the core. Libraries that depend on them, such as jotai-devtools, need to be updated correspondingly.
- refactor: buildingBlocks to storeState by @dmaskasky in https://github.com/pmndrs/jotai/pull/3105
- allow atom with default update function to return reset and add tests by @scamden in https://github.com/pmndrs/jotai/pull/3137
- @peterpme made their first contribution in https://github.com/pmndrs/jotai/pull/3132
- @01-binary made their first contribution in https://github.com/pmndrs/jotai/pull/3138
- @scamden made their first contribution in https://github.com/pmndrs/jotai/pull/3137
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.13.1...v2.14.0