-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(intl-messageformat): make FormatXMLElementFn non-variadic
BREAKING CHANGE: 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
- Loading branch information
Showing
4 changed files
with
39 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters