Skip to content

Releases: stellar/js-stellar-sdk

v11.0.0-beta.6

03 Nov 19:56
f1a53d3
Compare
Choose a tag to compare
v11.0.0-beta.6 Pre-release
Pre-release

Fixed

  • The stellar-base library has been upgraded to beta.4 which contains a bugfix for large sequence numbers (#877).
  • The SorobanRpc.Server.getTransaction() method will now return the full response when encountering a FAILED transaction result (#872).
  • The SorobanRpc.Server.getEvents() method will correctly parse the event value (which is an xdr.ScVal rather than an xdr.DiagnosticEvent, see the modified SorobanRpc.Api.EventResponse.value; #876).

Full Changelog: v10.4.1...v11.0.0-beta.5

v11.0.0-beta.5

25 Oct 18:46
2a43e48
Compare
Choose a tag to compare
v11.0.0-beta.5 Pre-release
Pre-release

v11.0.0-beta.5

Breaking Changes

  • The soroban-client library (stellar/js-soroban-client) has been merged into this package, causing significant breaking changes in the module structure (#860):
    • The namespaces have changed to move each server-dependent component into its own module. Shared components (e.g. TransactionBuilder) are still in the top level, Horizon-specific interactions are in the Horizon namespace (i.e. Server is now Horizon.Server), and new Soroban RPC interactions are in the SorobanRpc namespace.
    • There is a detailed migration guide available to outline both the literal (i.e. necessary code changes) and philosophical (i.e. how to find certain functionality) changes needed to adapt to this merge.
  • The SorobanRpc.Server.prepareTransaction and SorobanRpc.assembleTransaction methods no longer need an optional networkPassphrase parameter, because it is implicitly part of the transaction already (#870).

Full Changelog: v10.4.1...v11.0.0-beta.5

v11.0.0-beta.4

05 Oct 16:01
b010f38
Compare
Choose a tag to compare
v11.0.0-beta.4 Pre-release
Pre-release

Fixed

  • The stellar-base dependency has been pinned to a specific version to avoid incorrect semver resolution (#867).

v11.0.0-beta.3

19 Sep 01:01
619972b
Compare
Choose a tag to compare
v11.0.0-beta.3 Pre-release
Pre-release

v11.0.0-beta.3

Fixed

  • Fix a webpack error preventing correct exports of the SDK for browsers (#862).

Full Changelog: v11.0.0-beta.2...v11.0.0-beta.3

v11.0.0-beta.2

15 Sep 23:34
8df8275
Compare
Choose a tag to compare
v11.0.0-beta.2 Pre-release
Pre-release

v11.0.0-beta.2

Breaking Changes

  • Certain effects have been renamed to align better with the "tense" that other structures have (#844):
    • DepositLiquidityEffect -> LiquidityPoolDeposited
    • WithdrawLiquidityEffect -> LiquidityPoolWithdrew
    • LiquidityPoolTradeEffect -> LiquidityPoolTrade
    • LiquidityPoolCreatedEffect -> LiquidityPoolCreated
    • LiquidityPoolRevokedEffect -> LiquidityPoolRevoked
    • LiquidityPoolRemovedEffect -> LiquidityPoolRemoved

Add

  • New effects have been added to support Protocol 20 (Soroban) (#842):
    • ContractCredited occurs when a Stellar asset moves into its corresponding Stellar Asset Contract instance
    • ContractDebited occurs when a Stellar asset moves out of its corresponding Stellar Asset Contract instance
  • Asset stat records (ServerApi.AssetRecord) contain two new fields to support the Protocol 20 (Soroban) release (#841):
    • num_contracts - the integer quantity of contracts that hold this asset
    • contracts_amount - the total units of that asset held by contracts
  • New operation responses (#845):
    • invokeHostFunction: see Horizon.InvokeHostFunctionOperationResponse
    • bumpFootprintExpiration: see Horizon.BumpFootprintExpirationOperationResponse
    • restoreFootprint: see Horizon.RestoreFootprintOperationResponse
    • You can refer to the actual definitions for details, but the gist of the schemas is below:
interface InvokeHostFunctionOperationResponse {
  function: string;
  parameters: {
    value: string;
    type: string;
  }[];
  address: string;
  salt: string;
  asset_balance_changes: {
    type: string;
    from: string;
    to: string;
    amount: string;
  }[];
}
interface BumpFootprintExpirationOperationResponse {
  ledgersToExpire: string;
}
interface RestoreFootprintOperationResponse {};

Fixed

  • Some effect definitions that were missing have been added (#842):
    • ClaimableBalanceClawedBack is now defined
    • type EffectRecord now has all of the effect types
  • The stellar-base library has been upgraded to support the latest Protocol 20 XDR schema and all Soroban functionality (#861).

v11.0.0-beta.1

12 Jul 16:55
1185b59
Compare
Choose a tag to compare
v11.0.0-beta.1 Pre-release
Pre-release

v11.0.0-beta.1

Update

  • Bundle size has decreased by dropping unnecessary dependencies (lodash: #822, es6-promise: #823, polyfills: #825, detect-node: #831).
  • Dependencies (including stellar-base) have been updated to their latest versions (#825, #827).

Full Changelog: v11.0.0-beta.0...v11.0.0-beta.1

v11.0.0-beta.0

21 Apr 20:25
82990f1
Compare
Choose a tag to compare
v11.0.0-beta.0 Pre-release
Pre-release

This version is marked by a major version bump because of the significant upgrades to underlying dependencies. While there should be no noticeable API changes from a downstream perspective, there may be breaking changes in the way that this library is bundled.

Update

  • Build system has been overhauled to support Webpack 5 (#814).
  • stellar-base has been updated to its corresponding overhaul (#818).

Fix

  • Missing fields have been added to certain API responses (#801 and #797).

New Contributors

Full Changelog: v10.4.1...v11.0.0-beta.0

v10.4.1

15 Dec 21:12
165ee6b
Compare
Choose a tag to compare

Update

  • Bumps stellar-base version to v8.2.2 to include latest fix: enabling fast signing in service workers (#806).

v10.4.0

04 Oct 21:09
9926203
Compare
Choose a tag to compare

Add

  • Add SEP-1 fields to StellarTomlResolver for type checks (#794).

  • Add support for passing X-Auth-Token as a custom header (#795).

Update

  • Bumps stellar-base version to v8.2.1 to include latest fixes.

Thank you by @tobinbc and @zachalam for your contributions!

v10.3.0

07 Sep 19:35
Compare
Choose a tag to compare

v10.3.0

Fix

  • Adds successful field to transaction submission response (#790).

Update

  • Bumps stellar-base version to v8.2.0 to include CAP-40 support in Operation.setOptions (#793).