From c52397441277c03bbe5521cbc71a434a5b8e312d Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sun, 9 Dec 2018 14:56:38 +0100 Subject: [PATCH] Version 0.6.0 --- CHANGELOG.md | 34 ++++++++++++++++++++-------------- README.md | 4 +++- bin/Version.re | 2 +- package.json | 2 +- test/Test.re | 2 +- 5 files changed, 26 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3cc5bf..7a3523a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,31 +1,37 @@ # Changelog +## 0.6.0 - 2018-12-09 + +- Upgraded Reason parser to Reason 3.3.7. +- New command line option `--allow-duplicates` to allow duplicate messages ([@alexfedoseev](https://github.com/alexfedoseev)). +- Upgraded dependencies. + ## 0.5.0 - 2018-09-15 -* Upgraded Reason parser to Reason 3.3.3. -* Ported tests to Alcotest. -* jbuilder -> dune. -* Upgraded dependencies. +- Upgraded Reason parser to Reason 3.3.3. +- Ported tests to Alcotest. +- jbuilder -> dune. +- Upgraded dependencies. ## 0.4.0 - 2018-05-25 -* Directly use Reason parser api instead of forking the refmt exe for each file. +- Directly use Reason parser api instead of forking the refmt exe for each file. Message extraction is now lightning fast! 😀 -* Command line args - * allow multiple source directories to be specified - * support -v and -help options -* Support message extraction when `open ReactIntl;` was used. -* Added tests + Travis CI. +- Command line args + - allow multiple source directories to be specified + - support `-v` and `-help` options +- Support message extraction when `open ReactIntl;` was used. +- Added tests + Travis CI. ## 0.3.0 - 2018-05-16 -* Support `[@intl.messages]` for marking messages for extraction. -* Error on duplicate message ids. +- Support `[@intl.messages]` for marking messages for extraction. +- Error on duplicate message ids. ## 0.2.0 - 2018-05-15 -* Extract messages from `ReactIntl.defineMessages`, too. +- Extract messages from `ReactIntl.defineMessages`, too. ## 0.1.0 - 2018-05-13 -* Initial Release. +- Initial Release. diff --git a/README.md b/README.md index fe8c49f..bb59790 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,13 @@ Alternatively, the binaries are also available for download on the [releases pag ## Usage ```sh -bs-react-intl-extractor [path...] +bs-react-intl-extractor [--allow-duplicates] [path...] ``` where `path` is a Reason source file or a directory containing Reason source files. Multiple files/directories may be specified. +The `--allow-duplicates` option allows messages with identical `id` props if the `defaultMessage` props are identical as well. + Formatted messages may be defined in your source files in one of the following three ways: 1. inline in `FormattedMessage`: diff --git a/bin/Version.re b/bin/Version.re index ab99a6c..702e632 100644 --- a/bin/Version.re +++ b/bin/Version.re @@ -1 +1 @@ -let version = "0.5.0"; +let version = "0.6.0"; diff --git a/package.json b/package.json index 1dc0367..81ccec6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bs-react-intl-extractor", - "version": "0.5.0", + "version": "0.6.0", "description": "Message extractor for bs-react-intl", "author": "Christoph Knittel ", "license": "MIT", diff --git a/test/Test.re b/test/Test.re index db3d7a4..96bfb99 100644 --- a/test/Test.re +++ b/test/Test.re @@ -21,7 +21,7 @@ module Usage = { }; module Version = { - let version = "0.5.0"; + let version = "0.6.0"; let testVersion = () => checkRes("-v", (version ++ "\n", ""));