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:
- We received user feedback that variadic function is not as ergonomic
- 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