github formatjs/formatjs @formatjs/cli@2.0.0

latest releases: react-intl@6.6.5, eslint-plugin-formatjs@4.13.0, @formatjs/editor@2.0.45...
3 years ago

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 to Record<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.

Don't miss a new formatjs release

NewReleases is sending notifications on new releases.