Skip to content

Releases: stellar/js-stellar-base

v1.1.0

01 Aug 21:27
d440d39
Compare
Choose a tag to compare

Deprecated

Deprecate global singleton for Network. The following classes and methods take an optional network passphrase, and issue a warning if it is not passed:

Keypair.master

Keypair.master(Networks.TESTNET)

constructor for Transaction

const xenv = new xdr.TransactionEnvelope({ tx: xtx });
new Transaction(xenv, Networks.TESTNET);

constructor for TransactionBuilder and method TransactionBuilder.setNetworkPassphrase

const transaction = new StellarSdk.TransactionBuilder(account, {
  fee: StellarSdk.BASE_FEE,
  networkPassphrase: Networks.TESTNET
})

See #207 and #112 for more information.

The Network class will be removed on the 2.0 release.

Add

  • Add docs for BASE_FEE const. (#211)

Fix

v1.0.3

22 Jul 23:01
1b73896
Compare
Choose a tag to compare

Add

  • Add toString() to Asset (#172)
  • Add types for missing Network functions (#208)
  • Add BASE_FEE to TS types (#209)

Fix

  • Fix typo in types (#194)
  • Fix types: Fee is no longer optional (#195)
  • Fix typings for Account Sequence Number (#203)
  • Fix typings for Transaction Sequence Number (#205)

v1.0.2

15 May 16:14
9cf020d
Compare
Choose a tag to compare

Fix a bug where sodium-native was incorrectly being bundled with the browser release.

v1.0.1

09 May 14:58
681c49b
Compare
Choose a tag to compare

Restore the old Operations.manageOffer and Operations.createPassiveOffer functions. They now issue a deprecation warning and return the value of the new operations calls.

v1.0.0

08 May 14:52
fae699c
Compare
Choose a tag to compare

Because we're launching two breaking changes, we're taking the opportunity to switch to true semver! 🎉

  • Breaking change Stellar Protocol 11 compatibility
    • Rename Operation.manageOffer to Operation.manageSellOffer.
    • Rename Operation.createPassiveOffer to Operation.createPassiveSellOffer.
    • Add Operation.manageBuyOffer.
  • Breaking change The fee parameter to TransactionBuilder is now
    required. Failing to provide a fee will throw an error.

v0.13.2

30 Apr 18:44
cb9f9ce
Compare
Choose a tag to compare
  • Bring DefinitelyTyped definitions into the repo for faster updating.
  • Add missing Typescript type definitions.
  • Add code to verify signatures when added to transactions.
  • Replace ed25519 with sodium-native.
  • Fix the xdr for SCP_MESSAGE.
  • Update the README for the latest info.

v0.13.1

19 Apr 18:59
d4e6c25
Compare
Choose a tag to compare
  • Deploy to NPM with an env variable, not the Travis-encrypted key
  • Cache node_modules in Travis

v0.13.0

18 Mar 18:01
aea9fd1
Compare
Choose a tag to compare
  • Remove the crypto library. This reduces the number of Node built-ins we have
    to shim into the production bundle, and incidentally fixes a bug with
    Angular 6.

v0.12.0

25 Feb 15:48
fe4150d
Compare
Choose a tag to compare
  • Warning: Calling TransactionBuilder without a fee param is now deprecated
    and will issue a warning. In a later release, it will throw an error. Please
    update your transaction builders as soon as you can!
  • Add a toXDR function for transactions that lets you get the transaction as a
    base64-encoded string (so you may enter it into the Stellar Laboratory XDR
    viewer, for one)
  • Fix TransactionBuilder example syntax errors
  • Use more thorough "create account" documentation
  • Add Date support for TransactionBuilder timebounds
  • Add two functions to Transaction that support pre-generated transactions:
    • getKeypairSignature helps users sign pre-generated transaction XDRs
    • addSignature lets you add pre-generated signatures to a built transaction

v0.11.0

04 Feb 16:18
39b2dc1
Compare
Choose a tag to compare
  • Added ESLint and Prettier to enforce code style
  • Upgraded dependencies, including Babel to 6
  • Bump local node version to 6.14.0
  • Change Operations._fromXDRAmount to not use scientific notation (1e-7) for
    small amounts like 0.0000001.