Skip to content

v0.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Feb 21:21
1079e0a

What's changed?

Added

  • ApiKey::new now accepts byte arrays and byte slices. #119
  • Authorization::bearer method for token-authenticated requests. #121
  • ApiKey::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 of 1.67.1. #122
  • ApiKey::new no longer requres the input of a valid UUID. #119
  • Debug on ApiKey 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 valid ApiKey input. #119
  • Replaced the ApiKey::as_str method with ApiKey::to_str, now returning a Result. #119
  • Replaced the InvalidApiKey error with InvalidHeaderValue re-exported from http. #119
  • Removed Display on ApiKey. #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. 🎉