Urgent.News

What's breaking now, across thousands of outlets.

Tech

Jotai 3.0 Ships as a Modernized, ESM-Only Package That Drops Legacy Builds and Deprecated APIs

Jotai, an atomic state management library for React, has released version 3.0.0, now exclusively using ES modules. It maintains backward compatibility but removes some deprecated APIs. Migration is straightforward for most users. This version emphasizes a leaner core with improvements while deferring significant feature changes for future updates. By Daniel Curtis

Jotai 3.0, an atomic state management library for React, has been released as an ESM-only package, dropping legacy builds and deprecated APIs. The update, described as a mostly backward-compatible change, removes the CommonJS build and ESM, UMD, and SystemJS bundles, along with support for older Node, React, and TypeScript versions.

The package now targets ES2020 and uses direct NODE_ENV reading instead of build-time replacement, and Rollup has been replaced with other build tooling. Some public APIs, including atomFamily, loadable, and the setSelf argument to atom read functions, have been removed, but these were already deprecated in the late v2 line. Migration is expected to be straightforward for most teams, with atomFamily now residing in the jotai-family package and loadable users redirected to jotai-eager.

The team behind Jotai aims to provide a leaner core with less maintenance through this update, which is now available on npm for teams ready to move away from v2 releases.

Written by urgent.news from InfoQ's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at infoq.com →

More in Tech

Django Data Migrations: Getting Them Right on a Live Database

Schema migrations, adding a column, creating a table are the ones everyone thinks of first. Data migrations are the quieter, riskier cousin: transforming or backfilling actual data, on a database…

  • Data migrations transform actual data on live databases, unlike straightforward schema migrations.
  • Stream database results with .iterator() and batch updates to minimize memory usage and table locks.

More from Monday 14 September →