Releases: stellar/js-stellar-sdk
Releases · stellar/js-stellar-sdk
v14.5.0
v14.5.0
Added
- Introduced CLI functionality for generating smart contract bindings (#1287).
- Added
BindingGenerationclass for parsing contract specs into fully typed TypeScript libraries for calling contract methods (#1287). - Introduced
rpc.Server.fundAddressthat supports funding contract and account addresses via Friendbot (#1314). - Updated the
StellarTomlinterface with SEP 45 fieldsWEB_AUTH_FOR_CONTRACTS_ENDPOINTandWEB_AUTH_CONTRACT_ID(#1326).
Fixed
- X-App-Name and X-App-Version headers are now included when using
CallBuilder.stream()(#1317). CallBuildernow correctly uses the configured server URL for all requests, including pagination and linked resources. Previously, URLs returned by Horizon in_linkswould bypass reverse proxies (#1318).
Deprecated
rpc.Server.requestAirdropis deprecated in favor ofrpc.Server.fundAddress(#1314).
Contributors
@ElliotFriend, @leighmcculloch, @Ryang-21, @wpalmeri made their first contribution in #1321, and @joaquinsoza made their first contribution in #1314
Full Changelog: v14.4.3...v14.5.0
v14.4.3
v14.4.2
v14.4.1
v14.4.0
v14.4.0
Added
- Introduced an
rpc.Server.getAssetBalance()helper to fetch asset balances both for contracts and accounts (#1286). rpc.Api.BalanceResponsenow can include arevocablefield in itsbalanceEntryfor when trustlines are fetched (#1286).- Added Timepoint and Duration support to
Spec(#1288) Api.GetHealthResponseinterface now includeslatestLedger,ledgerRetentionWindow, andoldestLedgerfields (#1297).- Added
publicKey,signTransaction, andsignAuthEntryas optional fields tocontract.MethodOptions(#1293).
Fixed
Api.RawEventResponse.topicsis now optional to reflect topicless events (#1292).parseRawEventscorrectly checks ifApi.RawEventResponse.topicsis undefined (#1292).- Remove
WebAssemblyusage in favor of manual wasm parsing (#1300). - Fixed URL contamination in
Horizon.Servermethods (#1296).
Contributors
- @chadoh, @corymsmith, @Shaptic, @Ryang-2, @mootz12 made their first contribution in #1288
Full Changelog: v14.3.3...v14.4.0
v14.3.3
v14.3.3
Added
Spec.nativeToScValsupports parsing Muxed Address(#1274),
Contributors
- @alberto-crossmint made their first contribution in #1274, @jeesunikim
Full Changelog: v14.3.2...v14.3.3
v14.3.2
v14.3.2
Added
AssembledTransaction.sign()throws an error ifpublicKeywas not provided when instantiated (#1269).
Fixed
- The underlying
stellar-baselibrary has been upgraded, refer to its release notes for more updates (#1273). - A missing dependency definition may have caused issues in certain build environments (#1272).
Contributors
- @corymsmith made their first contribution in #1272, @Ryang-21
Full Changelog: v14.3.1...v14.3.2
v14.3.1
v14.3.1
Added
- Added optional
server: rpc.Serverfield toClientOptionfor HttpClient reuse. (#1234).
Fixed
- Replaced global
HttpClientwith per-instance clients inhorizon.Serverandrpc.Serverto prevent cross-instance header contamination (#1234).
Contributors
- @ScottyPoi made their first contribution in #1238, @Ryang-21
Full Changelog: v14.3.0...v14.3.1
v14.3.0
Added
Spec.scValToNativenow supports parsingOptions (#1228).- Added
getLedgersmethod torpc.Serverfor retreiving ledger data. (#1231).
Fixed
Spec.scValToNativereturnsnullforvoids orOptionals instead of the ambiguousundefined(#1228).- The
getEventsAPI now requires either a start and end ledger or a cursor to be provided (#1231).
Deprecated
GetEventsRequestinterface moved fromserver.tstoapi.ts(#1231).
Contributors
Full Changelog: v14.2.0...v14.3.0
v14.2.0
v14.2.0
Added
rpc.Servernow includesgetAccountEntry,getTrustline, andgetClaimableBalancemethods to facilitate retrieving those entries without manually constructing the ledger keys (#1218, #1221).
Fixed
- The
getTransactionsAPI no longer requiresstartLedgerwhen providingcursorbecause they are mutually exclusive (#1192). - Updated
@stellar/stellar-baseto latest patch (see its release notes, #1221).
New Contributors
@kostekIV, @janewang, @xiv, and @Ryang-21 made their first contributions!
Full Changelog: v14.1.1...v14.2.0