ckniffen
released this
01 Feb 22:03
·
84 commits
to main
since this release
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
frombignumber.js
instead ofDecimal
and the nativeBigInt
instead ofbigInt
. - Remove
assert
dependency. If you were catchingAssertionError
you need to change toError
. - Remove
create-hash
in favor of@noble/hashes
Buffer
has been replaced withUInt8Array
for both params and return values.Buffer
may continue to work with params since they extendUInt8Arrays
.
Non-Breaking Changes
- Update type definitions which causing errors in tests that the code already supported
makeParser
to accept aBuffer
in addition tostring
SerializedType
constructor allows not passing in a byte arrayComparable
is now a generic type so that it allowscompareTo
methods to take more that the type itself.
- Eliminates 4 runtime dependencies:
base-x
,base64-js
,buffer
, andieee754
.
Full Changelog: https://github.com/XRPLF/xrpl.js/compare/[email protected]@2.0.0