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