UNPKG

6.44 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
6# [4.1.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.0.1...babel-plugin-react-intl@4.1.0) (2019-07-12)
7
8### Features
9
10- **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2))
11
12## [4.0.1](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.0.0...babel-plugin-react-intl@4.0.1) (2019-07-09)
13
14**Note:** Version bump only for package babel-plugin-react-intl
15
16# [4.0.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.5.1...babel-plugin-react-intl@4.0.0) (2019-07-08)
17
18### Features
19
20- **intl-messageformat-parser:** Rewrite grammar ([#112](https://github.com/formatjs/formatjs/issues/112)) ([093de35](https://github.com/formatjs/formatjs/commit/093de35))
21
22### BREAKING CHANGES
23
24- **intl-messageformat-parser:** This completely changes the AST produced by the parser
25
26Before:
27
28```
29complex_msg AST length 12567
30normal_msg AST length 2638
31simple_msg AST length 567
32string_msg AST length 288
33complex_msg x 3,405 ops/sec ±5.44% (81 runs sampled)
34normal_msg x 27,513 ops/sec ±2.14% (87 runs sampled)
35simple_msg x 113,043 ops/sec ±1.20% (89 runs sampled)
36string_msg x 147,838 ops/sec ±0.78% (90 runs sampled)
37```
38
39After:
40
41```
42complex_msg AST length 2053
43normal_msg AST length 410
44simple_msg AST length 79
45string_msg AST length 36
46complex_msg x 3,926 ops/sec ±2.37% (90 runs sampled)
47normal_msg x 27,641 ops/sec ±3.93% (86 runs sampled)
48simple_msg x 100,764 ops/sec ±5.35% (79 runs sampled)
49string_msg x 120,362 ops/sec ±7.11% (74 runs sampled)
50```
51
52- feat: normalize hashtag token in plural
53
54- feat(intl-messageformat): adapt to new AST
55
56- feat(babel-plugin-react-intl): adapt to new AST
57
58## [3.5.1](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.5.0...babel-plugin-react-intl@3.5.1) (2019-06-28)
59
60**Note:** Version bump only for package babel-plugin-react-intl
61
62# [3.5.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.4.1...babel-plugin-react-intl@3.5.0) (2019-06-27)
63
64### Features
65
66- **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693))
67
68## [3.4.1](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.4.0...babel-plugin-react-intl@3.4.1) (2019-06-26)
69
70**Note:** Version bump only for package babel-plugin-react-intl
71
72# [3.4.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.3.3...babel-plugin-react-intl@3.4.0) (2019-06-27)
73
74### Features
75
76- **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c57))
77
78## [3.3.3](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.3.2...babel-plugin-react-intl@3.3.3) (2019-06-18)
79
80### Bug Fixes
81
82- **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/643f8e5))
83
84## [3.3.2](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.3.1...babel-plugin-react-intl@3.3.2) (2019-06-18)
85
86**Note:** Version bump only for package babel-plugin-react-intl
87
88## [3.3.1](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.3.0...babel-plugin-react-intl@3.3.1) (2019-06-18)
89
90**Note:** Version bump only for package babel-plugin-react-intl
91
92# [3.3.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.2.1...babel-plugin-react-intl@3.3.0) (2019-06-18)
93
94### Features
95
96- **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/5bc18b0))
97
98## [3.2.1](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@3.2.0...babel-plugin-react-intl@3.2.1) (2019-06-12)
99
100**Note:** Version bump only for package babel-plugin-react-intl
101
102# [3.2.0](https://github.com/formatjs/babel-plugin-react-intl/compare/babel-plugin-react-intl@3.1.3...babel-plugin-react-intl@3.2.0) (2019-06-05)
103
104### Features
105
106- **babel-plugin-react-intl:** Add enforceDefaultMessage ([#61](https://github.com/formatjs/babel-plugin-react-intl/issues/61)) ([8dbb1c3](https://github.com/formatjs/babel-plugin-react-intl/commit/8dbb1c3))
107
108## [3.1.3](https://github.com/formatjs/babel-plugin-react-intl/compare/babel-plugin-react-intl@3.1.1...babel-plugin-react-intl@3.1.3) (2019-06-03)
109
110**Note:** Version bump only for package babel-plugin-react-intl
111
112## [3.1.2](https://github.com/formatjs/babel-plugin-react-intl/compare/babel-plugin-react-intl@3.1.1...babel-plugin-react-intl@3.1.2) (2019-06-03)
113
114**Note:** Version bump only for package babel-plugin-react-intl
115
116## [3.1.1](https://github.com/formatjs/babel-plugin-react-intl/compare/babel-plugin-react-intl@3.1.0...babel-plugin-react-intl@3.1.1) (2019-05-31)
117
118**Note:** Version bump only for package babel-plugin-react-intl
119
120# [3.1.0](https://github.com/formatjs/babel-plugin-react-intl/compare/babel-plugin-react-intl@3.0.2...babel-plugin-react-intl@3.1.0) (2019-05-28)
121
122### Features
123
124- **babel-plugin-react-intl:** add `extractFromFormatMessageCall` option to opt-in extracting from `intl.formatMessage`, fixes [#37](https://github.com/formatjs/babel-plugin-react-intl/issues/37) ([#39](https://github.com/formatjs/babel-plugin-react-intl/issues/39)) ([5d0bb43](https://github.com/formatjs/babel-plugin-react-intl/commit/5d0bb43))
125
126## [3.0.2](https://github.com/formatjs/babel-plugin-react-intl/compare/babel-plugin-react-intl@3.0.2...babel-plugin-react-intl@3.0.2) (2019-05-28)
127
128### Bug Fixes
129
130- **relativePath:** path -> p ([a764377](https://github.com/formatjs/babel-plugin-react-intl/commit/a764377))
131
132### Features
133
134- **babel-plugin-react-intl:** add `extractFromFormatMessageCall` option to opt-in extracting from `intl.formatMessage`, fixes [#37](https://github.com/formatjs/babel-plugin-react-intl/issues/37) ([#39](https://github.com/formatjs/babel-plugin-react-intl/issues/39)) ([5d0bb43](https://github.com/formatjs/babel-plugin-react-intl/commit/5d0bb43))
135- **test:** Add test suite. ([a7b611a](https://github.com/formatjs/babel-plugin-react-intl/commit/a7b611a))