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
shardset in the client - Getter for
realmset in the client
Changed
ClientConfigurationtype updated: TheClientconstructor now acceptsshardandrealmparameters directly. #3133Client.forMirrorNetworknow supports two additional arguments:shardandrealm. #3133- When a custom network is provided in the
Clientconstructor, theshardandrealmvalues 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
shardandrealm, enforcing consistency and preventing misconfiguration. #3133
Full Changelog: v2.66.0...v2.67.0