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
assert
dependency. If you were catchingAssertionError
you need to change toError
. - Fix
deriveKeypair
ignoring manual decoding algorithm. (Specifying algorithm=ed25519
inopts
now works on secrets likesNa1...
) - Remove
crypto
polyfills,create-hash
,elliptic
,hash.js
, and their many dependencies in favor of@noble/hashes
and@nobel/curves
- Remove
bytesToHex
andhexToBytes
. They can now be found in@xrplf/isomorphic/utils
verifyTransaction
will throw an error if there is no signature- Improved key algorithm detection. It will now throw Errors with helpful messages
Buffer
has been replaced withUInt8Array
for both params and return values.Buffer
may continue to work with params since they extendUInt8Arrays
.
Non-Breaking Changes
- Remove
brorand
as a dependency and use@xrplf/isomorphic
instead. - Eliminates 4 runtime dependencies:
base-x
,base64-js
,buffer
, andieee754
.
Full Changelog: https://github.com/XRPLF/xrpl.js/compare/ripple-keypairs@1.3.1...ripple-keypairs@2.0.0