Skip to content

Update number-skeleton and date-skeleton#446

Merged
eemeli merged 5 commits intomainfrom
update-skeletons
Mar 24, 2025
Merged

Update number-skeleton and date-skeleton#446
eemeli merged 5 commits intomainfrom
update-skeletons

Conversation

@eemeli
Copy link
Member

@eemeli eemeli commented Mar 23, 2025

This PR introduces breaking changes to @messageformat/date-skeleton and @messageformat/number-skeleton, as the required language capabilities are updated, and the public DateToken interface is changed.

The tools are updated to make use of Intl.DateTimeFormat and Intl.NumberFormat features up to ES2023, so more patterns and skeletons can be represented. This also moves some of the validation from parsing to options bag construction.

All number format skeleton features documented here are now supported, including concise-syntax tokens.

The previously internal functions getDateTimeFormatOptions() and getNumberFormatOptions() are now exported, for use in particular by @messageformat/icu-messageformat-1.

@eemeli eemeli merged commit b0ec469 into main Mar 24, 2025
10 checks passed
@eemeli eemeli deleted the update-skeletons branch March 24, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant