Skip to content

Commit e87c3b9

Browse files
committed
0.12.0
1 parent 6db6435 commit e87c3b9

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
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.
44

5+
## 0.12.0
6+
7+
* Update `stellar-base` to `0.10.0`:
8+
* **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.
9+
* Fixed decoding empty `homeDomain`.
10+
* Add `offset` parameter to TradeAggregationCallBuilder to reflect new changes to the endpoint in horizon-0.15.0
11+
512
## 0.11.0
613

714
* Update `js-xdr` (by updating `stellar-base`) to support unmarshaling non-utf8 strings.
815
* 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).
9-
* Add `offset` parameter to TradeAggregationCallBuilder to reflect new changes to the endpoint in horizon-0.15.0
1016

1117
## 0.10.3
1218

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stellar-sdk",
3-
"version": "0.11.0",
3+
"version": "0.12.0",
44
"description": "stellar-sdk is a library for working with the Stellar Horizon server.",
55
"main": "lib/index.js",
66
"scripts": {
@@ -84,7 +84,7 @@
8484
"event-source-polyfill": "0.0.12",
8585
"eventsource": "^1.0.5",
8686
"lodash": "^4.17.10",
87-
"stellar-base": "^0.9.0",
87+
"stellar-base": "^0.10.0",
8888
"toml": "^2.3.0",
8989
"urijs": "1.19.1"
9090
}

test/integration/server_test.js

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe("integration tests", function () {
2727
.addOperation(StellarSdk.Operation.accountMerge({
2828
destination: operation.funder
2929
}))
30+
.setTimeout(StellarSdk.TimeoutInfinite)
3031
.build();
3132

3233
tx.sign(master);
@@ -44,6 +45,7 @@ describe("integration tests", function () {
4445
destination: accountId,
4546
startingBalance: "1"
4647
}))
48+
.setTimeout(StellarSdk.TimeoutInfinite)
4749
.build();
4850

4951
tx.sign(master);
@@ -71,6 +73,7 @@ describe("integration tests", function () {
7173
destination: StellarSdk.Keypair.random().publicKey(),
7274
startingBalance: "1"
7375
}))
76+
.setTimeout(StellarSdk.TimeoutInfinite)
7477
.build();
7578

7679
tx.sign(master);

test/unit/horizon_path_test.js

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ describe("horizon path tests", function () {
6767
asset: StellarSdk.Asset.native(),
6868
amount: "100.50"
6969
}))
70+
.setTimeout(StellarSdk.TimeoutInfinite)
7071
.build();
7172
fakeTransaction.sign(keypair);
7273
let tx = encodeURIComponent(fakeTransaction.toEnvelope().toXDR().toString("base64"));

test/unit/server_test.js

+1
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ describe("server.js tests", function () {
476476
asset: StellarSdk.Asset.native(),
477477
amount: "100.50"
478478
}))
479+
.setTimeout(StellarSdk.TimeoutInfinite)
479480
.build();
480481
transaction.sign(keypair)
481482

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -4998,9 +4998,9 @@ statuses@~1.4.0:
49984998
version "1.4.0"
49994999
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087"
50005000

5001-
stellar-base@^0.9.0:
5002-
version "0.9.0"
5003-
resolved "https://registry.yarnpkg.com/stellar-base/-/stellar-base-0.9.0.tgz#03a4d71c9bfe49f0c54afd4a8f34517ed49c0924"
5001+
stellar-base@^0.10.0:
5002+
version "0.10.0"
5003+
resolved "https://registry.yarnpkg.com/stellar-base/-/stellar-base-0.10.0.tgz#4c661ede88f7d781411ca63c3a18042f4ac86658"
50045004
dependencies:
50055005
base32.js "~0.1.0"
50065006
bignumber.js "^4.0.0"

0 commit comments

Comments
 (0)