# Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [5.1.18](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.17...babel-plugin-react-intl@5.1.18) (2020-01-27) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.17](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.16...babel-plugin-react-intl@5.1.17) (2020-01-22) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.16](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.15...babel-plugin-react-intl@5.1.16) (2020-01-09) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.15](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.14...babel-plugin-react-intl@5.1.15) (2020-01-08) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.14](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.13...babel-plugin-react-intl@5.1.14) (2020-01-06) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.13](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.12...babel-plugin-react-intl@5.1.13) (2019-12-27) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.12](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.11...babel-plugin-react-intl@5.1.12) (2019-12-26) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.11](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.10...babel-plugin-react-intl@5.1.11) (2019-12-04) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.10](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.9...babel-plugin-react-intl@5.1.10) (2019-12-02) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.9](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.8...babel-plugin-react-intl@5.1.9) (2019-12-01) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.8](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.7...babel-plugin-react-intl@5.1.8) (2019-11-26) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.7](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.6...babel-plugin-react-intl@5.1.7) (2019-11-25) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.6](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.5...babel-plugin-react-intl@5.1.6) (2019-11-25) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.5](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.4...babel-plugin-react-intl@5.1.5) (2019-11-23) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.4](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.3...babel-plugin-react-intl@5.1.4) (2019-11-21) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.3](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.2...babel-plugin-react-intl@5.1.3) (2019-11-20) ### Bug Fixes * **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) ## [5.1.2](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.1...babel-plugin-react-intl@5.1.2) (2019-11-10) **Note:** Version bump only for package babel-plugin-react-intl ## [5.1.1](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.1.0...babel-plugin-react-intl@5.1.1) (2019-11-05) **Note:** Version bump only for package babel-plugin-react-intl # [5.1.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.0.0...babel-plugin-react-intl@5.1.0) (2019-11-01) ### Features * **@formatjs/cli:** add --outFile & --idInterpolationPattern ([0c5e675](https://github.com/formatjs/formatjs/commit/0c5e675ed38f18987674a875fa6ed908ce907fc9)) * **babel-plugin-react-intl:** allow parsing from @formatjs/macro ([196dcc4](https://github.com/formatjs/formatjs/commit/196dcc44faec56637f3b74db4ed2c13d6842bc61)) ## [5.0.1](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@5.0.0...babel-plugin-react-intl@5.0.1) (2019-10-31) **Note:** Version bump only for package babel-plugin-react-intl # [5.0.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.3.0...babel-plugin-react-intl@5.0.0) (2019-10-31) ### Features * **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 # [4.3.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.21...babel-plugin-react-intl@4.3.0) (2019-10-30) ### Features * **@formatjs/cli:** A CLI for formatjs ([#234](https://github.com/formatjs/formatjs/issues/234)) ([1f57a0b](https://github.com/formatjs/formatjs/commit/1f57a0b0921e0228cf3fd4eff756b0cd17e28fb5)) # [4.2.0](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.21...babel-plugin-react-intl@4.2.0) (2019-10-30) ### Features * **@formatjs/cli:** A CLI for formatjs ([#234](https://github.com/formatjs/formatjs/issues/234)) ([1f57a0b](https://github.com/formatjs/formatjs/commit/1f57a0b0921e0228cf3fd4eff756b0cd17e28fb5)) ## [4.1.21](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.20...babel-plugin-react-intl@4.1.21) (2019-10-23) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.20](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.19...babel-plugin-react-intl@4.1.20) (2019-10-01) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.19](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.18...babel-plugin-react-intl@4.1.19) (2019-09-20) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.18](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.17...babel-plugin-react-intl@4.1.18) (2019-09-15) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.17](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.16...babel-plugin-react-intl@4.1.17) (2019-09-13) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.16](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.15...babel-plugin-react-intl@4.1.16) (2019-09-03) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.15](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.14...babel-plugin-react-intl@4.1.15) (2019-08-29) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.14](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.13...babel-plugin-react-intl@4.1.14) (2019-08-19) ### Bug Fixes * **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/6897ca9)) ## [4.1.13](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.12...babel-plugin-react-intl@4.1.13) (2019-08-21) ### Bug Fixes * **babel-plugin-react-intl:** dont trim ws ([f9f4e54](https://github.com/formatjs/formatjs/commit/f9f4e54)), closes [#158](https://github.com/formatjs/formatjs/issues/158) ## [4.1.12](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.11...babel-plugin-react-intl@4.1.12) (2019-08-12) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.11](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.10...babel-plugin-react-intl@4.1.11) (2019-08-11) ### Bug Fixes * **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/5e2dffa)) ## [4.1.10](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.9...babel-plugin-react-intl@4.1.10) (2019-08-11) ### Bug Fixes * generate lib instead of mjs ([05e63b3](https://github.com/formatjs/formatjs/commit/05e63b3)) ## [4.1.9](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.8...babel-plugin-react-intl@4.1.9) (2019-08-10) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.8](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.7...babel-plugin-react-intl@4.1.8) (2019-08-08) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.7](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.6...babel-plugin-react-intl@4.1.7) (2019-08-07) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.6](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.5...babel-plugin-react-intl@4.1.6) (2019-08-06) ### Bug Fixes * generate .mjs instead of lib ([0c34ee4](https://github.com/formatjs/formatjs/commit/0c34ee4)) ## [4.1.5](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.4...babel-plugin-react-intl@4.1.5) (2019-07-29) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.4](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.3...babel-plugin-react-intl@4.1.4) (2019-07-29) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.3](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.2...babel-plugin-react-intl@4.1.3) (2019-07-25) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.2](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.1...babel-plugin-react-intl@4.1.2) (2019-07-23) **Note:** Version bump only for package babel-plugin-react-intl ## [4.1.1](https://github.com/formatjs/formatjs/compare/babel-plugin-react-intl@4.1.0...babel-plugin-react-intl@4.1.1) (2019-07-12) **Note:** Version bump only for package babel-plugin-react-intl # [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) ### Features - **intl-messageformat-parser:** add printer to print AST to string ([ec0eaa2](https://github.com/formatjs/formatjs/commit/ec0eaa2)) ## [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) **Note:** Version bump only for package babel-plugin-react-intl # [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) ### Features - **intl-messageformat-parser:** Rewrite grammar ([#112](https://github.com/formatjs/formatjs/issues/112)) ([093de35](https://github.com/formatjs/formatjs/commit/093de35)) ### 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 ## [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) **Note:** Version bump only for package babel-plugin-react-intl # [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) ### Features - **intl-messageformat:** allow passing in formatters ([#107](https://github.com/formatjs/formatjs/issues/107)) ([3605693](https://github.com/formatjs/formatjs/commit/3605693)) ## [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) **Note:** Version bump only for package babel-plugin-react-intl # [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) ### Features - **intl-utils:** Add intl-utils ([#98](https://github.com/formatjs/formatjs/issues/98)) ([2329c57](https://github.com/formatjs/formatjs/commit/2329c57)) ## [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) ### 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/643f8e5)) ## [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) **Note:** Version bump only for package babel-plugin-react-intl ## [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) **Note:** Version bump only for package babel-plugin-react-intl # [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) ### Features - **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)) ## [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) **Note:** Version bump only for package babel-plugin-react-intl # [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) ### Features - **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)) ## [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) **Note:** Version bump only for package babel-plugin-react-intl ## [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) **Note:** Version bump only for package babel-plugin-react-intl ## [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) **Note:** Version bump only for package babel-plugin-react-intl # [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) ### Features - **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)) ## [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) ### Bug Fixes - **relativePath:** path -> p ([a764377](https://github.com/formatjs/babel-plugin-react-intl/commit/a764377)) ### Features - **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)) - **test:** Add test suite. ([a7b611a](https://github.com/formatjs/babel-plugin-react-intl/commit/a7b611a))