Skip to content

Commit

Permalink
V0.15.2 (#261)
Browse files Browse the repository at this point in the history
* Update npm publish keys.
* Specify the changes made to the type definitions recently.
* Make Server.transactions / Server.payments return CollectionPages again (fixes #262).
  • Loading branch information
morleyzhi authored Apr 19, 2019
1 parent e30c6f0 commit 47daf92
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ deploy:
- provider: npm
email: [email protected]
api_key:
secure: I6WDNI9HIpGIJ8nygTkTmc2FdHC/d9xEkkBuHKPfeurG+i/6+WebUvhaMfDg+KjlxiKE1Rs6qs9gj8TRrwgT0E8pBNVoYayXB40hrVAX8aaw7bcU75jc+0wJ9P/NYXkgar/wpRaWDov1zoaS+ax/xlVrdElRBWvGzysIvkmjGJw=
secure: nfaQ5hzQnn1knh5AwIqMicA18fe2NpvNDv1NpG7I600UKjFh4zUZg+resbBbyjNcpegO6TnxpnxH8TR6NR9hpuFJb4Slh7PrPaLV00Qdln2wdqp5zQktqXc0azDIy04CsI66exrpIERQWxVLfIRib3zjs/Dds2cfZPR+tHueIig=
skip_cleanup: true
on:
tags: true
Expand Down
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,27 @@
As this project is pre 1.0, breaking changes may happen for minor version bumps.
A breaking change will get clearly marked in this log.

## [v0.15.2](https://github.com/stellar/js-stellar-sdk/compare/v0.15.1...v0.15.2)

- Fix Server.transactions and Server.payments definitions to properly return
collections
- Renew the npm publish key

## [v0.15.1](https://github.com/stellar/js-stellar-sdk/compare/v0.15.0...v0.15.1)

- Add Typescript type definitions (imported from DefinitelyTyped with new
adjustments).
- Add Typescript type definitions (imported from DefinitelyTyped).
- Make these changes to those definitions:
- Add definitions for Server.fetchBaseFee and Server.fetchTimebounds
- CallBuilder: No long always returns CollectionPaged results. Interfaces that
extend CallBuilder should specify whether their response is a collection or
not
- CallBuilder: Add inflation_destination and last_modified_ledger property
- OfferRecord: Fix the returned properties
- TradeRecord: Fix the returned properties
- TradesCallBuilder: Add forAccount method
- TransactionCallBuilder: Add includeFailed method
- Horizon.BalanceLineNative/Asset: Add buying_liabilities /
selling_liabilities properties
- Fix documentation links.

## [v0.15.0](https://github.com/stellar/js-stellar-sdk/compare/v0.14.0...v0.15.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stellar-sdk",
"version": "0.15.1",
"version": "0.15.2",
"description": "stellar-sdk is a library for working with the Stellar Horizon server.",
"main": "./lib/index.js",
"types": "./types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion test/integration/client_headers_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const http = require('http');
const url = require('url');
const port = 3100;

describe('integration tests', function(done) {
describe('integration tests: client headers', function(done) {
if (typeof window !== 'undefined') {
done();
return;
Expand Down
10 changes: 6 additions & 4 deletions test/integration/server_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let axios = require('axios');

describe('integration tests', function() {
describe('integration tests: server', function() {
const TIMEOUT = 20 * 1000;
this.timeout(TIMEOUT);
this.slow(TIMEOUT / 2);
Expand All @@ -12,8 +12,9 @@ describe('integration tests', function() {

before(function(done) {
axios
.get(`${HORIZON}/friendbot?addr=${master.publicKey()}`)
.then(() => done());
.get(`https://friendbot.stellar.org?addr=${master.publicKey()}`)
.then(() => done())
.catch((e) => done(e));
});

after(function(done) {
Expand Down Expand Up @@ -41,7 +42,8 @@ describe('integration tests', function() {

server.submitTransaction(tx).then(() => done());
});
});
})
.catch((e) => done(e));
});

function createNewAccount(accountId) {
Expand Down
6 changes: 4 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ export namespace Server {
CollectionPage<PaymentPathRecord>
> {}
abstract class PaymentCallBuilder extends CallBuilder<
PaymentOperationRecord
CollectionPage<PaymentOperationRecord>
> {
forAccount(accountId: string): this;
forLedger(sequence: string): this;
Expand All @@ -512,7 +512,9 @@ export namespace Server {
forAccount(accountId: string): this;
}

abstract class TransactionCallBuilder extends CallBuilder<TransactionRecord> {
abstract class TransactionCallBuilder extends CallBuilder<
CollectionPage<TransactionRecord>
> {
transaction(transactionId: string): this;
forAccount(accountId: string): this;
forLedger(sequence: string | number): this;
Expand Down

0 comments on commit 47daf92

Please sign in to comment.