Skip to content

Releases: stellar/js-stellar-sdk

v3.0.1

13 Sep 14:55
b8c7524
Compare
Choose a tag to compare

Add

  • Add join method to call builder. (#436). Given the following code:
const operations = await server
  .operations()
  .limit(50)
  .join("transactions") // <------- new option
  .call();

const transactions = await Promise.all(
  operations.records.map(r => r.transaction())
);

console.log("transaction", transactions.length)

Without join, the following snippet will make 50 request to horizon:

const transactions = await Promise.all(
  operations.records.map(r => r.transaction())
);

But since we are using join, calling record.transaction() will return a promise which resolves immediately with the payload included in the response.

We kept the API as a promise so you can use the same syntax regardless if using join or not.

Although you can call join in any builder, right now it will only work for the payments and operations end-points and the only valid argument is transactions.

v3.0.0

28 Aug 22:33
1fe16d6
Compare
Choose a tag to compare

BREAKING CHANGES ⚠

  • Drop Support for Node 6 since it has been end-of-lifed and no longer in LTS. We now require Node 10 which is the current LTS until April 1st, 2021. (#424

v2.3.0

16 Aug 21:38
080931a
Compare
Choose a tag to compare

Add

  • Add server.feeStats() support. (#409)

Fix

  • Fix Util.verifyChallengeTx documentation (#405)
  • Fix: listen to stream events with addEventListener (#408)

v2.2.3

08 Aug 15:43
f2aaf60
Compare
Choose a tag to compare

Fix

  • Fix ServerApi's OrderbookRecord type (#401)

Set

  • Set name in custom errors (#403)

v2.2.2

08 Aug 15:00
60624b0
Compare
Choose a tag to compare

Fix

  • Fix manage data value in SEP0010 challenge builder. (#396)

Add

  • Add support for networkPassphrase in SEP0010 challenge builder. (#397)

v2.2.1

02 Aug 18:01
bebc365
Compare
Choose a tag to compare

Fix

  • Fix #391: Remove instance check for MessageEvent on stream error. (#392)

v2.2.0

30 Jul 17:58
992e828
Compare
Choose a tag to compare

Add

  • Add helper Utils.verifyChallengeTx to verify SEP0010 "Challenge" Transaction. (#388)
  • Add helper Utils.verifyTxSignedBy to verify that a transaction has been signed by a given account. (#388)

Fix

  • Check for a global EventSource before deciding what to use. This allows you to inject polyfills in other environments like react-native. (#389)

v2.1.1

25 Jul 21:01
867100c
Compare
Choose a tag to compare

Fix

  • Fix CallBuilder onmessage type (#385)

v2.1.0

24 Jul 20:43
c577039
Compare
Choose a tag to compare

Add

  • Add single script to build docs and call it when combined with jsdoc. (#380)
  • Add SEP0010 transaction challenge builder. (#375)
  • Add home_domain to ServerApi.AccountRecord (#376)

Bump

  • Bump stellar-base to 1.0.3. (#378)
  • Bump @stellar/tslint-config (#377)

Fix

  • Fix jsdoc's build in after_deploy (#373)
  • Create new URI instead of passing serverUrl (Fix #379). (#382)

v2.0.1

12 Jul 10:27
c85c9b7
Compare
Choose a tag to compare
  • Breaking change Port stellar-sdk to Typescript. There should be no changes
    in functionality (Besides TS type definitions). But because the build process
    has changed, there could be some unanticipated bugs. Here's a description of
    the type definitions that changed:
    • Types that were once in the Server namespace but didn't actually deal with
      the Server class have been broken out into a new namespace, ServerApi.
      So, for example, Server.AccountRecord -> ServerApi.AccountRecord.
    • Server.AccountResponse is out of the Server namespace ->
      AccountResponse
    • Server.*CallBuilder is out of the Server namespace -> *CallBuilder
    • HorizonResponseAccount is now Horizon.AccountResponse
  • Upgrade Webpack to v4.
  • Add support for providing app name and version to request headers.
  • (NPM wouldn't accept the 2.0.0 version, so we're publishing to 2.0.1.)

Many thanks to @Ffloriel and @Akuukis for their help with this release!