Skip to content

v2.0.0

Compare
Choose a tag to compare
@ottokruse ottokruse released this 17 Dec 09:55
· 94 commits to main since this release
f844a1b

Noteworthy changes

  • It's now possible to include the raw JWT in verification errors (#27)
  • Enable tsdoc hints when creating the verifier, to help the user understand the configuration options (#11) :

image

These changes are BREAKING changes for some usage patterns, therefore this release increments the major version number to 2.0.0:

  • To enable tsdoc hints in #11 we refactored various TypeScript types. You'll only notice that, if you were explicitly importing the now refactored types. If you don't know if you did, you probably didn't, in which case this change isn't breaking for you. (All example code from README.md remains valid without any change).
  • As part of #27 we've split out the errors that my be thrown when checking claims. Instead of a generic AssertionError more specific errors are now thrown (e.g. JwtInvalidScopeError). If you weren't explicitly testing for error type (e.g. doing err instance of AssertionError) this change isn't breaking for you.

Full Changelog: v1.0.3...v2.0.0