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. 🎉