Skip to content

Releases: XRPLF/xrpl.js

0.10.0-rc2

11 Dec 08:27
Compare
Choose a tag to compare
0.10.0-rc2 Pre-release
Pre-release
  • Transaction changes
  • Important tef* and tel* and errors will no longer be presented as
    final. Rather than considering these errors final, ripple-lib will wait until
    the LastLedgerSequence specified in the transaction is exceeded. This makes
    failures more definitive, and ensures that no transaction will resubmit
    indefinitely.
  • A new, final tej-class error is introduced to account for transactions that
    are locally determined to have expired: tejMaxLedger.
  • Allow per transaction fees to be set, transaction.setFixedFee()
  • Improve memo support
    • Add MemoFormat property for memo
    • Enforce MemoFormat and MemoType to be valid ASCII
    • Support text and json MemoFormat
  • Update jscl library
    • Improved entropy by taking advantage of platform crypto
    • Use jscl's k256 curve instead of altering the c256 curve with k256 configuration
    • deprecated: the c256 curve is linked to the k256 curve to provide backwards compatibility, this link will be removed in the future

0.10.0-rc1

11 Dec 08:27
Compare
Choose a tag to compare
0.10.0-rc1 Pre-release
Pre-release
  • Transaction changes
  • Important tef* and tel* and errors will no longer be presented as
    final. Rather than considering these errors final, ripple-lib will wait until
    the LastLedgerSequence specified in the transaction is exceeded. This makes
    failures more definitive, and ensures that no transaction will resubmit
    indefinitely.
  • A new, final tej-class error is introduced to account for transactions that
    are locally determined to have expired: tejMaxLedger.
  • Allow per transaction fees to be set, transaction.setFixedFee()
  • Improve memo support
    • Add MemoFormat property for memo
    • Enforce MemoFormat and MemoType to be valid ASCII
    • Support text and json MemoFormat
  • Update jscl library
    • Improved entropy by taking advantage of platform crypto
    • Use jscl's k256 curve instead of altering the c256 curve with k256 configuration
    • deprecated: the c256 curve is linked to the k256 curve to provide backwards compatibility, this link will be removed in the future

0.9.4

0.9.4-rc2

0.9.4-rc1

0.9.3

0.9.3-rc3

0.9.3-rc2

14 Nov 18:28
Compare
Choose a tag to compare
0.9.3-rc2 Pre-release
Pre-release
  • Change presubmit to emit immediately before transaction submit (7a1feaa)
  • Add a "core" browser build of ripple-lib which has a subset of features and smaller file size (#205)
  • Update binformat with missing fields from rippled (cae9807)
  • Wait for transaction validation before returning tec error (6bdd4b2)

0.9.2

14 Nov 18:27
Compare
Choose a tag to compare
  • Breaking change: Change accountRequest method signature (6f5d110)
  • Add paging behavior for account requests, account_lines and account_offers (722f4e1)
  • Add max_fee setter to transactions to set max fee the submitter is willing to pay(24587fa)
  • Fix: cap IOU Amounts to their max and min value (f05941f)

Example on how to use paging with account_offers:

// A valid `ledger_index` or `ledger_hash` is required to provide a reliable result.
// Results can change between ledger closes, so the provided ledger will be used as base.
var options = {
    account: < rippleAccount >,
    limit: < Number between 10 and 400 >,
    ledger: < valid ledger_index or ledger_hash >
}

// The `marker` comes back in an account request if there are more results than are returned 
// in the current response. The amount of results per response are determined by the `limit`.
if (marker) {
    options.marker = < marker >;
}

var request = remote.requestAccountOffers(options);

Full working example

0.9.2-rc6

11 Nov 19:54
Compare
Choose a tag to compare
0.9.2-rc6 Pre-release
Pre-release
  • Breaking change: Change accountRequest method signature 6f5d110
  • Add paging behavior for account requests, account_lines and account_offers 722f4e1
  • Add max_fee setter to transactions to set max fee the submitter is willing to pay 24587fa
  • Fix: cap IOU Amounts to their max and min value f05941f

Example on how to use paging with account_offers:

// A valid `ledger_index` or `ledger_hash` is required to provide a reliable result.
// Results can change between ledger closes, so the provided ledger will be used as base.
var options = {
    account: < rippleAccount >,
    limit: < Number between 10 and 400 >,
    ledger: < valid ledger_index or ledger_hash >
}

// The `marker` comes back in an account request if there are more results than are returned 
// in the current response. The amount of results per response are determined by the `limit`.
if (marker) {
    options.marker = < marker >;
}

var request = remote.requestAccountOffers(options);

Full working example