Skip to content

v0.8.0 — built-in node:sqlite (requires Node >=24)

Latest

Choose a tag to compare

@waltoss waltoss released this 27 Aug 11:46
· 29 commits to main since this release
2a60403

Fixes npx cc-tap being broken at 0.7.0.

Turbopack externalizes native packages by copying better-sqlite3 to a hashed shim under .next/node_modules/ and rewriting server chunks to require the hashed name. That shim resolves locally but lives outside .next/standalone and is never published — so the installed package failed with Cannot find module 'better-sqlite3-<hash>' from /api/activity.

Changed

  • Both the inspector reader (lib/inspector-db.ts) and the proxy writer (proxy/server.js) now use Node's built-in node:sqlite (DatabaseSync). No native addon means nothing for Turbopack to externalize, no platform-specific .node binary to ship, and no cross-platform lockfile/CI handling.
  • Dropped better-sqlite3 + @types/better-sqlite3; removed serverExternalPackages.
  • Reverted the prepare-standalone shim-rewrite workaround.
  • Suppressed node:sqlite's load-time ExperimentalWarning on every spawned Next server (bin/cli.js) and proxy (lib/proxy-control.ts).

Breaking

  • Requires Node >=24 (node:sqlite is unflagged there). @types/node bumped to ^24.