Change Log
May 5, 2026 · View on GitHub
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
10.1.5 (2026-05-05)
Note: Version bump only for package react-intl
10.1.4 (2026-04-29)
Note: Version bump only for package react-intl
10.1.3 (2026-04-24)
Note: Version bump only for package react-intl
10.1.2 (2026-04-13)
Bug Fixes
- deps: fix broken GitHub URLs in changelogs (#6252) (f6f693f), closes #6248 - by @longlho
- deps: revert example-sandboxes to relative imports, fix examples BUILD (#6292) (90d90e5), closes #6285 - by @longlho
Reverts
- deps: revert gazelle migration phases 1-3 (#6205) (4c04aa2), closes #6197 #6198 #6199 #6195 #6196 - by @longlho
10.1.1 (2026-03-27)
Bug Fixes
10.1.0 (2026-03-17)
Features
- @formatjs/ecma402-abstract: migrate from decimal.js to @formatjs/bigdecimal (#6148) (93744d4) - by @longlho
10.0.0 (2026-03-16)
Features
BREAKING CHANGES
- react-intl: Major version bump for react-intl. See https://formatjs.github.io/docs/react-intl/upgrade-guide-10.x for migration instructions.
🤖 Generated with Claude Code
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
8.2.0 (2026-03-16)
Bug Fixes
Features
8.1.4 (2026-03-15)
Note: Version bump only for package react-intl
8.1.3 (2026-02-03)
Bug Fixes
8.1.2 (2026-02-01)
Note: Version bump only for package react-intl
8.1.1 (2026-01-19)
Note: Version bump only for package react-intl
8.1.0 (2026-01-15)
Features
- @formatjs/intl-segmenter: improve Unicode 17.0 Format/Extend transparency and upgrade deps (#5862) (effeb9c), closes #29 - by @longlho
8.0.11 (2026-01-06)
Note: Version bump only for package react-intl
8.0.10 (2026-01-02)
Note: Version bump only for package react-intl
8.0.9 (2025-12-26)
Note: Version bump only for package react-intl
8.0.8 (2025-12-23)
Note: Version bump only for package react-intl
8.0.7 (2025-12-23)
Note: Version bump only for package react-intl
8.0.6 (2025-12-19)
Bug Fixes
8.0.5 (2025-12-18)
Note: Version bump only for package react-intl
8.0.4 (2025-12-17)
Note: Version bump only for package react-intl
8.0.3 (2025-12-16)
Bug Fixes
- react-intl: jiggle package.json to republish (b93b961) - by @longlho
8.0.2 (2025-12-16)
Note: Version bump only for package react-intl
8.0.1 (2025-12-15)
Note: Version bump only for package react-intl
8.0.0 (2025-12-15)
⚠ BREAKING CHANGES
- react-intl: wrap rich text with Fragment instead of clone, fix #5135 (#5507)
- react-intl: drop support for React 18 and below (#5485)
- @formatjs/intl-getcanonicallocales: convert to esm (#5457)
- @formatjs/intl-pluralrules: convert to esm (#5436)
- @formatjs/intl-locale: convert to esm (#5435)
- @formatjs/intl-numberformat: convert to ESM (#5431)
- @formatjs/intl-datetimeformat: convert to ESM (#5429)
- react-intl: convert to ESM
Features
- @formatjs/intl-datetimeformat: convert to ESM (#5429) (c717c1a) - by @longlho
- @formatjs/intl-getcanonicallocales: convert to esm (#5457) (e1a6d19) - by @longlho
- @formatjs/intl-locale: convert to esm (#5435) (fc9ae8e) - by @longlho
- @formatjs/intl-pluralrules: convert to esm (#5436) (0ed2ff9) - by @longlho
- react-intl: convert to ESM (cb93e7d) - by @longlho
- react-intl: drop support for React 18 and below (#5485) (2ea4b7e) - by @longlho
Bug Fixes
- @formatjs/intl-numberformat: convert to ESM (#5431) (793ae5c) - by @longlho
- react-intl: move @types/react to peerDep (eea10ff) - by @longlho
- react-intl: wrap rich text with Fragment instead of clone, fix #5135 (#5507) (27365e8) - by @longlho
- use global 'time' Formats override with formatTime/FormattedTimeParts 'format' config instead of 'date' Formats, add strict 'format' overrides typing to FormattedDate and FormattedTime (#5151) (3fe4b50) - by @seanmadi
7.1.14 (2025-10-09)
Note: Version bump only for package react-intl
7.1.13 (2025-10-06)
Note: Version bump only for package react-intl
7.1.12 (2025-10-03)
Bug Fixes
- keyed react node (#5050) (8ef2c8b) - by @septs
- react-intl: add keys on nested rich text elements (#5032) (7ebf80e) - by @zyzo
7.1.11 (2025-04-19)
Bug Fixes
7.1.10 (2025-03-26)
Bug Fixes
- drop TS reqs, fix #4917 (f28e20d) - by @longlho
- react-intl: restore old behavior, fix #4918 (e4771ac) - by @longlho
7.1.9 (2025-03-24)
Bug Fixes
7.1.8 (2025-03-24)
Bug Fixes
7.1.7 (2025-03-23)
Note: Version bump only for package react-intl
7.1.6 (2025-02-09)
Note: Version bump only for package react-intl
7.1.5 (2025-01-24)
Bug Fixes
- react-intl: move react to peerDep (bcf6d7a) - by @longlho
7.1.4 (2025-01-20)
Bug Fixes
7.1.3 (2025-01-20)
Note: Version bump only for package react-intl
7.1.2 (2025-01-20)
Note: Version bump only for package react-intl
7.1.1 (2025-01-17)
Note: Version bump only for package react-intl
7.1.0 (2025-01-02)
Features
7.0.4 (2024-12-09)
Note: Version bump only for package react-intl
7.0.3 (2024-12-09)
Bug Fixes
- turn on isolatedDeclarations and specify explicit types everywhere (4d855c2) - by @longlho
7.0.2 (2024-12-08)
Bug Fixes
- deps: update react monorepo to v19 (major) (#4749) (c443e1f) - by @renovate[bot]
- react-intl: fix NumberFormat types, fix #4717 (cac541d) - by @longlho
7.0.1 (2024-11-18)
Bug Fixes
- react-intl: remove @formatjs/ecma402-abstract, use native TS Intl typdefs (289aa91) - by @longlho
7.0.0 (2024-11-18)
Features
- react-intl: drop typescript@4 support (12ecc1b) - by @longlho
- react-intl: remove polyfill packages in deps (31b832f) - by @longlho
BREAKING CHANGES
- react-intl: This removes @formatjs/intl-displaynames & @formatjs/intl-listformat as deps which will reduce package size. However, this also means you'll need typescript@5 at least since that has new type defs for those native Intl APIs.
6.8.9 (2024-11-18)
Bug Fixes
6.8.8 (2024-11-17)
Note: Version bump only for package react-intl
6.8.7 (2024-11-05)
Bug Fixes
6.8.6 (2024-11-04)
Note: Version bump only for package react-intl
6.8.5 (2024-11-02)
Bug Fixes
- react-intl: relax @types/react versions (d8f6047) - by @longlho
6.8.4 (2024-10-25)
Bug Fixes
- relax tslib req to 2 instead of 2.7 (930c3e8) - by @longlho
6.8.3 (2024-10-25)
Note: Version bump only for package react-intl
6.8.2 (2024-10-24)
Note: Version bump only for package react-intl
6.8.1 (2024-10-21)
Note: Version bump only for package react-intl
6.8.0 (2024-10-12)
Bug Fixes
- react-intl: rm stray package-lock.json (00bc9f1) - by @longlho
Features
- react-intl: adopt React.JSX types in prep for React 19 (96725cb) - by @nstepien
6.7.1 (2024-10-08)
Note: Version bump only for package react-intl
6.7.0 (2024-09-23)
Bug Fixes
Features
- eslint-plugin-formatjs: add support for eslint v9 (f9a0e1b) - by @michaelfaith
6.6.8 (2024-05-19)
Note: Version bump only for package react-intl
6.6.7 (2024-05-18)
Note: Version bump only for package react-intl
6.6.6 (2024-05-05)
Note: Version bump only for package react-intl
6.6.5 (2024-04-06)
Note: Version bump only for package react-intl
6.6.4 (2024-03-27)
Note: Version bump only for package react-intl
6.6.3 (2024-03-24)
Note: Version bump only for package react-intl
6.6.2 (2024-01-26)
Note: Version bump only for package react-intl
6.6.1 (2024-01-16)
Note: Version bump only for package react-intl
6.6.0 (2024-01-16)
Features
- react-intl: move createIntl function to a separate file to support react server components (#4316) (f4fb8c9) - by @am1rb
6.5.5 (2023-11-14)
Note: Version bump only for package react-intl
6.5.4 (2023-11-12)
Note: Version bump only for package react-intl
6.5.3 (2023-11-12)
Note: Version bump only for package react-intl
6.5.2 (2023-11-06)
Note: Version bump only for package react-intl
6.5.1 (2023-10-23)
Note: Version bump only for package react-intl
6.5.0 (2023-10-16)
Features
- eslint-plugin-formatjs: upgrade typescript-eslint packages (a3c7310)
6.4.7 (2023-09-18)
Note: Version bump only for package react-intl
6.4.6 (2023-09-10)
Note: Version bump only for package react-intl
6.4.5 (2023-09-07)
Bug Fixes
6.4.4 (2023-06-12)
Note: Version bump only for package react-intl
6.4.3 (2023-06-06)
Bug Fixes
6.4.2 (2023-05-01)
Note: Version bump only for package react-intl
6.4.1 (2023-04-19)
Note: Version bump only for package react-intl
6.4.0 (2023-04-17)
Features
- upgrade TS support to v5 (2c43dc1)
6.3.2 (2023-03-21)
Note: Version bump only for package react-intl
6.3.0 (2023-03-15)
Features
- react-intl: memoize Context into global (e0dfde6)
6.2.10 (2023-02-20)
Note: Version bump only for package react-intl
6.2.9 (2023-02-20)
Note: Version bump only for package react-intl
6.2.8 (2023-02-07)
Bug Fixes
6.2.7 (2023-01-30)
Note: Version bump only for package react-intl
6.2.6 (2023-01-26)
Note: Version bump only for package react-intl
6.2.5 (2022-12-02)
Note: Version bump only for package react-intl
6.2.4 (2022-12-01)
Note: Version bump only for package react-intl
6.2.3 (2022-12-01)
Note: Version bump only for package react-intl
6.2.2 (2022-11-29)
Note: Version bump only for package react-intl
6.2.1 (2022-10-17)
Note: Version bump only for package react-intl
6.2.0 (2022-10-13)
Bug Fixes
- react-intl: fix type issue w/ ts4.7 (c366cc8)
Features
6.1.2 (2022-09-28)
Bug Fixes
- react-intl: re-export PrimitiveType from intl-messageformat (c00ba91)
- react-intl: update typescript types for FormattedDate and FormattedTime explicitly add children (#3852) (67bd664)
6.1.1 (2022-09-06)
Note: Version bump only for package react-intl
6.1.0 (2022-08-27)
Features
6.0.8 (2022-08-21)
Note: Version bump only for package react-intl
6.0.7 (2022-08-21)
Note: Version bump only for package react-intl
6.0.6 (2022-08-18)
Note: Version bump only for package react-intl
6.0.5 (2022-07-04)
Note: Version bump only for package react-intl
6.0.4 (2022-06-06)
Note: Version bump only for package react-intl
6.0.3 (2022-05-24)
Note: Version bump only for package react-intl
6.0.2 (2022-05-23)
Bug Fixes
6.0.1 (2022-05-19)
Note: Version bump only for package react-intl
6.0.0 (2022-05-19)
Bug Fixes
Features
BREAKING CHANGES
- @formatjs/cli: we push @vue/compiler-core out to
peerDependenciesso if u use vue u should pull this in manuallywip on packaging cli.
5.25.1 (2022-04-27)
Note: Version bump only for package react-intl
5.25.0 (2022-04-17)
Features
- @formatjs/intl: change constrains of react and react-dom versions to allow version 18 (8808a95), closes #3526 #3510
- react-intl: add onWarn (#3506) (09273e3)
5.24.8 (2022-03-26)
Note: Version bump only for package react-intl
5.24.7 (2022-03-13)
Note: Version bump only for package react-intl
5.24.6 (2022-02-06)
Note: Version bump only for package react-intl
5.24.5 (2022-02-06)
Bug Fixes
5.24.4 (2022-01-24)
Note: Version bump only for package react-intl
5.24.3 (2022-01-14)
Note: Version bump only for package react-intl
5.24.2 (2022-01-09)
Note: Version bump only for package react-intl
5.24.1 (2022-01-03)
Note: Version bump only for package react-intl
5.24.0 (2021-12-20)
Features
5.23.0 (2021-12-01)
Features
5.22.0 (2021-11-23)
Features
5.21.2 (2021-11-14)
Note: Version bump only for package react-intl
5.21.1 (2021-11-09)
Bug Fixes
5.21.0 (2021-10-22)
Features
- @formatjs/intl: add fallbackOnEmptyString option (#3201) (5c67c28)
- react-intl: upgrade to TS 4.4 (b7f79b4)
5.20.13 (2021-10-17)
Bug Fixes
5.20.12 (2021-09-27)
Bug Fixes
- react-intl: use indexOf instead of includes (aed19a2)
5.20.11 (2021-09-26)
Bug Fixes
5.20.10 (2021-08-21)
Bug Fixes
5.20.9 (2021-08-16)
Bug Fixes
5.20.8 (2021-08-15)
Bug Fixes
- react-intl: add generic constraint to defineMessage for better intellisense experience (#3111) (9eae9cd)
5.20.7 (2021-08-06)
Note: Version bump only for package react-intl
5.20.6 (2021-07-24)
Note: Version bump only for package react-intl
5.20.5 (2021-07-23)
Note: Version bump only for package react-intl
5.20.4 (2021-06-26)
Note: Version bump only for package react-intl
5.20.3 (2021-06-21)
Note: Version bump only for package react-intl
5.20.2 (2021-06-09)
Note: Version bump only for package react-intl
5.20.1 (2021-06-05)
Note: Version bump only for package react-intl
5.20.0 (2021-06-05)
Features
5.19.0 (2021-06-04)
Features
5.18.3 (2021-06-02)
Bug Fixes
5.18.2 (2021-06-01)
Note: Version bump only for package react-intl
5.18.1 (2021-05-23)
Note: Version bump only for package react-intl
5.18.0 (2021-05-20)
Features
5.17.7 (2021-05-17)
Note: Version bump only for package react-intl
5.17.6 (2021-05-14)
Note: Version bump only for package react-intl
5.17.5 (2021-05-10)
Note: Version bump only for package react-intl
5.17.4 (2021-05-02)
Note: Version bump only for package react-intl
5.17.3 (2021-05-02)
Note: Version bump only for package react-intl
5.17.2 (2021-04-29)
Bug Fixes
- react-intl: update react provider to match GetDerivedStateFromProps declaration. (#2852) (7248d37), closes /github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/v16/index.d.ts#L646
5.17.1 (2021-04-26)
Note: Version bump only for package react-intl
5.17.0 (2021-04-26)
Features
- react-intl: expose ESM & IIFE versions (06409a7)
5.16.2 (2021-04-26)
Note: Version bump only for package react-intl
5.16.1 (2021-04-26)
Note: Version bump only for package react-intl
5.16.0 (2021-04-21)
Features
- react-intl: rename OptionalIntlConfig to IntlConfig and IntlConfig to ResolvedIntlConfig (779a957)
5.15.8 (2021-04-12)
Note: Version bump only for package react-intl
5.15.7 (2021-04-04)
Note: Version bump only for package react-intl
5.15.6 (2021-04-03)
Note: Version bump only for package react-intl
5.15.5 (2021-03-30)
Note: Version bump only for package react-intl
5.15.4 (2021-03-30)
Note: Version bump only for package react-intl
5.15.3 (2021-03-28)
Note: Version bump only for package react-intl
5.15.2 (2021-03-28)
Note: Version bump only for package react-intl
5.15.1 (2021-03-27)
Bug Fixes
- react-intl: fix missing dep (cb97f8a)
5.15.0 (2021-03-27)
Features
- react-intl: switch parser to @formatjs/icu-messageformat-parser (6x faster) (c3c211f)
5.14.1 (2021-03-26)
Bug Fixes
5.14.0 (2021-03-26)
Bug Fixes
Features
- faster-messageformat-parser: add the new ICU message format parser (#2732) (8fa6a6e), closes #xB7 #xC0 -#xD6 #xD8 -#xF6 #xF8 -#x37 #x37 F-#x1 #x200 C-#x200 #x203 F-#x2040 #x2070 -#x218 #x2C00 -#x2 #x3001 -#xD7 #xF900 #xFDF0 #x10000
5.13.5 (2021-03-19)
Bug Fixes
5.13.4 (2021-03-17)
Bug Fixes
- react-intl: trim down dependencies thanks to TS4.2 (be2a3cf)
5.13.3 (2021-03-15)
Note: Version bump only for package react-intl
5.13.2 (2021-03-01)
Bug Fixes
- react-intl: remove shallow-equal dep, change FormattedMessage for functional component (ab4959f)
5.13.1 (2021-02-25)
Bug Fixes
5.13.0 (2021-02-25)
Features
- react-intl: support TS4.2 (78b8766)
5.12.5 (2021-02-22)
Bug Fixes
5.12.4 (2021-02-21)
Note: Version bump only for package react-intl
5.12.3 (2021-02-13)
Note: Version bump only for package react-intl
5.12.2 (2021-02-09)
Note: Version bump only for package react-intl
5.12.1 (2021-02-04)
Bug Fixes
5.12.0 (2021-02-02)
Bug Fixes
Features
5.11.0 (2021-01-29)
Features
5.10.19 (2021-01-27)
Note: Version bump only for package react-intl
5.10.18 (2021-01-26)
Note: Version bump only for package react-intl
5.10.17 (2021-01-25)
Note: Version bump only for package react-intl
5.10.16 (2021-01-13)
Note: Version bump only for package react-intl
5.10.15 (2021-01-12)
Note: Version bump only for package react-intl
5.10.14 (2021-01-08)
Note: Version bump only for package react-intl
5.10.13 (2021-01-06)
Note: Version bump only for package react-intl
5.10.12 (2021-01-05)
Note: Version bump only for package react-intl
5.10.11 (2021-01-02)
Note: Version bump only for package react-intl
5.10.10 (2021-01-01)
Note: Version bump only for package react-intl
5.10.9 (2020-12-18)
Note: Version bump only for package react-intl
5.10.8 (2020-12-17)
Note: Version bump only for package react-intl
5.10.7 (2020-12-16)
Note: Version bump only for package react-intl
5.10.6 (2020-11-27)
Note: Version bump only for package react-intl
5.10.5 (2020-11-26)
Note: Version bump only for package react-intl
5.10.4 (2020-11-21)
Bug Fixes
5.10.3 (2020-11-20)
Note: Version bump only for package react-intl
5.10.2 (2020-11-19)
Bug Fixes
5.10.1 (2020-11-12)
Note: Version bump only for package react-intl
5.10.0 (2020-11-10)
Bug Fixes
- react-intl: set typescript dep as optional (678d290)
Features
5.9.4 (2020-11-09)
Note: Version bump only for package react-intl
5.9.3 (2020-11-09)
Note: Version bump only for package react-intl
5.9.2 (2020-11-05)
Bug Fixes
- @formatjs/intl: fix default config for formatDateTimeRange (60087d8)
5.9.1 (2020-11-05)
Note: Version bump only for package react-intl
5.9.0 (2020-11-05)
Bug Fixes
- react-intl: lock down monorepo dep version (7869092)
Features
- react-intl: introduce FormattedDateTimeRange, a stage-3 API (ebff2a3)
5.8.9 (2020-11-04)
Note: Version bump only for package react-intl
5.8.8 (2020-10-26)
Note: Version bump only for package react-intl
5.8.7 (2020-10-25)
Note: Version bump only for package react-intl
5.8.6 (2020-10-10)
Note: Version bump only for package react-intl
5.8.5 (2020-10-08)
Note: Version bump only for package react-intl
5.8.4 (2020-10-01)
Note: Version bump only for package react-intl
5.8.3 (2020-09-25)
Note: Version bump only for package react-intl
5.8.2 (2020-09-18)
Bug Fixes
5.8.1 (2020-09-09)
Bug Fixes
- react-intl: add typescript as peerDependency, fix #2066 (#2067) (c2fac57)
- react-intl: fix TS typing entry point path (f01ab86)
5.8.0 (2020-08-30)
Features
- react-intl: upgrade TS to 4.0 (15fe44e)
5.7.2 (2020-08-28)
Note: Version bump only for package react-intl
5.7.1 (2020-08-25)
Note: Version bump only for package react-intl
5.7.0 (2020-08-23)
Features
5.6.10 (2020-08-22)
Note: Version bump only for package react-intl
5.6.9 (2020-08-21)
Note: Version bump only for package react-intl
5.6.8 (2020-08-20)
Bug Fixes
- bump intl-messageformat-parser (8bbfa04)
5.6.7 (2020-08-19)
Note: Version bump only for package react-intl
5.6.6 (2020-08-19)
Note: Version bump only for package react-intl
5.6.5 (2020-08-18)
Note: Version bump only for package react-intl
5.6.4 (2020-08-17)
Note: Version bump only for package react-intl
5.6.3 (2020-08-15)
Bug Fixes
5.6.2 (2020-08-15)
Note: Version bump only for package react-intl
5.6.1 (2020-08-14)
Note: Version bump only for package react-intl
5.6.0 (2020-08-14)
Features
- react-intl: expose react-intl-no-parser.umd.js that does not contain intl-messageformat-parser, fix #1945 (5330073)
5.5.0 (2020-08-14)
Features
- react-intl: add support for default rich text elements with defaultRichTextElements, fix #1752 (f18c6d3)
- react-intl: tweak MessageDescriptor defaultMessage type to be AST as well (d110f8e)
5.4.8 (2020-08-13)
Note: Version bump only for package react-intl
5.4.7 (2020-08-11)
Note: Version bump only for package react-intl
5.4.6 (2020-08-06)
Bug Fixes
- react-intl: fix Object.create(null) case for messages, fix #1914 (4a0f555)
- react-intl: just use Object.prototype.hasOwnProperty.call instead (269adc4)
5.4.5 (2020-07-30)
Note: Version bump only for package react-intl
5.4.4 (2020-07-30)
Bug Fixes
- react-intl: fix UMD build, re-enable functional tests (8257db7)
5.4.3 (2020-07-29)
Bug Fixes
5.4.2 (2020-07-25)
Bug Fixes
- react-intl: hot path literal AST message rendering (1d726de)
5.4.1 (2020-07-24)
Note: Version bump only for package react-intl
5.4.0 (2020-07-21)
Features
- @formatjs/intl-datetimeformat: adding implementation of tc39/proposal-intl-datetime-style (#1859) (e3c329e), closes #1847
5.3.2 (2020-07-17)
Bug Fixes
- react-intl: add back react-intl.umd.js (ac4b435)
5.3.1 (2020-07-16)
Bug Fixes
- react-intl: drop TS req to 3.8 (140dd37)
Reverts
- Revert "feat(@formatjs/intl-utils): remove custom LDMLPluralRuleType and use TS3.9 type" (1a6eeac)
5.3.0 (2020-07-15)
Features
5.2.2 (2020-07-14)
Bug Fixes
- react-intl: fix rollup'ed type def file (bddb88e)
5.2.1 (2020-07-14)
Bug Fixes
- react-intl: fix rollup'ed type def file (bddb88e)
5.2.0 (2020-07-14)
Bug Fixes
- @formatjs/intl-displaynames: rm files restriction from package.json (b89a780)
Features
- @formatjs/intl-utils: remove custom LDMLPluralRuleType and use TS3.9 type (8e433d5)
5.1.0 (2020-07-14)
Bug Fixes
- react-intl: add original exception message to stack (b4e3f55)
- react-intl: fix type issue for TS3.9 (97ef395)
Features
- publish (b6e3465)
5.0.3 (2020-07-09)
Note: Version bump only for package react-intl
5.0.2 (2020-07-03)
Note: Version bump only for package react-intl
5.0.1 (2020-07-03)
Note: Version bump only for package react-intl
5.0.0 (2020-07-03)
Features
- intl-messageformat: make FormatXMLElementFn non-variadic (f2963bf)
- react-intl: fail fast when intl Provider is missing (42fa3c1)
- react-intl: merge chunks in FormatXMLElementFn (1b5892f), closes #1623
BREAKING CHANGES
- react-intl: This also comes from Dropbox internal developer feedback.
FormattedMessagehas a default English renderer that masksProvidersetup issues which causes them to not be handled during testing phase. - intl-messageformat: This effectively change the signature for formatter
function from
(...chunks) => anyto(chunks) => any. This solves a couple of issues:
- We received user feedback that variadic function is not as ergonomic
- Right now there's not way to distinguish between 2 chunks that have
the same tag, e.g
<b>on</b> and <b>on</b>. The function would receive 2 chunks that are identical. By consoliding to the 1st param we can reserve additional params to provide mode metadata in the future
- react-intl: This turns rich text formatting callback function to
non-variadic. So
(...chunks) => React.ReactNodebecomes(chunks) => React.ReactNode. This solves a couple of issues:
- We receive feedback that variadic callback fn is not ergonomic
- This solves the missing key issue when we render rich text
- This allows us to utilize extra param to distinguish when 2 React
element are exactly the same except for their indices, e.g
<b>one</b> and <b>one</b>and you want to render them differently
4.7.6 (2020-07-01)
Note: Version bump only for package react-intl
4.7.5 (2020-06-26)
Note: Version bump only for package react-intl
4.7.4 (2020-06-26)
Note: Version bump only for package react-intl
4.7.3 (2020-06-26)
Bug Fixes
4.7.2 (2020-06-23)
Note: Version bump only for package react-intl
4.7.1 (2020-06-23)
Note: Version bump only for package react-intl
4.7.0 (2020-06-23)
Features
4.6.10 (2020-06-20)
Bug Fixes
- react-intl: add children prop type to IntlProvider (#1717) (94db34b)
- react-intl: add children typing to injectIntl (#1716) (90fbd5f)
- react-intl: Remove
values: {}from FormattedMessage defaultProps (f80648c), closes #1706
4.6.9 (2020-06-06)
Note: Version bump only for package react-intl
4.6.8 (2020-06-06)
Note: Version bump only for package react-intl
4.6.7 (2020-06-06)
Bug Fixes
4.6.6 (2020-06-04)
Note: Version bump only for package react-intl
4.6.5 (2020-06-04)
Note: Version bump only for package react-intl
4.6.4 (2020-06-03)
Note: Version bump only for package react-intl
4.6.3 (2020-05-28)
Note: Version bump only for package react-intl
4.6.2 (2020-05-28)
Bug Fixes
- react-intl: export all errors, fix types (0920323)
4.6.1 (2020-05-27)
Bug Fixes
- react-intl: Fix formatMessage types when format function returns a string (3de8077)
4.6.0 (2020-05-27)
Bug Fixes
Features
- formatjs-extract-cldr-data: rm this package (62bdd32)
4.5.12 (2020-05-25)
Note: Version bump only for package react-intl
4.5.11 (2020-05-23)
Note: Version bump only for package react-intl
4.5.10 (2020-05-23)
Note: Version bump only for package react-intl
4.5.9 (2020-05-22)
Bug Fixes
- eslint-plugin-formatjs: add no-id to index (8e5c0af)
4.5.8 (2020-05-21)
Bug Fixes
- react-intl: hot path message lookup without values (1e58679)
4.5.7 (2020-05-21)
Note: Version bump only for package react-intl
4.5.6 (2020-05-21)
Bug Fixes
- @formatjs/intl-numberformat: rename intl-unified-numberformat to intl-numberformat (8f183d3)
4.5.5 (2020-05-18)
Bug Fixes
- react-intl: reduce onError chattiness (42d0ac4)
4.5.4 (2020-05-16)
Note: Version bump only for package react-intl
4.5.3 (2020-05-06)
Note: Version bump only for package react-intl
4.5.2 (2020-05-05)
Bug Fixes
- react-intl: envify dist/react-intl.js so we do not leak process.env (43a54d6)
4.5.1 (2020-04-28)
Note: Version bump only for package react-intl
Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
4.5.0 (2020-04-20)
Features
- upgrade intl-messageformat & parser (cbbd6cf)
4.4.0 (2020-04-14)
Features
- add
defineMessagemacro to tag single message (8bd9ad8)
4.3.1 (2020-03-28)
Bug Fixes
- tweak FormatXMLElementFn (a914dc0)
4.3.0 (2020-03-26)
Features
- react-intl: store original message descriptor in the error (22531bd)
4.2.2 (2020-03-21)
Bug Fixes
- turn on preserveConstEnums so we export ReactIntlErrorCode (8e00610)
4.2.1 (2020-03-21)
Bug Fixes
- include intl-displaynames types in bundled react-intl.d.ts (77ef36c)
4.2.0 (2020-03-21)
Features
- add wrapRichTextChunksInFragment option (7864e1c)
4.1.1 (2020-03-06)
Bug Fixes
4.1.0 (2020-03-05)
Features
- Introduce ReactIntlErrorCode so we can distinguish and log things differently (5b2b034)
4.0.0 (2020-03-05)
⚠ BREAKING CHANGES
- This release contains subtle changes to the way we handle embedded HTML Message:
- All tags specified must have corresponding values and will throw error if it's missing, e.g:
new IntlMessageFormat("a<b>strong</b>").format({ b: (...chunks) => <strong>chunks</strong> })
- We don't allow formatting self-closing tags because we already use ICU
{placeholder}syntax for that. - XML/HTML tags are escaped using apostrophe just like other ICU constructs.
- Remove dependency on DOMParser and restrictions on void element like
<link>. This effectively means you don't need to polyfill DOMParser in Node anymore. FormattedHTMLMessage&intl.formatHTMLMessagehave been removed sinceFormattedMessagenow fully supports embedded HTML tag.
Why are we doing those changes?
FormattedHTMLMessage&intl.formatHTMLMessagewere originally created when React was fairly new. These components helped ease migration over from raw HTML to JSX. Given that current popularity of React right now and the fact thatFormattedMessageallow rendering embedded HTML tag, this is no longer needed.- Initially during the 1st iteration of embedded HTML support, we allow any tag that doesn’t have a corresponding formatter to be rendered as raw HTML. We’ve received feedbacks internally that allowing embedded HTML tag to be rendered as-is without sanitization is a XSS security risk. Therefore, in order to allow raw HTML tag you have to opt-in by escaping them using apostrophe. We will update our linter to check for this as well.
Features
- Upgrade intl-messageformat & intl-messageformat-parser, remove FormattedHTMLMessage (fae69e9)
3.12.1 (2020-03-04)
Bug Fixes
3.12.0 (2020-02-04)
Features
3.11.0 (2020-01-09)
Features
Bug Fixes
- add a parser for chunks emitted from formatHTMLMessage (#1550) (8c3c5c7)
- update formatjs deps (1745c21)
3.10.0 (2019-12-26)
Features
- Upgrade intl-unified-numberformat & TypeScript (ddf411a)
3.9.2 (2019-12-10)
Bug Fixes
3.9.1 (2019-12-02)
Bug Fixes
- Add src to packaged tar for sourcemap (bce9bc7)
3.9.0 (2019-12-02)
Features
- Upgrade intl-messageformat-parser with support for unit-width in skeleton (4b8f09f)
3.8.0 (2019-12-01)
Features
- Upgrade intl-messageformat-parser (c12c99d)
Following our previous release with preliminary DateTimeFormat's skeleton parser, this release comes with a subset of ICU NumberFormat's skeleton parser. The full feature set can be found here.
This, in combination with intl-unified-numberformat allows you to write shorthand
NumberFormat in your messages like {amount, number, ::currency/CAD .00}
3.7.0 (2019-11-25)
Features
- Introduce support for DateTime skeleton (568d013)
This bumps the version of intl-messageformat, thus introducing a
subset of
DateTime Skeleton
to react-intl.
The skeleton syntax per ICU is today is {ts, time, ::yyyyMMdd}.
Further documentation can be read at
https://unicode-org.github.io/icu/userguide/format_parse/datetimedatetime.
3.6.2 (2019-11-21)
Bug Fixes
- fix main types file path in package.json (14048bb)
3.6.1 (2019-11-19)
Bug Fixes
- make
idoptional in MessageDescriptor (15ca429) - use
filesinstead of .npmignore, update contributors (b0c0fdb)
3.6.0 (2019-11-12)
Bug Fixes
3.5.0 (2019-11-10)
Features
- add
formatList&FormattedList(#1494) (f5eacbf) - alias
defineMessagesto@formatjs/macroand deprecate our own (f6ab2f1)
3.4.0 (2019-10-23)
Bug Fixes
Features
3.3.2 (2019-09-27)
Bug Fixes
- merge timeZone into formats when formatting message (aea3f56), closes #1219
- remove custom unescaping of static message (aefb68b)
3.3.1 (2019-09-26)
Bug Fixes
3.3.0 (2019-09-19)
Bug Fixes
Features
- mark react-intl as side effect free (704a964)
3.2.4 (2019-09-19)
Bug Fixes
3.2.3 (2019-09-18)
Bug Fixes
3.2.2 (2019-09-17)
3.2.1 (2019-09-09)
Bug Fixes
- upgrade intl-messageformat (40aa758)
3.2.0 (2019-09-04)
3.2.0-rc.2 (2019-08-29)
Bug Fixes
- fix tests & add corresponding formatToParts fns (855e272)
Features
3.2.0-rc.1 (2019-08-29)
3.2.0-rc.0 (2019-08-29)
Features
3.1.13 (2019-08-28)
Bug Fixes
3.1.12 (2019-08-26)
Bug Fixes
- type def for forwardRef in injectIntl, fix #1444 (45887bf)
- update intl-messageformat (d1271b6), closes #1451 #1442
3.1.11 (2019-08-21)
Bug Fixes
3.1.10 (2019-08-20)
Bug Fixes
3.1.9 (2019-08-16)
Bug Fixes
- fix UMD build (ad78e3f), closes #1423
- move react & @types/react to devDep, fixes #1389 (0133241), closes /github.com/yarnpkg/yarn/issues/3951#issuecomment-316424639
3.1.8 (2019-08-13)
Bug Fixes
3.1.7 (2019-08-13)
Bug Fixes
- avoid wrapping components with injectIntl (#1413), fixes #1412 (ce560e7)
- fix state typo, fixes #1411 (46ad1c8)
3.1.6 (2019-08-12)
Bug Fixes
3.1.5 (2019-08-11)
Bug Fixes
- drop @types/react version to 16.0 (1669f0e)
3.1.4 (2019-08-11)
Bug Fixes
- Fix broken links in Getting Started (fix #1403) (#1405) (57f0748)
- generate lib instead of mjs (99f9257), closes #1395 #1407
3.1.3 (2019-08-09)
Bug Fixes
- allow string in formatDate & formatTime (aed8c68), closes #1396
- create initial intl for Provider (4306275)
- formatRelativeTime type def unit param (cb7da58)
- remove contextType usage (660a546)
3.1.2 (2019-08-09)
Bug Fixes
- allow string in formatDate & formatTime (aed8c68), closes #1396
- formatRelativeTime type def unit param (cb7da58)
- remove contextType usage (660a546)
3.1.1 (2019-08-02)
Bug Fixes
- only createIntl from filteredProps (d665f31)
3.1.0 (2019-08-06)
Bug Fixes
- add "types" property to package.json (#1394) (a82ddd0)
- add createIntlCache to top level index, fixes #1393 (19398d7)
Features
- generate .mjs instead of lib (5fd070d)
3.0.0 (2019-08-06)
Bug Fixes
- rm core pkg for now (223d2cf)
- rm rollup for core, reduce @types/react version (336d365)
- type definitions and make behavior match spec more (2030bdd)
3.0.0-beta.23 (2019-08-02)
Features
3.0.0-beta.22 (2019-07-29)
Bug Fixes
- rm componentWillReceiveProps from relative (964159b)
Features
- upgrade intl-messageformat with new apostrophe escape (f59607e)
3.0.0-beta.21 (2019-07-28)
Bug Fixes
- fix doc for rich text formatting (00cbf80)
- FormattedRelativeTime with high seconds values (#1385) (a7f1dfa)
3.0.0-beta.20 (2019-07-25)
Bug Fixes
- upgrade intl-messageformat and tests (1dfe7fd)
3.0.0-beta.19 (2019-07-25)
Features
- allow formatDate and formatTime to take string type (#1369) (d110548)
- Allow formatting embedded XML (#1379) (61d3c1b)
- Upgrade guide implementing RelativeTime behavior (#1374) (f8ddcd0)
3.0.0-beta.18 (2019-07-12)
Bug Fixes
Features
3.0.0-beta.17 (2019-07-11)
Bug Fixes
3.0.0-beta.16 (2019-07-09)
Features
- expose a core bundle w/o parser (#1358) (0a6ca3f)
- support textComponent="", fixes #1330 (#1354) (3f27902)
- upgrade formatjs dev (#1357) (61b536b)
3.0.0-beta.15 (2019-06-28)
Bug Fixes
- escape defaultMessage properly, fixes #1158 (#1345) (96e9bae)
- reduce TS version to 3.3 (#1348) (6dfef2b)
- deps: move @formatjs/intl-relativetimeformat to deps (#1349) (310bb62)
Features
- add standard-version (b656847)
- pass in formatters to IntlMessageFormat for perf (#1343) (303a4ea)
- switch to npm (#1334) (0eab294)
- Use React.Fragment as default textComponent (#1326) (6e03fa3)
- types: export WithIntlProps (#1350) (16d7ed9)
- types: export WrappedComponentProps (#1351) (af650b4)