Releases: stellar/js-stellar-sdk
Releases · stellar/js-stellar-sdk
v3.0.1
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
v2.3.0
v2.2.3
v2.2.2
v2.2.1
v2.2.0
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
v2.1.0
v2.0.1
- 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
theServer
class have been broken out into a new namespace,ServerApi
.
So, for example,Server.AccountRecord
->ServerApi.AccountRecord
. Server.AccountResponse
is out of theServer
namespace ->
AccountResponse
Server.*CallBuilder
is out of theServer
namespace ->*CallBuilder
HorizonResponseAccount
is nowHorizon.AccountResponse
- Types that were once in the
- 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!