Skip to content
Merged
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
1,095 changes: 464 additions & 631 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"globals": "^15.14.0",
"eslint-plugin-react-hooks": "^6.1.1",
"globals": "^17.12.0",
"husky": "^9.1.7",
"knip": "^6.38.0",
"lint-staged": "^16.2.7",
"lint-staged": "^17.6.0",
"prettier": "^3.9.9",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"typescript-eslint": "^8.70.1",
"wrangler": "^4.141.0"
},
Expand All @@ -56,6 +56,9 @@
"overrides": {
"minimatch": "^10.2.5",
"undici": "^7.29.1",
"jsdom": {
"undici": "^8.10.2"
},
"sharp": "^0.35.4",
"lodash-es": "^4.18.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/control-plane/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"@aws-sdk/client-s3": "^3.1141.0",
"@cloudflare/workers-types": "^4.20241230.0",
"@cloudflare/workers-types": "^5.20260926.1",
"@hono/node-server": "^2.1.1",
"@open-inspect/shared": "file:../shared",
"better-auth": "1.6.33",
Expand All @@ -32,7 +32,7 @@
"@types/ws": "^8.18.1",
"@vitest/coverage-v8": "^5.0.2",
"esbuild": "^0.28.2",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"vitest": "^4.1.11",
"wrangler": "^4.141.0"
}
Expand Down
5 changes: 4 additions & 1 deletion packages/control-plane/src/node/socket-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* sockets is never retired underneath them. There is no re-binding.
*/

import { TextDecoder } from "node:util";
import { WebSocket as NodeWebSocket, type RawData } from "ws";
import { WS_CLOSE_TRY_AGAIN_LATER } from "@open-inspect/shared/types/websocket";
import type { Logger } from "../logger";
Expand Down Expand Up @@ -205,8 +206,10 @@ function toBuffer(data: RawData): Buffer {
return data;
}

const UTF8_DECODER = new TextDecoder("utf-8", { ignoreBOM: true });

function toText(data: RawData): string {
return toBuffer(data).toString("utf8");
return UTF8_DECODER.decode(toBuffer(data));
}

/** The frame's bytes as a standalone ArrayBuffer, the shape the Workers runtime delivers. */
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@vitest/coverage-v8": "^5.0.2",
"postcss": "^8.5.28",
"tailwindcss": "^4.3.3",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"unist-util-visit": "^5.0.0",
"vite": "^8.3.1",
"vitest": "^4.1.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/github-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"lint:fix": "eslint src/ --fix"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20241230.0",
"@cloudflare/workers-types": "^5.20260926.1",
"@open-inspect/shared": "file:../shared",
"hono": "^4.13.9",
"zod": "^4.6.5"
},
"devDependencies": {
"@vitest/coverage-v8": "^5.0.2",
"esbuild": "^0.28.2",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"vitest": "^4.1.11"
}
}
4 changes: 2 additions & 2 deletions packages/linear-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"lint:fix": "eslint src/ --fix"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20241230.0",
"@cloudflare/workers-types": "^5.20260926.1",
"@open-inspect/shared": "file:../shared",
"hono": "^4.13.9",
"zod": "^4.6.5"
},
"devDependencies": {
"@vitest/coverage-v8": "^5.0.2",
"esbuild": "^0.28.2",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"vitest": "^4.1.11",
"wrangler": "^4.141.0"
}
Expand Down
1 change: 1 addition & 0 deletions packages/linear-bot/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"rootDir": "src",
"outDir": "dist"
},
"include": ["src/**/*.ts"],
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@types/node": "^24.19.0",
"@vitest/coverage-v8": "^5.0.2",
"esbuild": "^0.28.2",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"vitest": "^4.1.0"
}
}
1 change: 1 addition & 0 deletions packages/mcp-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"rootDir": "src",
"outDir": "dist"
},
"include": ["src/**/*.ts"],
Expand Down
2 changes: 1 addition & 1 deletion packages/opencomputer-infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"devDependencies": {
"@opencomputer/sdk": "^2.1.2",
"esbuild": "^0.28.2",
"typescript": "^5.7.2"
"typescript": "^6.0.3"
}
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"lint:fix": "eslint src/ --fix"
},
"devDependencies": {
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"vitest": "^4.1.11"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ES2022"],
"rootDir": "src",
"types": ["node"],
"outDir": "dist",
"declaration": true,
"declarationMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/slack-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
},
"dependencies": {
"@anthropic-ai/sdk": "^0.128.0",
"@cloudflare/workers-types": "^4.20241230.0",
"@cloudflare/workers-types": "^5.20260926.1",
"@open-inspect/shared": "file:../shared",
"hono": "^4.13.9",
"zod": "^4.6.5"
},
"devDependencies": {
"@vitest/coverage-v8": "^5.0.2",
"esbuild": "^0.28.2",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"vitest": "^4.1.11",
"wrangler": "^4.141.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel-infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"devDependencies": {
"esbuild": "^0.28.2",
"typescript": "^5.7.2"
"typescript": "^6.0.3"
}
}
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
"@types/react-dom": "^19.0.3",
"@vitest/coverage-v8": "^5.0.2",
"autoprefixer": "^10.6.1",
"jsdom": "^28.1.0",
"jsdom": "^30.1.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[blocking] jsdom 30 declares undici: ^8.10.2, but the root package.json override forces undici: ^7.29.1 across the dependency tree. A clean npm ci installs Undici 7.30.0 for jsdom, and JSDOM.fromURL() against a local HTTP server never resolves (timed out after 2 seconds). jsdom 30's dispatcher implements Undici 8's onRequestStart/onResponseStart handler API, whereas Undici 7 still calls onConnect/onHeaders. Scope the existing override to the dependencies that need v7 or otherwise allow jsdom to install a compatible, patched Undici 8; then regenerate the lockfile and exercise fromURL/resource loading. This fix spans the root override and lockfile, so there is no safe single-line suggestion.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Applied in dcd79c4. The root overrides now give jsdom its own undici: "jsdom": { "undici": "^8.10.2" }. Everything else keeps ^7.29.1, so miniflare stays on 7.30.0. The lockfile gains exactly one entry, node_modules/jsdom/node_modules/undici 8.11.2, and nothing else in it changes. Verified locally after a clean npm ci: JSDOM.fromURL() against a local HTTP server now resolves; with undici 7.30.0 it timed out, same as your repro. Typecheck, lint, format, build, all unit suites (9,630 tests), control-plane integration (1,531/1,531) and npm audit pass, with no undici advisories.

"postcss": "^8.5.28",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"vitest": "^4.1.11",
"wrangler": "^4.141.0"
},
Expand Down
Loading