Packages

jose

6.2.18 · 18 Nov 2026MIT244.7M / weekRepositorynpmAtom feed

Your version

5.0.0

major25 Oct 2023Where it was published

5.10.0 is the newest release of 5.x.

In short

8 breaking3 new7 internal

  • Breaking

    Node.js: return Uint8Array (not a Buffer) from base64url.decode

  • Breaking

    Browser distribution is now built using ES2020 as a target

  • Breaking

    Node.js distribution is now built using ES2022 as a target

  • Breaking

    types: jwtVerify and jwtDecrypt type argument for the resolved KeyLike type is now a second optional type argument following a type for the JWT Claims Set (aka payload)

  • Breaking

    PBES2 Key Management Algorithms' use in decrypt functions now requires the use of the keyManagementAlgorithms option to explicitly opt-in for their use.

  • Breaking

    importJWK "octAsKeyObject" option was removed. importJWK will no longer return CryptoKey or KeyObject for "oct" (octet sequence) JWK key types, it will instead always return a Uint8Array formed from the "k" (Key Value) Parameter regardless of the other JWK Parameters that may be present.

  • Breaking

    End-Of-Life versions of Node.js as of October 2023 are no longer supported. Node.js 18, 20, 21, and future releases are the ones that remain supported.

  • Breaking

    The JWE "zip" (Compression Algorithm) Header Parameter is no longer supported by this JOSE implementation.

Release note

Breaking changes

  • Breaking

    Node.js: return Uint8Array (not a Buffer) from base64url.decode

  • Breaking

    Browser distribution is now built using ES2020 as a target

  • Breaking

    Node.js distribution is now built using ES2022 as a target

  • Breaking

    types: jwtVerify and jwtDecrypt type argument for the resolved KeyLike type is now a second optional type argument following a type for the JWT Claims Set (aka payload)

  • Breaking

    PBES2 Key Management Algorithms' use in decrypt functions now requires the use of the keyManagementAlgorithms option to explicitly opt-in for their use.

  • Breaking

    importJWK "octAsKeyObject" option was removed. importJWK will no longer return CryptoKey or KeyObject for "oct" (octet sequence) JWK key types, it will instead always return a Uint8Array formed from the "k" (Key Value) Parameter regardless of the other JWK Parameters that may be present.

  • Breaking

    End-Of-Life versions of Node.js as of October 2023 are no longer supported. Node.js 18, 20, 21, and future releases are the ones that remain supported.

  • Breaking

    The JWE "zip" (Compression Algorithm) Header Parameter is no longer supported by this JOSE implementation.

Features

  • Add Date as valid input to timestamp setting functions

  • Default to an empty payload in JWT producing constructors

  • types: add optional Generics for JWT verify and decrypt (61bd2a0), closes #568

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.