Skip to content

v4.0.0

Latest

Choose a tag to compare

@Ryang-21 Ryang-21 released this 06 Mar 19:59
· 2 commits to master since this release
b4f5d09

v4.0.0

Breaking Change

Added

  • Added optional maxDepth decoding limits for nested recursive types to guard against stack overflows during decode. Array, VarArray, and Option constructors now accept a depth limit, and Struct.create / Union.create can configure per-type decode depth budgets (#131).

Fixed

  • Decoding Array and VarArray now fast fails when the array length exceeds remaining bytes to decode (#132)

  • Fixed silent truncation of bigint values exceeding the range of sized integers (Hyper, UnsignedHyper, and other LargeInt subtypes). Construction, encoding, and multi-part assembly now throw on overflow/underflow instead of silently clamping. isValid also validates value range. sliceBigInt now returns signed slice values for consistency (#133).

Contributors

Full Changelog: v3.1.2...v4.0.0