Changelog History
Page 17
-
v4.2.0 Changes
March 21, 2020π Features
- β add wrapRichTextChunksInFragment option (7864e1c)
-
v4.1.2 Changes
August 17, 20204.1.2 (2020-08-17)
Note: Version bump only for package @formatjs/intl-listformat
-
v4.1.1 Changes
March 06, 2020 -
v4.1.0 Changes
March 05, 2020β BREAKING CHANGES
π² Introduce
ReactIntlErrorCode
so we can distinguish and log things differently (5b2b034)onError
method signature has changed toonError(err: ReactIntlError | FormatError): void
-
v4.0.0 Changes
March 05, 2020β BREAKING CHANGES
- π This release contains subtle changes to the way we handle embedded HTML Message:
All tags specified must have corresponding values and will throw
error if it's missing, e.g:new IntlMessageFormat("astrong").format({ b: (...chunks) => chunks })
We don't allow formatting self-closing tags because we already use ICU
{placeholder}
syntax for that.XML/HTML tags are escaped using apostrophe just like other ICU constructs. π 3. Remove dependency on DOMParser and restrictions on void element like
<link>
. This effectively means you don't need to polyfill DOMParser in Node anymore. π 4.FormattedHTMLMessage
&intl.formatHTMLMessage
have been removed sinceFormattedMessage
now fully supports embedded HTML tag.
Why are we doing those changes?
FormattedHTMLMessage
&intl.formatHTMLMessage
were originally created when React was fairly new. These components helped ease migration over from raw HTML to JSX. Given that current popularity of React right now and the fact thatFormattedMessage
allow rendering embedded HTML tag, this is no longer needed.- π Initially during the 1st iteration of embedded HTML support, we allow any tag that doesnβt have a corresponding formatter to be rendered as raw HTML. Weβve received feedbacks internally that allowing embedded HTML tag to be rendered as-is without sanitization is a XSS security risk. Therefore, in order to allow raw HTML tag you have to opt-in by escaping them using apostrophe. We will update our linter to check for this as well.
π Features
- β¬οΈ Upgrade intl-messageformat & intl-messageformat-parser, remove FormattedHTMLMessage (fae69e9)
-
v3.12.1
March 04, 2020 -
v3.12.0 Changes
February 04, 2020 -
v3.10.0 Changes
December 26, 2019π Features
- β¬οΈ Upgrade intl-unified-numberformat & TypeScript (ddf411a)
-
v3.9.3
December 27, 2019