Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@jheer jheer released this 28 Feb 23:40

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, 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.

Full Changelog: v1.1.2...v2.0.0