Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.0 #35

Merged
merged 4 commits into from
Feb 28, 2025
Merged

v2.0.0 #35

merged 4 commits into from
Feb 28, 2025

Conversation

jheer
Copy link
Member

@jheer jheer commented Feb 28, 2025

  • Breaking: Remove the useDecimalBigInt extraction flag, add useDecimalInt as a replacement. This resolves a misnomer that arises with 32-bit decimal types extracted as scaled 32-bit integers (JS number type) rather than BigInt instances. The default extraction behavior (with no flag set) is unchanged.
  • Add 32- and 64-bit decimal support. 64-bit decimals reuse the mechanisms of 128- and 256-bit decimals, but with a smaller stride into a backing BigUint64Array. 32-bit decimals directly use a backing (signed) Int32Array instead. Decimal array builders still operate as before: number-typed inputs are interpreted as floating point numbers in need of scaling, while bigint-typed values are interpreted as decimals in a scaled integer representation.
  • Update documentation.
  • Update dependencies.

Close #32

* feat: Add 32- and 64-bit decimal support.

* fix: Fix docs link typo.

* feat: Support bigint inputs to decimal32 builder.
* feat: Add 32- and 64-bit decimal support.

* fix: Fix docs link typo.

* feat!: Change to useDecimalInt flag.
@jheer jheer merged commit 741c01c into main Feb 28, 2025
2 checks passed
@jheer jheer deleted the v2.0.0 branch February 28, 2025 23:27
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.

Add Decimal32 and Decimal64 types
1 participant