Skip to content

Commit

Permalink
0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekn committed Jan 24, 2019
1 parent 6db6435 commit e87c3b9
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

As this project is pre 1.0, breaking changes may happen for minor version bumps. A breaking change will get clearly notified in this log.

## 0.12.0

* Update `stellar-base` to `0.10.0`:
* **Breaking change** Added [`TransactionBuilder.setTimeout`](https://stellar.github.io/js-stellar-base/TransactionBuilder.html#setTimeout) method that sets `timebounds.max_time` on a transaction. Because of the distributed nature of the Stellar network it is possible that the status of your transaction will be determined after a long time if the network is highly congested. If you want to be sure to receive the status of the transaction within a given period you should set the TimeBounds with `maxTime` on the transaction (this is what `setTimeout` does internally; if there's `minTime` set but no `maxTime` it will be added). Call to `TransactionBuilder.setTimeout` is required if Transaction does not have `max_time` set. If you don't want to set timeout, use `TimeoutInfinite`. In general you should set `TimeoutInfinite` only in smart contracts. Please check [`TransactionBuilder.setTimeout`](https://stellar.github.io/js-stellar-base/TransactionBuilder.html#setTimeout) docs for more information.
* Fixed decoding empty `homeDomain`.
* Add `offset` parameter to TradeAggregationCallBuilder to reflect new changes to the endpoint in horizon-0.15.0

## 0.11.0

* Update `js-xdr` (by updating `stellar-base`) to support unmarshaling non-utf8 strings.
* String fields returned by `Operation.fromXDRObject()` are of type `Buffer` now (except `SetOptions.home_domain` and `ManageData.name` - both required to be ASCII by stellar-core).
* Add `offset` parameter to TradeAggregationCallBuilder to reflect new changes to the endpoint in horizon-0.15.0

## 0.10.3

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stellar-sdk",
"version": "0.11.0",
"version": "0.12.0",
"description": "stellar-sdk is a library for working with the Stellar Horizon server.",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -84,7 +84,7 @@
"event-source-polyfill": "0.0.12",
"eventsource": "^1.0.5",
"lodash": "^4.17.10",
"stellar-base": "^0.9.0",
"stellar-base": "^0.10.0",
"toml": "^2.3.0",
"urijs": "1.19.1"
}
Expand Down
3 changes: 3 additions & 0 deletions test/integration/server_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe("integration tests", function () {
.addOperation(StellarSdk.Operation.accountMerge({
destination: operation.funder
}))
.setTimeout(StellarSdk.TimeoutInfinite)
.build();

tx.sign(master);
Expand All @@ -44,6 +45,7 @@ describe("integration tests", function () {
destination: accountId,
startingBalance: "1"
}))
.setTimeout(StellarSdk.TimeoutInfinite)
.build();

tx.sign(master);
Expand Down Expand Up @@ -71,6 +73,7 @@ describe("integration tests", function () {
destination: StellarSdk.Keypair.random().publicKey(),
startingBalance: "1"
}))
.setTimeout(StellarSdk.TimeoutInfinite)
.build();

tx.sign(master);
Expand Down
1 change: 1 addition & 0 deletions test/unit/horizon_path_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ describe("horizon path tests", function () {
asset: StellarSdk.Asset.native(),
amount: "100.50"
}))
.setTimeout(StellarSdk.TimeoutInfinite)
.build();
fakeTransaction.sign(keypair);
let tx = encodeURIComponent(fakeTransaction.toEnvelope().toXDR().toString("base64"));
Expand Down
1 change: 1 addition & 0 deletions test/unit/server_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ describe("server.js tests", function () {
asset: StellarSdk.Asset.native(),
amount: "100.50"
}))
.setTimeout(StellarSdk.TimeoutInfinite)
.build();
transaction.sign(keypair)

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4998,9 +4998,9 @@ statuses@~1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087"

stellar-base@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/stellar-base/-/stellar-base-0.9.0.tgz#03a4d71c9bfe49f0c54afd4a8f34517ed49c0924"
stellar-base@^0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/stellar-base/-/stellar-base-0.10.0.tgz#4c661ede88f7d781411ca63c3a18042f4ac86658"
dependencies:
base32.js "~0.1.0"
bignumber.js "^4.0.0"
Expand Down

0 comments on commit e87c3b9

Please sign in to comment.