Releases: near/near-jsonrpc-client-rs
v0.8.0
v0.7.0
Added
- Added a new example to view contract state (#129)
Fixed
- Fixed doc tests after the recent crate updates (#135)
Other
- (docs) revise crate-level docs (#88)
- (docs) revise README docs (#91)
- (docs) revise module-level docs for RPC methods (#87)
- (docs) document the experimental
tx_status
RPC method (#63) - (docs) document the experimental
genesis_config
RPC method (#64) - (docs) document the
EXPERIMENTAL_protocol_config
RPC method (#65) - (docs) document the
EXPERIMENTAL_changes_in_block
RPC method (#66) - (docs) document the
EXPERIMENTAL_receipt
RPC method (#67) - (docs) document the
query
RPC method (#68) - (docs) document the experimental
validators_ordered
RPC method (#69) - (docs) document the
gas_price
RPC method (#70) - (docs) document the
EXPERIMENTAL_changes
RPC method (#71) - (docs) document the
EXPERIMENTAL_check_tx
RPC method (#72) - (docs) document the
sandbox_fast_forward
RPC method (#75) - (docs) document the
validators
RPC method (#76) - (docs) document the
next_light_client_block
RPC method (#78) - (docs) document the
broadcast_tx_async
RPC method (#79) - (docs) document the
broadcast_tx_commit
RPC method (#80) - (docs) document the
sandbox_patch_state
RPC method (#81) - (docs) document the error types and variants in the
errors
module (#84) - (docs) document the generic
methods::any()
constructor (#89) - [breaking] Bump dependencies (#134)
v0.6.0
v0.5.1
What's changed?
- Updated
borsh
to0.10.2
. #124
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.5.1
Full Changelog: v0.5.0...v0.5.1
🎉 Thanks to @aleksuss for their contributions to this release. 🎉
v0.5.0
What's changed?
Added
ApiKey::new
now accepts byte arrays and byte slices. #119Authorization::bearer
method for token-authenticated requests. #121ApiKey::as_bytes
returns a byte slice of the key without utf-8 validation. #119
Changed
- Updated nearcore dependencies to
0.16.0
, which now requires a MSRV of1.67.1
. #122 ApiKey::new
no longer requres the input of a valid UUID. #119Debug
onApiKey
doesn't reveal the key anymore. #120- The
auth
module is no longer feature gated. #119
Breaking
- Removed the
auth::IntoApiKey
trait, any thing you can get a byte slice from is now a validApiKey
input. #119 - Replaced the
ApiKey::as_str
method withApiKey::to_str
, now returning aResult
. #119 - Replaced the
InvalidApiKey
error withInvalidHeaderValue
re-exported fromhttp
. #119 - Removed
Display
onApiKey
. #117
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.5.0
Full Changelog: v0.4.1...v0.5.0
🎉 Thanks to @anthony-near, @iTranscend and @miraclx for their contributions to this release. 🎉
v0.4.1
What's changed?
- Fixed an issue where an
&RpcMethod
's response was being parsed differently from anRpcMethod
. #114
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.4.1
Full Changelog: v0.4.0...v0.4.1
🎉 Thanks to @miraclx for their contributions to this release. 🎉
v0.4.0
What's changed?
- Updated nearcore dependencies, which now requires a MSRV of
1.64.0
. #100, #110 - Updated other dependencies, with some general improvements. #111
- Added
rustls-tls
feature flag to enablerustls
as an alternative tonative-tls
. #103 - Switched to using
log::debug!
instead oflog::info!
for debug logging. #107 - Fixed
gas_price
RPC method serialization. #73 - Fixed
query
method error deserialization. #82 - Reworked the
JsonRpcError
::handler_error
method. #99 - Moved auth specific logic behind a feature flag. #55
- Added the
methods::to_json()
helper method for visualizing the serialization of the RPC methods. #49
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.4.0
Full Changelog: v0.3.0...v0.4.0
🎉 Thanks to @iTranscend, @joel-u410, @joshuajbouw, @medvedNick and @miraclx for their contributions to this release. 🎉
v0.4.0-beta.0
What's changed?
- Updated nearcore dependencies, fixing a previous breaking change. #100
- Fixed
gas_price
RPC method serialization. #73 - Fixed
query
method error deserialization. #82 - Reworked the
JsonRpcError
::handler_error
method. #99 - Moved auth specific logic behind a feature flag. #55
- Added the
methods::to_json()
helper method for visualizing the serialization of the RPC methods. #49
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.4.0-beta.0
Full Changelog: v0.3.0...v0.4.0-beta.0
v0.3.0
What's changed?
- Dropped generic authentication and added support for custom headers. #47
- Added the
sandbox_fast_forward
RPC Method. #38 - Upgraded
nearcore
crates tov0.12.0
#48 - Executing the examples now allows custom RPC addr specification with interactive server selection. b130118 c5e938a
JsonRpcClient::connect
is now generic over any url-like type.Url
,&str
,String
and&String
are all supported. #35JsonRpcClient
now defaults to theUnauthenticated
state, easing a type specification pain point. #36
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.3.0
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Updated nearcore version to
0.11.0
(near/nearcore#5943). - Fixed
chunk
method serialization. f40ad74 Client::call
no longer consumes the client. 471a53b- Implemented workaround for partially serialized server responses. #29
- Dropped base64 API token support in favor of a generic key-value approach. dd7761b
- Added examples to repo. #32
- Ensured
None
-typed wrapped errors are actual errors (i.e. have all traits attributed with errors, especiallyfmt::Display
). #34
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.2.0
Full Changelog: v0.1.0...v0.2.0