github formatjs/formatjs intl-messageformat@9.0.0

latest releases: vue-intl@6.5.0, react-intl@6.6.6, intl-messageformat@10.5.12...
3 years ago

9.0.0 (2020-07-03)

Features

  • intl-messageformat: make FormatXMLElementFn non-variadic (f2963bf)

BREAKING CHANGES

  • intl-messageformat: This effectively change the signature for formatter
    function from (...chunks) => any to (chunks) => any. This solves a
    couple of issues:
  1. We received user feedback that variadic function is not as ergonomic
  2. Right now there's not way to distinguish between 2 chunks that have
    the same tag, e.g <b>on</b> and <b>on</b>. The function would
    receive 2 chunks that are identical. By consoliding to the 1st param we
    can reserve additional params to provide mode metadata in the future

Don't miss a new formatjs release

NewReleases is sending notifications on new releases.