Skip to content

Commit

Permalink
Merge pull request #231 from tonlabs/1.18.0-rc
Browse files Browse the repository at this point in the history
Version 1.18.0
  • Loading branch information
d3p authored Jun 30, 2021
2 parents 5878c0d + b81174e commit 0bcc271
Show file tree
Hide file tree
Showing 24 changed files with 2,158 additions and 244 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All notable changes to this project will be documented in this file.

## [1.18.0] – 2021-06-26

### New
- Iterators in `net` module: robust way to iterate blockchain items (blocks, transactions)
in specified range. See documentation for `create_block_iterator` , `create_transaction_iterator`,
`resume_block_iterator`, `resume_transaction_iterator`, `iterator_next`, `iterator_remove`
functions.
- Library adds `http://` protocol to endpoints `localhost`, `127.0.0.1`, `0.0.0.0` if protocol
isn't specified in config.
- **Debot module**:
- added tests for Json interface.
## [1.17.0] – 2021-06-21

### New
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": [
"packages/*"
],
"version": "1.17.0",
"version": "1.18.0",
"command": {
"version": {
"message": "Release"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/core",
"version": "1.17.0",
"version": "1.18.0",
"description": "TON Client for Java Script",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion packages/core/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ export class CommonBinaryBridge implements BinaryBridge {
this.checkResponseHandler();
const paramsJson = (functionParams === undefined) || (functionParams === null)
? ""
: JSON.stringify(functionParams);
: JSON.stringify(functionParams, (_, value) =>
typeof value === 'bigint'
? (value < Number.MAX_SAFE_INTEGER && value > Number.MIN_SAFE_INTEGER
? Number(value)
: value)
: value);
lib.sendRequest(context, requestId, functionName, paramsJson);
});
}
Expand Down
Loading

0 comments on commit 0bcc271

Please sign in to comment.