-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve header protection ergonomics (breaking change)
Changed the header protection data types for better ergonomics ([#125](#125)). Previously, `()` was used for serialisations that only support protected headers (thus, a single constructor). This release introduces the new single-constructor data type `ProtectedOnly` to replace the use of `()` for this purpose. This is a breaking change and some library users will need to update their code. The `Protection` type has been renamed to `ProtectionOptional`, with the old name retained as a (deprecated) type synonym. The `ProtectionIndicator` class has been renamed to `ProtectionOptionality`, with the old name retained as a (deprecated) type synonym. Added some convenience header and header parameter constructors: `newJWSHeaderProtected`, `newHeaderParamProtected` and `newHeaderParamUnprotected`. Fixes: #125
- Loading branch information
1 parent
c2f6690
commit 230f432
Showing
8 changed files
with
126 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.