jose (javascript)
Notes
no notes yet
Release notes
v6.2.5
· recent
> [!NOTE] > Still only staged at npm because of npm's scanner not completing. See https://github.blog/changelog/2026-07-28-npm-publish-time-malware-scanning-and-dual-use-metadata/
Fixes
- compare claim values for falsy validation options (eb86956)
- forward key management parameters for a single JWE recipient (2d4f801)
- handle a zero-length JWE additional authenticated data (16ca398)
- reject a generateKeyPair crv option the algorithm does not imply (76364e9)
- reject an unencoded payload in the JWS Compact Serialization (01d053f)
- reject characters outside the Base64URL alphabet (0ebb971), references #879
- reject duplicate "crit" values when producing (31d60e1)
- reject invalid UTF-8 in JOSE Headers and JWT Claims Sets (5df3fed)
- reject truncated ASN.1 key data (7a16c66)
- surface non-ASCII token segments as JOSE errors (194fe11)
- types: correct JWK and CryptoKey types (62a196d)
- types: correct key resolver and JWT header types (e95f8c4)
- validate the clockTolerance and currentDate options are finite (ab2f18d)
Documentation
- correct subpaths and API documentation (2daec38)
- document consumer-supplied type parameters (9e9f66c)
- stop claiming the JWK "use" parameter is used during import (47a07b2)
- update CHANGELOG.md (fc51bf5)
Refactor
- assert key shape and type from the entry (971057e)
- avoid 32-bit truncation of the AES-CBC-HMAC AAD bit length (1c8c6e9)
- correct swapped JWE unprotected header type error messages (894c498)
- describe each JWS algorithm once (7375028)
- discriminate a key once (0b59a69)
- fold single-consumer modules into their consumers (c2f0ca3)
- generate and import keys from the entry (da69b68)
- keep JWE out of the JWKS and embedded-JWK paths (241dd48)
- keep JWS and JWE out of each other's bundles (2a98564)
- parse a Protected Header in one place (30f72af)
- resolve the content encryption algorithm once (98b50ab)
- tighten key property checks (fe0dc3b)
- types: add discriminated JOSE error types (f7f764e)
- types: add JOSE identifier unions and JWK narrowing (2a20f49)
- types: improve key and result inference (cb25e77)
- types: trim published declaration comments (544f179)
- unify base64 decode errors (3a91833)
- validate each token once rather than once per layer (bbdae09)
- write each algorithm identifier once (73d83b5)