This version adds 32-bit and 64-bit decimal type support, along with a breaking change that renames the useDecimalBigInt
extraction flag to useDecimalInt
.
Changelog
- Breaking: Remove the
useDecimalBigInt
extraction flag, adduseDecimalInt
as a replacement. This resolves a misnomer that arises with 32-bit decimal types extracted as scaled 32-bit integers (JSnumber
type) rather thanBigInt
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, whilebigint
-typed values are interpreted as decimals in a scaled integer representation. - Update documentation.
- Update dependencies.
Full Changelog: v1.1.2...v2.0.0