Skip to content

5.0.0 Beta 3

Pre-release
Pre-release
Compare
Choose a tag to compare
@ptoffy ptoffy released this 24 Apr 08:03
· 34 commits to main since this release
6f512cb

What's Changed

  • Change to non-optional function String <-> Data by @zunda-pixel in #156
  • Add initialisers to vendor identity tokens by @ptoffy in #150
  • 🚨Update verify function parameter to use some JWTAlgorithm by @ptoffy in #152
  • 🚨Generic key addition by @ptoffy in #160
  • 🚨Make JWTError Sendable by @ptoffy in #162
  • 🚨Update swift version and readme for beta 3 by @ptoffy #164

Breaking Changes

  • The minimum supported Swift version is now 5.10
  • All algorithm specific key addition functions of JWTKeyCollection have been updated to be algorithm agnostic, for example the JWTKeyCollection.addHS256(key: ...) has been renamed to JWTKeyCollection.addHMAC(key: ..., digestAlgorithm: .sha256) etc.
  • The JWTPayload's verify function now takes some JWTAlgorithm instead of any JWTAlgorithm
  • JWTError.malformedToken was removed in favour of JWTError.malformedToken(reason:)

Full Changelog: 5.0.0-beta.2...5.0.0-beta.3