Skip to content

Commit

Permalink
chore(build): build and changelog for 3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
snowypowers committed Apr 30, 2018
1 parent e7f47ef commit 97e4c01
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 7 deletions.
37 changes: 37 additions & 0 deletions docs/changelog-latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,43 @@ id: changelog-latest
title: Changelog (v3)
---

3.7.0
=====

- RPC

- RPC Client now has the fields `latency` and `lastSeenHeight` and method `ping()`.

```js
import {rpc} from '@cityofzion/neon-js
var client = new rpc.RPCClient(url)
client.ping()
.then(ms => {
console.log(ms) // latency in milliseconds. Max of 2000 (default timeout for ping)
console.log(client.latency) // This is an average of last 5 values retrieved using ping()
console.log(client.lastSeenHeight) // This is filled whenever getBlockCount is called
})
```
- RPC Client now takes an extra argument `config` which exposes the underlying axios instance, allowing users to customize the axios configuration.
- API
- Add attribute and remark for signing empty transactions. Now if you use `doInvoke` for your token transfers, it will automatically setup your transaction to be accepted by the NEO node without the need for any asset inputs.
- `claimGas` now accepts a `claims` property as an override for claims. This behavior is inline with `sendAsset` and `doInvoke` accepting `balance` overrides.
- `getRPCEndpoint` now ensures that the returned endpoint is callable by doing a ping check internally. It will also cache the endpoint to return next time instead of repeatedly pinging every single healthy node.
- Settings
- Settings now contain `timeout` which setups the timeouts for `ping` and all rpc calls
- Fixes
- Fix faulty url in networks config file
- Fix typings for strategy
- Update `neoscan.getMaxClaimAmount` to use `get_unclaimed` endpoint
3.6.2
=====
Expand Down
8 changes: 4 additions & 4 deletions lib/browser.js

Large diffs are not rendered by default.

Binary file modified lib/browser.js.gz
Binary file not shown.
6 changes: 3 additions & 3 deletions lib/index.js

Large diffs are not rendered by default.

Binary file modified lib/index.js.gz
Binary file not shown.
37 changes: 37 additions & 0 deletions website/translated_docs/zh-CN/changelog-latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,43 @@ id: changelog-latest
title: Changelog (v3)
---

3.7.0
=====

- RPC

- RPC Client now has the fields `latency` and `lastSeenHeight` and method `ping()`.

```js
import {rpc} from '@cityofzion/neon-js
var client = new rpc.RPCClient(url)
client.ping()
.then(ms => {
console.log(ms) // latency in milliseconds. Max of 2000 (default timeout for ping)
console.log(client.latency) // This is an average of last 5 values retrieved using ping()
console.log(client.lastSeenHeight) // This is filled whenever getBlockCount is called
})
```
- RPC Client now takes an extra argument `config` which exposes the underlying axios instance, allowing users to customize the axios configuration.
- API
- Add attribute and remark for signing empty transactions. Now if you use `doInvoke` for your token transfers, it will automatically setup your transaction to be accepted by the NEO node without the need for any asset inputs.
- `claimGas` now accepts a `claims` property as an override for claims. This behavior is inline with `sendAsset` and `doInvoke` accepting `balance` overrides.
- `getRPCEndpoint` now ensures that the returned endpoint is callable by doing a ping check internally. It will also cache the endpoint to return next time instead of repeatedly pinging every single healthy node.
- Settings
- Settings now contain `timeout` which setups the timeouts for `ping` and all rpc calls
- Fixes
- Fix faulty url in networks config file
- Fix typings for strategy
- Update `neoscan.getMaxClaimAmount` to use `get_unclaimed` endpoint
3.6.2
=====
Expand Down

0 comments on commit 97e4c01

Please sign in to comment.