Skip to content

Commit

Permalink
Merge pull request #29 from cknitt/feature/0.6.0
Browse files Browse the repository at this point in the history
Version 0.6.0
  • Loading branch information
cknitt authored Dec 9, 2018
2 parents 8c150f6 + c523974 commit af6a35f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 18 deletions.
34 changes: 20 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down
2 changes: 1 addition & 1 deletion bin/Version.re
Original file line number Diff line number Diff line change
@@ -1 +1 @@
let version = "0.5.0";
let version = "0.6.0";
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <christoph.knittel@cca.io>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion test/Test.re
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Usage = {
};

module Version = {
let version = "0.5.0";
let version = "0.6.0";

let testVersion = () => checkRes("-v", (version ++ "\n", ""));

Expand Down

0 comments on commit af6a35f

Please sign in to comment.