Skip to content
Compare
Choose a tag to compare
@ckniffen ckniffen released this 01 Feb 22:03
· 86 commits to main since this release
a090842

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/[email protected]@2.0.0