near-jsonrpc-client (Rust) 0.5.0
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.5.0
- The newest stable release in the 0.5 line: near-jsonrpc-client (Rust) 0.5.1
- Newest near-jsonrpc-client (Rust): near-jsonrpc-client (Rust) 0.23.0
What's changed?
Added
ApiKey::newnow accepts byte arrays and byte slices. https://github.com/near/near-jsonrpc-client-rs/pull/119Authorization::bearermethod for token-authenticated requests. https://github.com/near/near-jsonrpc-client-rs/pull/121ApiKey::as_bytesreturns a byte slice of the key without utf-8 validation. https://github.com/near/near-jsonrpc-client-rs/pull/119
Changed
- Updated nearcore dependencies to
0.16.0, which now requires a MSRV of1.67.1. https://github.com/near/near-jsonrpc-client-rs/pull/122 ApiKey::newno longer requres the input of a valid UUID. https://github.com/near/near-jsonrpc-client-rs/pull/119DebugonApiKeydoesn't reveal the key anymore. https://github.com/near/near-jsonrpc-client-rs/pull/120- The
authmodule is no longer feature gated. https://github.com/near/near-jsonrpc-client-rs/pull/119
Breaking
- Removed the
auth::IntoApiKeytrait, any thing you can get a byte slice from is now a validApiKeyinput. https://github.com/near/near-jsonrpc-client-rs/pull/119 - Replaced the
ApiKey::as_strmethod withApiKey::to_str, now returning aResult. https://github.com/near/near-jsonrpc-client-rs/pull/119 - Replaced the
InvalidApiKeyerror withInvalidHeaderValuere-exported fromhttp. https://github.com/near/near-jsonrpc-client-rs/pull/119 - Removed
DisplayonApiKey. https://github.com/near/near-jsonrpc-client-rs/pull/117
Crate Link: https://crates.io/crates/near-jsonrpc-client/0.5.0
Full Changelog: https://github.com/near/near-jsonrpc-client-rs/compare/v0.4.1...v0.5.0 馃帀 Thanks to @anthony-near, @iTranscend and @miraclx for their contributions to this release. 馃帀