Skip to content

Commit 593fb63

Browse files
authored
v2.4.0 release (#61)
* feat: export validator utils * chore: bump a version * fix(typescript): represent transaction id as a string (#52) * fix: remove preinstall npm script (#53) * fix: remove preinstall npm script * chore: bump a version * Fix/transaction query (#51) * chore(CHANGELOG): v2.3.0 * fix: health check bugs * fix: health check works only for one random node * fix(healthCheck): logging non existing extra attempt * fix(healthCheck): logging right amount of total nodes * fix(healthCheck): node failed with `undefined` status code * chore: fix grammar * chore: bump a version * docs: update changelog * fix: `api.voteForDelegate()` (#57) * fix(): vote validation for public keys and delegate names * chore(): update JSDoc example * chore: bump a version * chore: clean up * chore(`api.voteForDelegate`): make validation errors more clear * fix: double error message * feat(`voteForDelegate`): validate votes directions * chore(`voteForDelegate`): add JSDoc for `passphrase` param * feat(`voteForDelegate`): check if address is a delegate * chore: bump a version and update CHANGELOG (#60) * chore: bump a version and update CHANGELOG * chore: update dependencies
1 parent f66ba3a commit 593fb63

File tree

6 files changed

+503
-501
lines changed

6 files changed

+503
-501
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## [2.4.0] - 2024-05-30
4+
5+
### Fixed
6+
7+
- Validation of public keys and delegate names for `api.voteForDelegate()` method
8+
9+
### Added
10+
11+
- Check if an address is actually a delegate in `api.voteForDelegate()`
12+
- More validation error messages for `api.voteForDelegate()`
13+
314
## [2.3.1] - 2024-04-26
415

516
### Fixed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adamant-api",
3-
"version": "2.3.1",
3+
"version": "2.4.0",
44
"description": "JavaScript API library for the ADAMANT Blockchain",
55
"keywords": [
66
"adm",
@@ -55,8 +55,8 @@
5555
"posttest": "npm run lint"
5656
},
5757
"dependencies": {
58-
"@liskhq/lisk-cryptography": "4.0.0",
59-
"axios": "^1.6.2",
58+
"@liskhq/lisk-cryptography": "4.1.0",
59+
"axios": "^1.7.2",
6060
"bignumber.js": "^9.1.2",
6161
"bip39": "^3.1.0",
6262
"bitcoinjs-lib": "^6.1.5",
@@ -67,29 +67,29 @@
6767
"ethereumjs-util": "^7.1.5",
6868
"hdkey": "^2.1.0",
6969
"pbkdf2": "^3.1.2",
70-
"socket.io-client": "^4.7.2",
70+
"socket.io-client": "^4.7.5",
7171
"sodium-browserify-tweetnacl": "^0.2.6",
7272
"tiny-secp256k1": "^2.2.3",
7373
"tweetnacl": "^1.0.3"
7474
},
7575
"devDependencies": {
76-
"@commitlint/cli": "^18.4.2",
77-
"@commitlint/config-conventional": "^18.4.2",
78-
"@types/bytebuffer": "^5.0.47",
76+
"@commitlint/cli": "^19.3.0",
77+
"@commitlint/config-conventional": "^19.2.2",
78+
"@types/bytebuffer": "^5.0.49",
7979
"@types/hdkey": "^2.0.3",
8080
"@types/ed2curve": "^0.2.4",
81-
"@types/jest": "^29.5.8",
82-
"@types/node": "20.9.1",
81+
"@types/jest": "^29.5.12",
82+
"@types/node": "20.12.13",
8383
"@types/pbkdf2": "^3.1.2",
8484
"eslint": "^8.54.0",
8585
"eslint-config-google": "^0.14.0",
86-
"eslint-plugin-jest": "^27.6.0",
87-
"husky": "^8.0.3",
86+
"eslint-plugin-jest": "^28.5.0",
87+
"husky": "^9.0.11",
8888
"jest": "^29.7.0",
89-
"prettier": "^3.1.0",
90-
"ts-jest": "^29.1.1",
91-
"gts": "^5.2.0",
92-
"typescript": "~5.1.6"
89+
"prettier": "^3.2.5",
90+
"ts-jest": "^29.1.4",
91+
"gts": "^5.3.0",
92+
"typescript": "~5.1.0"
9393
},
9494
"publishConfig": {
9595
"access": "public"

0 commit comments

Comments
 (0)