Skip to content

fix: guard formatAmount against non-integer/non-finite amounts#288

Open
chemic wants to merge 1 commit into
mainfrom
fix/format-amount-integer-guard
Open

fix: guard formatAmount against non-integer/non-finite amounts#288
chemic wants to merge 1 commit into
mainfrom
fix/format-amount-integer-guard

Conversation

@chemic

@chemic chemic commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

parseUnknownAmount now rounds finite non-integers (normalising -00) and falls back to 0 for NaN/±Infinity, so dinero no longer throws You must provide an integer. on malformed amounts.

@changeset-bot

changeset-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5f7e2cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@epilot/pricing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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