All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
8.3.10 (2020-05-05)
Note: Version bump only for package intl-messageformat
- intl-messageformat: fix issue where skeleton not getting parsed in date format (9cc6049)
8.3.8 (2020-04-24)
- eslint-plugin-formatjs: add missing dep (776390e)
8.3.7 (2020-04-20)
8.3.6 (2020-04-14)
- clean up tsbuildinfo before full build (c301ca0)
8.3.5 (2020-04-12)
Note: Version bump only for package intl-messageformat
8.3.4 (2020-04-11)
Note: Version bump only for package intl-messageformat
8.3.3 (2020-03-30)
Note: Version bump only for package intl-messageformat
8.3.2 (2020-03-28)
- intl-messageformat: add FormatXMLElementFn generic return type (9b4516c)
8.3.1 (2020-03-26)
- intl-messageformat: add missing import to formatters (be26f59)
8.3.0 (2020-03-26)
- intl-messageformat: add more debug info to errors (58dd475)
8.2.3 (2020-03-21)
- intl-messageformat: change ErrorCode to string enum (db8662a)
8.2.2 (2020-03-18)
Note: Version bump only for package intl-messageformat
8.2.1 (2020-03-05)
- intl-messageformat: export Error obj (614debb)
8.2.0 (2020-03-05)
- intl-messageformat: Add error type for better debugging (6200573)
8.1.0 (2020-03-05)
8.0.0 (2020-03-04)
- intl-messageformat: combine formatHTMLMessage into format (d59fbf1)
- intl-messageformat: We've modified the way we parse and format embedded XML/HTML as follow:
formatHTMLMessage
has been combined withformat
- 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> })
- Self-closing tags are treated as string literal by default. 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
fix(intl-messageformat-parser): fix escaping for XML tag
7.8.4 (2020-01-27)
Note: Version bump only for package intl-messageformat
7.8.3 (2020-01-22)
Note: Version bump only for package intl-messageformat
7.8.2 (2020-01-09)
Note: Version bump only for package intl-messageformat
7.8.1 (2020-01-08)
Note: Version bump only for package intl-messageformat
7.8.0 (2020-01-06)
- eslint-plugin-format: fix eslint-plugin-formatjs type error (b647552)
- intl-messageformat: use the new pound element AST node in plural argument (9519103)
7.7.5 (2019-12-27)
Note: Version bump only for package intl-messageformat
7.7.4 (2019-12-27)
Note: Version bump only for package intl-messageformat
7.7.3 (2019-12-26)
Note: Version bump only for package intl-messageformat
7.7.2 (2019-12-04)
Note: Version bump only for package intl-messageformat
7.7.1 (2019-12-02)
Note: Version bump only for package intl-messageformat
7.7.0 (2019-12-01)
- intl-messageformat: Integrate parser's number skeleton (c4ec029)
7.6.2 (2019-12-01)
Note: Version bump only for package intl-messageformat
7.6.1 (2019-11-26)
Note: Version bump only for package intl-messageformat
7.6.0 (2019-11-25)
- intl-messageformat: remove re-export for parseDateTimeSkeleton (8611aa4)
- eslint-plugin-formatjs: add supported-datetime-skeleton rules (c121a9a)
- intl-messageformat: add limited support for date time skeleton (07795b9)
7.5.6 (2019-11-25)
Note: Version bump only for package intl-messageformat
7.5.5 (2019-11-23)
Note: Version bump only for package intl-messageformat
7.5.4 (2019-11-21)
- intl-messageformat: use api-extractor to combine type definitions (6c6af9d)
7.5.3 (2019-11-20)
- lint: fix lint config and rerun (041eb99)
7.5.2 (2019-11-11)
Note: Version bump only for package intl-messageformat
7.5.1 (2019-11-10)
7.5.0 (2019-10-30)
7.4.0 (2019-10-30)
7.3.3 (2019-10-23)
- intl-messageformat: fix formatHTMLMessage @ regex (d1b7c8c), closes #217
- intl-messageformat: handle nested # in plural correctly, fix #202 (22121b2)
7.3.2 (2019-10-01)
Note: Version bump only for package intl-messageformat
7.3.1 (2019-09-27)
Note: Version bump only for package intl-messageformat
7.3.0 (2019-09-20)
- @formatjs/intl-pluralrules: rm side effects array due to build complication (f22e552)
- intl-messageformat: mark the package as side-effects free (a1a08ae)
- intl-messageformat: throw FormatError when trying to format plural but Intl.PluralRules is not available (6294570)
7.2.4 (2019-09-17)
Note: Version bump only for package intl-messageformat
7.2.3 (2019-09-15)
Note: Version bump only for package intl-messageformat
7.2.2 (2019-09-13)
- intl-messageformat: fix chrome v77 issue where NumberFormat.supportedLocalesOf(cy) broke (4b1605c)
7.2.1 (2019-09-09)
- intl-messageformat: handle closing tag nested inside regular tag (08c970a)
7.2.0 (2019-09-09)
7.1.6 (2019-09-03)
Note: Version bump only for package intl-messageformat
7.1.5 (2019-09-03)
Note: Version bump only for package intl-messageformat
7.1.4 (2019-09-03)
Note: Version bump only for package intl-messageformat
7.1.3 (2019-09-03)
Note: Version bump only for package intl-messageformat
7.1.2 (2019-08-29)
Note: Version bump only for package intl-messageformat
7.1.1 (2019-08-29)
7.1.0 (2019-08-28)
7.0.0 (2019-08-26)
- intl-messageformat: Fix case-sensitive tag (69b6eae)
- intl-messageformat: Rename
formatXMLMessage
toformatHTMLMessage
6.1.11 (2019-08-19)
Note: Version bump only for package intl-messageformat
6.1.10 (2019-08-21)
6.1.9 (2019-08-19)
Note: Version bump only for package intl-messageformat
6.1.8 (2019-08-16)
Note: Version bump only for package intl-messageformat
6.1.7 (2019-08-16)
Note: Version bump only for package intl-messageformat
6.1.6 (2019-08-16)
6.1.5 (2019-08-13)
- intl-messageformat: handle formatXMLMessage better (c03ecf8)
6.1.4 (2019-08-12)
Note: Version bump only for package intl-messageformat
6.1.3 (2019-08-11)
- generate lib instead of mjs (05e63b3)
6.1.2 (2019-08-10)
6.1.1 (2019-08-09)
Note: Version bump only for package intl-messageformat
6.1.0 (2019-08-08)
- intl-messageformat: rm core bundle for now (5311ac2)
6.0.4 (2019-08-07)
Note: Version bump only for package intl-messageformat
6.0.3 (2019-08-06)
- generate .mjs instead of lib (0c34ee4)
6.0.2 (2019-08-02)
Note: Version bump only for package intl-messageformat
6.0.1 (2019-07-29)
- intl-messageformat-parser: argStyleText can contain syntax characters and quoted string now (#136) (b39ea08), closes #135
6.0.0 (2019-07-29)
- intl-messageformat-parser: add parser for number skeleton and date skeleton (#131) (dbe6799)
- intl-messageformat-parser: revamped quote rule (#134) (5661177)
- intl-messageformat-parser: This changes how we escape chars in messages, instead of
\
we now use apostrophe which is more aligned with ICU4J & ICU4C
5.4.3 (2019-07-25)
5.4.2 (2019-07-25)
5.4.1 (2019-07-25)
- intl-messageformat: fix formatXMLMessage w/o tag (8d3bfcd)
5.4.0 (2019-07-25)
5.3.0 (2019-07-25)
- intl-messageformat: allow passing in object to formatXMLMessage (ce05b8a)
5.2.0 (2019-07-25)
5.1.2 (2019-07-23)
Note: Version bump only for package intl-messageformat
5.1.1 (2019-07-12)
Note: Version bump only for package intl-messageformat
5.1.0 (2019-07-12)
- intl-messageformat: Add
formatToParts
(0680f58) - intl-messageformat: export Part types (450c495)
- intl-messageformat-parser: add printer to print AST to string (ec0eaa2)
5.0.1 (2019-07-09)
Note: Version bump only for package intl-messageformat
5.0.0 (2019-07-08)
- intl-messageformat-parser: This completely changes the AST produced by the parser
Before:
complex_msg AST length 12567
normal_msg AST length 2638
simple_msg AST length 567
string_msg AST length 288
complex_msg x 3,405 ops/sec ±5.44% (81 runs sampled)
normal_msg x 27,513 ops/sec ±2.14% (87 runs sampled)
simple_msg x 113,043 ops/sec ±1.20% (89 runs sampled)
string_msg x 147,838 ops/sec ±0.78% (90 runs sampled)
After:
complex_msg AST length 2053
normal_msg AST length 410
simple_msg AST length 79
string_msg AST length 36
complex_msg x 3,926 ops/sec ±2.37% (90 runs sampled)
normal_msg x 27,641 ops/sec ±3.93% (86 runs sampled)
simple_msg x 100,764 ops/sec ±5.35% (79 runs sampled)
string_msg x 120,362 ops/sec ±7.11% (74 runs sampled)
-
feat: normalize hashtag token in plural
-
feat(intl-messageformat): adapt to new AST
-
feat(babel-plugin-react-intl): adapt to new AST
4.4.0 (2019-06-28)
- intl-messageformat: export core entry point (ca7eeae)
4.3.0 (2019-06-27)
4.2.1 (2019-06-26)
Note: Version bump only for package intl-messageformat
4.2.0 (2019-06-27)
- intl-relativetimeformat: make intl-relativetimeformat test262-compliant (#95) (91669a3)
- intl-utils: Add intl-utils (#98) (2329c57)
4.1.2 (2019-06-18)
Note: Version bump only for package intl-messageformat
4.1.1 (2019-06-18)
Note: Version bump only for package intl-messageformat
4.1.0 (2019-06-18)
- intl-format-cache: fix TS definition (71ae9eb)
4.0.1 (2019-06-12)
Note: Version bump only for package intl-messageformat
4.0.0 (2019-06-05)
- add package intl-relativetimeformat (#51) (48c0f43)
- intl-messageformat: rm bundled intl-pluralrules (a8526c3)
- intl-messageformat: rm rolluped dist (a126939)
- intl-messageformat: Change dist files packaged. Entry point should stay the same though.
- intl-messageformat: We no longer include intl-pluralrules in our main index file. Consumer should polyfill accordingly.
3.3.0 (2019-06-03)
- intl-messageformat: Add
getAst
method (3d6c289)
3.2.0 (2019-06-03)
- intl-messageformat: Add
getAst
method (3d6c289)
3.1.4 (2019-05-31)
Note: Version bump only for package intl-messageformat