Created
January 26, 2020 19:27
-
-
Save pyrocat101/c34d4be9092f918e8448b2d2418cf096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/babel-plugin-react-intl/CHANGELOG.md b/packages/babel-plugin-react-intl/CHANGELOG.md | |
index 101e459d..c155a554 100644 | |
--- a/packages/babel-plugin-react-intl/CHANGELOG.md | |
+++ b/packages/babel-plugin-react-intl/CHANGELOG.md | |
@@ -3,6 +3,84 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 6.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **babel-plugin-react-intl:** add back messages to `metadata`, fixes [#92](https://github.com/formatjs/formatjs/issues/92) ([643f8e5](https://github.com/formatjs/formatjs/commit/643f8e5968af9e0050f468075a4ed2724ceb45f3)) | |
+* generate .mjs instead of lib ([0c34ee4](https://github.com/formatjs/formatjs/commit/0c34ee46f87459853ceef3a92309e77a5dd4b82c)) | |
+* generate lib instead of mjs ([05e63b3](https://github.com/formatjs/formatjs/commit/05e63b3aa2544c961087415b44ad6ba1572a659c)) | |
+* **babel-plugin-react-intl:** check if `descriptorPath.id` is present in JSX element ([#150](https://github.com/formatjs/formatjs/issues/150)) ([5e2dffa](https://github.com/formatjs/formatjs/commit/5e2dffaef9a1774c03741d67297219cd14666a0a)) | |
+* **babel-plugin-react-intl:** dont trim ws ([f9f4e54](https://github.com/formatjs/formatjs/commit/f9f4e5457e9296af21bd4a5ddde0ca9784391354)), closes [#158](https://github.com/formatjs/formatjs/issues/158) | |
+* **babel-plugin-react-intl:** return raw message without re-printing, fix [#160](https://github.com/formatjs/formatjs/issues/160) ([6897ca9](https://github.com/formatjs/formatjs/commit/6897ca91e251ed850467ccef5794eec0999ef95b)) | |
+* **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) | |
+* **relativePath:** path -> p ([a764377](https://github.com/formatjs/formatjs/commit/a764377d776ca5dc862c42353a301e2d4dc4a812)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/cli:** A CLI for formatjs ([#234](https://github.com/formatjs/formatjs/issues/234)) ([1f57a0b](https://github.com/formatjs/formatjs/commit/1f57a0b0921e0228cf3fd4eff756b0cd17e28fb5)) | |
+* **@formatjs/cli:** add --outFile & --idInterpolationPattern ([0c5e675](https://github.com/formatjs/formatjs/commit/0c5e675ed38f18987674a875fa6ed908ce907fc9)) | |
+* **babel-plugin-react-intl:** add `extractFromFormatMessageCall` option to opt-in extracting from `intl.formatMessage`, fixes [#37](https://github.com/formatjs/formatjs/issues/37) ([#39](https://github.com/formatjs/formatjs/issues/39)) ([5d0bb43](https://github.com/formatjs/formatjs/commit/5d0bb434dfae7138c0539c3eee76e7c9c516ea86)) | |
+* **babel-plugin-react-intl:** Add enforceDefaultMessage ([#61](https://github.com/formatjs/formatjs/issues/61)) ([8dbb1c3](https://github.com/formatjs/formatjs/commit/8dbb1c32fe218f57ce4a2b1affcb0055a9edc3d2)) | |
+* **babel-plugin-react-intl:** allow parsing from @formatjs/macro ([196dcc4](https://github.com/formatjs/formatjs/commit/196dcc44faec56637f3b74db4ed2c13d6842bc61)) | |
+* **babel-plugin-react-intl:** remove enforceDescription and enforceDefaultMessage ([72ff434](https://github.com/formatjs/formatjs/commit/72ff4345170f9b240f7331aa6fa36df96a8c823b)) | |
+* **babel-plugin-react-intl:** rewrite using new babel 7 APIs ([#89](https://github.com/formatjs/formatjs/issues/89)) ([5bc18b0](https://github.com/formatjs/formatjs/commit/5bc18b056f92de07d10bfeb905ba660263d36001)) | |
+* **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693e3ddbad4c964578222945f82f5dfe80e2)) | |
+* **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2370ff06db573483d5ee408108d67c5d1f)) | |
+* **intl-messageformat-parser:** Rewrite grammar ([#112](https://github.com/formatjs/formatjs/issues/112)) ([093de35](https://github.com/formatjs/formatjs/commit/093de3564852bf01c0a9b95d658aaf6d613baf53)) | |
+* **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c5707d4c42162ac0b20ef92b0b0aebc1173b)) | |
+* **test:** Add test suite. ([a7b611a](https://github.com/formatjs/formatjs/commit/a7b611a28b4281deac0a9e82ca9c8e36cec1ec06)) | |
+ | |
+ | |
+### Reverts | |
+ | |
+* Revert "Remove unsued babel-runtime dependency" ([b38ab3a](https://github.com/formatjs/formatjs/commit/b38ab3af9e36ba847eb5a313839ddd321daa7d6f)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **babel-plugin-react-intl:** We want to move things like `enforceDescription` and | |
+`enforceDefaultMessage` to the new eslint-plugin-formatjs instead of | |
+using this babel plugin for linting. | |
+feat(@formatjs/cli): Remove enforceDescription and enforceDefaultMessage | |
+* **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 | |
+ | |
+ | |
+ | |
+ | |
+ | |
## [5.1.17](https://github.com/formatjs/formatjs/compare/[email protected]@5.1.17) (2020-01-22) | |
**Note:** Version bump only for package babel-plugin-react-intl | |
diff --git a/packages/babel-plugin-react-intl/package-lock.json b/packages/babel-plugin-react-intl/package-lock.json | |
index 8d2e411d..bc3a23be 100644 | |
--- a/packages/babel-plugin-react-intl/package-lock.json | |
+++ b/packages/babel-plugin-react-intl/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "babel-plugin-react-intl", | |
- "version": "5.1.17", | |
+ "version": "6.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/babel-plugin-react-intl/package.json b/packages/babel-plugin-react-intl/package.json | |
index 0170fd8f..fe6bff8e 100644 | |
--- a/packages/babel-plugin-react-intl/package.json | |
+++ b/packages/babel-plugin-react-intl/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "babel-plugin-react-intl", | |
- "version": "5.1.17", | |
+ "version": "6.0.0", | |
"description": "Extracts string messages for translation from modules that use React Intl.", | |
"repository": { | |
"type": "git", | |
@@ -20,7 +20,7 @@ | |
"@types/babel__core": "^7.1.3", | |
"@types/schema-utils": "^1.0.0", | |
"fs-extra": "^8.1.0", | |
- "intl-messageformat-parser": "^3.6.3", | |
+ "intl-messageformat-parser": "^4.0.0", | |
"schema-utils": "^2.2.0" | |
}, | |
"scripts": { | |
diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md | |
index 86368cb9..5c072073 100644 | |
--- a/packages/cli/CHANGELOG.md | |
+++ b/packages/cli/CHANGELOG.md | |
@@ -3,6 +3,36 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 2.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/cli:** add preset-env so we can parse latest syntax ([6495011](https://github.com/formatjs/formatjs/commit/64950113027da769a83d2e43e71ceccac1af2184)) | |
+* **@formatjs/cli:** Add support for parsing class properties ([1714bf9](https://github.com/formatjs/formatjs/commit/1714bf9d9abfc31458222e0922ef57baa1f38787)) | |
+* **@formatjs/cli:** allow optionalChaining parser, fix [#404](https://github.com/formatjs/formatjs/issues/404) ([1af4607](https://github.com/formatjs/formatjs/commit/1af460783db71bfc7bf0e3f935a020473fcb093d)) | |
+* **@formatjs/cli:** glob files instead of relying on shell, fix [#383](https://github.com/formatjs/formatjs/issues/383) ([c7e1a6a](https://github.com/formatjs/formatjs/commit/c7e1a6af5f6334c6fdf18fd3cd29b81c411cbfd2)) | |
+* **@formatjs/cli:** remove Node engines restrictions ([e55efe9](https://github.com/formatjs/formatjs/commit/e55efe90edc8859b89978b2b8bd99c41c17c291f)) | |
+* **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/cli:** add --outFile & --idInterpolationPattern ([0c5e675](https://github.com/formatjs/formatjs/commit/0c5e675ed38f18987674a875fa6ed908ce907fc9)) | |
+* **babel-plugin-react-intl:** remove enforceDescription and enforceDefaultMessage ([72ff434](https://github.com/formatjs/formatjs/commit/72ff4345170f9b240f7331aa6fa36df96a8c823b)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **babel-plugin-react-intl:** We want to move things like `enforceDescription` and | |
+`enforceDefaultMessage` to the new eslint-plugin-formatjs instead of | |
+using this babel plugin for linting. | |
+feat(@formatjs/cli): Remove enforceDescription and enforceDefaultMessage | |
+ | |
+ | |
+ | |
+ | |
+ | |
## [1.1.19](https://github.com/formatjs/formatjs/compare/@formatjs/[email protected]...@formatjs/[email protected]) (2020-01-22) | |
**Note:** Version bump only for package @formatjs/cli | |
diff --git a/packages/cli/package-lock.json b/packages/cli/package-lock.json | |
index a8d75dcb..95abf898 100644 | |
--- a/packages/cli/package-lock.json | |
+++ b/packages/cli/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/cli", | |
- "version": "1.1.19", | |
+ "version": "2.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/cli/package.json b/packages/cli/package.json | |
index 60ffb5cf..059e39a9 100644 | |
--- a/packages/cli/package.json | |
+++ b/packages/cli/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/cli", | |
- "version": "1.1.19", | |
+ "version": "2.0.0", | |
"description": "A CLI for formatjs.", | |
"keywords": [ | |
"intl", | |
@@ -48,7 +48,7 @@ | |
"@types/loader-utils": "^1.1.3", | |
"@types/lodash": "^4.14.138", | |
"babel-plugin-const-enum": "^0.0.2", | |
- "babel-plugin-react-intl": "^5.1.17", | |
+ "babel-plugin-react-intl": "^6.0.0", | |
"commander": "4.0.0-1", | |
"fs-extra": "^8.1.0", | |
"glob": "^7.1.6", | |
diff --git a/packages/eslint-plugin-formatjs/CHANGELOG.md b/packages/eslint-plugin-formatjs/CHANGELOG.md | |
index 11cf01cc..191c9487 100644 | |
--- a/packages/eslint-plugin-formatjs/CHANGELOG.md | |
+++ b/packages/eslint-plugin-formatjs/CHANGELOG.md | |
@@ -3,6 +3,34 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 1.6.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/macro:** fix tsconfig build to output the correct dir ([825d2cb](https://github.com/formatjs/formatjs/commit/825d2cb035b76276be259fbff08e0bf456203207)) | |
+* **eslint-plugin-format:** fix eslint-plugin-formatjs type error ([b647552](https://github.com/formatjs/formatjs/commit/b6475523bf816e2ac3be6c03d0b565fccb2b5c29)) | |
+* **eslint-plugin-formatjs:** Fix selectordinal check in blacklist-elements ([2149789](https://github.com/formatjs/formatjs/commit/2149789d18f2dc65ae362d9fc9f52e17f44fd682)) | |
+* **eslint-plugin-formatjs:** handle non-literal value in descriptor ([b74e0f6](https://github.com/formatjs/formatjs/commit/b74e0f63a022e1bff505df3dd2d8165c9c7ba8fc)), closes [#304](https://github.com/formatjs/formatjs/issues/304) | |
+* **eslint-plugin-formatjs:** handle spread attributes in JSX, fix [#292](https://github.com/formatjs/formatjs/issues/292) ([c7e0f6c](https://github.com/formatjs/formatjs/commit/c7e0f6c09fe78688c919c1654a6474f227aa29e9)) | |
+* **eslint-plugin-formatjs:** ignore msg decl for enforce-placeholders, fix [#356](https://github.com/formatjs/formatjs/issues/356) ([91915b8](https://github.com/formatjs/formatjs/commit/91915b84eb9c37e069c6b457f4a7249908d58a56)) | |
+* **intl-messageformat:** pass raw locales down to individual formatters ([3a74c2e](https://github.com/formatjs/formatjs/commit/3a74c2e7c6592de3a4f5ca182c5846fe095abe55)), closes [#255](https://github.com/formatjs/formatjs/issues/255) | |
+* **intl-messageformat-parser:** exclude some more unsupported pattern ([07ec1d1](https://github.com/formatjs/formatjs/commit/07ec1d119169879617f17c542d6992c31ec85856)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **eslint-plugin-formatjs:** Add enforce-placeholders rule ([12b9ac1](https://github.com/formatjs/formatjs/commit/12b9ac11a5fb1da4308cf4b6abeb6e8b6adce59f)) | |
+* **eslint-plugin-formatjs:** add enforce-plural-rules rule ([b6765a6](https://github.com/formatjs/formatjs/commit/b6765a6533b6a749abf79aff2d5801a8d8ad9b22)) | |
+* **eslint-plugin-formatjs:** Add support for FormattedMessage ([2df544e](https://github.com/formatjs/formatjs/commit/2df544e6b56d314460204f3f6f11003b57eda47e)) | |
+* **eslint-plugin-formatjs:** add supported-datetime-skeleton rules ([c121a9a](https://github.com/formatjs/formatjs/commit/c121a9a9a52f21fbe1fdfc70e31c0275efbd0f8d)) | |
+* **eslint-plugin-formatjs:** Also check `intl.formatMessage` calls ([d036de7](https://github.com/formatjs/formatjs/commit/d036de71721e4cf22d6149bde3d7c8006a1497b0)) | |
+* **eslint-plugin-formatjs:** report when message is invalid ICU ([916d063](https://github.com/formatjs/formatjs/commit/916d06361d6bb30f728fd6e948cf0ae724ba635f)) | |
+ | |
+ | |
+ | |
+ | |
+ | |
## [1.5.10](https://github.com/formatjs/formatjs/compare/[email protected]@1.5.10) (2020-01-22) | |
**Note:** Version bump only for package eslint-plugin-formatjs | |
diff --git a/packages/eslint-plugin-formatjs/package-lock.json b/packages/eslint-plugin-formatjs/package-lock.json | |
index a4cfaad4..a9934de6 100644 | |
--- a/packages/eslint-plugin-formatjs/package-lock.json | |
+++ b/packages/eslint-plugin-formatjs/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "eslint-plugin-formatjs", | |
- "version": "1.5.10", | |
+ "version": "1.6.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/eslint-plugin-formatjs/package.json b/packages/eslint-plugin-formatjs/package.json | |
index da6b11ca..5444118c 100644 | |
--- a/packages/eslint-plugin-formatjs/package.json | |
+++ b/packages/eslint-plugin-formatjs/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "eslint-plugin-formatjs", | |
- "version": "1.5.10", | |
+ "version": "1.6.0", | |
"description": "ESLint plugin for formatjs", | |
"main": "dist/index.js", | |
"files": [ | |
@@ -30,7 +30,7 @@ | |
"dependencies": { | |
"@types/emoji-regex": "^8.0.0", | |
"emoji-regex": "^8.0.0", | |
- "intl-messageformat-parser": "^3.6.3" | |
+ "intl-messageformat-parser": "^4.0.0" | |
}, | |
"peerDependencies": { | |
"eslint": "^6.0.0" | |
diff --git a/packages/formatjs-extract-cldr-data/CHANGELOG.md b/packages/formatjs-extract-cldr-data/CHANGELOG.md | |
index 02f66227..d6673d7b 100644 | |
--- a/packages/formatjs-extract-cldr-data/CHANGELOG.md | |
+++ b/packages/formatjs-extract-cldr-data/CHANGELOG.md | |
@@ -3,6 +3,77 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 11.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/intl-unified-numberformat:** more fixes on data extraction ([8c68d8a](https://github.com/formatjs/formatjs/commit/8c68d8adc085c81e97dc5ae170c578ad66de3a5e)) | |
+* generate .mjs instead of lib ([0c34ee4](https://github.com/formatjs/formatjs/commit/0c34ee46f87459853ceef3a92309e77a5dd4b82c)) | |
+* **@formatjs/intl-unified-numberformat:** add more tests ([5122cdc](https://github.com/formatjs/formatjs/commit/5122cdc340f2fcbf05c093075dd97c459cc5709c)) | |
+* **@formatjs/intl-unified-numberformat:** fix cases where {number} or {0} is in the middle of the pattern ([3ca49d8](https://github.com/formatjs/formatjs/commit/3ca49d8f93a9acc1ea3908ffd9e367b21aa97248)) | |
+* **@formatjs/intl-unified-numberformat:** fix currency compact form having special plural rules ([b0a6d4f](https://github.com/formatjs/formatjs/commit/b0a6d4f3120386a81ceb05fac09c56307b561e91)) | |
+* **@formatjs/intl-unified-numberformat:** fix more processing stuff ([b4f0e4a](https://github.com/formatjs/formatjs/commit/b4f0e4a6140586967d996b3b99c5f6d1acb107d0)) | |
+* **@formatjs/intl-unified-numberformat:** fix unit issue ([8feb8e7](https://github.com/formatjs/formatjs/commit/8feb8e702736bf6c33974d9ae69dd2ac09d4bc37)) | |
+* **@formatjs/intl-unified-numberformat:** more work on currency formatting ([5a5b8e6](https://github.com/formatjs/formatjs/commit/5a5b8e63783d48c86a87a9836e45415e27e38b26)) | |
+* **@formatjs/intl-unified-numberformat:** more work on fixing currency pattern ([6cb0d67](https://github.com/formatjs/formatjs/commit/6cb0d6760404be8079361230537f1de1a4dd8c6e)) | |
+* **@formatjs/intl-unified-numberformat:** move currency processing to lazy ([6e1d621](https://github.com/formatjs/formatjs/commit/6e1d62189373dc4fdf71614c78a353f96e28c8ed)) | |
+* generate lib instead of mjs ([05e63b3](https://github.com/formatjs/formatjs/commit/05e63b3aa2544c961087415b44ad6ba1572a659c)) | |
+* **@formatjs/intl-unified-numberformat:** use CLDR symbol instead of ISO code for currencySymbol ([4db663d](https://github.com/formatjs/formatjs/commit/4db663dbcf6066923781413b90ee0ce56dfff69f)) | |
+* **@formatjs/intl-utils:** add polyfill-utils like getOption/toObject ([7cf1cc4](https://github.com/formatjs/formatjs/commit/7cf1cc43f346754124964ec57245c25e58e5d43a)) | |
+* **@formatjs/intl-utils:** consolidate parent lookup ([bac2eae](https://github.com/formatjs/formatjs/commit/bac2eae8ab4eb2361c8b2053237ac335a1f82680)) | |
+* **formatjs-extract-cldr-data:** fix parent deduping logic ([138860b](https://github.com/formatjs/formatjs/commit/138860bdcd16705b296ca46b5f43379d219145e7)) | |
+* **intl-messageformat:** pass raw locales down to individual formatters ([3a74c2e](https://github.com/formatjs/formatjs/commit/3a74c2e7c6592de3a4f5ca182c5846fe095abe55)), closes [#255](https://github.com/formatjs/formatjs/issues/255) | |
+* **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/intl-displaynames:** initial commit ([#469](https://github.com/formatjs/formatjs/issues/469)) ([137b994](https://github.com/formatjs/formatjs/commit/137b994846526b02de80b024c860b2771868f236)) | |
+* **@formatjs/intl-listformat:** add Intl.ListFormat polyfill ([6e5d476](https://github.com/formatjs/formatjs/commit/6e5d476251adca453cdc43c8a41a8b06123fec05)) | |
+* **@formatjs/intl-relativetimeformat:** add aliases support ([a2aec8c](https://github.com/formatjs/formatjs/commit/a2aec8ccfccbeff2a6a2f6cd79c932500c1f3051)) | |
+* **@formatjs/intl-unified-numberformat:** add currency support and currency matching algo ([786858d](https://github.com/formatjs/formatjs/commit/786858dc07cf82c4c6d0be968b3192e50f189567)) | |
+* **@formatjs/intl-unified-numberformat:** add currency-digits extractions ([8261383](https://github.com/formatjs/formatjs/commit/82613832782e7dc7acf511fc911d910152d047e6)) | |
+* **@formatjs/intl-unified-numberformat:** add currencyDisplay… ([#332](https://github.com/formatjs/formatjs/issues/332)) ([0cf8629](https://github.com/formatjs/formatjs/commit/0cf862992cae62a162d6935797ffd7c0848cf3ea)) | |
+* **@formatjs/intl-unified-numberformat:** initial work on adding more stage 3 functionalities ([fc09006](https://github.com/formatjs/formatjs/commit/fc0900653586cd933a4b95c3c129ecad4010beed)) | |
+* **@formatjs/intl-unified-numberformat:** more work on stage-3 APIs ([3f510ca](https://github.com/formatjs/formatjs/commit/3f510cac1906682db5a0fb721d62431e7ec0cb7d)) | |
+* **@formatjs/intl-unified-numberformat:** more work on stage-3 APIs ([a727599](https://github.com/formatjs/formatjs/commit/a727599ee0de1b01d15f488d70d5b3f7b3d602a6)) | |
+* **@formatjs/intl-unified-numberformat:** more work on stage-3 APIs ([2ebf471](https://github.com/formatjs/formatjs/commit/2ebf4716131122ce9f5370c7cf8064a481460c5a)) | |
+* **@formatjs/intl-utils:** add IE11-safe getCanonicalLocales, ([b5f37c4](https://github.com/formatjs/formatjs/commit/b5f37c41bf0248bf8b8046407aa3ba232744ee5b)), closes [#200](https://github.com/formatjs/formatjs/issues/200) | |
+* **@formatjs/intl-utils:** add InternalSlotToken enum ([dab275a](https://github.com/formatjs/formatjs/commit/dab275afe512dfd71d844e94f43f15f012316fba)) | |
+* **@formatjs/intl-utils:** add list-format types ([066d95b](https://github.com/formatjs/formatjs/commit/066d95b50a5919cee9cd24b0c1229b4d235448b1)) | |
+* **formatjs-extract-cldr-data:** add quarter data ([#53](https://github.com/formatjs/formatjs/issues/53)) ([e37a242](https://github.com/formatjs/formatjs/commit/e37a242deef7c6b728b2d5f78e299a267499248b)) | |
+* **formatjs-extract-cldr-data:** dedupe relative data, reduce relative time data by 40% ([db12bf3](https://github.com/formatjs/formatjs/commit/db12bf3c8838c503a7fd658b062117de75368545)) | |
+* **formatjs-extract-cldr-data:** dont embed parentLocale everywhere ([10bca2f](https://github.com/formatjs/formatjs/commit/10bca2fb3b4fa301664f4ae628ecd5b2f344eab8)) | |
+* **formatjs-extract-cldr-data:** even smaller locale data ([66a0313](https://github.com/formatjs/formatjs/commit/66a03139a3ad7b243aee032ed5623c839c9725df)) | |
+* **formatjs-extract-cldr-data:** expose getting parent locale hierarchy ([778998b](https://github.com/formatjs/formatjs/commit/778998bb7b143ce44d176e7526e5751af1581976)) | |
+* **formatjs-extract-cldr-data:** extract raw numbers ([6fa5f3f](https://github.com/formatjs/formatjs/commit/6fa5f3f68f61ad65f1a3c3b9c54f60da140fd802)) | |
+* **formatjs-extract-cldr-data:** fix unit extraction ([7e54a0b](https://github.com/formatjs/formatjs/commit/7e54a0b35519be5e25f96e683024d3df2be6d5de)) | |
+* **formatjs-extract-cldr-data:** migrate to TS ([#91](https://github.com/formatjs/formatjs/issues/91)) ([c012d6e](https://github.com/formatjs/formatjs/commit/c012d6e67cf70e5ef23d7bf2573d4102b3035cb9)) | |
+* **formatjs-extract-cldr-data:** polyfill units ([e291eeb](https://github.com/formatjs/formatjs/commit/e291eebfc6233ef0ae2e3ee42976e2073ad5afc1)) | |
+* **formatjs-extract-cldr-data:** pull collapsing ldml to utils ([68d9d96](https://github.com/formatjs/formatjs/commit/68d9d96a02e0820f05a3b10badcda1a100aaa045)) | |
+* **formatjs-extract-cldr-data:** rm plural ([#52](https://github.com/formatjs/formatjs/issues/52)) ([62a6de4](https://github.com/formatjs/formatjs/commit/62a6de431c73bf3ba0250a08349605d7cf81b98f)) | |
+* **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693e3ddbad4c964578222945f82f5dfe80e2)) | |
+* **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2370ff06db573483d5ee408108d67c5d1f)) | |
+* **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c5707d4c42162ac0b20ef92b0b0aebc1173b)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **@formatjs/intl-unified-numberformat:** Although API remains the same, the CLDR distributed data has changed | |
+* **formatjs-extract-cldr-data:** Export main function via `default` in index file. | |
+If you're using `require('formatjs-extract-cldr-data')`, change it to | |
+`require('formatjs-extract-cldr-data').default`. | |
+* **formatjs-extract-cldr-data:** Remove plural extraction since we rely on native | |
+Intl.PluralRules | |
+- Upgrade CLDR to v35 | |
+- Extract `*-narrow` rules for relative fields | |
+- Remove es-AR since as of CLDRv35 it cannot be de-duped | |
+ | |
+ | |
+ | |
+ | |
+ | |
# [10.1.0](https://github.com/formatjs/formatjs/compare/[email protected]@10.1.0) (2020-01-22) | |
diff --git a/packages/formatjs-extract-cldr-data/package-lock.json b/packages/formatjs-extract-cldr-data/package-lock.json | |
index 4034ae15..2b39e6d5 100644 | |
--- a/packages/formatjs-extract-cldr-data/package-lock.json | |
+++ b/packages/formatjs-extract-cldr-data/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "formatjs-extract-cldr-data", | |
- "version": "10.1.0", | |
+ "version": "11.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/formatjs-extract-cldr-data/package.json b/packages/formatjs-extract-cldr-data/package.json | |
index e42ba8f4..32024c4f 100644 | |
--- a/packages/formatjs-extract-cldr-data/package.json | |
+++ b/packages/formatjs-extract-cldr-data/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "formatjs-extract-cldr-data", | |
- "version": "10.1.0", | |
+ "version": "11.0.0", | |
"description": "Utility library that extracts the CLDR data that's needed by the FormatJS libraries.", | |
"main": "dist/index.js", | |
"types": "dist/index.d.ts", | |
@@ -18,7 +18,7 @@ | |
"author": "Eric Ferraiuolo <[email protected]>", | |
"license": "BSD-3-Clause", | |
"dependencies": { | |
- "@formatjs/intl-utils": "^2.1.0", | |
+ "@formatjs/intl-utils": "^3.0.0", | |
"@types/glob": "^7.1.1", | |
"@types/lodash": "^4.14.138", | |
"cldr-core": "^36.0.0", | |
diff --git a/packages/intl-displaynames/CHANGELOG.md b/packages/intl-displaynames/CHANGELOG.md | |
index 6b05d313..1f9d9de9 100644 | |
--- a/packages/intl-displaynames/CHANGELOG.md | |
+++ b/packages/intl-displaynames/CHANGELOG.md | |
@@ -3,6 +3,18 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 1.2.0 (2020-01-26) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/intl-displaynames:** initial commit ([#469](https://github.com/formatjs/formatjs/issues/469)) ([137b994](https://github.com/formatjs/formatjs/commit/137b994846526b02de80b024c860b2771868f236)) | |
+* **@formatjs/intl-displaynames:** update README ([c365b85](https://github.com/formatjs/formatjs/commit/c365b85613820ce0e73326c251047a77ecf9c625)) | |
+ | |
+ | |
+ | |
+ | |
+ | |
# 1.1.0 (2020-01-22) | |
diff --git a/packages/intl-displaynames/package.json b/packages/intl-displaynames/package.json | |
index 390e3edb..5150693f 100644 | |
--- a/packages/intl-displaynames/package.json | |
+++ b/packages/intl-displaynames/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-displaynames", | |
- "version": "1.1.0", | |
+ "version": "1.2.0", | |
"description": "Polyfill for: https://tc39.es/proposal-intl-displaynames", | |
"keywords": [ | |
"i18n", | |
@@ -29,10 +29,10 @@ | |
"url": "git+https://github.com/formatjs/formatjs.git" | |
}, | |
"dependencies": { | |
- "@formatjs/intl-utils": "^2.1.0" | |
+ "@formatjs/intl-utils": "^3.0.0" | |
}, | |
"devDependencies": { | |
- "formatjs-extract-cldr-data": "^10.1.0" | |
+ "formatjs-extract-cldr-data": "^11.0.0" | |
}, | |
"scripts": { | |
"cldr": "ts-node --project tsconfig.cjs.json scripts/cldr", | |
diff --git a/packages/intl-format-cache/CHANGELOG.md b/packages/intl-format-cache/CHANGELOG.md | |
index 5e7dcbbc..8d1f9d0f 100644 | |
--- a/packages/intl-format-cache/CHANGELOG.md | |
+++ b/packages/intl-format-cache/CHANGELOG.md | |
@@ -3,6 +3,68 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 5.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* generate .mjs instead of lib ([0c34ee4](https://github.com/formatjs/formatjs/commit/0c34ee46f87459853ceef3a92309e77a5dd4b82c)) | |
+* generate lib instead of mjs ([05e63b3](https://github.com/formatjs/formatjs/commit/05e63b3aa2544c961087415b44ad6ba1572a659c)) | |
+ | |
+ | |
+### Features | |
+ | |
+* add package intl-relativetimeformat ([#51](https://github.com/formatjs/formatjs/issues/51)) ([48c0f43](https://github.com/formatjs/formatjs/commit/48c0f43cf3231a8c8ba997c9e1083b6714cd60ea)) | |
+* **intl-format-cache:** fix TS definition ([71ae9eb](https://github.com/formatjs/formatjs/commit/71ae9eb7069ba297fcc52b852ce30a5cbe768e38)) | |
+* **intl-format-cache:** mark the package as side-effects free ([767f0a1](https://github.com/formatjs/formatjs/commit/767f0a18fcebe8da4ff948d626e901d3f5e27b04)) | |
+* **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693e3ddbad4c964578222945f82f5dfe80e2)) | |
+* **intl-messageformat:** rm bundled intl-pluralrules ([a8526c3](https://github.com/formatjs/formatjs/commit/a8526c3d5697911790d3c08bfb513ec9de217c2c)) | |
+* **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2370ff06db573483d5ee408108d67c5d1f)) | |
+* **intl-messageformat-parser:** Rewrite grammar ([#112](https://github.com/formatjs/formatjs/issues/112)) ([093de35](https://github.com/formatjs/formatjs/commit/093de3564852bf01c0a9b95d658aaf6d613baf53)) | |
+* **intl-relativetimeformat:** make intl-relativetimeformat test262-compliant ([#95](https://github.com/formatjs/formatjs/issues/95)) ([91669a3](https://github.com/formatjs/formatjs/commit/91669a3f75421c95601d010136507b6314e089ca)) | |
+* **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c5707d4c42162ac0b20ef92b0b0aebc1173b)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **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 | |
+* **intl-messageformat:** We no longer include intl-pluralrules in our main index | |
+file. Consumer should polyfill accordingly. | |
+ | |
+ | |
+ | |
+ | |
+ | |
## [4.2.20](https://github.com/formatjs/formatjs/compare/[email protected]@4.2.20) (2020-01-22) | |
**Note:** Version bump only for package intl-format-cache | |
diff --git a/packages/intl-format-cache/package-lock.json b/packages/intl-format-cache/package-lock.json | |
index 64da4dec..45838e5b 100644 | |
--- a/packages/intl-format-cache/package-lock.json | |
+++ b/packages/intl-format-cache/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "intl-format-cache", | |
- "version": "4.2.20", | |
+ "version": "5.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/intl-format-cache/package.json b/packages/intl-format-cache/package.json | |
index 8cba9427..f4bcb82c 100644 | |
--- a/packages/intl-format-cache/package.json | |
+++ b/packages/intl-format-cache/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "intl-format-cache", | |
- "version": "4.2.20", | |
+ "version": "5.0.0", | |
"description": "A memoizer factory for Intl format constructors.", | |
"main": "dist/index.js", | |
"module": "lib/index.js", | |
@@ -17,8 +17,8 @@ | |
"test": "mocha --opts ../../mocha.opts tests/index.ts" | |
}, | |
"devDependencies": { | |
- "@formatjs/intl-pluralrules": "^1.5.1", | |
- "@formatjs/intl-relativetimeformat": "^4.5.8" | |
+ "@formatjs/intl-pluralrules": "^1.6.0", | |
+ "@formatjs/intl-relativetimeformat": "^5.0.0" | |
}, | |
"repository": { | |
"type": "git", | |
diff --git a/packages/intl-listformat/CHANGELOG.md b/packages/intl-listformat/CHANGELOG.md | |
index 2ef50214..5345adc5 100644 | |
--- a/packages/intl-listformat/CHANGELOG.md | |
+++ b/packages/intl-listformat/CHANGELOG.md | |
@@ -3,6 +3,29 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 1.5.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/intl-listformat:** don’t treat en-US-POSIX as en-US because they are different ([a37b091](https://github.com/formatjs/formatjs/commit/a37b091830ddc0ac9fd5771eb402f2b5c23c45f7)) | |
+* **@formatjs/intl-listformat:** fix CreatePartsFromList to behave like spec ([e4e7b17](https://github.com/formatjs/formatjs/commit/e4e7b1747d87e3ea5937d6d6911a500b6b00e394)) | |
+* **@formatjs/intl-listformat:** fix locale lookup regression for en-US ([21e8219](https://github.com/formatjs/formatjs/commit/21e8219c443ccfd36f1acd17303b0e6480edba23)) | |
+* **@formatjs/intl-listformat:** use api-extractor to combine d.ts ([e8af68d](https://github.com/formatjs/formatjs/commit/e8af68dfb1e0783615446123c147057a025b3f27)) | |
+* **@formatjs/intl-unified-numberformat:** move currency processing to lazy ([6e1d621](https://github.com/formatjs/formatjs/commit/6e1d62189373dc4fdf71614c78a353f96e28c8ed)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/intl-displaynames:** initial commit ([#469](https://github.com/formatjs/formatjs/issues/469)) ([137b994](https://github.com/formatjs/formatjs/commit/137b994846526b02de80b024c860b2771868f236)) | |
+* **@formatjs/intl-listformat:** add Intl.ListFormat polyfill ([6e5d476](https://github.com/formatjs/formatjs/commit/6e5d476251adca453cdc43c8a41a8b06123fec05)) | |
+* **@formatjs/intl-utils:** add IE11-safe getCanonicalLocales, ([b5f37c4](https://github.com/formatjs/formatjs/commit/b5f37c41bf0248bf8b8046407aa3ba232744ee5b)), closes [#200](https://github.com/formatjs/formatjs/issues/200) | |
+* **@formatjs/intl-utils:** add PartitionPattern abstract operation ([#317](https://github.com/formatjs/formatjs/issues/317)) ([5731fcf](https://github.com/formatjs/formatjs/commit/5731fcfeaaba65322f904e863faead8d1f177a98)) | |
+ | |
+ | |
+ | |
+ | |
+ | |
# [1.4.0](https://github.com/formatjs/formatjs/compare/@formatjs/[email protected]...@formatjs/[email protected]) (2020-01-22) | |
diff --git a/packages/intl-listformat/package-lock.json b/packages/intl-listformat/package-lock.json | |
index 08dcba5b..69c5151b 100644 | |
--- a/packages/intl-listformat/package-lock.json | |
+++ b/packages/intl-listformat/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-listformat", | |
- "version": "1.4.0", | |
+ "version": "1.5.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/intl-listformat/package.json b/packages/intl-listformat/package.json | |
index ed7904d6..75f8db3f 100644 | |
--- a/packages/intl-listformat/package.json | |
+++ b/packages/intl-listformat/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-listformat", | |
- "version": "1.4.0", | |
+ "version": "1.5.0", | |
"description": "Formats JS list in a i18n-safe way", | |
"keywords": [ | |
"intl", | |
@@ -18,10 +18,10 @@ | |
"url": "[email protected]:formatjs/formatjs.git" | |
}, | |
"devDependencies": { | |
- "formatjs-extract-cldr-data": "^10.1.0" | |
+ "formatjs-extract-cldr-data": "^11.0.0" | |
}, | |
"dependencies": { | |
- "@formatjs/intl-utils": "^2.1.0" | |
+ "@formatjs/intl-utils": "^3.0.0" | |
}, | |
"main": "dist/index.js", | |
"module": "lib/index.js", | |
diff --git a/packages/intl-messageformat-parser/CHANGELOG.md b/packages/intl-messageformat-parser/CHANGELOG.md | |
index 1a97ea6f..c6a4e663 100644 | |
--- a/packages/intl-messageformat-parser/CHANGELOG.md | |
+++ b/packages/intl-messageformat-parser/CHANGELOG.md | |
@@ -3,6 +3,90 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 4.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **intl-messageformat-parser:** add tests, fix offset printing ([bebdf95](https://github.com/formatjs/formatjs/commit/bebdf9534ed7a193d7d56d4dac11a4e0c7111d91)) | |
+* **intl-messageformat-parser:** allow negative in plural rule, fixes [#146](https://github.com/formatjs/formatjs/issues/146) ([50c7710](https://github.com/formatjs/formatjs/commit/50c77108700ae564a9677d88c4a7fa2460895be1)) | |
+* **intl-messageformat-parser:** argStyleText can contain syntax characters and quoted string now ([#136](https://github.com/formatjs/formatjs/issues/136)) ([b39ea08](https://github.com/formatjs/formatjs/commit/b39ea0871bcf9d1f6ff002f5450e952bc50897cc)), closes [#135](https://github.com/formatjs/formatjs/issues/135) | |
+* **intl-messageformat-parser:** Escape double-' to a single ' ([#103](https://github.com/formatjs/formatjs/issues/103)) ([4d0cd1f](https://github.com/formatjs/formatjs/commit/4d0cd1f61e72a32b8d136886c26a94ea42643dc4)) | |
+* **intl-messageformat-parser:** exclude some more unsupported pattern ([07ec1d1](https://github.com/formatjs/formatjs/commit/07ec1d119169879617f17c542d6992c31ec85856)) | |
+* **intl-messageformat-parser:** Fix AST printer to print white-spaces, commas and element types… ([#120](https://github.com/formatjs/formatjs/issues/120)) ([37448e2](https://github.com/formatjs/formatjs/commit/37448e246b16024e435bf8d29b17f9055ad3a64e)), closes [#117](https://github.com/formatjs/formatjs/issues/117) | |
+* **intl-messageformat-parser:** fix duplicate parse exports, fix [#290](https://github.com/formatjs/formatjs/issues/290) ([4e20dbd](https://github.com/formatjs/formatjs/commit/4e20dbd16f44df8c034066ba328d22be2fbc082e)) | |
+* **intl-messageformat-parser:** fix plural =xx grammar ([1c3c1fc](https://github.com/formatjs/formatjs/commit/1c3c1fcc771775e2901443cf83594f9a53b457b1)) | |
+* **intl-messageformat-parser:** fix type definition for skeleton… ([#456](https://github.com/formatjs/formatjs/issues/456)) ([c208d01](https://github.com/formatjs/formatjs/commit/c208d013558789d0030782cb817562b712ed438e)) | |
+* **intl-messageformat-parser:** make date time skeleton compatib… ([#140](https://github.com/formatjs/formatjs/issues/140)) ([b6ea222](https://github.com/formatjs/formatjs/commit/b6ea222370f51e2cb86c6da2357008783767e8c4)) | |
+* **intl-messageformat-parser:** normalize plural in nested select, fixes [#145](https://github.com/formatjs/formatjs/issues/145) ([215aa6d](https://github.com/formatjs/formatjs/commit/215aa6d00913a1f9fda03d133513f868dd724813)) | |
+* **intl-messageformat-parser:** skip whitespaces that match unicode White_Space ([#468](https://github.com/formatjs/formatjs/issues/468)) ([d0dda6e](https://github.com/formatjs/formatjs/commit/d0dda6ebb40c58bf1fcaeea054d0a07db167d7b8)), closes [#467](https://github.com/formatjs/formatjs/issues/467) | |
+* **intl-messageformat-parser:** specify intl-unified-numberformat as dependency ([#351](https://github.com/formatjs/formatjs/issues/351)) ([e886b61](https://github.com/formatjs/formatjs/commit/e886b61f8c0eccb06eb4c168f2a01b4e6b41a23a)) | |
+* **intl-messageformat-parser:** throw when there are duplicates in select/plural, fix [#168](https://github.com/formatjs/formatjs/issues/168) ([0c3a0e0](https://github.com/formatjs/formatjs/commit/0c3a0e0581775588e7ab0a941d64ec266c4b7005)) | |
+* generate .mjs instead of lib ([0c34ee4](https://github.com/formatjs/formatjs/commit/0c34ee46f87459853ceef3a92309e77a5dd4b82c)) | |
+* generate lib instead of mjs ([05e63b3](https://github.com/formatjs/formatjs/commit/05e63b3aa2544c961087415b44ad6ba1572a659c)) | |
+* **intl-messageformat-parser:** use api-extractor to combine d.ts ([9d55531](https://github.com/formatjs/formatjs/commit/9d5553169c0c2d6f051b2c2e2c7708129ee81809)) | |
+* **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **eslint-plugin-formatjs:** add supported-datetime-skeleton rules ([c121a9a](https://github.com/formatjs/formatjs/commit/c121a9a9a52f21fbe1fdfc70e31c0275efbd0f8d)) | |
+* **intl-messageformat:** add limited support for date time skeleton ([07795b9](https://github.com/formatjs/formatjs/commit/07795b9e5e0116ffaf5f410c4e1c1a375f86ba8a)) | |
+* **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693e3ddbad4c964578222945f82f5dfe80e2)) | |
+* **intl-messageformat-parser:** add parser for number skeleton and date skeleton ([#131](https://github.com/formatjs/formatjs/issues/131)) ([dbe6799](https://github.com/formatjs/formatjs/commit/dbe6799f6afc43a122a8ba512ef4ffa45ef67b5e)) | |
+* **intl-messageformat-parser:** add parsing support for notation, signDisplay, currencyDisplay ([eaa0039](https://github.com/formatjs/formatjs/commit/eaa0039c90533b09b0c03aa9dc9cd8c605405dba)) | |
+* **intl-messageformat-parser:** add preliminary support for number skeleton ([e993e43](https://github.com/formatjs/formatjs/commit/e993e4387c522fd271996da79e99d2f85fd85b5f)) | |
+* **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2370ff06db573483d5ee408108d67c5d1f)) | |
+* **intl-messageformat-parser:** add support for unit-width ([dc4a054](https://github.com/formatjs/formatjs/commit/dc4a0547115e59198439579aadc3180b6953664d)) | |
+* **intl-messageformat-parser:** add UMD dist, fixes [#171](https://github.com/formatjs/formatjs/issues/171) ([94458c3](https://github.com/formatjs/formatjs/commit/94458c3e6c026db58cddfd6b7261366f3c9756a2)) | |
+* **intl-messageformat-parser:** allow unclosed apostrophe escape sequence ([54b442f](https://github.com/formatjs/formatjs/commit/54b442f8851bd6c7cbc57e2666df294f1c799bd4)) | |
+* **intl-messageformat-parser:** mark the package as side-effects free ([cfc8336](https://github.com/formatjs/formatjs/commit/cfc8336d9af1265109a7b1641223d8b258e9c60c)) | |
+* **intl-messageformat-parser:** pound symbol escaping ([19fd028](https://github.com/formatjs/formatjs/commit/19fd028030356deba7b409af3c88ab24017556fc)) | |
+* **intl-messageformat-parser:** revamped quote rule ([#134](https://github.com/formatjs/formatjs/issues/134)) ([5661177](https://github.com/formatjs/formatjs/commit/566117723142f7353af80602c2f47830954b877e)) | |
+* **intl-messageformat-parser:** Rewrite grammar ([#112](https://github.com/formatjs/formatjs/issues/112)) ([093de35](https://github.com/formatjs/formatjs/commit/093de3564852bf01c0a9b95d658aaf6d613baf53)) | |
+* **intl-messageformat-parser:** support argument skeleton for AST printers ([#133](https://github.com/formatjs/formatjs/issues/133)) ([f1f937d](https://github.com/formatjs/formatjs/commit/f1f937dfdcfc87fcf07b99f6e2df15939dbffce8)) | |
+* **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c5707d4c42162ac0b20ef92b0b0aebc1173b)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **intl-messageformat-parser:** This changes how we escape chars in messages, instead of `\` we now use apostrophe which is more aligned with ICU4J & ICU4C | |
+* **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 | |
+ | |
+ | |
+ | |
+ | |
+ | |
## [3.6.3](https://github.com/formatjs/formatjs/compare/[email protected]@3.6.3) (2020-01-22) | |
diff --git a/packages/intl-messageformat-parser/package-lock.json b/packages/intl-messageformat-parser/package-lock.json | |
index a56e0d30..a61bef15 100644 | |
--- a/packages/intl-messageformat-parser/package-lock.json | |
+++ b/packages/intl-messageformat-parser/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "intl-messageformat-parser", | |
- "version": "3.6.3", | |
+ "version": "4.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/intl-messageformat-parser/package.json b/packages/intl-messageformat-parser/package.json | |
index da3ddf29..4d127b32 100644 | |
--- a/packages/intl-messageformat-parser/package.json | |
+++ b/packages/intl-messageformat-parser/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "intl-messageformat-parser", | |
- "version": "3.6.3", | |
+ "version": "4.0.0", | |
"description": "Parses ICU Message strings into an AST via JavaScript.", | |
"main": "dist/index.js", | |
"module": "lib/index.js", | |
@@ -46,7 +46,7 @@ | |
"url": "https://github.com/formatjs/formatjs/issues" | |
}, | |
"dependencies": { | |
- "@formatjs/intl-unified-numberformat": "^3.1.0" | |
+ "@formatjs/intl-unified-numberformat": "^4.0.0" | |
}, | |
"homepage": "https://github.com/formatjs/formatjs", | |
"gitHead": "8b0baec8eda5002715cf893274fe59782fc2d371" | |
diff --git a/packages/intl-messageformat/CHANGELOG.md b/packages/intl-messageformat/CHANGELOG.md | |
index b355af27..cd1982f9 100644 | |
--- a/packages/intl-messageformat/CHANGELOG.md | |
+++ b/packages/intl-messageformat/CHANGELOG.md | |
@@ -3,6 +3,113 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 8.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/intl-pluralrules:** rm side effects array due to build complication ([f22e552](https://github.com/formatjs/formatjs/commit/f22e552b7a686a76b366a97da081ebf16d5aadeb)) | |
+* **eslint-plugin-format:** fix eslint-plugin-formatjs type error ([b647552](https://github.com/formatjs/formatjs/commit/b6475523bf816e2ac3be6c03d0b565fccb2b5c29)) | |
+* **intl-messageformat:** filter out XML a bit more aggressively ([36af40e](https://github.com/formatjs/formatjs/commit/36af40e9fbf5b9be8168fb29ac0b23c6b4703d3f)), closes [#148](https://github.com/formatjs/formatjs/issues/148) | |
+* **intl-messageformat:** fix [#36](https://github.com/formatjs/formatjs/issues/36) and config merging ([#40](https://github.com/formatjs/formatjs/issues/40)) ([4a9969f](https://github.com/formatjs/formatjs/commit/4a9969f864f01897357e372dbcb9223221d4b218)) | |
+* **intl-messageformat:** Fix case-sensitive tag ([69b6eae](https://github.com/formatjs/formatjs/commit/69b6eae7034f03b0c1a6fc9575d1e4921236c20a)) | |
+* **intl-messageformat:** fix chrome v77 issue where NumberFormat.supportedLocalesOf(cy) broke ([4b1605c](https://github.com/formatjs/formatjs/commit/4b1605c51c4973d080a1c4ce9b0179a0451c3be6)) | |
+* **intl-messageformat:** fix empty value in formatting ([9f820ea](https://github.com/formatjs/formatjs/commit/9f820ea9c70200be54910136d71549e4f777a7cb)), closes [#156](https://github.com/formatjs/formatjs/issues/156) | |
+* **intl-messageformat:** fix formatHTMLMessage @ regex ([d1b7c8c](https://github.com/formatjs/formatjs/commit/d1b7c8c14a0b90f8d059a8dc3e12ce7976192975)), closes [#217](https://github.com/formatjs/formatjs/issues/217) | |
+* **intl-messageformat:** fix formatXMLMessage w/o tag ([8d3bfcd](https://github.com/formatjs/formatjs/commit/8d3bfcde8fe4fbcb61e00acdbed9e26849d819b6)) | |
+* **intl-messageformat:** fix regex, fix [#130](https://github.com/formatjs/formatjs/issues/130) ([f597630](https://github.com/formatjs/formatjs/commit/f5976307d6491c8988a39d668d7f0ca7d9ba742d)) | |
+* **intl-messageformat:** handle closing tag nested inside regular tag ([08c970a](https://github.com/formatjs/formatjs/commit/08c970a8ca9587f86f3726adb974af9e65073721)) | |
+* **intl-messageformat:** handle formatXMLMessage better ([c03ecf8](https://github.com/formatjs/formatjs/commit/c03ecf859c77596af62c81913a6a70160e2557c8)) | |
+* **intl-messageformat:** handle nested # in plural correctly, fix [#202](https://github.com/formatjs/formatjs/issues/202) ([22121b2](https://github.com/formatjs/formatjs/commit/22121b210b566ad3dd509e4cbf47d3c245742928)) | |
+* **intl-messageformat:** Include Date in PrimitiveType ([1feca57](https://github.com/formatjs/formatjs/commit/1feca5745ef44831b4f1b70fd627fcb9d6f30206)), closes [#127](https://github.com/formatjs/formatjs/issues/127) | |
+* generate lib instead of mjs ([05e63b3](https://github.com/formatjs/formatjs/commit/05e63b3aa2544c961087415b44ad6ba1572a659c)) | |
+* **intl-messageformat:** pass raw locales down to individual formatters ([3a74c2e](https://github.com/formatjs/formatjs/commit/3a74c2e7c6592de3a4f5ca182c5846fe095abe55)), closes [#255](https://github.com/formatjs/formatjs/issues/255) | |
+* **intl-messageformat:** remove re-export for parseDateTimeSkeleton ([8611aa4](https://github.com/formatjs/formatjs/commit/8611aa4f950ee1d42ea5e631a6fc8b50bae0383a)) | |
+* **intl-messageformat:** use api-extractor to combine type definitions ([6c6af9d](https://github.com/formatjs/formatjs/commit/6c6af9d837d13938fa647cbbbaf2f417935908fd)) | |
+* generate .mjs instead of lib ([0c34ee4](https://github.com/formatjs/formatjs/commit/0c34ee46f87459853ceef3a92309e77a5dd4b82c)) | |
+* **intl-messageformat-parser:** allow negative in plural rule, fixes [#146](https://github.com/formatjs/formatjs/issues/146) ([50c7710](https://github.com/formatjs/formatjs/commit/50c77108700ae564a9677d88c4a7fa2460895be1)) | |
+* **intl-messageformat-parser:** argStyleText can contain syntax characters and quoted string now ([#136](https://github.com/formatjs/formatjs/issues/136)) ([b39ea08](https://github.com/formatjs/formatjs/commit/b39ea0871bcf9d1f6ff002f5450e952bc50897cc)), closes [#135](https://github.com/formatjs/formatjs/issues/135) | |
+* **intl-messageformat-parser:** throw when there are duplicates in select/plural, fix [#168](https://github.com/formatjs/formatjs/issues/168) ([0c3a0e0](https://github.com/formatjs/formatjs/commit/0c3a0e0581775588e7ab0a941d64ec266c4b7005)) | |
+* **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/cli:** A CLI for formatjs ([#234](https://github.com/formatjs/formatjs/issues/234)) ([1f57a0b](https://github.com/formatjs/formatjs/commit/1f57a0b0921e0228cf3fd4eff756b0cd17e28fb5)) | |
+* **eslint-plugin-formatjs:** add supported-datetime-skeleton rules ([c121a9a](https://github.com/formatjs/formatjs/commit/c121a9a9a52f21fbe1fdfc70e31c0275efbd0f8d)) | |
+* **intl-format-cache:** fix TS definition ([71ae9eb](https://github.com/formatjs/formatjs/commit/71ae9eb7069ba297fcc52b852ce30a5cbe768e38)) | |
+* **intl-messageformat:** Add `formatToParts` ([0680f58](https://github.com/formatjs/formatjs/commit/0680f58beb830fed62b589aad268b4ec205c6e2f)) | |
+* **intl-messageformat:** Add `getAst` method ([3d6c289](https://github.com/formatjs/formatjs/commit/3d6c28904125f74c6e4c15d45eb53ebc1499caca)) | |
+* **intl-messageformat:** add limited support for date time skeleton ([07795b9](https://github.com/formatjs/formatjs/commit/07795b9e5e0116ffaf5f410c4e1c1a375f86ba8a)) | |
+* **intl-messageformat:** Add xml formatting ([#124](https://github.com/formatjs/formatjs/issues/124)) ([72cdafc](https://github.com/formatjs/formatjs/commit/72cdafcd263534eb529dadfc44188431cb88d445)) | |
+* **intl-messageformat:** allow mixed placeholder & XML together… ([#126](https://github.com/formatjs/formatjs/issues/126)) ([4a624c0](https://github.com/formatjs/formatjs/commit/4a624c06383724688c7168fe1fffbaeeb2aa72e5)) | |
+* **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693e3ddbad4c964578222945f82f5dfe80e2)) | |
+* **intl-messageformat:** allow passing in object to formatXMLMessage ([ce05b8a](https://github.com/formatjs/formatjs/commit/ce05b8a99d006d4296f450c5bdc56524e0572a9b)) | |
+* **intl-messageformat:** export core entry point ([ca7eeae](https://github.com/formatjs/formatjs/commit/ca7eeaea7a63b9431625be7aa82da95d2e38e3bb)) | |
+* **intl-messageformat:** export Part types ([450c495](https://github.com/formatjs/formatjs/commit/450c495d53a00defab28ffc36e23cc8a997b2880)) | |
+* **intl-messageformat:** Integrate parser's number skeleton ([c4ec029](https://github.com/formatjs/formatjs/commit/c4ec029322de34477997531ae8e9bb937cb0d52d)) | |
+* **intl-messageformat:** mark the package as side-effects free ([a1a08ae](https://github.com/formatjs/formatjs/commit/a1a08aebc6abe4aac42632814e34145e59327bf1)) | |
+* **intl-messageformat:** rm bundled intl-pluralrules ([a8526c3](https://github.com/formatjs/formatjs/commit/a8526c3d5697911790d3c08bfb513ec9de217c2c)) | |
+* **intl-messageformat:** rm core bundle for now ([5311ac2](https://github.com/formatjs/formatjs/commit/5311ac2461ff0df74f72a2be006660476a3dfb0d)) | |
+* **intl-messageformat:** rm rolluped dist ([a126939](https://github.com/formatjs/formatjs/commit/a1269390f42cd2a3a64b33618bb2a79f0362d538)) | |
+* **intl-messageformat:** support nested tag, fix [#176](https://github.com/formatjs/formatjs/issues/176) ([a857239](https://github.com/formatjs/formatjs/commit/a857239e0212bc6dfe0510a37da2a6c5dccddafc)) | |
+* **intl-messageformat:** switch to text/html to parse HTML message ([f1d952f](https://github.com/formatjs/formatjs/commit/f1d952f09553a4b5543706871afaa266c9afaf60)), closes [#152](https://github.com/formatjs/formatjs/issues/152) [#148](https://github.com/formatjs/formatjs/issues/148) | |
+* **intl-messageformat:** throw FormatError if self-closing tag is used ([#166](https://github.com/formatjs/formatjs/issues/166)) ([3e0934d](https://github.com/formatjs/formatjs/commit/3e0934da85546253bb10c949f7010d70d99f52da)) | |
+* **intl-messageformat:** throw FormatError when trying to format plural but Intl.PluralRules is not available ([6294570](https://github.com/formatjs/formatjs/commit/62945706fe86de730dc114f14020263b594a7e05)) | |
+* **intl-messageformat:** use the new pound element AST node in plural argument ([9519103](https://github.com/formatjs/formatjs/commit/95191035397901ccc72564be57de3fa77ef9af96)) | |
+* add package intl-relativetimeformat ([#51](https://github.com/formatjs/formatjs/issues/51)) ([48c0f43](https://github.com/formatjs/formatjs/commit/48c0f43cf3231a8c8ba997c9e1083b6714cd60ea)) | |
+* **intl-messageformat-parser:** add parser for number skeleton and date skeleton ([#131](https://github.com/formatjs/formatjs/issues/131)) ([dbe6799](https://github.com/formatjs/formatjs/commit/dbe6799f6afc43a122a8ba512ef4ffa45ef67b5e)) | |
+* **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2370ff06db573483d5ee408108d67c5d1f)) | |
+* **intl-messageformat-parser:** revamped quote rule ([#134](https://github.com/formatjs/formatjs/issues/134)) ([5661177](https://github.com/formatjs/formatjs/commit/566117723142f7353af80602c2f47830954b877e)) | |
+* **intl-messageformat-parser:** Rewrite grammar ([#112](https://github.com/formatjs/formatjs/issues/112)) ([093de35](https://github.com/formatjs/formatjs/commit/093de3564852bf01c0a9b95d658aaf6d613baf53)) | |
+* **intl-relativetimeformat:** make intl-relativetimeformat test262-compliant ([#95](https://github.com/formatjs/formatjs/issues/95)) ([91669a3](https://github.com/formatjs/formatjs/commit/91669a3f75421c95601d010136507b6314e089ca)) | |
+* **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c5707d4c42162ac0b20ef92b0b0aebc1173b)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **intl-messageformat:** Rename `formatXMLMessage` to `formatHTMLMessage` | |
+* **intl-messageformat-parser:** This changes how we escape chars in messages, instead of `\` we now use apostrophe which is more aligned with ICU4J & ICU4C | |
+* **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 | |
+* **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. | |
+ | |
+ | |
+ | |
+ | |
+ | |
## [7.8.3](https://github.com/formatjs/formatjs/compare/[email protected]@7.8.3) (2020-01-22) | |
**Note:** Version bump only for package intl-messageformat | |
diff --git a/packages/intl-messageformat/package-lock.json b/packages/intl-messageformat/package-lock.json | |
index c5f37b7a..a0a14cd3 100644 | |
--- a/packages/intl-messageformat/package-lock.json | |
+++ b/packages/intl-messageformat/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "intl-messageformat", | |
- "version": "7.8.3", | |
+ "version": "8.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/intl-messageformat/package.json b/packages/intl-messageformat/package.json | |
index 90601132..210412c5 100644 | |
--- a/packages/intl-messageformat/package.json | |
+++ b/packages/intl-messageformat/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "intl-messageformat", | |
- "version": "7.8.3", | |
+ "version": "8.0.0", | |
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.", | |
"keywords": [ | |
"i18n", | |
@@ -31,8 +31,8 @@ | |
"module": "lib/index.js", | |
"types": "lib/intl-messageformat.d.ts", | |
"dependencies": { | |
- "intl-format-cache": "^4.2.20", | |
- "intl-messageformat-parser": "^3.6.3" | |
+ "intl-format-cache": "^5.0.0", | |
+ "intl-messageformat-parser": "^4.0.0" | |
}, | |
"files": [ | |
"dist", | |
@@ -40,7 +40,7 @@ | |
"src" | |
], | |
"devDependencies": { | |
- "@formatjs/intl-pluralrules": "^1.5.1" | |
+ "@formatjs/intl-pluralrules": "^1.6.0" | |
}, | |
"sideEffects": false, | |
"scripts": { | |
diff --git a/packages/intl-pluralrules/CHANGELOG.md b/packages/intl-pluralrules/CHANGELOG.md | |
index afdac470..d76b5385 100644 | |
--- a/packages/intl-pluralrules/CHANGELOG.md | |
+++ b/packages/intl-pluralrules/CHANGELOG.md | |
@@ -3,6 +3,48 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 1.6.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/intl-pluralrules:** add more side-effectful files ([6bc0bd7](https://github.com/formatjs/formatjs/commit/6bc0bd7e8d16b17aa658ae67d8a556183ee655b1)) | |
+* **@formatjs/intl-pluralrules:** add runner for test262 ([95190a6](https://github.com/formatjs/formatjs/commit/95190a68fc1fefa84126809dfa64bc111feef480)) | |
+* **@formatjs/intl-pluralrules:** add UMD polyfill js artifact ([0c471b0](https://github.com/formatjs/formatjs/commit/0c471b097bcbd00b7a7b2449bc486c851bdd5e05)) | |
+* **@formatjs/intl-pluralrules:** fix _type valueOf to return correct string ([06fb462](https://github.com/formatjs/formatjs/commit/06fb462544b82d1091e3f9ed61a64c63f0a82e2e)) | |
+* **@formatjs/intl-pluralrules:** fix precision-related value in select ([b3f3804](https://github.com/formatjs/formatjs/commit/b3f38048ab238418f0a695c0c58a15b1bf341cc4)) | |
+* **@formatjs/intl-pluralrules:** fix typo in toRawFixed ([8b2a7bf](https://github.com/formatjs/formatjs/commit/8b2a7bf18796fdba1fd37449e2dd0fdffba2e6d4)) | |
+* **@formatjs/intl-pluralrules:** fully test262-compliant ([3018df1](https://github.com/formatjs/formatjs/commit/3018df157eda011b3ecd3c52047ce508e8fd593c)) | |
+* **@formatjs/intl-pluralrules:** honor numberformat options ([c9ef463](https://github.com/formatjs/formatjs/commit/c9ef463ab38f8671e92eb7a103b580d08be520b8)), closes [#185](https://github.com/formatjs/formatjs/issues/185) | |
+* **@formatjs/intl-pluralrules:** merge fix meta into core ([0b10309](https://github.com/formatjs/formatjs/commit/0b103099e65013d4a2012cb4373b072d2829a992)) | |
+* **@formatjs/intl-pluralrules:** more fixes for test262 ([cc78d16](https://github.com/formatjs/formatjs/commit/cc78d166e7e4f9df95f355df5e4e0f09ec61b7b9)) | |
+* **@formatjs/intl-pluralrules:** remove unnecessary meta fixes ([27942a2](https://github.com/formatjs/formatjs/commit/27942a21af7596abe109f841fcee53e176edb151)) | |
+* **@formatjs/intl-pluralrules:** rm side effects array due to build complication ([f22e552](https://github.com/formatjs/formatjs/commit/f22e552b7a686a76b366a97da081ebf16d5aadeb)) | |
+* **@formatjs/intl-pluralrules:** tweak polyfill checks ([8daea9b](https://github.com/formatjs/formatjs/commit/8daea9b615be1b215085174a188e908f60b8a05e)) | |
+* **@formatjs/intl-pluralrules:** use api-extractor to combine d.ts ([65adff2](https://github.com/formatjs/formatjs/commit/65adff246962109496ee1f8de142496e8a9c0156)) | |
+* **@formatjs/intl-relativetimeformat:** fix test262 ([025dfe3](https://github.com/formatjs/formatjs/commit/025dfe3734285b3b876f3f2389e812731e1b2d5c)) | |
+* **@formatjs/intl-unified-numberformat:** move currency processing to lazy ([6e1d621](https://github.com/formatjs/formatjs/commit/6e1d62189373dc4fdf71614c78a353f96e28c8ed)) | |
+* **@formatjs/intl-utils:** add polyfill-utils like getOption/toObject ([7cf1cc4](https://github.com/formatjs/formatjs/commit/7cf1cc43f346754124964ec57245c25e58e5d43a)) | |
+* **@formatjs/intl-utils:** consolidate parent lookup ([bac2eae](https://github.com/formatjs/formatjs/commit/bac2eae8ab4eb2361c8b2053237ac335a1f82680)) | |
+* **@formatjs/intl-utils:** fix getInternalSlot to prevent Object.prototype taint ([334441b](https://github.com/formatjs/formatjs/commit/334441b000c0206c77683f70a1f987d2793643cb)) | |
+* **@formatjs/intl-utils:** fix lookup case sensitivity ([52fb192](https://github.com/formatjs/formatjs/commit/52fb192c41c0b6c83b1fc0870c1667035241695a)) | |
+* **@formatjs/intl-utils:** fix setNumberFormatDigitOptions ([cb21c1f](https://github.com/formatjs/formatjs/commit/cb21c1f7abcb32040ffc5108c37734e2fd43c117)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/intl-pluralrules:** add @formatjs/intl-pluralrules… ([#169](https://github.com/formatjs/formatjs/issues/169)) ([9496eca](https://github.com/formatjs/formatjs/commit/9496eca7471a26e0d5323488357a5838f2485ec8)) | |
+* **@formatjs/intl-pluralrules:** add UMD polyfill-with-locales, fix [#195](https://github.com/formatjs/formatjs/issues/195) ([8d3e03a](https://github.com/formatjs/formatjs/commit/8d3e03a1e01bdd6856c460a65064948d9154670b)) | |
+* **@formatjs/intl-pluralrules:** also polyfill env where it doesn’t take in minimumFractionDigits ([7ab043a](https://github.com/formatjs/formatjs/commit/7ab043a58c33b52992ac179d70e195c2026940b0)) | |
+* **@formatjs/intl-pluralrules:** make it more test262-compliant ([#170](https://github.com/formatjs/formatjs/issues/170)) ([5afde82](https://github.com/formatjs/formatjs/commit/5afde82b1e40180125914877911597d6e5ac9b62)) | |
+* **@formatjs/intl-pluralrules:** mark the package as side-effects free ([95174b9](https://github.com/formatjs/formatjs/commit/95174b9bddf582f7f83ce8f4df736bfc2a6515c8)) | |
+* **@formatjs/intl-unified-numberformat:** initial work on currency narrowSymbol ([e379236](https://github.com/formatjs/formatjs/commit/e379236d8f06c2f520a981fce78e11a3f207384e)) | |
+* **@formatjs/intl-utils:** add IE11-safe getCanonicalLocales, ([b5f37c4](https://github.com/formatjs/formatjs/commit/b5f37c41bf0248bf8b8046407aa3ba232744ee5b)), closes [#200](https://github.com/formatjs/formatjs/issues/200) | |
+ | |
+ | |
+ | |
+ | |
+ | |
## [1.5.1](https://github.com/formatjs/formatjs/compare/@formatjs/[email protected]...@formatjs/[email protected]) (2020-01-22) | |
**Note:** Version bump only for package @formatjs/intl-pluralrules | |
diff --git a/packages/intl-pluralrules/package-lock.json b/packages/intl-pluralrules/package-lock.json | |
index 45067459..5679ec5f 100644 | |
--- a/packages/intl-pluralrules/package-lock.json | |
+++ b/packages/intl-pluralrules/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-pluralrules", | |
- "version": "1.5.1", | |
+ "version": "1.6.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/intl-pluralrules/package.json b/packages/intl-pluralrules/package.json | |
index f5b75ccb..593ff37f 100644 | |
--- a/packages/intl-pluralrules/package.json | |
+++ b/packages/intl-pluralrules/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-pluralrules", | |
- "version": "1.5.1", | |
+ "version": "1.6.0", | |
"description": "Polyfill for intl plural rules", | |
"keywords": [ | |
"polyfill", | |
@@ -28,10 +28,10 @@ | |
"url": "git+https://github.com/formatjs/formatjs.git" | |
}, | |
"devDependencies": { | |
- "formatjs-extract-cldr-data": "^10.1.0" | |
+ "formatjs-extract-cldr-data": "^11.0.0" | |
}, | |
"dependencies": { | |
- "@formatjs/intl-utils": "^2.1.0" | |
+ "@formatjs/intl-utils": "^3.0.0" | |
}, | |
"scripts": { | |
"build": "npm run cldr && npm run compile", | |
diff --git a/packages/intl-relativetimeformat/CHANGELOG.md b/packages/intl-relativetimeformat/CHANGELOG.md | |
index 19eaeb2d..b9e57297 100644 | |
--- a/packages/intl-relativetimeformat/CHANGELOG.md | |
+++ b/packages/intl-relativetimeformat/CHANGELOG.md | |
@@ -3,6 +3,89 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 5.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/intl-listformat:** don’t treat en-US-POSIX as en-US because they are different ([a37b091](https://github.com/formatjs/formatjs/commit/a37b091830ddc0ac9fd5771eb402f2b5c23c45f7)) | |
+* **@formatjs/intl-listformat:** fix locale lookup regression for en-US ([21e8219](https://github.com/formatjs/formatjs/commit/21e8219c443ccfd36f1acd17303b0e6480edba23)) | |
+* **@formatjs/intl-pluralrules:** merge fix meta into core ([0b10309](https://github.com/formatjs/formatjs/commit/0b103099e65013d4a2012cb4373b072d2829a992)) | |
+* **@formatjs/intl-pluralrules:** use api-extractor to combine d.ts ([65adff2](https://github.com/formatjs/formatjs/commit/65adff246962109496ee1f8de142496e8a9c0156)) | |
+* **@formatjs/intl-relativetimeformat:** add locale-data as side-effectful ([7e3dc27](https://github.com/formatjs/formatjs/commit/7e3dc27564b3185c4f73f33dbe91903d49c251c6)) | |
+* **@formatjs/intl-relativetimeformat:** add more side-effectful files ([03d2a10](https://github.com/formatjs/formatjs/commit/03d2a10d2692f80e10672da320b989b951b69a45)) | |
+* **@formatjs/intl-relativetimeformat:** Fix numberingSystem option regex of intl-relativetimeformat ([d619614](https://github.com/formatjs/formatjs/commit/d6196145c249b34a1a7ae8463b8858ab94ea01ea)), closes [#471](https://github.com/formatjs/formatjs/issues/471) | |
+* **@formatjs/intl-relativetimeformat:** fix polyfill import ([#110](https://github.com/formatjs/formatjs/issues/110)) ([3adffc8](https://github.com/formatjs/formatjs/commit/3adffc8b33ef35bbf357ea1dea19fab515c535e8)) | |
+* **@formatjs/intl-relativetimeformat:** fix test262 ([025dfe3](https://github.com/formatjs/formatjs/commit/025dfe3734285b3b876f3f2389e812731e1b2d5c)) | |
+* **@formatjs/intl-relativetimeformat:** fix type definition for Intl.RelativeTimeFormat ([a16a352](https://github.com/formatjs/formatjs/commit/a16a352bbbf9212da8c09adfef5ee779b55f46bd)) | |
+* **@formatjs/intl-relativetimeformat:** Ignore error when setting name function properties on iOS 9 ([#129](https://github.com/formatjs/formatjs/issues/129)) ([62d4b06](https://github.com/formatjs/formatjs/commit/62d4b068392101a30d5604e87d6a44c38bb4406a)), closes [#128](https://github.com/formatjs/formatjs/issues/128) | |
+* **@formatjs/intl-relativetimeformat:** make supportedLocalesOf reflect data we have loaded, fix [#157](https://github.com/formatjs/formatjs/issues/157) ([58693be](https://github.com/formatjs/formatjs/commit/58693be8fa4f93869364fd19b89c93061631d0c3)) | |
+* **@formatjs/intl-relativetimeformat:** pass in raw locales to lookup ([9c2af2a](https://github.com/formatjs/formatjs/commit/9c2af2a2d8f0f7fe44ecf5f8b9f34953480e7889)) | |
+* **@formatjs/intl-relativetimeformat:** rely on Intl.PluralRules supported locales instead of both PL & NumberFormat ([cc3c05b](https://github.com/formatjs/formatjs/commit/cc3c05be5d8bc280a970569083b37b8a783f59dc)) | |
+* **@formatjs/intl-relativetimeformat:** remove global type mod for RelativeTimeFormat ([4c0b918](https://github.com/formatjs/formatjs/commit/4c0b918391400df5c7757b86620c7dee78e3380a)) | |
+* **@formatjs/intl-relativetimeformat:** remove unnecessary meta fix ([5b087bf](https://github.com/formatjs/formatjs/commit/5b087bfdeb5521b9d7e6e0475502574afeed2298)) | |
+* **@formatjs/intl-relativetimeformat:** rm locale-data import core module ([3946600](https://github.com/formatjs/formatjs/commit/394660032857455cfab0d15312d817107e124977)) | |
+* **@formatjs/intl-relativetimeformat:** rm side effects array due to build complication ([7497c87](https://github.com/formatjs/formatjs/commit/7497c8782457ac90c9ee30bc2a7aaed45346583c)) | |
+* **@formatjs/intl-relativetimeformat:** use api-extractor to combine d.ts ([bd803dd](https://github.com/formatjs/formatjs/commit/bd803dd5fcd6f13994e686b8d08bd1b8be6a2e4b)) | |
+* generate .mjs instead of lib ([0c34ee4](https://github.com/formatjs/formatjs/commit/0c34ee46f87459853ceef3a92309e77a5dd4b82c)) | |
+* generate lib instead of mjs ([05e63b3](https://github.com/formatjs/formatjs/commit/05e63b3aa2544c961087415b44ad6ba1572a659c)) | |
+* **@formatjs/intl-relativetimeformat:** use locale-lookup from intl-utils ([6146194](https://github.com/formatjs/formatjs/commit/6146194e5be028895aec208321f6aa0b79c1401d)) | |
+* **@formatjs/intl-unified-numberformat:** pass in raw locales to lookup ([719c6f2](https://github.com/formatjs/formatjs/commit/719c6f252bbea236d92803f3dc20663ce0ff1d1b)) | |
+* **@formatjs/intl-utils:** add polyfill-utils like getOption/toObject ([7cf1cc4](https://github.com/formatjs/formatjs/commit/7cf1cc43f346754124964ec57245c25e58e5d43a)) | |
+* **@formatjs/intl-utils:** change default quarter to false in selectUnit ([dadab10](https://github.com/formatjs/formatjs/commit/dadab1026d8a6f52f61063ea9ca6cbc513cddef6)) | |
+* **@formatjs/intl-utils:** consolidate parent lookup ([bac2eae](https://github.com/formatjs/formatjs/commit/bac2eae8ab4eb2361c8b2053237ac335a1f82680)) | |
+* **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **formatjs-extract-cldr-data:** polyfill units ([e291eeb](https://github.com/formatjs/formatjs/commit/e291eebfc6233ef0ae2e3ee42976e2073ad5afc1)) | |
+* add package intl-relativetimeformat ([#51](https://github.com/formatjs/formatjs/issues/51)) ([48c0f43](https://github.com/formatjs/formatjs/commit/48c0f43cf3231a8c8ba997c9e1083b6714cd60ea)) | |
+* **@formatjs/cli:** A CLI for formatjs ([#234](https://github.com/formatjs/formatjs/issues/234)) ([1f57a0b](https://github.com/formatjs/formatjs/commit/1f57a0b0921e0228cf3fd4eff756b0cd17e28fb5)) | |
+* **@formatjs/intl-relativetimeformat:** add aliases support ([a2aec8c](https://github.com/formatjs/formatjs/commit/a2aec8ccfccbeff2a6a2f6cd79c932500c1f3051)) | |
+* **@formatjs/intl-relativetimeformat:** dist out raw json data for ponyfill, fix [#201](https://github.com/formatjs/formatjs/issues/201) ([cda3cf2](https://github.com/formatjs/formatjs/commit/cda3cf2090abf6a46e293ad049eb7f588f9a66eb)) | |
+* **@formatjs/intl-relativetimeformat:** dont bundle en by default ([d9a0a66](https://github.com/formatjs/formatjs/commit/d9a0a6679546d56c4f33237c8384b6ef6cadc69d)) | |
+* **@formatjs/intl-relativetimeformat:** mark the package as side-effects free ([f942fe6](https://github.com/formatjs/formatjs/commit/f942fe6b0ec8a9b5eabfcdb187bd886a81bf165a)) | |
+* **@formatjs/intl-relativetimeformat:** use aliases from @formatjs/intl-utils ([e430944](https://github.com/formatjs/formatjs/commit/e430944554bdc3c5a7416fc74e125343a01916f2)) | |
+* **@formatjs/intl-relativetimeformat:** use common parentLocale from @formatjs/intl-utils ([38bf476](https://github.com/formatjs/formatjs/commit/38bf4767659f8acf0471cabfbf8fc2d1cc92e643)) | |
+* **@formatjs/intl-unified-numberformat:** add polyfill option ([4c1d692](https://github.com/formatjs/formatjs/commit/4c1d692fee37c22ee702b2922434b9b939f0d697)) | |
+* **@formatjs/intl-utils:** add IE11-safe getCanonicalLocales, ([b5f37c4](https://github.com/formatjs/formatjs/commit/b5f37c41bf0248bf8b8046407aa3ba232744ee5b)), closes [#200](https://github.com/formatjs/formatjs/issues/200) | |
+* **@formatjs/intl-utils:** add PartitionPattern abstract operation ([#317](https://github.com/formatjs/formatjs/issues/317)) ([5731fcf](https://github.com/formatjs/formatjs/commit/5731fcfeaaba65322f904e863faead8d1f177a98)) | |
+* **formatjs-extract-cldr-data:** dedupe relative data, reduce relative time data by 40% ([db12bf3](https://github.com/formatjs/formatjs/commit/db12bf3c8838c503a7fd658b062117de75368545)) | |
+* **formatjs-extract-cldr-data:** dont embed parentLocale everywhere ([10bca2f](https://github.com/formatjs/formatjs/commit/10bca2fb3b4fa301664f4ae628ecd5b2f344eab8)) | |
+* **formatjs-extract-cldr-data:** even smaller locale data ([66a0313](https://github.com/formatjs/formatjs/commit/66a03139a3ad7b243aee032ed5623c839c9725df)) | |
+* **formatjs-extract-cldr-data:** fix unit extraction ([7e54a0b](https://github.com/formatjs/formatjs/commit/7e54a0b35519be5e25f96e683024d3df2be6d5de)) | |
+* **formatjs-extract-cldr-data:** migrate to TS ([#91](https://github.com/formatjs/formatjs/issues/91)) ([c012d6e](https://github.com/formatjs/formatjs/commit/c012d6e67cf70e5ef23d7bf2573d4102b3035cb9)) | |
+* **intl-format-cache:** fix TS definition ([71ae9eb](https://github.com/formatjs/formatjs/commit/71ae9eb7069ba297fcc52b852ce30a5cbe768e38)) | |
+* **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693e3ddbad4c964578222945f82f5dfe80e2)) | |
+* **intl-messageformat:** rm bundled intl-pluralrules ([a8526c3](https://github.com/formatjs/formatjs/commit/a8526c3d5697911790d3c08bfb513ec9de217c2c)) | |
+* **intl-messageformat-parser:** add parser for number skeleton and date skeleton ([#131](https://github.com/formatjs/formatjs/issues/131)) ([dbe6799](https://github.com/formatjs/formatjs/commit/dbe6799f6afc43a122a8ba512ef4ffa45ef67b5e)) | |
+* **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2370ff06db573483d5ee408108d67c5d1f)) | |
+* **intl-relativeformat:** Use Intl.RelativeTimeFormat ([c014ce0](https://github.com/formatjs/formatjs/commit/c014ce0cab4cdf7614a6028044d2c97977792e44)) | |
+* **intl-relativetimeformat:** make intl-relativetimeformat test262-compliant ([#95](https://github.com/formatjs/formatjs/issues/95)) ([91669a3](https://github.com/formatjs/formatjs/commit/91669a3f75421c95601d010136507b6314e089ca)) | |
+* **intl-relativetimeformat:** rename due to npm squatting ([b4476e0](https://github.com/formatjs/formatjs/commit/b4476e0bc8b7db57615c97aaa500670b34dec4bf)) | |
+* **intl-relativetimeformat:** update LICENSE & README ([#100](https://github.com/formatjs/formatjs/issues/100)) ([3b1d11b](https://github.com/formatjs/formatjs/commit/3b1d11b8c549caa116c9c990decbad27ab808f46)) | |
+* **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c5707d4c42162ac0b20ef92b0b0aebc1173b)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **@formatjs/intl-relativetimeformat:** `en` locale data is no longer bundled by default with | |
+the polyfill | |
+* **@formatjs/intl-relativetimeformat:** Language aliases are now built in so there is no need | |
+to explicitly include it. This provides correctness across our polyfills | |
+* **formatjs-extract-cldr-data:** Export main function via `default` in index file. | |
+If you're using `require('formatjs-extract-cldr-data')`, change it to | |
+`require('formatjs-extract-cldr-data').default`. | |
+* **intl-messageformat:** We no longer include intl-pluralrules in our main index | |
+file. Consumer should polyfill accordingly. | |
+* **intl-relativeformat:** We now use Intl.RelativeTimeFormat in | |
+intl-relativeformat so consuming env should polyfill this accordingly | |
+ | |
+ | |
+ | |
+ | |
+ | |
## [4.5.8](https://github.com/formatjs/formatjs/compare/@formatjs/[email protected]...@formatjs/[email protected]) (2020-01-22) | |
diff --git a/packages/intl-relativetimeformat/package-lock.json b/packages/intl-relativetimeformat/package-lock.json | |
index e856a345..8ec8e196 100644 | |
--- a/packages/intl-relativetimeformat/package-lock.json | |
+++ b/packages/intl-relativetimeformat/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-relativetimeformat", | |
- "version": "4.5.8", | |
+ "version": "5.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/intl-relativetimeformat/package.json b/packages/intl-relativetimeformat/package.json | |
index 26c755d1..edae0f8b 100644 | |
--- a/packages/intl-relativetimeformat/package.json | |
+++ b/packages/intl-relativetimeformat/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-relativetimeformat", | |
- "version": "4.5.8", | |
+ "version": "5.0.0", | |
"description": "Formats JavaScript dates to relative time strings.", | |
"keywords": [ | |
"intl", | |
@@ -20,11 +20,11 @@ | |
"url": "[email protected]:formatjs/formatjs.git" | |
}, | |
"devDependencies": { | |
- "@formatjs/intl-pluralrules": "^1.5.1", | |
- "formatjs-extract-cldr-data": "^10.1.0" | |
+ "@formatjs/intl-pluralrules": "^1.6.0", | |
+ "formatjs-extract-cldr-data": "^11.0.0" | |
}, | |
"dependencies": { | |
- "@formatjs/intl-utils": "^2.1.0" | |
+ "@formatjs/intl-utils": "^3.0.0" | |
}, | |
"main": "dist/index.js", | |
"module": "lib/index.js", | |
diff --git a/packages/intl-unified-numberformat/CHANGELOG.md b/packages/intl-unified-numberformat/CHANGELOG.md | |
index f4789c0f..f5c2d212 100644 | |
--- a/packages/intl-unified-numberformat/CHANGELOG.md | |
+++ b/packages/intl-unified-numberformat/CHANGELOG.md | |
@@ -3,6 +3,110 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 4.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/intl-listformat:** don’t treat en-US-POSIX as en-US because they are different ([a37b091](https://github.com/formatjs/formatjs/commit/a37b091830ddc0ac9fd5771eb402f2b5c23c45f7)) | |
+* **@formatjs/intl-relativetimeformat:** add more side-effectful files ([03d2a10](https://github.com/formatjs/formatjs/commit/03d2a10d2692f80e10672da320b989b951b69a45)) | |
+* **@formatjs/intl-relativetimeformat:** pass in raw locales to lookup ([9c2af2a](https://github.com/formatjs/formatjs/commit/9c2af2a2d8f0f7fe44ecf5f8b9f34953480e7889)) | |
+* **@formatjs/intl-relativetimeformat:** use api-extractor to combine d.ts ([bd803dd](https://github.com/formatjs/formatjs/commit/bd803dd5fcd6f13994e686b8d08bd1b8be6a2e4b)) | |
+* **@formatjs/intl-unified-numberformat:** account for DecimalFormatNum in internal slots ([dc26b43](https://github.com/formatjs/formatjs/commit/dc26b434eabb4f629a821f7c12d5ae7570bd8cab)) | |
+* **@formatjs/intl-unified-numberformat:** add .npmignore ([3ebb117](https://github.com/formatjs/formatjs/commit/3ebb117d9a5c2688a47660670e91854bd5bfc39c)) | |
+* **@formatjs/intl-unified-numberformat:** add back unpackData so we get the correct locale hierarchy ([c778e19](https://github.com/formatjs/formatjs/commit/c778e19cc590dcbfed817a57501b6ef36c0c17cd)) | |
+* **@formatjs/intl-unified-numberformat:** add DEFAULT_LOCALE in locale lookup ([1f25453](https://github.com/formatjs/formatjs/commit/1f254539402d62297082f72fdb348c0d62027686)) | |
+* **@formatjs/intl-unified-numberformat:** add more tests ([5bb5924](https://github.com/formatjs/formatjs/commit/5bb592472fe216fecf7890b566f43ee489291f08)) | |
+* **@formatjs/intl-unified-numberformat:** add more tests ([5122cdc](https://github.com/formatjs/formatjs/commit/5122cdc340f2fcbf05c093075dd97c459cc5709c)) | |
+* **@formatjs/intl-unified-numberformat:** add more tests for compact notation ([0a5a180](https://github.com/formatjs/formatjs/commit/0a5a180db2813fc18f428113e6b7bc1165595868)) | |
+* **@formatjs/intl-unified-numberformat:** add some currency support, update test snapshots ([d603a3c](https://github.com/formatjs/formatjs/commit/d603a3c148412edc7d69257459a03485ae5db6e7)) | |
+* **@formatjs/intl-unified-numberformat:** address min2 grouping strategy for compact ([fd1b22d](https://github.com/formatjs/formatjs/commit/fd1b22d072213b2eee21c19166da38f5cf68dc8f)) | |
+* **@formatjs/intl-unified-numberformat:** bound format/formatToParts, fix test262 case ([a3a29e7](https://github.com/formatjs/formatjs/commit/a3a29e71405dd38ddf993693954335fceeea1735)) | |
+* **@formatjs/intl-unified-numberformat:** default to decimal symbol instead of currency ([9a99e91](https://github.com/formatjs/formatjs/commit/9a99e91f1a82a625aa499796d1817ce160233d8c)) | |
+* **@formatjs/intl-unified-numberformat:** dist polyfill with all locales ([f4c494a](https://github.com/formatjs/formatjs/commit/f4c494a83149780d21b7921956c0f67278f67f29)) | |
+* **@formatjs/intl-unified-numberformat:** export types as well ([99b886b](https://github.com/formatjs/formatjs/commit/99b886ba0f34bb7e83ab32ee88dd924a2009d8b8)) | |
+* **@formatjs/intl-unified-numberformat:** fix -0 case ([c9351c5](https://github.com/formatjs/formatjs/commit/c9351c54bd33f6e5c1869227a9a33802c56b1613)) | |
+* **@formatjs/intl-unified-numberformat:** fix [#376](https://github.com/formatjs/formatjs/issues/376) ([4b7e10a](https://github.com/formatjs/formatjs/commit/4b7e10a51ddf623fa0e7f52c8b4afc101b3c75da)) | |
+* **@formatjs/intl-unified-numberformat:** fix apostrophe escape in ILD extraction ([de1eb0a](https://github.com/formatjs/formatjs/commit/de1eb0a8e191d0a8669d2503c13d8d2f50de028f)) | |
+* **@formatjs/intl-unified-numberformat:** fix base log 10 and implement compact, fix [#370](https://github.com/formatjs/formatjs/issues/370) ([2a7f478](https://github.com/formatjs/formatjs/commit/2a7f4785456aaa5866675e28a4f208aa4e29bfd8)) | |
+* **@formatjs/intl-unified-numberformat:** fix cases where {number} or {0} is in the middle of the pattern ([3ca49d8](https://github.com/formatjs/formatjs/commit/3ca49d8f93a9acc1ea3908ffd9e367b21aa97248)) | |
+* **@formatjs/intl-unified-numberformat:** fix cases with compact for ko & zh ([eb3c3ac](https://github.com/formatjs/formatjs/commit/eb3c3ac3688957b5150acc081c2005542ea03e59)) | |
+* **@formatjs/intl-unified-numberformat:** fix cldr build ([3cb5dae](https://github.com/formatjs/formatjs/commit/3cb5daeffa072ee065a2b2c8e9ec768be21b0e46)) | |
+* **@formatjs/intl-unified-numberformat:** fix compact grouping regression ([9a02dcb](https://github.com/formatjs/formatjs/commit/9a02dcb1027f594a033301b043d1233bd6c381e1)) | |
+* **@formatjs/intl-unified-numberformat:** fix crash in numberformat ([e3115e2](https://github.com/formatjs/formatjs/commit/e3115e2462cb282edc98d4dbe71ffbf7eb3da5c8)), closes [#293](https://github.com/formatjs/formatjs/issues/293) | |
+* **@formatjs/intl-unified-numberformat:** fix currency compact form having special plural rules ([b0a6d4f](https://github.com/formatjs/formatjs/commit/b0a6d4f3120386a81ceb05fac09c56307b561e91)) | |
+* **@formatjs/intl-unified-numberformat:** fix currency digits ([b624d54](https://github.com/formatjs/formatjs/commit/b624d5439610254a8c95afa00dde18022344738d)) | |
+* **@formatjs/intl-unified-numberformat:** fix decimal tests ([7cc56d0](https://github.com/formatjs/formatjs/commit/7cc56d05d1b70238d26016f943e7aa455883006e)) | |
+* **@formatjs/intl-unified-numberformat:** fix ILD lookup for currency name in compact mode ([76e8e5f](https://github.com/formatjs/formatjs/commit/76e8e5f8b71bccacfc430edf28d10f3ff9942c86)) | |
+* **@formatjs/intl-unified-numberformat:** fix moar test262 cases ([#464](https://github.com/formatjs/formatjs/issues/464)) ([c3bec6e](https://github.com/formatjs/formatjs/commit/c3bec6e9dda928a48c8ecda7a9e515da7790fde1)) | |
+* **@formatjs/intl-unified-numberformat:** fix more test262 cases ([0da0657](https://github.com/formatjs/formatjs/commit/0da065707579e454386af9fdc427939cc0e2ceaf)) | |
+* **@formatjs/intl-unified-numberformat:** fix more things ([ad046f3](https://github.com/formatjs/formatjs/commit/ad046f3e6567a94bc5fbaee1f5b4901d613eede8)) | |
+* **@formatjs/intl-unified-numberformat:** fix more things for test262 ([35c3c5a](https://github.com/formatjs/formatjs/commit/35c3c5acbe6591a383b208cf193b57b1f3e03712)) | |
+* **@formatjs/intl-unified-numberformat:** fix package.json ([5940281](https://github.com/formatjs/formatjs/commit/5940281a72eb303ae937f54d0155c758e715b9ac)) | |
+* **@formatjs/intl-unified-numberformat:** fix resolvedOptions ([8b3af26](https://github.com/formatjs/formatjs/commit/8b3af267c5c669a9b2892d13f1c244d2ebc50c94)) | |
+* **@formatjs/intl-unified-numberformat:** fix scientific notation for numbers < 1 ([8c71872](https://github.com/formatjs/formatjs/commit/8c71872f3ff22edffb4c2543a9d9d45b0fcba05d)) | |
+* **@formatjs/intl-unified-numberformat:** fix scientific pattern for decimal ([a0edba5](https://github.com/formatjs/formatjs/commit/a0edba547e33c488ddc63025f67f3d5450a28279)) | |
+* **@formatjs/intl-unified-numberformat:** fix some 262 test cases ([3e8e931](https://github.com/formatjs/formatjs/commit/3e8e931a9a7bc6901ac7c89f10f8bf19e9fa0fca)) | |
+* **@formatjs/intl-unified-numberformat:** fix unit issue ([8feb8e7](https://github.com/formatjs/formatjs/commit/8feb8e702736bf6c33974d9ae69dd2ac09d4bc37)) | |
+* **@formatjs/intl-unified-numberformat:** initialize PluralRules with the same opts as NumberFormat ([cd8a67c](https://github.com/formatjs/formatjs/commit/cd8a67c4d9d4a8cd31f5d96bf8bde440619bacd4)) | |
+* **@formatjs/intl-unified-numberformat:** memoize Intl.PluralRules ([429a7db](https://github.com/formatjs/formatjs/commit/429a7db52cc191c9b3036d5b87a2dcf84f25ffb0)) | |
+* **@formatjs/intl-unified-numberformat:** more currency fixes for scientific notation ([6835bb4](https://github.com/formatjs/formatjs/commit/6835bb47931669f89218485d46109ac54218bdc2)) | |
+* **@formatjs/intl-unified-numberformat:** more work on currency formatting ([5a5b8e6](https://github.com/formatjs/formatjs/commit/5a5b8e63783d48c86a87a9836e45415e27e38b26)) | |
+* **@formatjs/intl-unified-numberformat:** more work on fixing currency pattern ([6cb0d67](https://github.com/formatjs/formatjs/commit/6cb0d6760404be8079361230537f1de1a4dd8c6e)) | |
+* **@formatjs/intl-unified-numberformat:** move currency processing to lazy ([6e1d621](https://github.com/formatjs/formatjs/commit/6e1d62189373dc4fdf71614c78a353f96e28c8ed)) | |
+* **@formatjs/intl-unified-numberformat:** pass in raw locales to lookup ([719c6f2](https://github.com/formatjs/formatjs/commit/719c6f252bbea236d92803f3dc20663ce0ff1d1b)) | |
+* **@formatjs/intl-unified-numberformat:** pass tests for `unit` ([a9bbc74](https://github.com/formatjs/formatjs/commit/a9bbc74b2fc2fc8bce07cee5fa3b63dd995a7953)) | |
+* **@formatjs/intl-unified-numberformat:** refactor + fix apostrophe-escaped issue in pattern ([e45bc89](https://github.com/formatjs/formatjs/commit/e45bc89e6db34a8e3d3dd63e41ee2893f0743035)) | |
+* **@formatjs/intl-unified-numberformat:** rely on Intl.PluralRules supported locales instead of both PL & NumberFormat ([8c8578d](https://github.com/formatjs/formatjs/commit/8c8578d5374d3440a8c9d26288e2e08542e6f482)) | |
+* **@formatjs/intl-unified-numberformat:** rm side effects array due to build complication ([499df4f](https://github.com/formatjs/formatjs/commit/499df4f07475ff8254bc7b884aa7325cb1f8261d)) | |
+* **@formatjs/intl-unified-numberformat:** update snapshots ([917aa7e](https://github.com/formatjs/formatjs/commit/917aa7e3039637ff315a54ea506f1836104050e8)) | |
+* **@formatjs/intl-unified-numberformat:** use CLDR symbol instead of ISO code for currencySymbol ([4db663d](https://github.com/formatjs/formatjs/commit/4db663dbcf6066923781413b90ee0ce56dfff69f)) | |
+* **@formatjs/intl-unified-numberformat:** use locale-lookup from intl-utils ([7f5eb9e](https://github.com/formatjs/formatjs/commit/7f5eb9ef84b42b36ad17499b80200255ae9b81f0)) | |
+* **@formatjs/intl-unified-numberformat:** validate currency code, fix [#371](https://github.com/formatjs/formatjs/issues/371) ([03f8ee6](https://github.com/formatjs/formatjs/commit/03f8ee6f73023a9c12bebd04b3958f40ed7bab47)) | |
+* **@formatjs/intl-unified-numberformat:** validate unit, fix [#372](https://github.com/formatjs/formatjs/issues/372) ([a93c324](https://github.com/formatjs/formatjs/commit/a93c3248800b9191b34d287264dcd9ccee2cbcfa)) | |
+* **@formatjs/intl-utils:** change default quarter to false in selectUnit ([dadab10](https://github.com/formatjs/formatjs/commit/dadab1026d8a6f52f61063ea9ca6cbc513cddef6)) | |
+* **@formatjs/intl-utils:** consolidate parent lookup ([bac2eae](https://github.com/formatjs/formatjs/commit/bac2eae8ab4eb2361c8b2053237ac335a1f82680)) | |
+* **@formatjs/intl-utils:** fix getInternalSlot to prevent Object.prototype taint ([334441b](https://github.com/formatjs/formatjs/commit/334441b000c0206c77683f70a1f987d2793643cb)) | |
+* **@formatjs/intl-utils:** fix setNumberFormatDigitOptions ([cb21c1f](https://github.com/formatjs/formatjs/commit/cb21c1f7abcb32040ffc5108c37734e2fd43c117)) | |
+* **intl-messageformat:** use api-extractor to combine type definitions ([6c6af9d](https://github.com/formatjs/formatjs/commit/6c6af9d837d13938fa647cbbbaf2f417935908fd)) | |
+* **intl-unified-numberformat:** dist UMD ([f568cdc](https://github.com/formatjs/formatjs/commit/f568cdc18dadb6c928560273ab3dd18d0976efa5)), closes [#159](https://github.com/formatjs/formatjs/issues/159) | |
+* **intl-unified-numberformat:** reduce install size by dropping unicode-12.1.0 dependency ([#497](https://github.com/formatjs/formatjs/issues/497)) ([1f6de18](https://github.com/formatjs/formatjs/commit/1f6de1800514eb04f4e2c03b8fff85b09534960f)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/intl-displaynames:** initial commit ([#469](https://github.com/formatjs/formatjs/issues/469)) ([137b994](https://github.com/formatjs/formatjs/commit/137b994846526b02de80b024c860b2771868f236)) | |
+* **@formatjs/intl-unified-numberformat:** add correct typings to UnifiedNumberFormatOptions ([70b8baa](https://github.com/formatjs/formatjs/commit/70b8baafb2bd57ec30ab8d273391bd2c1561cc74)) | |
+* **@formatjs/intl-unified-numberformat:** add currency support and currency matching algo ([786858d](https://github.com/formatjs/formatjs/commit/786858dc07cf82c4c6d0be968b3192e50f189567)) | |
+* **@formatjs/intl-unified-numberformat:** add currency-digits extractions ([8261383](https://github.com/formatjs/formatjs/commit/82613832782e7dc7acf511fc911d910152d047e6)) | |
+* **@formatjs/intl-unified-numberformat:** add currencyDisplay… ([#332](https://github.com/formatjs/formatjs/issues/332)) ([0cf8629](https://github.com/formatjs/formatjs/commit/0cf862992cae62a162d6935797ffd7c0848cf3ea)) | |
+* **@formatjs/intl-unified-numberformat:** add polyfill option ([4c1d692](https://github.com/formatjs/formatjs/commit/4c1d692fee37c22ee702b2922434b9b939f0d697)) | |
+* **@formatjs/intl-unified-numberformat:** initial work on currency narrowSymbol ([e379236](https://github.com/formatjs/formatjs/commit/e379236d8f06c2f520a981fce78e11a3f207384e)) | |
+* **@formatjs/intl-unified-numberformat:** mark the package as side-effects free ([d05c293](https://github.com/formatjs/formatjs/commit/d05c293068981fffa5c2fc114f88b31950cb998a)) | |
+* **@formatjs/intl-unified-numberformat:** more work on stage-3 APIs ([2ebf471](https://github.com/formatjs/formatjs/commit/2ebf4716131122ce9f5370c7cf8064a481460c5a)) | |
+* **@formatjs/intl-unified-numberformat:** more work on stage-3 APIs ([3f510ca](https://github.com/formatjs/formatjs/commit/3f510cac1906682db5a0fb721d62431e7ec0cb7d)) | |
+* **@formatjs/intl-unified-numberformat:** rename __addUnitLocaleData to __addLocaleData ([d251733](https://github.com/formatjs/formatjs/commit/d251733961321907307a9cd984d782e2fe497527)) | |
+* **@formatjs/intl-unified-numberformat:** Update README with more examples, disable some tests ([35dd2f0](https://github.com/formatjs/formatjs/commit/35dd2f0b2d592198d973fb394c36d6c5538993d5)) | |
+* **@formatjs/intl-utils:** add IE11-safe getCanonicalLocales, ([b5f37c4](https://github.com/formatjs/formatjs/commit/b5f37c41bf0248bf8b8046407aa3ba232744ee5b)), closes [#200](https://github.com/formatjs/formatjs/issues/200) | |
+* **@formatjs/intl-utils:** Add intl-unified-numberformat option types ([a1f9046](https://github.com/formatjs/formatjs/commit/a1f904679e0ab67bb0a774c64002014edd8c9407)) | |
+* **formatjs-extract-cldr-data:** dedupe relative data, reduce relative time data by 40% ([db12bf3](https://github.com/formatjs/formatjs/commit/db12bf3c8838c503a7fd658b062117de75368545)) | |
+* **formatjs-extract-cldr-data:** even smaller locale data ([66a0313](https://github.com/formatjs/formatjs/commit/66a03139a3ad7b243aee032ed5623c839c9725df)) | |
+* **formatjs-extract-cldr-data:** extract raw numbers ([6fa5f3f](https://github.com/formatjs/formatjs/commit/6fa5f3f68f61ad65f1a3c3b9c54f60da140fd802)) | |
+* **formatjs-extract-cldr-data:** fix unit extraction ([7e54a0b](https://github.com/formatjs/formatjs/commit/7e54a0b35519be5e25f96e683024d3df2be6d5de)) | |
+* **formatjs-extract-cldr-data:** polyfill units ([e291eeb](https://github.com/formatjs/formatjs/commit/e291eebfc6233ef0ae2e3ee42976e2073ad5afc1)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **@formatjs/intl-unified-numberformat:** Although API remains the same, the CLDR distributed data has changed | |
+* **@formatjs/intl-unified-numberformat:** rename __addUnitLocaleData to __addLocaleData for | |
+consistency with other polyfills | |
+* **@formatjs/intl-unified-numberformat:** This package no longer comes with `en` by default | |
+ | |
+ | |
+ | |
+ | |
+ | |
# [3.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/[email protected]...@formatjs/[email protected]) (2020-01-22) | |
diff --git a/packages/intl-unified-numberformat/package-lock.json b/packages/intl-unified-numberformat/package-lock.json | |
index 6a62d7e9..52a6442e 100644 | |
--- a/packages/intl-unified-numberformat/package-lock.json | |
+++ b/packages/intl-unified-numberformat/package-lock.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-unified-numberformat", | |
- "version": "3.1.0", | |
+ "version": "4.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
diff --git a/packages/intl-unified-numberformat/package.json b/packages/intl-unified-numberformat/package.json | |
index b6a58dcb..80f23bb9 100644 | |
--- a/packages/intl-unified-numberformat/package.json | |
+++ b/packages/intl-unified-numberformat/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-unified-numberformat", | |
- "version": "3.1.0", | |
+ "version": "4.0.0", | |
"description": "Ponyfill for intl unified numberformat proposal", | |
"keywords": [ | |
"polyfill", | |
@@ -25,12 +25,12 @@ | |
"src" | |
], | |
"devDependencies": { | |
- "@formatjs/intl-pluralrules": "^1.5.1", | |
+ "@formatjs/intl-pluralrules": "^1.6.0", | |
"chalk": "^2.0.0", | |
- "formatjs-extract-cldr-data": "^10.1.0" | |
+ "formatjs-extract-cldr-data": "^11.0.0" | |
}, | |
"dependencies": { | |
- "@formatjs/intl-utils": "^2.1.0" | |
+ "@formatjs/intl-utils": "^3.0.0" | |
}, | |
"scripts": { | |
"benchmark": "ts-node --project ./tsconfig.cjs.json tests/benchmark", | |
diff --git a/packages/intl-utils/CHANGELOG.md b/packages/intl-utils/CHANGELOG.md | |
index 1fca061f..bf8943d5 100644 | |
--- a/packages/intl-utils/CHANGELOG.md | |
+++ b/packages/intl-utils/CHANGELOG.md | |
@@ -3,6 +3,82 @@ | |
All notable changes to this project will be documented in this file. | |
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | |
+# 3.0.0 (2020-01-26) | |
+ | |
+ | |
+### Bug Fixes | |
+ | |
+* **@formatjs/intl-unified-numberformat:** more work on fixing currency pattern ([6cb0d67](https://github.com/formatjs/formatjs/commit/6cb0d6760404be8079361230537f1de1a4dd8c6e)) | |
+* generate .mjs instead of lib ([0c34ee4](https://github.com/formatjs/formatjs/commit/0c34ee46f87459853ceef3a92309e77a5dd4b82c)) | |
+* **@formatjs/cli:** allow optionalChaining parser, fix [#404](https://github.com/formatjs/formatjs/issues/404) ([1af4607](https://github.com/formatjs/formatjs/commit/1af460783db71bfc7bf0e3f935a020473fcb093d)) | |
+* **@formatjs/intl-relativetimeformat:** use api-extractor to combine d.ts ([bd803dd](https://github.com/formatjs/formatjs/commit/bd803dd5fcd6f13994e686b8d08bd1b8be6a2e4b)) | |
+* **@formatjs/intl-unified-numberformat:** account for DecimalFormatNum in internal slots ([dc26b43](https://github.com/formatjs/formatjs/commit/dc26b434eabb4f629a821f7c12d5ae7570bd8cab)) | |
+* **@formatjs/intl-unified-numberformat:** add back unpackData so we get the correct locale hierarchy ([c778e19](https://github.com/formatjs/formatjs/commit/c778e19cc590dcbfed817a57501b6ef36c0c17cd)) | |
+* **@formatjs/intl-unified-numberformat:** add more tests ([5122cdc](https://github.com/formatjs/formatjs/commit/5122cdc340f2fcbf05c093075dd97c459cc5709c)) | |
+* **@formatjs/intl-unified-numberformat:** add some currency support, update test snapshots ([d603a3c](https://github.com/formatjs/formatjs/commit/d603a3c148412edc7d69257459a03485ae5db6e7)) | |
+* **@formatjs/intl-unified-numberformat:** fix -0 case ([c9351c5](https://github.com/formatjs/formatjs/commit/c9351c54bd33f6e5c1869227a9a33802c56b1613)) | |
+* **@formatjs/intl-unified-numberformat:** fix cases where {number} or {0} is in the middle of the pattern ([3ca49d8](https://github.com/formatjs/formatjs/commit/3ca49d8f93a9acc1ea3908ffd9e367b21aa97248)) | |
+* **@formatjs/intl-unified-numberformat:** fix crash in numberformat ([e3115e2](https://github.com/formatjs/formatjs/commit/e3115e2462cb282edc98d4dbe71ffbf7eb3da5c8)), closes [#293](https://github.com/formatjs/formatjs/issues/293) | |
+* **@formatjs/intl-unified-numberformat:** fix moar test262 cases ([#464](https://github.com/formatjs/formatjs/issues/464)) ([c3bec6e](https://github.com/formatjs/formatjs/commit/c3bec6e9dda928a48c8ecda7a9e515da7790fde1)) | |
+* **@formatjs/intl-unified-numberformat:** fix scientific notation for numbers < 1 ([8c71872](https://github.com/formatjs/formatjs/commit/8c71872f3ff22edffb4c2543a9d9d45b0fcba05d)) | |
+* **@formatjs/intl-unified-numberformat:** fix some 262 test cases ([3e8e931](https://github.com/formatjs/formatjs/commit/3e8e931a9a7bc6901ac7c89f10f8bf19e9fa0fca)) | |
+* **@formatjs/intl-unified-numberformat:** more work on currency formatting ([5a5b8e6](https://github.com/formatjs/formatjs/commit/5a5b8e63783d48c86a87a9836e45415e27e38b26)) | |
+* **@formatjs/intl-unified-numberformat:** move currency processing to lazy ([6e1d621](https://github.com/formatjs/formatjs/commit/6e1d62189373dc4fdf71614c78a353f96e28c8ed)) | |
+* **@formatjs/intl-utils:** add polyfill-utils like getOption/toObject ([7cf1cc4](https://github.com/formatjs/formatjs/commit/7cf1cc43f346754124964ec57245c25e58e5d43a)) | |
+* generate lib instead of mjs ([05e63b3](https://github.com/formatjs/formatjs/commit/05e63b3aa2544c961087415b44ad6ba1572a659c)) | |
+* **@formatjs/intl-utils:** change default quarter to false in selectUnit ([dadab10](https://github.com/formatjs/formatjs/commit/dadab1026d8a6f52f61063ea9ca6cbc513cddef6)) | |
+* **@formatjs/intl-utils:** consolidate parent lookup ([bac2eae](https://github.com/formatjs/formatjs/commit/bac2eae8ab4eb2361c8b2053237ac335a1f82680)) | |
+* **@formatjs/intl-utils:** fix getInternalSlot to prevent Object.prototype taint ([334441b](https://github.com/formatjs/formatjs/commit/334441b000c0206c77683f70a1f987d2793643cb)) | |
+* **@formatjs/intl-utils:** fix lookup case sensitivity ([52fb192](https://github.com/formatjs/formatjs/commit/52fb192c41c0b6c83b1fc0870c1667035241695a)) | |
+* **@formatjs/intl-utils:** fix setNumberFormatDigitOptions ([cb21c1f](https://github.com/formatjs/formatjs/commit/cb21c1f7abcb32040ffc5108c37734e2fd43c117)) | |
+* **@formatjs/intl-utils:** rm dependency on @formatjs/intl-relativetimeformat ([1cd6e93](https://github.com/formatjs/formatjs/commit/1cd6e93988eb7ae3eda48e4ce0fe4fce0723972f)) | |
+* **@formatjs/intl-utils:** use api-extractor to combine d.ts ([a4b16b5](https://github.com/formatjs/formatjs/commit/a4b16b54f7cee23673701d285fffc6401536e926)) | |
+* **intl-utils:** upgrade date-fns to v2 ([3758c52](https://github.com/formatjs/formatjs/commit/3758c52b24ae6b6c364968e5332437406dc81807)) | |
+* **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) | |
+ | |
+ | |
+### Features | |
+ | |
+* **@formatjs/intl-displaynames:** initial commit ([#469](https://github.com/formatjs/formatjs/issues/469)) ([137b994](https://github.com/formatjs/formatjs/commit/137b994846526b02de80b024c860b2771868f236)) | |
+* **@formatjs/intl-listformat:** add Intl.ListFormat polyfill ([6e5d476](https://github.com/formatjs/formatjs/commit/6e5d476251adca453cdc43c8a41a8b06123fec05)) | |
+* **@formatjs/intl-relativetimeformat:** use aliases from @formatjs/intl-utils ([e430944](https://github.com/formatjs/formatjs/commit/e430944554bdc3c5a7416fc74e125343a01916f2)) | |
+* **@formatjs/intl-unified-numberformat:** add currency support and currency matching algo ([786858d](https://github.com/formatjs/formatjs/commit/786858dc07cf82c4c6d0be968b3192e50f189567)) | |
+* **@formatjs/intl-unified-numberformat:** add currencyDisplay… ([#332](https://github.com/formatjs/formatjs/issues/332)) ([0cf8629](https://github.com/formatjs/formatjs/commit/0cf862992cae62a162d6935797ffd7c0848cf3ea)) | |
+* **@formatjs/intl-unified-numberformat:** initial work on adding more stage 3 functionalities ([fc09006](https://github.com/formatjs/formatjs/commit/fc0900653586cd933a4b95c3c129ecad4010beed)) | |
+* **@formatjs/intl-unified-numberformat:** initial work on currency narrowSymbol ([e379236](https://github.com/formatjs/formatjs/commit/e379236d8f06c2f520a981fce78e11a3f207384e)) | |
+* **@formatjs/intl-unified-numberformat:** more work on stage-3 APIs ([a727599](https://github.com/formatjs/formatjs/commit/a727599ee0de1b01d15f488d70d5b3f7b3d602a6)) | |
+* **@formatjs/intl-unified-numberformat:** more work on stage-3 APIs ([3f510ca](https://github.com/formatjs/formatjs/commit/3f510cac1906682db5a0fb721d62431e7ec0cb7d)) | |
+* **@formatjs/intl-unified-numberformat:** more work on stage-3 APIs ([2ebf471](https://github.com/formatjs/formatjs/commit/2ebf4716131122ce9f5370c7cf8064a481460c5a)) | |
+* **@formatjs/intl-untils:** add locale-lookup ([5886f16](https://github.com/formatjs/formatjs/commit/5886f160852617912e17d4b2f2f16052d8276e30)) | |
+* **@formatjs/intl-utils:** add IE11-safe getCanonicalLocales, ([b5f37c4](https://github.com/formatjs/formatjs/commit/b5f37c41bf0248bf8b8046407aa3ba232744ee5b)), closes [#200](https://github.com/formatjs/formatjs/issues/200) | |
+* **@formatjs/intl-utils:** add InternalSlotToken enum ([dab275a](https://github.com/formatjs/formatjs/commit/dab275afe512dfd71d844e94f43f15f012316fba)) | |
+* **@formatjs/intl-utils:** Add intl-unified-numberformat option types ([a1f9046](https://github.com/formatjs/formatjs/commit/a1f904679e0ab67bb0a774c64002014edd8c9407)) | |
+* **@formatjs/intl-utils:** add lang aliases to locale lookup ([5e74792](https://github.com/formatjs/formatjs/commit/5e74792cedfcff5a1ecad7c2892926164c3e2a1c)) | |
+* **@formatjs/intl-utils:** add list-format types ([066d95b](https://github.com/formatjs/formatjs/commit/066d95b50a5919cee9cd24b0c1229b4d235448b1)) | |
+* **@formatjs/intl-utils:** add parent locale lookup ([db94095](https://github.com/formatjs/formatjs/commit/db940953f7a6f990d64b5ded779f918d91fcbd91)) | |
+* **@formatjs/intl-utils:** add PartitionPattern abstract operation ([#317](https://github.com/formatjs/formatjs/issues/317)) ([5731fcf](https://github.com/formatjs/formatjs/commit/5731fcfeaaba65322f904e863faead8d1f177a98)) | |
+* **@formatjs/intl-utils:** allow passing in partial thresholds to selectUnit ([6b5e556](https://github.com/formatjs/formatjs/commit/6b5e556156917416371550c6b1e23990ee0a7684)) | |
+* **@formatjs/intl-utils:** mark the package as side-effects free ([d442765](https://github.com/formatjs/formatjs/commit/d442765addc3e48ea24cece94d0a571f0a87abe4)) | |
+* **@formatjs/intl-utils:** modify diff calculation ([224ac73](https://github.com/formatjs/formatjs/commit/224ac73614524b319ab5d4bff10c982598eac991)) | |
+* **@formatjs/intl-utils:** support intl-utils toggle quarter selection ([#138](https://github.com/formatjs/formatjs/issues/138)) ([cdf3ffe](https://github.com/formatjs/formatjs/commit/cdf3ffe6ae7e462cf3faadaa67a4b44797f6d272)) | |
+* **formatjs-extract-cldr-data:** even smaller locale data ([66a0313](https://github.com/formatjs/formatjs/commit/66a03139a3ad7b243aee032ed5623c839c9725df)) | |
+* **formatjs-extract-cldr-data:** extract raw numbers ([6fa5f3f](https://github.com/formatjs/formatjs/commit/6fa5f3f68f61ad65f1a3c3b9c54f60da140fd802)) | |
+* **formatjs-extract-cldr-data:** fix unit extraction ([7e54a0b](https://github.com/formatjs/formatjs/commit/7e54a0b35519be5e25f96e683024d3df2be6d5de)) | |
+* **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693e3ddbad4c964578222945f82f5dfe80e2)) | |
+* **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2370ff06db573483d5ee408108d67c5d1f)) | |
+* **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c5707d4c42162ac0b20ef92b0b0aebc1173b)) | |
+ | |
+ | |
+### BREAKING CHANGES | |
+ | |
+* **@formatjs/intl-unified-numberformat:** Although API remains the same, the CLDR distributed data has changed | |
+* **@formatjs/intl-relativetimeformat:** Language aliases are now built in so there is no need | |
+to explicitly include it. This provides correctness across our polyfills | |
+ | |
+ | |
+ | |
+ | |
+ | |
# [2.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/[email protected]...@formatjs/[email protected]) (2020-01-22) | |
diff --git a/packages/intl-utils/package.json b/packages/intl-utils/package.json | |
index 8ef37180..de3d1beb 100644 | |
--- a/packages/intl-utils/package.json | |
+++ b/packages/intl-utils/package.json | |
@@ -1,6 +1,6 @@ | |
{ | |
"name": "@formatjs/intl-utils", | |
- "version": "2.1.0", | |
+ "version": "3.0.0", | |
"description": "Smartly determine best unit for relative time format", | |
"keywords": [ | |
"intl", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment