Releases: hiero-ledger/hiero-sdk-js
v2.82.0
What's Changed
This release adds string support for pending airdrop transactions, migrates to ethers v6 to eliminate known security vulnerabilities, updates key dependencies, and fixes a bug in node update transactions.
Enhancements
-
String support for
PendingAirdropId: ThePendingAirdropIdconstructor and setter methods (setSenderId,setReceiverId,setTokenId,setNftId) now accept string inputs in addition to object instances. Strings are converted internally usingfromString(). #3844Usage Example:
const airdropId = new PendingAirdropId({ senderId: "0.0.1234", receiverId: "0.0.5678", tokenId: "0.0.9012", }); // Or using setters airdropId.setSenderId("0.0.1234"); airdropId.setReceiverId("0.0.5678");
-
Migration to ethers v6: Ethers v5 contained transitive dependencies (e.g.
elliptic) with known security vulnerabilities that would not be fixed upstream. Migrating to ethers v6 resolves these entirely. #3870
Bug Fixes
- NodeUpdateTransaction description clearing: Fixed a bug where executing a
NodeUpdateTransactionwithout explicitly setting the description field would inadvertently clear the node's existing description. #3889
Dependency Changes
- Upgraded
bignumber.jsfrom 9.1.1 to 10.0.2. #3807 - Migrated
ethersfrom v5 to v6. #3870 - Upgraded
typescriptfrom 5.7.2 to 5.9.3 (dev dependency). #3871 - Upgraded
@types/nodefrom 24.0.8 to 25.5.0 (dev dependency). #3871
New Contributors
- @Rohanarora17 made their first contribution in #3844
- @AgrimTawani made their first contribution in #3836
- @Aman-Singh-Kushwaha made their first contribution in #3849
- @adi-rajput made their first contribution in #3861
- @parvninama made their first contribution in #3828
Full Changelog: v2.81.0...v2.82.0
v2.81.0
This release includes a fix for inconsistent handling of multiple transaction bodies within the SDK. The update ensures transactions are built and processed consistently, improving reliability when serializing and verifying transactions.
Bug Fixes
- Multiple Transaction Bodies Inconsistency: Fixed an issue where transactions could contain inconsistent or mismatched transaction bodies during processing or serialization. The SDK now ensures a single consistent transaction body is used throughout the transaction lifecycle, preventing unexpected validation or verification errors. #3832
Full Changelog: v2.80.0...v2.81.0
v2.81.0-beta.1
What's Changed
- docs: improve solo quick reference by @venilinvasilev in #3649
- chore: update maintainer guidelines link in MAINTAINERS.md by @jwagantall in #3658
- chore(deps): bump renovatebot/github-action from 44.2.3 to 44.2.6 by @dependabot[bot] in #3655
- chore(deps): bump actions/checkout from 6.0.1 to 6.0.2 by @dependabot[bot] in #3650
- chore(deps): bump actions/setup-java from 5.1.0 to 5.2.0 by @dependabot[bot] in #3651
- chore(deps): bump step-security/harden-runner from 2.14.0 to 2.14.1 by @dependabot[bot] in #3654
- chore(deps): bump actions/setup-node from 6.1.0 to 6.2.0 by @dependabot[bot] in #3636
- fix(TCK): update airdrop method by @mariodimitrovv in #3685
- docs: Good First Issue Initiative by @rwalworth in #3665
- feat(TCK): implement FileContentsResponse endpoint by @mariodimitrovv in #3633
- chore(TCK): update token info query match the java response by @mariodimitrovv in #3694
- chore(deps): bump step-security/conventional-pr-title-action from 3.2.5 to 3.2.6 by @dependabot[bot] in #3695
- chore(deps): bump renovatebot/github-action from 44.2.6 to 46.0.2 by @dependabot[bot] in #3693
- chore(deps): bump step-security/harden-runner from 2.14.1 to 2.14.2 by @dependabot[bot] in #3692
- chore(deps): bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 in /tck by @dependabot[bot] in #3686
- chore(deps): bump next from 15.4.10 to 16.1.6 by @dependabot[bot] in #3677
- chore(deps): bump dotenv from 14.3.2 to 17.2.3 by @dependabot[bot] in #3676
- chore(deps): bump axios from 1.13.2 to 1.13.5 by @dependabot[bot] in #3699
- chore(deps): bump vite from 4.5.14 to 7.3.1 by @dependabot[bot] in #3674
- chore(deps): bump @testing-library/jest-dom from 5.17.0 to 6.9.1 by @dependabot[bot] in #3672
- chore(deps): bump react-native-get-random-values from 1.11.0 to 2.0.0 by @dependabot[bot] in #3679
- chore(deps): bump react and @types/react by @dependabot[bot] in #3675
- fix: build not working on windows by @venilinvasilev in #3691
- chore(deps): bump codecov/codecov-action from 5.0.2 to 5.5.2 by @dependabot[bot] in #3574
- feat(TCK): implement AddressBookQuery endpoint by @mariodimitrovv in #3624
- fix(deps): dependabot support for pnpm workspaces by @PavelSBorisov in #3702
- feat: Add Updated Setup For Windows To Readme by @aceppaluni in #3703
- chore(deps): bump mocha from 10.6.0 to 11.7.5 by @dependabot[bot] in #3729
- chore(deps-dev): bump chromedriver from 142.0.0 to 145.0.1 by @dependabot[bot] in #3727
- chore(deps): bump @testing-library/user-event from 13.5.0 to 14.6.1 by @dependabot[bot] in #3724
- chore(deps): bump chai from 4.3.6 to 6.2.2 by @dependabot[bot] in #3720
- chore(deps): bump express and @types/express by @dependabot[bot] in #3728
- chore(deps-dev): bump nyc from 15.1.0 to 17.1.0 by @dependabot[bot] in #3725
- chore(deps): bump web-vitals from 2.1.4 to 5.1.0 by @dependabot[bot] in #3714
- chore(deps): bump eslint-plugin-mocha from 10.5.0 to 11.2.0 by @dependabot[bot] in #3716
- chore(deps-dev): bump @eslint/js from 9.39.2 to 10.0.1 by @dependabot[bot] in #3717
- chore(deps-dev): bump dpdm from 3.11.0 to 4.0.1 by @dependabot[bot] in #3723
- chore(deps): bump @testing-library/react from 13.4.0 to 16.3.2 by @dependabot[bot] in #3709
- chore(deps-dev): bump globals from 15.15.0 to 17.3.0 by @dependabot[bot] in #3710
- chore(deps): bump react-dom from 18.3.1 to 19.2.4 by @dependabot[bot] in #3718
- chore(deps): bump eslint-plugin-jsdoc from 46.10.1 to 62.5.4 by @dependabot[bot] in #3713
- chore(deps-dev): bump @eslint/compat from 1.4.1 to 2.0.2 by @dependabot[bot] in #3678
- chore(deps-dev): bump jsdom from 27.0.0 to 28.0.0 by @dependabot[bot] in #3715
- chore(deps-dev): bump eslint-config-next from 15.3.3 to 16.1.6 by @dependabot[bot] in #3719
- chore(deps-dev): bump eslint-plugin-deprecation from 2.0.0 to 3.0.0 by @dependabot[bot] in #3707
- chore(deps): bump protobufjs from 7.5.4 to 8.0.0 by @dependabot[bot] in #3721
- chore(deps): bump eslint-plugin-compat from 4.2.0 to 6.1.0 by @dependabot[bot] in #3708
- chore(deps): bump hiero-ledger/hiero-solo-action from 0.16.0 to 0.17.0 by @dependabot[bot] in #3739
- chore(deps): bump renovatebot/github-action from 46.0.2 to 46.1.1 by @dependabot[bot] in #3740
- fix: remove the unnecessary validation #3619 by @GrimNej in #3738
- chore(deps-dev): bump @vitest/coverage-v8 from 3.1.2 to 4.0.18 by @dependabot[bot] in #3726
- feat: allow multiple nodes on record/receipt by @venilinvasilev in #3741
- chore(deps-dev): bump @vitest/browser from 3.1.2 to 4.0.18 by @dependabot[bot] in #3722
- fix(examples): correct error logging in get-account-balance.js by @Rachit753 in #3746
- feat: hip-1195 by @ivaylonikolov7 in #3535
- chore(release): v2.81.0 beta.1 by @ivaylonikolov7 in #3757
New Contributors
- @rwalworth made their first contribution in #3665
- @aceppaluni made their first contribution in #3703
- @GrimNej made their first contribution in #3738
- @Rachit753 made their first contribution in #3746
Full Changelog: v2.80.0...v2.81.0-beta.1
v2.80.0
What's Changed
This release focuses on improving correctness and stability in time handling and node health management, addressing edge cases that could lead to incorrect date decoding and excessive node backoff under high concurrency.
Bug Fixes
-
64-bit Timestamp Overflow: Fixed an issue where
validStartandexpirationTime(Unix seconds represented as 64-bit values) were incorrectly converted usingLong.toInt(). For timestamps greater than2^32−1seconds (e.g., year 2125), this caused overflow and incorrect decoding (e.g., decoding as 1988).ExchangeRateandExpirationTimenow correctly preserve 64-bit values. #3641 -
Node Health Backoff Race Condition: Fixed a race condition in node health handling where concurrent failures could repeatedly increase backoff and mark a node unhealthy for an excessive duration. Backoff is now only increased when the node is healthy, preventing runaway backoff under high concurrency. #3647
Full Changelog: v2.79.0...v2.80.0
v2.80.0-beta.3
What's Changed
- fix(ci): publish workflow typo by @venilinvasilev in #3631
- chore(release): v2.80.0-beta.3 by @venilinvasilev in #3632
Full Changelog: v2.80.0-beta.2...v2.80.0-beta.3
v2.80.0-beta.2
What's Changed
- chore(deps): bump actions/checkout from 5.0.0 to 6.0.1 by @dependabot[bot] in #3562
- chore(deps): bump renovatebot/github-action from 44.2.2 to 44.2.3 by @dependabot[bot] in #3611
- chore(deps): bump dotenv from 16.6.1 to 17.2.3 in /examples by @dependabot[bot] in #3606
- chore(deps): bump express from 4.21.2 to 4.22.0 in /examples/simple_rest_signature_provider by @dependabot[bot] in #3561
- chore(deps-dev): bump chromedriver from 142.0.0 to 143.0.3 by @dependabot[bot] in #3607
- chore(deps): bump next from 15.4.8 to 15.4.10 in /examples/frontend-examples by @dependabot[bot] in #3585
- chore(deps): bump actions/download-artifact from 6.0.0 to 7.0.0 by @dependabot[bot] in #3588
- chore: upgrade prettier from 3.6.2 to 3.7.1 by @lfdt-bot in #3594
- chore(deps): bump actions/setup-node from 5.0.0 to 6.1.0 by @dependabot[bot] in #3565
- chore(deps): bump step-security/conventional-pr-title-action from 3.2.4 to 3.2.5 by @dependabot[bot] in #3473
- chore: upgrade eslint from 9.23.0 to 9.39.1 by @lfdt-bot in #3555
- chore(deps): bump codecov/codecov-action from 5.5.0 to 5.5.1 by @dependabot[bot] in #3342
- chore: upgrade typedoc from 0.25.13 to 0.28.15 by @lfdt-bot in #3598
- chore: security upgrade @hiero-ledger/sdk from 2.79.0-beta.12 to 2.79.0 by @lfdt-bot in #3618
- chore: upgrade express from 4.21.2 to 4.22.1 by @lfdt-bot in #3599
- chore(deps): bump actions/setup-java from 5.0.0 to 5.1.0 by @dependabot[bot] in #3569
- chore(deps-dev): bump eslint-plugin-jsdoc from 46.10.1 to 61.5.0 in /examples by @dependabot[bot] in #3604
- chore(deps-dev): bump eslint-plugin-compat from 4.2.0 to 6.0.2 in /examples by @dependabot[bot] in #3601
- feat(TCK): implement TokenNFTInfoQuery endpoint by @mariodimitrovv in #3617
- feat(TCK): implement ScheduleInfoQuery endpoint by @mariodimitrovv in #3592
- feat(TCK): implement FileInfoQuery endpoint by @mariodimitrovv in #3583
- chore(deps-dev): bump @types/node from 20.19.25 to 25.0.3 in /examples by @dependabot[bot] in #3603
- chore(deps-dev): bump protobufjs-cli from 1.0.2 to 2.0.0 in /packages/proto by @dependabot[bot] in #3605
- feat: integrate solo startup in sdk by @venilinvasilev in #3614
- feat: use pnpm link for linking packages by @venilinvasilev in #3610
- chore(release): v2.80.0-beta.1 by @venilinvasilev in #3628
- chore(release): v2.80.0-beta.1 by @venilinvasilev in #3629
- chore(release): v2.80.0-beta.2 by @venilinvasilev in #3630
Full Changelog: v2.79.0...v2.80.0-beta.2
v2.79.0
What's Changed
- chore(deps): bump renovatebot/github-action from 43.0.17 to 44.0.5 by @dependabot[bot] in #3560
- chore: [StepSecurity] Apply security best practices by @stepsecurity-app[bot] in #3557
- feat(TCK): implement
AccountInfoQueryendpoint by @mariodimitrovv in #3533 - feat: implement ContractCallQuery endpoint by @mariodimitrovv in #3540
- feat(TCK): implement ContractByteCodeQuery endpoint by @mariodimitrovv in #3545
- ci: Update CI to use npmjs OIDC trusted publisher by @rbarker-dev in #3572
- feat(TCK): implement ContractInfoQuery by @mariodimitrovv in #3549
- chore: Add repository field to package.json files by @rbarker-dev in #3575
- chore(deps): bump next from 15.4.7 to 15.4.8 in /examples/frontend-examples by @dependabot[bot] in #3564
- feat: Ethereum Transaction Type 4 by @ivaylonikolov7 in #3558
- chore: release v2.79.0 beta.13 by @ivaylonikolov7 in #3584
- chore(deps): bump actions/upload-artifact from 5.0.0 to 6.0.0 by @dependabot[bot] in #3589
- chore(deps): bump renovatebot/github-action from 44.0.5 to 44.1.0 by @dependabot[bot] in #3587
- chore(deps): bump renovatebot/github-action from 44.1.0 to 44.2.0 by @dependabot[bot] in #3591
- chore(deps): bump step-security/harden-runner from 2.13.1 to 2.14.0 by @dependabot[bot] in #3573
- chore(deps): bump renovatebot/github-action from 44.2.0 to 44.2.2 by @dependabot[bot] in #3600
- test: HIP-1300 by @ivaylonikolov7 in #3559
- docs: improve explanation in transfer-tokens.js by @ChaitanyaChute in #3586
- feat(TCK): implement TokenInfoQuery endpoint by @mariodimitrovv in #3593
- chore: release v2.79.0 by @ivaylonikolov7 in #3615
New Contributors
- @ChaitanyaChute made their first contribution in #3586
Full Changelog: v2.78.0...v2.79.0
v2.79.0-beta.13
What's Changed
- chore(deps): bump renovatebot/github-action from 43.0.17 to 44.0.5 by @dependabot[bot] in #3560
- chore: [StepSecurity] Apply security best practices by @stepsecurity-app[bot] in #3557
- feat(TCK): implement
AccountInfoQueryendpoint by @mariodimitrovv in #3533 - feat: implement ContractCallQuery endpoint by @mariodimitrovv in #3540
- feat(TCK): implement ContractByteCodeQuery endpoint by @mariodimitrovv in #3545
- ci: Update CI to use npmjs OIDC trusted publisher by @rbarker-dev in #3572
- feat(TCK): implement ContractInfoQuery by @mariodimitrovv in #3549
- chore: Add repository field to package.json files by @rbarker-dev in #3575
- chore(deps): bump next from 15.4.7 to 15.4.8 in /examples/frontend-examples by @dependabot[bot] in #3564
- feat: Ethereum Transaction Type 4 by @ivaylonikolov7 in #3558
- chore: release v2.79.0 beta.13 by @ivaylonikolov7 in #3584
Full Changelog: v2.78.0...v2.79.0-beta.13
v2.79.0-beta.9
Full Changelog: v2.79.0-beta.7...v2.79.0-beta.9
v2.79.0-beta.7
What's Changed
- chore(deps): bump renovatebot/github-action from 43.0.17 to 44.0.5 by @dependabot[bot] in #3560
- chore: [StepSecurity] Apply security best practices by @stepsecurity-app[bot] in #3557
- feat(TCK): implement
AccountInfoQueryendpoint by @mariodimitrovv in #3533 - feat: implement ContractCallQuery endpoint by @mariodimitrovv in #3540
- feat(TCK): implement ContractByteCodeQuery endpoint by @mariodimitrovv in #3545
Full Changelog: v2.78.0...v2.79.0-beta.7