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

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

What's Changed

This release adds getter methods for accessing the shard and realm values set in the client. The Client constructor and Client.forMirrorNetwork now support shard and realm as parameters, improving configurability. When using a custom network, shard and realm are automatically inferred, and validation ensures all nodes share the same values, preventing misconfiguration.

Added

  • Getter for shard set in the client
  • Getter for realm set in the client

Changed

  • ClientConfiguration type updated: The Client constructor now accepts shard and realm parameters directly. #3133
  • Client.forMirrorNetwork now supports two additional arguments: shard and realm. #3133
  • When a custom network is provided in the Client constructor, the shard and realm values are now automatically inferred from the specified network. #3133
  • An error is now thrown if the nodes defined in a custom network are not all in the same shard and realm, enforcing consistency and preventing misconfiguration. #3133

Full Changelog: v2.66.0...v2.67.0

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

NewReleases is sending notifications on new releases.