Releases: pmndrs/jotai
v1.6.2
This improves atomWithObservable and fixes some hypothetical issues.
What's Changed
- fix(utils/atomWithStorage): handle edge case of value inconsistency with subscription by @dai-shi in #1080
- fix(core,urql): useDebugState and some envvar handling by @dai-shi in #1070
- fix(utils): Initial data for atomWithObservable by @11bit in #1058
New Contributors
- @astridlyre made their first contribution in #1066
- @dakshkhetan made their first contribution in #1075
Full Changelog: v1.6.1...v1.6.2
v1.6.1
This includes some small fixes and improvements.
What's Changed
- fix(utils):
atomWithObservableis not resubscribed after remount by @11bit in #1016 - fix(devtools): better types with official devtools extension types by @Aslemammad in #1049
- fix(devtools): Add support for debugLabels for atom utils by @Thisen in #1051
New Contributors
- @rileyjshaw made their first contribution in #1011
- @11bit made their first contribution in #1016
Full Changelog: v1.6.0...v1.6.1
v1.6.0
This release includes a long-awaited feature unstable_createStore. Although it's an experimental feature, it opens up possibilities for more use cases. Please feel free to experiment with it. Another change is to have useAtomValue and useSetAtom in core, which is just additional APIs, and we keep previous APIs in jotai/utils. UMD/SystemJS bundles are improved. See details below.
What's Changed
- breaking(core,utils): remove some deprecated features by @dai-shi in #979
- feat(build): use
__DEV__to control development mode by @dai-shi in #968 - feat(core): unstable_createStore by @dai-shi in #922
- feat(utils/atomWithStorage): Add subscribe to storage events in defaultStorage by @Thisen in #1004
- feat(core): Move useAtomValue and useSetAtom to core by @Thisen in #989
New Contributors
- @nabigraphics made their first contribution in #985
- @tim-smart made their first contribution in #986
- @ankitchouhan1020 made their first contribution in #991
- @justinhandley made their first contribution in #980
- @elliotwaite made their first contribution in #1001
Full Changelog: v1.5.3...v1.6.0
v1.5.3
This includes several fixes in core. Some of them have been existed for a long time, and can only be revealed in some edge cases. Hope the fixes are fine but if there are some issues found, please report them.
What's Changed
- fix(core): handle some edge cases with flushPending loop by @dai-shi in #970
- chore(devtools): correct error message in useAtomsDevtools by @dai-shi in #976
- fix(core): handle an edge case of changing dependencies without changing atom value by @xbaun in #960
- fix(core): handle edge cases, not to mount dependency atoms if the atom is not mounted by @xbaun in #961
New Contributors
Full Changelog: v1.5.2...v1.5.3
v1.5.2
v1.5.1 has an issue accidentally in non-browser environment like Next.js and React Native. This should fix it.
What's Changed
- fix(utils): atomWithStorage should deal with no localStorage by @dai-shi in #951
- fix(babel): Require that atom is in module scope for react refresh by @Thisen in #952
Full Changelog: v1.5.1...v1.5.2
v1.5.1
This fixes some issues in splitAtom and atomWithStorage in jotai/utils. Also, adds UMD and SystemJS builds for CDN.
What's Changed
- fix(utils): big refactor on splitAtom to handle stale atoms (no more warning, throwing only if unrecoverable) by @Aslemammad in #925
- fix(utils): support RESET for atomWithStorage and atomWithHash by @dai-shi in #934
- fix(build): Generate umd and system files by @romulo94 in #941
New Contributors
- @justjake made their first contribution in #919
- @Awilum made their first contribution in #924
- @romulo94 made their first contribution in #941
Full Changelog: v1.5.0...v1.5.1
v1.5.0
This version drops some deprecated types, adds a new useAtomsDevtools hook for better debugging experience with Redux DevTools Extension, and introduces an experimental (not for production) mode for React 18.
What's Changed
- breaking(types): remove deprecated types by @dai-shi in #884
- feat(core): experimental unstable versioned write for limited use case by @dai-shi in #854
- feat(devtools): useAtomsDevtools by @Aslemammad in #837
New Contributors
Full Changelog: v1.4.9...v1.5.0
v1.4.9
There was a regression in v1.4.7, which was in core and affected utils like atomWithStorage, jotai/xstate and maybe some others. It should be fixed. Please report issues if you find any.
What's Changed
Full Changelog: v1.4.8...v1.4.9
v1.4.8
This has some small fixes.
What's Changed
- fix(type): Fix types on waitForAll to work with destructuring by @russelldavis in #889
- fix(utils): atomWithStorage with async json storage by @dai-shi in #894
New Contributors
- @mauricedb made their first contribution in #886
- @russelldavis made their first contribution in #889
Full Changelog: v1.4.7...v1.4.8
v1.4.7
This fixes some bugs, most importantly #877.
What's Changed
- fix(core): refactor store with suspense promise by @dai-shi in #866
- fix(utils): fix waitForAll types by @dai-shi in #871
- fix(core): refactor store readAtomState by @dai-shi in #872
- fix(core): refactor store (setAtomPromiseOrValue) by @dai-shi in #873
- fix(core): Bail out of atom.write when atom update and current value are equal by @Thisen in #878
- fix(core): refactor atomState in store by @dai-shi in #880
New Contributors
- @notsidney made their first contribution in #879
Full Changelog: v1.4.6...v1.4.7