Skip to content

Commit af6a35f

Browse files
authored
Merge pull request #29 from cknitt/feature/0.6.0
Version 0.6.0
2 parents 8c150f6 + c523974 commit af6a35f

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed

Diff for: CHANGELOG.md

+20-14
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
11
# Changelog
22

3+
## 0.6.0 - 2018-12-09
4+
5+
- Upgraded Reason parser to Reason 3.3.7.
6+
- New command line option `--allow-duplicates` to allow duplicate messages ([@alexfedoseev](https://github.com/alexfedoseev)).
7+
- Upgraded dependencies.
8+
39
## 0.5.0 - 2018-09-15
410

5-
* Upgraded Reason parser to Reason 3.3.3.
6-
* Ported tests to Alcotest.
7-
* jbuilder -> dune.
8-
* Upgraded dependencies.
11+
- Upgraded Reason parser to Reason 3.3.3.
12+
- Ported tests to Alcotest.
13+
- jbuilder -> dune.
14+
- Upgraded dependencies.
915

1016
## 0.4.0 - 2018-05-25
1117

12-
* Directly use Reason parser api instead of forking the refmt exe for each file.
18+
- Directly use Reason parser api instead of forking the refmt exe for each file.
1319
Message extraction is now lightning fast! 😀
14-
* Command line args
15-
* allow multiple source directories to be specified
16-
* support -v and -help options
17-
* Support message extraction when `open ReactIntl;` was used.
18-
* Added tests + Travis CI.
20+
- Command line args
21+
- allow multiple source directories to be specified
22+
- support `-v` and `-help` options
23+
- Support message extraction when `open ReactIntl;` was used.
24+
- Added tests + Travis CI.
1925

2026
## 0.3.0 - 2018-05-16
2127

22-
* Support `[@intl.messages]` for marking messages for extraction.
23-
* Error on duplicate message ids.
28+
- Support `[@intl.messages]` for marking messages for extraction.
29+
- Error on duplicate message ids.
2430

2531
## 0.2.0 - 2018-05-15
2632

27-
* Extract messages from `ReactIntl.defineMessages`, too.
33+
- Extract messages from `ReactIntl.defineMessages`, too.
2834

2935
## 0.1.0 - 2018-05-13
3036

31-
* Initial Release.
37+
- Initial Release.

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ Alternatively, the binaries are also available for download on the [releases pag
1919
## Usage
2020

2121
```sh
22-
bs-react-intl-extractor [path...]
22+
bs-react-intl-extractor [--allow-duplicates] [path...]
2323
```
2424

2525
where `path` is a Reason source file or a directory containing Reason source files. Multiple files/directories may be specified.
2626

27+
The `--allow-duplicates` option allows messages with identical `id` props if the `defaultMessage` props are identical as well.
28+
2729
Formatted messages may be defined in your source files in one of the following three ways:
2830

2931
1. inline in `FormattedMessage`:

Diff for: bin/Version.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
let version = "0.5.0";
1+
let version = "0.6.0";

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bs-react-intl-extractor",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "Message extractor for bs-react-intl",
55
"author": "Christoph Knittel <[email protected]>",
66
"license": "MIT",

Diff for: test/Test.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module Usage = {
2121
};
2222

2323
module Version = {
24-
let version = "0.5.0";
24+
let version = "0.6.0";
2525

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

0 commit comments

Comments
 (0)