Skip to content

v0.4.0

Compare
Choose a tag to compare
@lawliet89 lawliet89 released this 06 Nov 06:24
· 100 commits to master since this release
a288794

0.4.0 (2019-11-06)

There are no new feature except for some breaking changes to correct some errors.

Breaking Changes

Octet Misspelling

All misspelling of octect have been corrected to octet. The following
types have been renamed and the old misspelt version is no longer available.

To migrate, you can simply do a case sensitive replace of Octect with Octet and
octect with octet in your code.

The following types have been renamed:

  • jwk::KeyType::Octect 🡒 jwk::KeyType::Octet
  • jwk::KeyType::OctectKeyPair 🡒 jwk::KeyType::OctetKeyPair
  • jwk::OctectKeyType 🡒 jwk::OctetKeyType
  • jwk::OctectKeyType::Octect 🡒 jwk::OctetKeyType::Octet
  • jwk::AlgorithmParameters::OctectKey 🡒 jwk::AlgorithmParameters::OctetKey

The following functions have been renamed:

  • jwk::JWK::new_octect_key 🡒 jwk::JWK::new_octet_key
  • jwk::JWK::octect_key 🡒 jwk::JWK::octet_key
  • jwk::AlgorithmParameters::octect_key 🡒 jwk::AlgorithmParameters::octet_key

Clippy trivially_copy_pass_by_ref lint

This release also fixes the
Clippy trivially_copy_pass_by_ref lint
by modifying function arguments that would have taken a reference of a 1 byte value that
implements Copy to take the value of itself. This mainly affects all struct methods
of the following types

There should be no need to modify your code for this because the types are Copy.

  • jwa::SignatureAlgorithm
  • jwa::KeyManagementAlgorithm
  • jwa::ContentEncryptionAlgorithm
  • jwk::KeyType