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

5 months ago

What's Changed

Migration Guide: https://github.com/XRPLF/xrpl.js/blob/3.0/MIGRATION.md

BREAKING CHANGES

  • Bump typescript to 5.x
  • Remove Node 14 support
  • Remove decimal.js and big-integer. Use BigNumber from bignumber.js instead of Decimal and the native BigInt instead of bigInt.
  • Remove assert dependency. If you were catching AssertionError you need to change to Error.
  • Remove create-hash in favor of @noble/hashes
  • Buffer has been replaced with UInt8Array for both params and return values. Buffer may continue to work with params since they extend UInt8Arrays.

Non-Breaking Changes

  • Update type definitions which causing errors in tests that the code already supported
    • makeParser to accept a Buffer in addition to string
    • SerializedType constructor allows not passing in a byte array
    • Comparable is now a generic type so that it allows compareTo methods to take more that the type itself.
  • Eliminates 4 runtime dependencies: base-x, base64-js, buffer, and ieee754.

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

Don't miss a new xrpl.js release

NewReleases is sending notifications on new releases.