Skip to content

Update dependency jose to v6 - #426

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/jose-6.x
Open

Update dependency jose to v6#426
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/jose-6.x

Conversation

@renovate

@renovate renovate Bot commented Feb 22, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
jose ^5.1.2^6.0.0 age confidence

Release Notes

panva/jose (jose)

v6.2.3

Compare Source

Refactor
  • cleanly reject invalid PBES2 p2c (0cdb851)

v6.2.2

Compare Source

Fixes
  • reject failed decompression with JWEInvalid error (043b181)

v6.2.1

Compare Source

Refactor
  • reorganize internals, less files, smaller footprint (d4231f9)

v6.2.0

Compare Source

Features
  • re-introduce JWE "zip" (Compression Algorithm) Header Parameter support (b13b446)
Documentation
  • clarify return of general jws and jwe (56682b4)

v6.1.3

Compare Source

Refactor
  • avoid export * as for google closure's compiler sake (6303d98), closes #​832

v6.1.2

Compare Source

Refactor

v6.1.1

Compare Source

Documentation
  • add link to RFC9864 (767edde)
  • link to ML-DSA for JOSE (ed4252c)
  • remove mention of Edge Runtime from the readme (94fdde7)
  • update README.md (25098ef)
Refactor
  • eliminate named exports in the source code (f6ae30d)
  • expose setKeyManagementParameters also on a GeneralEncrypt Recipient (16e6b23)
  • faster path for symmetric key checks (a44c2ec)
  • improve en/decoding overheads (daee426)

v6.1.0

Compare Source

Features
  • support AKP JWKs in calculateJwkThumbprint and calculateJwkThumbprintUri (cf2092a)
  • support for the ML-DSA PQC Algorithm Identifiers (25ddce4)

v6.0.13

Compare Source

Refactor
  • more readability in ecdhes.ts (84da9de)
  • update asn1.ts helpers (b4f8fb3)

v6.0.12

Compare Source

Documentation
  • add known caveats to customFetch (02e1f1e)
  • mention the apu/apv parameter names in setKeyManagementParameters (6274d5a)
  • update compact setKeyManagementParameters (2f44381)
  • use GitHub Flavored Markdown for notes and warnings (f6b4ffc)
Refactor
  • createPublicKey is not a constructor (61ded78)
  • update asn1.ts helper functions (b2b611c)

v6.0.11

Compare Source

Fixes
  • typ checking edge-cases when it contains a slash (/) character (31e4baf)

v6.0.10

Compare Source

Refactor
  • removed unused claims methods (74719cf)
  • reorganize jwt claim set utils (1f12d88)

v6.0.9

Compare Source

Documentation
  • add more symbol document, ignore ts-private fields (8b73687)
  • bump typedoc (6163a8b)
  • drop cdnjs links in README (a910038)
  • drop denoland/x links in README and add jsr (3662b9e)
  • fix key export links from docs/README.md (c8edfc2)
Refactor
  • always assume structuredClone is present (f7898a9)
  • hide internal private fields and drop ProduceJWT inheritance (ab18881)
  • less objects when JWE JWT Replicated Header Parameters are used (c763a0e)

v6.0.8

Compare Source

Fixes
  • export [customFetch] symbol from the default entrypoint (1615614), closes #​762

v6.0.7

Compare Source

Documentation
  • improve generate key/secret and import function descriptions (cd06359)
Fixes
  • use [customFetch] when provided to createRemoteJWKSet (35f6509), closes #​760

v6.0.6

Compare Source

Refactor
Documentation
  • add various exported symbol descriptions (3b8ff71)
  • add various exported symbol descriptions (fc4e7da)
  • add various exported symbol descriptions (74f02c8)
  • update base64url function descriptions (03d72c8)

v6.0.5

Compare Source

Refactor
Documentation
  • add various exported symbol descriptions (f52c2ff)

v6.0.4

Compare Source

Refactor
  • optimize base64 with tc39/proposal-arraybuffer-base64 (8a0da69), closes #​752
  • update getSPKI to use crypto.createPublicKey when available (92392a0), closes #​752
  • use Double HMAC pattern for AES-CBC tag comparison (f3ba4c7), closes #​752

v6.0.3

Compare Source

Documentation
  • remove root module tag so that README.md shows up on jsr.io (ee70698)

v6.0.2

Compare Source

Documentation
  • add module tags to all entrypoints (a5687aa)

v6.0.1

Compare Source

Refactor
  • more readability in ecdhes.ts (84da9de)
  • update asn1.ts helpers (b4f8fb3)

v6.0.0

Compare Source

⚠ BREAKING CHANGES
  • The PEMImportOptions type interface is renamed to KeyImportOptions.
  • all builds and bundles now use ES2022 as target
  • createRemoteJWKSet now uses fetch, because of that its Node.js only options.agent property has been removed and new fetch-related options were added
  • drop support for Ed448 and X448
  • drop support for JWK key_ops and CryptoKey usages "(un)wrapKey" and "deriveKey"
  • resolved keys returned as part of verify/decrypt operations (when get key functions are used) are always normalized to either Uint8Array / CryptoKey depending on what's more efficient for the executed operation
  • Key "Type" Generics are removed
  • CJS-style require is now only possible when require(esm) support is present in the Node.js runtime
  • private KeyObject instances can no longer be used for verify operations
  • private KeyObject instances can no longer be used for encryption operations
  • generateSecret, generateKeyPair, importPKCS8, importSPKI, importJWK, and importX509 now yield a CryptoKey instead of a KeyObject in Node.js
  • drop support for Node.js 18.x and earlier
  • runtime-specific npm releases (jose-browser-runtime, jose-node-cjs-runtime, and jose-node-esm-runtime) are no longer maintained or supported
  • removed secp256k1 JWS support
  • removed deprecated experimental APIs
  • removed RSA1_5 JWE support
Features
  • enable CryptoKey and KeyObject inputs in JWK thumbprint functions (6fc9c44)
  • JSON Web Key is now an allowed input everywhere (ebda967)
Refactor
  • always use infered CryptoKey (c4abaa2)
  • backport the Ed25519 JWS Algorithm Identifier support (7a94cb9)
  • drop support for Ed448 and X448 (2fae1c4)
  • drop support for JWK key_ops and CryptoKey usages "(un)wrapKey" and "deriveKey" (ef918be)
  • ensure export functions continue to work with KeyObject inputs (28e9e68)
  • hardcode the cryptoRuntime export since it is now always WebCryptoAPI (e00f273)
  • JWK import extractable default for public keys is now true (64dcebe)
  • PEM import extractable default for public keys is now true (4e9f114)
  • removed deprecated APIs (5352083)
  • removed secp256k1 JWS support (e2b58a5)
  • restructure src/lib and src/runtime now that runtime is fixed (9b236ce)
  • target is now ES2022 everywhere (aa590d5)
  • update importJWK args to align with other import functions (355a2dd)
  • WebCryptoAPI is now the only crypto used (161de46)

v5.10.0

Compare Source

Features

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot

changeset-bot Bot commented Feb 22, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c177ff0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 7718be4 to 5df213d Compare August 10, 2025 13:24
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from 67e5632 to 2c50058 Compare August 21, 2025 17:11
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from 1816661 to fd8587d Compare August 31, 2025 11:21
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 3 times, most recently from 827e138 to 4c738b2 Compare October 2, 2025 00:09
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 4c738b2 to 05e49d0 Compare October 21, 2025 15:45
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from 70f3963 to 9d344d5 Compare November 15, 2025 22:30
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 9d344d5 to 3eec058 Compare November 18, 2025 10:42
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 3eec058 to cb5237e Compare December 2, 2025 18:57
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from dd25909 to e0074ea Compare January 7, 2026 07:36
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from e0074ea to b5b5c5e Compare January 8, 2026 17:25
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from 7d7fb64 to 0e69006 Compare January 23, 2026 17:45
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 0e69006 to 51f63fd Compare February 2, 2026 17:12
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 51f63fd to 7904266 Compare February 12, 2026 15:37

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

"@livekit/protocol": "^1.43.1",
"camelcase-keys": "^9.0.0",
"jose": "^5.1.2"
"jose": "^6.0.0"

@devin-ai-integration devin-ai-integration Bot Feb 12, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 CommonJS users of the server SDK can no longer load it on most Node versions

The token-signing library was upgraded to a version published only as modern ES modules ("jose": "^6.0.0" at packages/livekit-server-sdk/package.json:49) while this package still ships a CommonJS build that loads it with require, so applications that use require fail to start.
Impact: Anyone consuming the SDK from a CommonJS app on a Node.js release without require-of-ESM support gets a hard load error instead of a working SDK.

Mechanism: externalized ESM-only dependency inside the emitted .cjs bundle

The build is configured with bundle: false (tsup.config.ts:9) and emits both cjs and esm formats, so dist/index.cjs contains a literal require('jose'). jose v6 removed its CommonJS build (release notes: "CJS-style require is now only possible when require(esm) support is present in the Node.js runtime"), so require('jose') throws ERR_REQUIRE_ESM on Node.js versions lacking require(esm) (i.e. < 20.19 / < 22.12). The package's exports map still advertises a require condition (packages/livekit-server-sdk/package.json:22-25), so this path is officially supported and now broken.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from 3923612 to ddaff0a Compare February 17, 2026 19:08
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from a43bfcf to ee9d6f5 Compare March 9, 2026 09:57
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from ee9d6f5 to 5bdcc7e Compare March 18, 2026 21:58
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from c49cfbe to d957f75 Compare April 1, 2026 20:57
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from d957f75 to 5a88642 Compare April 8, 2026 20:51
@renovate renovate Bot changed the title fix(deps): update dependency jose to v6 Update dependency jose to v6 Apr 8, 2026
@renovate renovate Bot changed the title Update dependency jose to v6 fix(deps): update dependency jose to v6 Apr 9, 2026
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 5a88642 to 24f43a5 Compare April 29, 2026 10:19

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

🐛 1 issue in files not directly in the diff

🐛 setNotBefore(new Date()) is incompatible with jose v6 which removed Date parameter support (packages/livekit-server-sdk/src/AccessToken.ts:206)

jose v6 removed support for Date instances in setNotBefore(), setExpirationTime(), and setIssuedAt() — these methods now only accept number | string. The call at AccessToken.ts:206 passes new Date(), which is no longer a valid argument after this version bump. This will cause a type error at build time and incorrect behavior at runtime if type checks are bypassed (a Date object would be coerced to its string representation rather than being treated as an epoch timestamp).

View 8 additional findings in Devin Review.

Open in Devin Review

@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 24f43a5 to 265b2a5 Compare May 11, 2026 15:31
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 265b2a5 to 7832d90 Compare May 18, 2026 16:08
@renovate renovate Bot changed the title fix(deps): update dependency jose to v6 Update dependency jose to v6 May 27, 2026
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch 2 times, most recently from dab711d to 50afa76 Compare June 1, 2026 20:58
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 50afa76 to 1b3c03a Compare June 11, 2026 15:46

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 5 new potential issues.

Open in Devin Review

Comment thread packages/livekit-server-sdk/package.json
Comment thread packages/livekit-server-sdk/package.json

@devin-ai-integration devin-ai-integration Bot Jun 11, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 No changeset accompanies this runtime dependency bump

This PR bumps a published runtime dependency of livekit-server-sdk (and effectively raises the minimum Node/module-system requirements for consumers) but adds no entry under .changeset/, so the change won't be released or documented in the package CHANGELOG. Repo release flow is changesets-based (ci:publishchangeset publish); consider adding a changeset (likely minor/major given the ESM-only implications).

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread packages/livekit-server-sdk/package.json
Comment thread packages/livekit-server-sdk/package.json
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 1b3c03a to 8e0ede5 Compare July 3, 2026 11:38
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 8e0ede5 to 8ae1cb6 Compare July 12, 2026 10:12
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from 8ae1cb6 to ecd8f30 Compare July 24, 2026 15:45
@renovate
renovate Bot force-pushed the renovate/jose-6.x branch from ecd8f30 to c177ff0 Compare July 30, 2026 16:08

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Package still claims support for Node 18 although the new dependency requires a newer Node

The declared minimum supported runtime was left at Node 18 ("node": ">=18" at packages/livekit-server-sdk/package.json:65) even though the newly required token-signing library dropped support for Node 18, so installs on Node 18 look supported but can fail at runtime.
Impact: Users on Node 18 get no install-time warning and instead hit runtime failures when creating or verifying tokens.

Mechanism: engines range vs. jose v6 support matrix

jose v6's breaking changes include "drop support for Node.js 18.x and earlier"; its own engines requires Node 20+. Since jose is a runtime dependency of livekit-server-sdk (packages/livekit-server-sdk/package.json:49) and is used directly in packages/livekit-server-sdk/src/AccessToken.ts:202-234, the SDK's engines.node should be raised to match (>=20).

(Refers to line 65)

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants