Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Marinho committed Sep 19, 2016
1 parent 9e283aa commit 297baa2
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 22 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Changelog

## [1.0.0](https://github.com/seegno/bitcoin-core/tree/1.0.0) (2016-03-06)
## [1.1.0](https://github.com/seegno/bitcoin-core/tree/1.1.0) (2016-09-19)
[Full Changelog](https://github.com/seegno/bitcoin-core/compare/v1.0.0...1.1.0)

**Merged pull requests:**

- Add support for bitcoind 0.13 [\#18](https://github.com/seegno/bitcoin-core/pull/18) ([ruimarinho](https://github.com/ruimarinho))
- Simplify Docker setup [\#14](https://github.com/seegno/bitcoin-core/pull/14) ([ruimarinho](https://github.com/ruimarinho))
- Update [email protected] [\#13](https://github.com/seegno/bitcoin-core/pull/13) ([ruimarinho](https://github.com/ruimarinho))
- Improve RPC documentation [\#12](https://github.com/seegno/bitcoin-core/pull/12) ([ruimarinho](https://github.com/ruimarinho))

## [v1.0.0](https://github.com/seegno/bitcoin-core/tree/v1.0.0) (2016-03-06)
**Merged pull requests:**

- Add a better changelog sed [\#10](https://github.com/seegno/bitcoin-core/pull/10) ([ruimarinho](https://github.com/ruimarinho))
Expand Down
2 changes: 1 addition & 1 deletion dist/src/errors/rpc-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RpcError extends _standardError2.default {
Object.defineProperty(this, 'status', {
configurable: true,
enumerable: true,
value,
value: value,
writable: true
});
}
Expand Down
20 changes: 10 additions & 10 deletions dist/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [
* Module dependencies.
*/

var _lodash = require('lodash');

var _lodash2 = _interopRequireDefault(_lodash);

var _parser = require('./parser');

var _parser2 = _interopRequireDefault(_parser);

var _bluebird = require('bluebird');

var _bluebird2 = _interopRequireDefault(_bluebird);

var _requester = require('./requester');

var _requester2 = _interopRequireDefault(_requester);

var _bluebird = require('bluebird');
var _lodash = require('lodash');

var _bluebird2 = _interopRequireDefault(_bluebird);
var _lodash2 = _interopRequireDefault(_lodash);

var _methods = require('./methods');

Expand Down Expand Up @@ -95,7 +95,7 @@ class Client {
let version = _ref.version;

if (!_lodash2.default.has(networks, network)) {
throw new Error(`Invalid network name "${ network }"`, { network });
throw new Error(`Invalid network name "${ network }"`, { network: network });
}

this.agentOptions = agentOptions;
Expand Down Expand Up @@ -124,7 +124,7 @@ class Client {
strictSSL: this.ssl.strict,
timeout: this.timeout
}), { multiArgs: true });
this.requester = new _requester2.default({ unsupported, version });
this.requester = new _requester2.default({ unsupported: unsupported, version: version });
this.parser = new _parser2.default({ headers: this.headers });
}

Expand Down Expand Up @@ -153,12 +153,12 @@ class Client {
if (Array.isArray(input)) {
body = input.map((method, index) => this.requester.prepare({ method: method.method, parameters: method.parameters, suffix: index }));
} else {
body = this.requester.prepare({ method: input, parameters });
body = this.requester.prepare({ method: input, parameters: parameters });
}

return this.request.postAsync({
auth: _lodash2.default.pickBy(this.auth, _lodash2.default.identity),
body,
body: body,
uri: '/'
}).bind(this).then(this.parser.rpc);
}).asCallback(callback);
Expand Down
13 changes: 11 additions & 2 deletions dist/src/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ exports.default = {
abandonTransaction: '>=0.12.0',
addMultiSigAddress: '>=0.1.0',
addNode: '>=0.8.0',
addWitnessAddress: '>=0.13.0',
backupWallet: '>=0.3.12',
clearBanned: '>=0.12.0',
createMultiSig: '>=0.1.0',
createRawTransaction: '>=0.7.0',
createWitnessAddress: '>=0.13.0',
decodeRawTransaction: '>=0.7.0',
decodeScript: '>=0.9.0',
disconnectNode: '>=0.12.0',
Expand All @@ -29,6 +31,7 @@ exports.default = {
estimateSmartPriority: '>=0.12.0',
fundRawTransaction: '>=0.12.0',
generate: '>=0.11.0',
generateToAddress: '>=0.13.0',
getAccount: '>=0.1.0',
getAccountAddress: '>=0.3.18',
getAddedNodeInfo: '>=0.8.0',
Expand All @@ -44,9 +47,12 @@ exports.default = {
getChainTips: '>=0.10.0',
getConnectionCount: '>=0.1.0',
getDifficulty: '>=0.1.0',
getGenerate: '>=0.1.0',
getGenerate: '<0.13.0',
getHashesPerSec: '<0.10.0',
getInfo: '>=0.1.0',
getMempoolAncestors: '>=0.13.0',
getMempoolDescendants: '>=0.13.0',
getMempoolEntry: '>=0.13.0',
getMempoolInfo: '>=0.10.0',
getMiningInfo: '>=0.6.0',
getNetTotals: '>=0.1.0',
Expand All @@ -69,6 +75,7 @@ exports.default = {
help: '>=0.1.0',
importAddress: '>=0.10.0',
importPrivKey: '>=0.6.0',
importPrunedFunds: '>=0.13.0',
importPubKey: '>=0.12.0',
importWallet: '>=0.9.0',
keypoolRefill: '>=0.1.0',
Expand All @@ -85,15 +92,17 @@ exports.default = {
move: '>=0.3.18',
ping: '>=0.9.0',
prioritiseTransaction: '>=0.10.0',
removePrunedFunds: '>=0.13.0',
sendFrom: '>=0.3.18',
sendMany: '>=0.3.21',
sendRawTransaction: '>=0.7.0',
sendToAddress: '>=0.1.0',
setAccount: '>=0.1.0',
setBan: '>=0.12.0',
setGenerate: '>=0.1.0',
setGenerate: '<0.13.0',
setTxFee: '>=0.3.22',
signMessage: '>=0.5.0',
signMessageWithPrivKey: '>=0.13.0',
signRawTransaction: '>=0.7.0',
stop: '>=0.1.0',
submitBlock: '>=0.7.0',
Expand Down
12 changes: 6 additions & 6 deletions dist/src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [
* Module dependencies.
*/

var _lodash = require('lodash');

var _lodash2 = _interopRequireDefault(_lodash);

var _rpcError = require('./errors/rpc-error');

var _rpcError2 = _interopRequireDefault(_rpcError);

var _lodash = require('lodash');

var _lodash2 = _interopRequireDefault(_lodash);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
Expand Down Expand Up @@ -78,13 +78,13 @@ class Parser {
}

if (!Array.isArray(body)) {
return get(body, { headers: this.headers, response });
return get(body, { headers: this.headers, response: response });
}

// Batch response parsing where each response may or may not be successful.
const batch = body.map(response => {
try {
return get(response, { headers: false, response });
return get(response, { headers: false, response: response });
} catch (e) {
return e;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/src/requester.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Requester {

return {
id: `${ Date.now() }${ suffix !== undefined ? `-${ suffix }` : '' }`,
method,
method: method,
params: parameters
};
}
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": "bitcoin-core",
"version": "1.0.0",
"version": "1.1.0",
"description": "A modern Bitcoin Core REST and RPC client.",
"keywords": [
"bitcoin",
Expand Down

0 comments on commit 297baa2

Please sign in to comment.