github hiero-ledger/hiero-sdk-js v2.63.0

latest releases: v2.84.0-beta.1, v2.83.0, v2.83.0-beta.3...
13 months ago

What's changed

This release introduces various enhancements to the Hedera JavaScript SDK, including improved browser support, extended ECDSA functionality, better error handling, and internal optimizations.

Enhancements

  • UMD Browser Support: Added a UMD example demonstrating usage of the SDK in browser environments. #3028

  • PrivateKey Recovery ID Calculation: Added PrivateKey.getRecoveryId(r, s, message) method to enable recovery ID (v) calculation from raw ECDSA signature components. This addition allows developers to compute the recovery ID directly, enabling full support for signing and serializing Ethereum transactions (including EIP-155) within the SDK. It enhances compatibility with external Ethereum clients and tooling. #3021

  • Ethereum Address Example: Added an example demonstrating how to sign and recover Ethereum addresses using the Hedera SDK, Ethereum-style signature hashing (EIP-191), and the ecrecover contract. #3029

  • Dynamic Protobuf Generation: Implemented dynamic generation of RequestType.js and Status.js by parsing protobuf definitions. #3018

  • Improved Query Reliability: Enhanced reliability of getReceiptQuery and getRecordQuery, which are single-node requests. These queries now retry up to 10 times with a delay when encountering node-specific issues (e.g., "All nodes are unhealthy") to handle transient network or node health problems more gracefully. #3038

  • Internal Code Optimization: Extracted _makePaymentTransaction function used by both Query and CostQuery for initiating payment transactions. #3017

Bug Fixes

  • TopicUpdateTransaction Bug: Fixed a bug in TopicUpdateTransaction related to the handling of feeExemptKeys and customFees properties when they are unset. Previously, the transaction would include empty arrays for these fields, unintentionally clearing existing values on the topic. This change ensures that unset properties are treated as null, preserving existing topic configurations. #3031

Removed

  • Removed MyHbarWallet gRPC web proxies. #3053

Documentation

  • Updated README.md to reflect support for the UMD package. #3028

Don't miss a new hiero-sdk-js release

NewReleases is sending notifications on new releases.