Skip to content

chore(mcp-cloudflare): Remove unused better-sqlite3 dependency - #1941

Merged
BYK merged 1 commit into
mainfrom
byk/drop-better-sqlite3
Nov 4, 2026
Merged

BYK merged 1 commit into
mainfrom
byk/drop-better-sqlite3

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes better-sqlite3, which is what breaks pnpm install on Node 26: v11.10.0 has no Node 26 prebuild and fails to compile from source. Then reverts the apps/local engines.node cap from #1933, since that cap only worked around this dependency.

Why it's safe to drop

  • It was declared only in packages/mcp-cloudflare (left over from the early eval scaffolding). No source, config, script, or workflow in the repo imports or references it.
  • mcp-cloudflare runs on Workers. The CLI uses built-in node:sqlite (or node-sqlite3-wasm on older Node), not better-sqlite3.
  • I searched every installed package for references. Nothing in the Workers toolchain mcp-cloudflare uses (wrangler, miniflare, workerd, @cloudflare/* plugins, agents, workers-mcp, vite, vitest) mentions it. The only hit was unstorage, which lists better-sqlite3@^12 as a devDependency, reached through cli-docs/astro.
  • The lockfile diff is removals only: better-sqlite3 and the transitive deps only it used (prebuild-install, bindings, tar-fs, …).

#1933 revert

apps/local/package.json is back to ^20.19.0 || >=22.12.0. With better-sqlite3 gone, Node 26 installs cleanly. Locally on Node 26.13.0, Vercel's install command (pnpm install --force --frozen-lockfile) and the apps/local build both succeed. This PR's sentry-local Vercel preview should confirm the same.

via @BYK.

--

View Session in Sentry

better-sqlite3 was a leftover from early eval scaffolding. Nothing in the
workspace imports it, and mcp-cloudflare runs on Workers. Version 11.10.0
has no Node 26 prebuild and fails to compile there, which broke
pnpm install on Node 26.

With the dependency gone, revert the apps/local engines.node cap from
#1933 so the Vercel sentry-local build can use Node 26 again.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-local Ready Ready Preview Nov 4, 2026 12:40pm UTC

Request Review

@BYK
BYK enabled auto-merge (squash) November 4, 2026 12:45
@BYK
BYK merged commit 19b0e28 into main Nov 4, 2026
42 checks passed
@BYK
BYK deleted the byk/drop-better-sqlite3 branch November 4, 2026 12:48

This branch was successfully deployed

1 active deployment
Preview — 30db8930 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant