Skip to content

Update spec text to match latest February 2026 API#85

Merged
jessealama merged 16 commits intomainfrom
update-spec-text-2
Mar 2, 2026
Merged

Update spec text to match latest February 2026 API#85
jessealama merged 16 commits intomainfrom
update-spec-text-2

Conversation

@jessealama
Copy link
Collaborator

This brings the spec text up-to-date with the API changes proposed in #80 and #81 . The main difference is that we support a notion of storage of internal values of Amounts as a disjunctive type (String, BigInt, Number), as well as a new .convertTo method that supports unit conversion, following CLDR.

Rewrite the Amount specification text with a new value model that
separates the numeric value from its precision, remove .with() in
favor of .convertTo(), add ECMA-402 toLocaleString and locale/usage-
based convertTo, and normatively reference CLDR for unit conversion
and preferences.
@github-actions
Copy link

github-actions bot commented Feb 27, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-02 09:01 UTC

Copy link
Member

@eemeli eemeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're still inlining/defining way too much functionality that's already in the spec, and which we'll be able to move around and refactor during Stage 2 so that we can avoid introducing new text.

Copy link
Member

@eemeli eemeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nearly there!

@jessealama jessealama requested a review from eemeli February 27, 2026 19:38
@jessealama jessealama requested a review from eemeli February 28, 2026 08:11
Copy link
Member

@eemeli eemeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and applied some changes directly, to more clearly set this proposal as being stacked on top of keep-trailing-zeros. To that effect, its biblio.json is included and used to make sure that we're e.g. calling FormatNumericToString with its third argument.

I also removed the StringIntlMV RS, as the changes to it are all within keep-trailing-zeros.

@jessealama jessealama merged commit 6c3ef16 into main Mar 2, 2026
3 checks passed
@jessealama jessealama deleted the update-spec-text-2 branch March 2, 2026 09:01
@jessealama jessealama mentioned this pull request Mar 10, 2026
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.

2 participants