xrpl.js 5.4.0: requests no longer hang on rippled errors, and hex fields are validated
The XRP Ledger's JavaScript library xrpl.js released version 5.4.0 on 2 December, a release made mostly of fixes that bring the client's behaviour closer to rippled, the server.
Two fixes concern failures that were silent. If the server answered a request with an error message such as jsonInvalid, the promise used to stay pending forever; it now fails with a RippledError. And a WebSocket text frame from the server containing invalid UTF-8 used to bring the client down; that crash is gone. Validation also got stricter in a place where anything used to pass: fields that rippled stores as hex, for example NFTokenID, VaultID and InvoiceID, now reject values that are not hex.

Several changes touch the lending and batch features. signLoanSetByCounterparty and combineLoanSetCounterpartySigners now accept a LoanSet whose Account is multisigned; before, they looked only for a single signature, so a loan broker with a signer list could not originate a loan. Submitting a LoanSet without the counterparty's signature now throws an error that names the missing field instead of letting rippled reject it with an unrelated message. LoanSet and VaultCreate validation now refuses values that rippled refuses in preflight, such as a GracePeriod below 60. For batches, LastLedgerSequence is allowed in inner transactions, and when an inner transaction is sponsored, signMultiBatch now treats its sponsor as one of the signers the batch needs, matching what rippled checks.
The release also deprecates Node.js 20, which reached end of life on 30 April 2026 and is no longer tested; support will be removed in the next major version, and Node.js 22 or 24 is recommended. ripple-binary-codec moves to 2.11.1.