Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/livekit-rtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@bufbuild/protobuf": "^1.10.1",
"@types/node": "^22.13.10",
"@types/node": "^24.0.0",

@devin-ai-integration devin-ai-integration Bot Jun 10, 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.

🔍 @types/node v24 may expose APIs unavailable in supported Node versions

Both packages declare "node": ">= 18" in their engines field (package.json, package.json), meaning they claim to support Node 18, 20, 22, etc. However, @types/node@^24 provides type definitions for the Node.js 24 API surface. This means TypeScript will happily allow usage of APIs introduced in Node 20, 22, or 24 (e.g., changes to fs, crypto, stream, or global type changes) without any compiler error — even though those APIs would fail at runtime on Node 18.

This isn't a bug in itself (it's a dev dependency, so it doesn't affect consumers' type resolution), but it does reduce the safety net for contributors: new code could accidentally rely on newer Node APIs that don't exist in Node 18, and TypeScript won't catch it. Typically, @types/node major version should align with the minimum supported Node version to prevent this class of issue.

Open in Devin Review

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

"livekit-server-sdk": "workspace:*",
"prettier": "^3.0.3",
"tsup": "^8.3.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/livekit-server-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@changesets/cli": "^2.27.1",
"@edge-runtime/vm": "^5.0.0",
"@livekit/changesets-changelog-github": "^0.0.4",
"@types/node": "^20.10.1",
"@types/node": "^24.0.0",
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
"happy-dom": "^20.0.0",
"prettier": "^3.0.0",
"tsup": "^8.3.5",
Expand Down
Loading
Loading