github XRPLF/xrpl.js ripple-binary-codec@2.11.1

34 minutes ago

Changes

Fixed

  • Amount now throws for MPT values above 2^63 - 1 instead of encoding a truncated value (#3368).
  • UInt64.from now throws when given a bigint that is negative, or a bigint or number that does not fit in 64 bits, instead of truncating it.
  • encodeForSigningClaim now throws if amount is not a non-negative integer (in drops) that fits in 64 bits.
  • encode() and decode() now support MPT path hops (mpt_issuance_id, path-hop type 0x40), with or without an issuer. When encoding, the issuer must match the issuer in the mpt_issuance_id. decode() now throws an error on a path-hop type byte with an unrecognized bit set, where it previously decoded it incorrectly.

Changed

  • Update bignumber.js to ^11.1.4 (was ^10.0.2).

Pull Requests

  • fix: Validate UInt64 and claim amounts, support MPT path hops by @kuan121 in #3633
  • fix(ripple-binary-codec): Reject MPT amounts above 2^63 - 1 instead of encoding truncated values by @hmalinski in #3554
  • chore(deps): Q4 package upgrades by @pdp2121 in #3590
  • xrpl.js package upgrade for 2026 Q3 by @kuan121 in #3461

Full Changelog: https://github.com/XRPLF/xrpl.js/compare/ripple-binary-codec@2.11.0...ripple-binary-codec@2.11.1

Don't miss a new xrpl.js release

NewReleases is sending notifications on new releases.