Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.

Commit a038e8b

Browse files
author
Long Ho
committed
1 parent d59fbf1 commit a038e8b

File tree

15 files changed

+129
-14
lines changed

15 files changed

+129
-14
lines changed

packages/babel-plugin-react-intl/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [6.0.0](https://github.com/formatjs/formatjs/compare/[email protected]@6.0.0) (2020-03-04)
7+
8+
9+
### Features
10+
11+
* **intl-messageformat-parser:** Add native support for parsing XML tag ([51c49fa](https://github.com/formatjs/formatjs/commit/51c49faa46880ae6e005125c59fa23b59f0e7083))
12+
13+
14+
### BREAKING CHANGES
15+
16+
* **intl-messageformat-parser:** This changes the AST and causes potential conflicts
17+
with previous parser version
18+
fix(eslint-plugin-formatjs): Adapt to new parser
19+
chore(babel-plugin-react-intl): update package lock
20+
21+
22+
23+
24+
625
## [5.1.18](https://github.com/formatjs/formatjs/compare/[email protected]@5.1.18) (2020-01-27)
726

827
**Note:** Version bump only for package babel-plugin-react-intl

packages/babel-plugin-react-intl/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/babel-plugin-react-intl/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "babel-plugin-react-intl",
3-
"version": "5.1.18",
3+
"version": "6.0.0",
44
"description": "Extracts string messages for translation from modules that use React Intl.",
55
"repository": {
66
"type": "git",
@@ -20,7 +20,7 @@
2020
"@types/babel__core": "^7.1.3",
2121
"@types/schema-utils": "^1.0.0",
2222
"fs-extra": "^8.1.0",
23-
"intl-messageformat-parser": "^3.6.4",
23+
"intl-messageformat-parser": "^4.0.0",
2424
"schema-utils": "^2.2.0"
2525
},
2626
"scripts": {

packages/cli/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.1.21](https://github.com/formatjs/formatjs/compare/@formatjs/[email protected]...@formatjs/[email protected]) (2020-03-04)
7+
8+
**Note:** Version bump only for package @formatjs/cli
9+
10+
11+
12+
13+
614
## [1.1.20](https://github.com/formatjs/formatjs/compare/@formatjs/[email protected]...@formatjs/[email protected]) (2020-01-27)
715

816
**Note:** Version bump only for package @formatjs/cli

packages/cli/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@formatjs/cli",
3-
"version": "1.1.20",
3+
"version": "1.1.21",
44
"description": "A CLI for formatjs.",
55
"keywords": [
66
"intl",
@@ -48,7 +48,7 @@
4848
"@types/loader-utils": "^1.1.3",
4949
"@types/lodash": "^4.14.138",
5050
"babel-plugin-const-enum": "^0.0.2",
51-
"babel-plugin-react-intl": "^5.1.18",
51+
"babel-plugin-react-intl": "^6.0.0",
5252
"commander": "4.0.0-1",
5353
"fs-extra": "^8.1.0",
5454
"glob": "^7.1.6",

packages/eslint-plugin-formatjs/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.0.0](https://github.com/formatjs/formatjs/compare/[email protected]@2.0.0) (2020-03-04)
7+
8+
9+
### Features
10+
11+
* **intl-messageformat-parser:** Add native support for parsing XML tag ([51c49fa](https://github.com/formatjs/formatjs/commit/51c49faa46880ae6e005125c59fa23b59f0e7083))
12+
13+
14+
### BREAKING CHANGES
15+
16+
* **intl-messageformat-parser:** This changes the AST and causes potential conflicts
17+
with previous parser version
18+
fix(eslint-plugin-formatjs): Adapt to new parser
19+
chore(babel-plugin-react-intl): update package lock
20+
21+
22+
23+
24+
625
# [1.6.0](https://github.com/formatjs/formatjs/compare/[email protected]@1.6.0) (2020-03-01)
726

827

packages/eslint-plugin-formatjs/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/eslint-plugin-formatjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-formatjs",
3-
"version": "1.6.0",
3+
"version": "2.0.0",
44
"description": "ESLint plugin for formatjs",
55
"main": "dist/index.js",
66
"files": [
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"@types/emoji-regex": "^8.0.0",
3232
"emoji-regex": "^8.0.0",
33-
"intl-messageformat-parser": "^3.6.4"
33+
"intl-messageformat-parser": "^4.0.0"
3434
},
3535
"peerDependencies": {
3636
"eslint": "^6.0.0"

packages/intl-messageformat-parser/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,43 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [4.0.0](https://github.com/formatjs/formatjs/compare/[email protected]@4.0.0) (2020-03-04)
7+
8+
9+
### Features
10+
11+
* **intl-messageformat:** combine formatHTMLMessage into format ([d59fbf1](https://github.com/formatjs/formatjs/commit/d59fbf1a4a017a3a023254cb9947575eef9cf803))
12+
* **intl-messageformat-parser:** Add native support for parsing XML tag ([51c49fa](https://github.com/formatjs/formatjs/commit/51c49faa46880ae6e005125c59fa23b59f0e7083))
13+
14+
15+
### BREAKING CHANGES
16+
17+
* **intl-messageformat:** We've modified the way we parse and format embedded
18+
XML/HTML as follow:
19+
20+
1. `formatHTMLMessage` has been combined with `format`
21+
2. All tags specified must have corresponding values and will throw
22+
error if it's missing, e.g: `new IntlMessageFormat("a
23+
<b>strong</b>").format({ b: (...chunks) => <strong>chunks</strong> })`
24+
3. Self-closing tags are treated as string literal by default. We don't
25+
allow formatting self-closing tags because we already use ICU
26+
`{placeholder}` syntax for that.
27+
4. XML/HTML tags are escaped using apostrophe just like other ICU
28+
constructs.
29+
5. Remove dependency on DOMParser and restrictions on void element like
30+
`<link>`. This effectively means you don't need to polyfill DOMParser in
31+
Node anymore
32+
33+
fix(intl-messageformat-parser): fix escaping for XML tag
34+
* **intl-messageformat-parser:** This changes the AST and causes potential conflicts
35+
with previous parser version
36+
fix(eslint-plugin-formatjs): Adapt to new parser
37+
chore(babel-plugin-react-intl): update package lock
38+
39+
40+
41+
42+
643
## [3.6.4](https://github.com/formatjs/formatjs/compare/[email protected]@3.6.4) (2020-01-27)
744

845
**Note:** Version bump only for package intl-messageformat-parser

0 commit comments

Comments
 (0)