In addition to numerous bug fixes, this release adds support for arbitrary precision integers, decimals, and timestamps. It does not include support for:
- ints denoted in binary
- underscore characters in ints, decimals, or floats
- shared symbol tables
- symboltokens
- SID0 ($0)
Note: this release targets Node environments only and has not been verified to work in any browsers.
Associated milestone: M3.1
Full list of changes: v3.0.0..v3.1.0
API Changes
The following identifies API changes since v3.0.0. Additional information can be found in the API documentation. Anything not present in the API documentation is internal and subject to change in the future.
General
- added
IntSize
enum
Decimal
- added
constructor(decimalText: string)
- added
constructor(coefficient: JSBI, exponent: number, isNegative?: boolean)
- added
getCoefficient(): JSBI
- added
getExponent(): number
Reader
- added
bigIntValue(): JSBI
- added
intSize(): IntSize
Writer
- added
depth(): number
- modified
writeInt(value: number | JSBI | null): void
sovalue
may be of typeJSBI