Skip to content

Version 0.6.0 #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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