All Versions
326
Latest Version
Avg Release Cycle
6 days
Latest Release
1747 days ago

Changelog History
Page 17

  • v4.2.0 Changes

    March 21, 2020

    πŸ”‹ Features

    • βž• add wrapRichTextChunksInFragment option (7864e1c)
  • v4.1.2 Changes

    August 17, 2020

    4.1.2 (2020-08-17)

    Note: Version bump only for package @formatjs/intl-listformat

  • v4.1.1 Changes

    March 06, 2020

    πŸ› Bug Fixes

    • 0️⃣ dont warn if locale is the same as defaultLocale (c8b178b), closes #1594
  • 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 to

    onError(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:
    1. All tags specified must have corresponding values and will throw
      error if it's missing, e.g:

      new IntlMessageFormat("astrong").format({ b: (...chunks) => chunks })

    2. We don't allow formatting self-closing tags because we already use ICU {placeholder} syntax for that.

    3. 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 since FormattedMessage 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 that FormattedMessage 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

    πŸ”‹ Features

    • βž• add formatDisplayName and FormattedDisplayName (#1567) (10bcbe2), closes #1547
  • v3.11.0 Changes

    January 09, 2020

    πŸ”‹ Features

    • πŸ‘ Allow MessageDescriptor ID to be number (#1553) (95298b2)

    πŸ› Bug Fixes

    • βž• add a parser for chunks emitted from formatHTMLMessage (#1550) (8c3c5c7)
    • ⚑️ update formatjs deps (1745c21)
  • v3.10.0 Changes

    December 26, 2019

    πŸ”‹ Features

    • ⬆️ Upgrade intl-unified-numberformat & TypeScript (ddf411a)
  • v3.9.3

    December 27, 2019