Skip to content

Commit 15a649d

Browse files
authored
Merge pull request #668 from tronprotocol/release/v6.1.0
Release/v6.1.0
2 parents 149828b + ce203f1 commit 15a649d

29 files changed

Lines changed: 2431 additions & 969 deletions

‎.nycrc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"exclude": ["src/protocol", "src/types", "lib/commonjs/protocol", "lib/commonjs/src/protocol", "test", "scripts"]
3+
}

‎CHANGELOG.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
Change Log
22
=========
33

4+
__6.1.0__
5+
6+
## New Features
7+
8+
- **New deserialization support**
9+
Added support for deserializing the following transaction types from `raw_data_hex`:
10+
11+
- `TransferContract`
12+
- `WithdrawBalanceContract`
13+
- `WitnessCreateContract`
14+
15+
- **`trx.getCurrentRefBlockParams`**
16+
Provides a method to retrieve the parameters required for transaction building. Users can pass these parameters to transaction constructors and customize the header information, making transaction creation more convenient.
17+
18+
- **`trx.signTypedData` alias**
19+
Added `trx.signTypedData` as an alias pointing to the legacy `trx._signTypedData` method.
20+
21+
## Changes
22+
23+
- Removed `getHeaderInfo` from the `transactionBuilder` helper library. Use `trx.getCurrentRefBlockParams` instead.
24+
25+
- Moved the `deserializeTransaction` function from `utils/transaction` to `utils/deserializeTx` for better scalability and maintainability of future modules.
26+
27+
- Dependency updates:
28+
- `axios` upgraded from 1.11.0 to 1.12.2
29+
- `puppeteer` upgraded from 24.4.0 to 24.23.0
30+
431
__6.0.4__
532

633
## New Features

‎package-lock.json‎

Lines changed: 1297 additions & 449 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tronweb",
3-
"version": "6.0.4",
3+
"version": "6.1.0",
44
"description": "JavaScript SDK that encapsulates the TRON HTTP API",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -58,14 +58,14 @@
5858
},
5959
"dependencies": {
6060
"@babel/runtime": "7.26.10",
61-
"axios": "1.11.0",
61+
"axios": "1.12.2",
6262
"bignumber.js": "9.1.2",
6363
"ethereum-cryptography": "2.2.1",
6464
"ethers": "6.13.5",
6565
"eventemitter3": "5.0.1",
6666
"google-protobuf": "3.21.4",
6767
"semver": "7.7.1",
68-
"validator": "13.12.0"
68+
"validator": "13.15.20"
6969
},
7070
"devDependencies": {
7171
"@babel/core": "7.26.10",
@@ -117,7 +117,7 @@
117117
"mocha": "11.1.0",
118118
"nyc": "17.1.0",
119119
"prettier": "3.5.3",
120-
"puppeteer": "24.4.0",
120+
"puppeteer": "24.23.0",
121121
"querystring-es3": "0.2.1",
122122
"rimraf": "5.0.10",
123123
"source-map-support": "0.5.21",

0 commit comments

Comments
 (0)