npm / react-intl
react-intl
What changed in react-intl 3 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-26.
18 breaking1 security6 new APIs and options5 performance12 behavior and defaults8 tooling33 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-intl 1213 changes
Breaking changes 3
Typed descriptors now check values against message argument types; required arguments need values, and rich tags need callbacks.
Simplifies typed helper calls and generated contracts; this is a breaking change.
Use TypeScript 5.4 or newer when upgrading to React Intl 12.
New APIs and options 2
Adds opt-in support for branded message text.
Exports a shared text message formatter type for use by developers.
Behavior and default changes 4
Formatting now supports Temporal inputs.
Results are readonly in TypeScript; create a new descriptor instead of mutating the result. Objects are not frozen at runtime.
Results are readonly in TypeScript; create a new catalog instead of mutating the result. Objects are not frozen at runtime.
The first generic now describes ICU arguments; rich output moves to the second generic, which defaults to React.ReactNode.
Tooling 1
Enable generateTypes to have the ESLint rule generate ICU argument types in message descriptors and update them when messages change.
Fixes and other changes 3
The eslint-plugin-formatjs now generates lint-compatible empty message contracts.
Default message helpers now use empty ICU contracts, fixing their type behavior for messages without ICU arguments.
Fixes migration of existing message catalogs so they migrate cleanly.
react-intl 111 changes
Fixes and other changes 1
$t now aligns with the formatMessage overloads, improving its type behavior.
react-intl 1040 changes
Breaking changes 2
TypeScript peer dependencies were removed, changing the package's peer dependency requirements.
Major version bump; migration instructions are available in the upgrade guide.
Security 1
Verbatim text is restricted to domain sources.
New APIs and options 2
Adds duration components and bindings to react-intl.
A headless editor package is published, with a headless translation workflow.
Performance 3
Skipped message diagnostics run faster in formatjs_cli.
Catalog parsing is parallelized, improving CLI processing performance.
File processing is parallelized, improving CLI processing performance.
Behavior and default changes 4
formatjs_intl accepts inline named values.
CLDR was upgraded to 48.2.0, updating the locale data used for internationalization.
Applies defaults to Date methods in @formatjs/intl-datetimeformat.
The timezone database was updated to 2026c, which may affect timezone data used by date-time formatting.
Tooling 6
The CLI can extract Python format_message calls.
formatjs_cli can now extract messages from Python.
The FormatJS ESLint plugin allows conditional ICU element blocklists.
eslint-plugin-formatjs detects glued placeholders.
An Rsbuild adapter was added to @formatjs/unplugin.
formatjs_cli now supports id interpolation hash algorithms.
Fixes and other changes 22
Message extraction now handles tagged template literals.
Message IDs are preserved for empty descriptions.
The plugin supports transparent expression wrappers.
Message recognition is aligned across tools.
The Python runtime fallback is aligned.
The CLI library uses native extraction.
The FormatJS CLI now extracts messages that contain only an id.
Missing id errors now include context, helping identify which message caused the error.
The ICU message parser now preserves plural context in tags.
Structural variables are deduplicated in the ICU message format parser.
Weekday counts 4, 5, and 6 in e/c skeletons now map to long, narrow, and short, respectively.
The hour12 option is now honored when timeStyle is used.
Adjacent syntax characters are coalesced when escaping in the ICU message parser.
FormatJS CLI extraction now parses JSX in JavaScript inputs.
The numberingSystem option is now honored by @formatjs/intl-relativetimeformat.
Supports React 18 and React 18+ consumers, including the React 18 peer range.
Unicode whitespace is normalized when generating ids.
formatjs_cli supports loader-utils id templates.
Fixes decoding of the JSX bull entity.
The native extract binding is exposed by @formatjs/cli-lib.
Transform hook filters are exposed by @formatjs/unplugin.
Sets the displayName for FormattedListParts.
react-intl 811 changes
Breaking changes 5
formatTime and FormattedTimeParts use global time Formats for format config overrides instead of date Formats.
react-intl is converted to ESM, affecting how projects load and bundle the package.
Support for React 18 and below is dropped; projects using react-intl must use a later React version.
Rich text is wrapped with Fragment instead of clone, changing how rich-text output is produced.
@types/react is moved to a peer dependency, affecting dependency installation and package compatibility.
New APIs and options 1
react-intl adds support for RSC.
Behavior and default changes 1
Improves Unicode 17.0 Format/Extend transparency in the segmenter.
Fixes and other changes 4
react-intl is modernized for React 19.
Fixes Vitest DOM tests failing in a Bazel sandbox.
Fixes the JSON ESM import in @formatjs/utils.
FormattedDate and FormattedTime receive strict typing for format overrides.
react-intl 72 changes
Breaking changes 2
This package is no longer a dependency of react-intl, reducing package size.
TypeScript 4 is no longer supported; TypeScript 5 or later is required for the native Intl API type definitions.
react-intl 53 changes
Breaking changes 2
The formatter callback now receives a single chunks argument instead of variadic chunks, making rich text callbacks more ergonomic and allowing additional parameters for metadata.
The library fails fast when the intl Provider is missing, rather than allowing the default English renderer to mask Provider setup issues during testing.
Fixes and other changes 1
Rich text formatting merges chunks in the callback, addressing the missing key issue and allowing identical React elements to be distinguished by their indices.
react-intl 45 changes
Breaking changes 4
All tags must have corresponding values; formatting throws an error when a tag value is missing.
Removed; FormattedMessage now supports embedded HTML tags.
Self-closing tags can no longer be formatted; use ICU {placeholder} syntax for that purpose.
XML/HTML tags are escaped using apostrophe like other ICU constructs; escaping opts in to rendering raw HTML tags.
Behavior and default changes 1
The DOMParser dependency and restrictions on void elements such as <link> are removed, so Node no longer needs a DOMParser polyfill.
react-intl 38 changes
New APIs and options 1
Hooks are supported.
Performance 2
The library is smaller.
The runtime is faster.
Behavior and default changes 2
A new, improved parser is included.
Preloading support is improved for SSR and Electron.
Tooling 1
Official TypeScript support is available.
Fixes and other changes 2
The library is more spec-compliant with ICU and the Intl API.
React 16 is supported.