2.0.0 (2020-07-25)
Features
- @formatjs/cli: add
compile
command (0ecf8b1) - @formatjs/cli: modify output JSON schema (457d30b)
- @formatjs/cli: revamp underlying extraction (0b0c810)
BREAKING CHANGES
- @formatjs/cli: The old output JSON messages used to be a
MessageDescriptor[]
. This format isn't friendly to translation vendors
so we've changed it toRecord<string, Omit<MessageDescriptor, 'id'>>
.
For example:
{
"fjk13": {
"defaultMessage": "a message",
"description": "a description",
"start": 0,
"end": 20
}
}
- @formatjs/cli: Remove
--messages-dir
option. This was primarily used
to eagerly write out output in the babel plugin since we don't know when
the execution will be done. This is not the case with the CLI.
--out-file
should be used instead. - @formatjs/cli: Remove
--module-source-name
option. This is not used.