Skip to content

Add BigInt support for encode and decode#91

Merged
andrew merged 2 commits intomasterfrom
bigint-support
Mar 26, 2026
Merged

Add BigInt support for encode and decode#91
andrew merged 2 commits intomasterfrom
bigint-support

Conversation

@andrew
Copy link
Copy Markdown
Member

@andrew andrew commented Mar 26, 2026

encode() now accepts BigInt values directly. decode() accepts an optional { bigint: true } option to return a BigInt, allowing lossless handling of values beyond Number.MAX_SAFE_INTEGER. TypeScript types and readme updated.

Closes #78

andrew added 2 commits March 26, 2026 08:35
encode() now accepts BigInt values directly. decode() accepts an
optional { bigint: true } option to return a BigInt, allowing
lossless handling of values beyond Number.MAX_SAFE_INTEGER.

Closes #78
@andrew andrew merged commit f47264e into master Mar 26, 2026
3 checks passed
@andrew andrew deleted the bigint-support branch March 26, 2026 09:01
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.

BigInt version

1 participant