Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Scheduled Release: 24-02-2023
Notable Changes
Added
ApiKey::new
now accepts byte arrays and byte slices. remove uuid api key requirement #119Authorization::bearer
method for token-authenticated requests. introduce Authorization::bearer helper method #121ApiKey::as_bytes
returns a byte slice of the key without utf-8 validation. remove uuid api key requirement #119Changed
0.16.0
, which now requires a MSRV of1.67.1
. updated near-primitives and associated crates #122ApiKey::new
no longer requres the input of a valid UUID. remove uuid api key requirement #119Debug
onApiKey
doesn't reveal the key anymore.ApiKey
type can be debugged without exposing the api key #120auth
module is no longer feature gated. remove uuid api key requirement #119Breaking
auth::IntoApiKey
trait, any thing you can get a byte slice from is now a validApiKey
input. remove uuid api key requirement #119ApiKey::as_str
method withApiKey::to_str
, now returning aResult
. remove uuid api key requirement #119InvalidApiKey
error withInvalidHeaderValue
re-exported fromhttp
. remove uuid api key requirement #119Display
onApiKey
. chore: deprecateDisplay
impl forApiKey
#117