unstale

npm / jotai

jotai

What changed in jotai 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

27 breaking4 deprecations4 new APIs and options2 performance3 behavior and defaults2 tooling16 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

jotai 322 changes

Breaking changes 14

  • The util moved from jotai/utils to the jotai-family package, so imports must use the new package.

    3.0.0upgrade guide

  • The delay option was removed from useAtom and useAtomValue.

    3.0.0upgrade guide

  • Published files target ES2020; projects supporting older browsers need to transpile the package.

    3.0.0upgrade guide

  • CJS, UMD, and SystemJS builds are no longer provided; the package supplies an ESM build.

    3.0.0upgrade guide

  • Package exports expose only the listed public entry points, so importing other package files directly no longer works.

    3.0.0upgrade guide

  • The Babel preset and plugin moved to jotai-babel, so update configured package paths.

    2.18.0, 3.0.0release notesupgrade guide

  • The loadable util was removed from jotai/utils; use unwrap instead, or implement the previous behavior in userland.

    3.0.0upgrade guide

  • Node 20 support is dropped in v3, so developers may need to use a newer Node.js version.

    3.0.0release notesupgrade guide

  • Published files read this variable directly to omit development-only checks in production; browser use without a bundler requires defining it.

    3.0.0upgrade guide

  • The minimum supported React version is raised to React 18.

    3.0.0upgrade guide

  • The setSelf option has been removed from the atom's read function; there is no direct replacement.

    3.0.0upgrade guide

  • The setSelf option was removed from the atom's read function.

    3.0.0upgrade guide

  • The minimum supported TypeScript version is raised to 5.5.

    3.0.0upgrade guide

  • The delay option has been removed; create a custom hook for delayed values.

    3.0.0upgrade guide

New APIs and options 2

  • A lower-level hook like useAtomValue that never suspends and returns an async atom's value without consuming it through React's use().

    3.0.0upgrade guide

  • A lower-level hook built on useSyncExternalStore; it trades concurrent rendering for no tearing and no missed update around mount.

    3.0.0upgrade guide

Behavior and default changes 1

  • It uses React.use() when available to suspend while reading a promise during render, and falls back to the previous behavior on React 18.

    3.0.0upgrade guide

Tooling 1

  • The Jotai skill can be installed in a project to help a coding agent review and apply migration changes.

    3.0.0upgrade guide

Fixes and other changes 4

  • Unmounts the last dependency when it is removed.

    3.0.2release notes

  • Handles circular references and typed arrays when freezing atoms.

    3.0.2release notes

  • The store type is now exported for developers who need to reference it in type-level code.

    3.0.1release notes

  • Synchronous onMount updates are now delivered to React subscribers, fixing a regression introduced in v3.0.0.

    3.0.1release notes

jotai 236 changes

Breaking changes 13

  • Performance improves in high-throughput scenarios.

    2.20.0release notes

  • unstable_onInit was removed as a breaking change.

    2.17.0release notes

  • The API was renamed to INTERNAL_onInit.

    2.16.0release notes

  • The utility is removed because abort support is included with normal atom usage.

    2.0.0upgrade guide

  • Async atoms are normal atoms with promise values; getters no longer resolve promises, while useAtom continues to resolve them.

    2.0.0upgrade guiderelease notes

  • The delayInit option is removed because its behavior is now the default.

    2.0.0upgrade guide

  • The module condition was dropped from package exports.

    2.0.0release notes

  • The initialValues prop is removed; use store and useHydrateAtoms instead.

    2.0.0upgrade guide

  • The scope prop is removed; create a context with a store and use that store with useAtom instead.

    2.0.0upgrade guide

  • splitAtom only accepts sync atoms; unwrap async atoms before passing them.

    2.0.0upgrade guide

  • It can only accept writable atoms.

    2.0.0upgrade guide

  • The utility is removed; use Promise.all instead.

    2.0.0upgrade guide

  • The TypeScript type changes from separate Arg and Result parameters to Args as an argument tuple and Result; direct use of WritableAtom is generally discouraged.

    2.0.0upgrade guide

Deprecations 4

  • The React delay option is deprecated.

    2.19.0release notes

  • The loadable utility is deprecated and will be dropped in v3.

    2.17.0release notes

  • setSelf in the atom read function is deprecated and will be dropped in v3.

    2.17.0release notes

  • atomFamily in jotai/utils is deprecated; migrate to jotai-family.

    2.16.0release notes

New APIs and options 2

  • The write function can accept multiple arguments and return a value.

    2.0.0upgrade guide

  • Creates a store that lets developers directly get, set, and subscribe to atom values, and can be passed through a custom React context.

    2.0.0upgrade guiderelease notes

Performance 2

  • Core atom caching was enabled to improve performance in some cases.

    2.19.0release notes

  • store.get performance improved when atoms are not mutated.

    2.19.0release notes

Behavior and default changes 2

  • Development builds now warn when unsupported store mutations or side effects are detected.

    2.15.2release notes

  • It renders initialValue on the first render and the stored value, if any, on subsequent renders.

    2.0.0upgrade guide

Tooling 1

Fixes and other changes 12

  • Prevents an infinite microtask loop when a rejected source is recomputed.

    2.20.3release notes

  • Fixes subscribers not being notified after nested store.set and sub/unsub operations inside a write.

    2.20.2release notes

  • Applies the reviver when parsing subscription updates from storage.

    2.20.1release notes

  • Stackoverflow errors are now thrown synchronously.

    2.20.1release notes

  • Uses a symbol index signature to avoid a Symbol.observable type reference.

    2.19.1release notes

  • ObservableLike now supports the Symbol.observable type.

    2.18.1release notes

  • Subscribers are notified when a derived read calls store.set, fixing a regression from v2.12.1.

    2.18.1release notes

  • Reactivity is preserved when get is called in a different atom.

    2.18.0release notes

  • Corrected the variance of the WritableAtom Result type parameter, improving TypeScript typing behavior.

    2.17.1release notes

  • Fixed a regression so unwrap no longer violates the store mutation rule.

    2.16.2release notes

  • Buildingblocks no longer invoke buildingblock definitions from top-scope, fixing an internal API issue affecting ecosystem libraries.

    2.16.1release notes

  • unwrap now recovers from errors.

    2.15.1release notes