Skip to content

fix(server-sdk): remove legacy node:crypto fallbacks to support edge/workers/isolate runtimes - #704

Open
intrdx wants to merge 4 commits into
livekit:mainfrom
intrdx:fix/web-crypto-only-no-node-crypto
Open

fix(server-sdk): remove legacy node:crypto fallbacks to support edge/workers/isolate runtimes#704
intrdx wants to merge 4 commits into
livekit:mainfrom
intrdx:fix/web-crypto-only-no-node-crypto

Conversation

@intrdx

@intrdx intrdx commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • Use Web Crypto and drop await import('node:crypto') fallbacks in livekit-server-sdk/src/crypto/uuid.ts and livekit-server-sdk/src/crypto/digest.ts
  • Bump engines.node to >=19 from >=18 (global Web Crypto support)

Workers/V8/Edge runtime bundlers fail on a dead-branch import('node:crypto') even when Web Crypto is available at runtime.

Background

This restores a Web-Crypto-only module graph for those helpers so bundlers that disallow Node builtins can use the livekit-server-sdk.

Refs: #121 #122 #349

@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9f99aa7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
livekit-server-sdk Patch
agent-dispatch Patch

Not sure what this means? Click here to learn what changesets are.

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

@CLAassistant

CLAassistant commented Jul 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

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.

2 participants