Repository navigation
chore: drop Deno support and remove @bugsee/deno - #188
Conversation
Deno is no longer a supported runtime. Removes the @bugsee/deno package, the umbrella deno entry/exports condition, the e2e Deno target, the CI Deno setup, the isDeno util, the Deno-only tracker code (Deno.systemMemoryInfo reader, Deno.Command vm_stat spawn), sample overrides and pending-changeset entries. The protocol RuntimeType 'deno' value is kept (backend wire contract). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 149 files, which is 49 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
|
Claude finished @krassx's task in 59s —— View job Review of PR #188: drop Deno support and remove
|
| /** Replaces the `vm_stat` sampler (it is stopped when the memory stage loses its last listener). */ | ||
| vmStat?: VmStatSource; | ||
| /** The spawn function for the default `vm_stat` sampler (test seam; default `child_process.execFile`, or `Deno.Command` on Deno). */ | ||
| /** The spawn function for the default `vm_stat` sampler (test seam; default `child_process.execFile`)). */ |
There was a problem hiding this comment.
P3 Low · Problem: the edited doc comment ends with a stray ) (child_process.execFile`))). Also, with the Deno run-permission gate removed, VmStatOptions.canSpawn in vm-stat.ts:62 has no production caller; only vm-stat.test.ts:347 uses it. Fix: drop the extra paren. Either remove canSpawn and its test, or keep it on purpose and say so in its doc comment, which still reads as a generic spawn policy.
There was a problem hiding this comment.
Stale comment
Deep review: chore/drop-deno (
3c15f07c)The intent is an owner-decided removal of Deno as a supported runtime. I reviewed the surrounding Node/Bun launch, tracker, umbrella
exports, e2e resolution suite, protocol wire type, pending changesets, and the published npm surface — not just the diff.Supported runtimes are clean.
@bugsee/node/@bugsee/bunlaunch,ProcessTrackergates, and the macOSvm_statchild_process.execFilepath only lose Deno-only branches. On Node/Bun (Denoundefined) the oldmacFreepath already usedvm_statand never the Deno estimate, soram_system_freedoes not change. ProtocolRuntimeType'deno'is correctly kept for the backend/historical wire contract. CISetup Deno, e2eentry-deno.ts, and@bugsee/denoworkspace deps are gone; I found no leftover imports that would fail typecheck.The gaps are in how the drop is delivered, not in Node/Bun behavior.
P2 Medium — Deno still resolves the Node umbrella entry
Location:
packages/instrumentation-tests/test/umbrella-conditions.e2e.ts:102(resolution contract);packages/bugsee/package.jsonexports(the deleteddenocondition)Problem: This suite previously documented that Deno advertises
['deno', 'node']. Removing thedenocondition without a replacement means Deno's next match isnode→index.node.ts. The Deno case was deleted rather than converted into a fail-loud assertion.Impact:
import { launch } from '@bugsee/bugsee'on Deno keeps working and silently becomes the Node composition. Sessions reportruntime.type: 'node'with Deno's node-compat version (the identity gotcha this harness was written to catch). IdiomaticDeno.serve()is uninstrumented. Event-loop lag is no longer gated (measuresEventLoopDelaydefaults true; Deno's histogram is blind). The GC observer is constructed while blind. The old@bugsee/denolaunch also force-disabledcaptureLocalVariablesafter...optionsbecause{ includeCaught: true }froze Deno during launch; the Node path does not.Scenario: An app on the documented single-install path (
@bugsee/bugsee) upgrades past this drop. Direct@bugsee/denobecomes a 404 (loud). The umbrella import does not.@bugsee/deno@0.1.0-beta.4is still on npm today.Fix: Keep a
denocondition (and./denosubpath) that throws a clear "Deno is no longer supported" error at import/launch. Restore a['deno', 'node']case in this suite pointing at that stub.npm deprecate @bugsee/deno.P2 Medium — Breaking drop is not in changesets; remaining ones still advertise deleted APIs
Location:
.changeset/(no new file);.changeset/ram-system-free-macos-vmstat.md:7; also.changeset/ram-system-free-semantics.md,.changeset/node-process-tracker.mdProblem: Public removals have no changeset:
@bugsee/deno, umbrelladeno/./deno,isDeno(@bugsee/util),createDenoMemoryReader/createDenoExecFile/denoVmStatGranted(@bugsee/trackers/node). Pending changesets still describe those as shipping exports and still name@bugsee/denoas a re-exporter. The Deno-onlyomit-unmeasurable-event-loop-lagchangeset was deleted entirely, including its Node-relevant note thatmonitorEventLoopDelaythrowing now omits rather than zeroes.Impact:
changeset versionwill not tell consumers Deno was dropped, and will tell them to import symbols this PR deletes. npm will keep serving@bugsee/deno@0.1.0-beta.4with no deprecation.Scenario: Next beta changelog is the upgrade guide. A Deno app upgrades
@bugsee/bugseewithout seeing the break. A tracker consumer follows the ram-system-free notes and importscreateDenoMemoryReader/createDenoExecFile— those names are gone frompackages/trackers/src/node/index.ts.Fix: Add a changeset on
@bugsee/bugsee,@bugsee/util, and@bugsee/trackersthat states the drop. Strip Deno-only API claims from pending changesets. Deprecate the npm package.P3 Low — Live
@bugsee/trackersREADME still documents the deleted Deno APIsLocation:
packages/trackers/README.md:29Problem: The first sentence of this paragraph was updated to "Node and Bun", but the rest still documents Deno
systemMemoryInfo(),Deno.Commandspawn, and acreateDenoMemoryReaderexport thatindex.tsno longer has. This is the published package README.Fix: Delete the Deno clauses so the README matches the public surface test.
Summary
- Overall risk: Low (for Node/Bun). Medium only if existing Deno umbrella users upgrade without a fail-loud break.
- Merge recommendation: Request changes — not because Node/Bun regressed, but because dropping Deno currently recreates the silent-
node-resolution defect this repo already treated as severe, and the changelog/npm story is incomplete.- Most important to fix: (1) fail-loud
denoexport stub + restore the resolution test; (2) a real changeset +npm deprecate @bugsee/deno, and scrub stale API claims from pending changesets.- Positives: Removal is thorough in code and CI (package, interceptors, e2e target,
isDeno, Deno vm_stat spawn). Node/Bun behavior is preserved. KeepingRuntimeType: 'deno'is the right call. Live customer READMEs (root,@bugsee/bugsee,@bugsee/node) were updated; historicaldocs/review//docs/research/were left on purpose.Sent by Cursor Automation: Bugsee code review
…nd docs, drop canSpawn - umbrella keeps the deno export condition + ./deno subpath as a stub that throws (Deno sets node too; dropping it silently resolved the Node build); restore the umbrella-conditions e2e case and add a unit test - add a drop-deno-support changeset; scrub Deno claims from pending changesets - trackers README: drop Deno clauses; remove canSpawn (Deno-only) and a stray paren - lockfile: only the Deno removals (no unrelated peer-suffix churn) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Addressed in f677705:
|
|
Claude finished @krassx's task in 39s —— View job Re-review of PR #188 (after
|
| // misbehaviour into an immediate, explained error. It must stay listed BEFORE `node` in package.json | ||
| // `exports` (see `test/umbrella-conditions.e2e.ts`). | ||
| export {}; | ||
|
|
There was a problem hiding this comment.
P3 Low · Problem: the "clear error" is unreachable for the normal import form. export {} exposes no launch, so import { launch } from '@bugsee/bugsee' fails at the ESM link step, before this module is evaluated and before the throw below runs. I reproduced this with a standalone module in Node: import { launch } from './dep.mjs' where dep.mjs is export {}; throw new Error('custom message') gives SyntaxError: The requested module './dep.mjs' does not provide an export named 'launch', never the custom message.
Impact: a Deno user still gets a loud failure, which is the main goal. But they see a generic "does not provide an export named 'launch'" error, not the "Deno is no longer supported, use Node/Bun" text this file and the changeset promise. The new unit test (index.deno.test.ts) uses a dynamic import() with no named import, so it can't catch this.
Related: the package has "sideEffects": false. A bundler building with the deno condition may drop a bare or unused-namespace import of this module, and the throw with it. That is minor, since named imports still fail on the missing export.
Fix: export the public names as throwing stubs so the link succeeds and the call throws. For example, export function launch(): never { throw unsupported(); }, plus the other primary exports such as relaunch, or at least launch. Keep the module-level throw if you want import * and side-effect imports to fail too. Add a test with const { launch } = await import(...) that expects launch() to throw /Deno is no longer supported/.
There was a problem hiding this comment.
Deep review: chore/drop-deno (f6777053)
Re-review of the Deno drop after f677705 (the previous pass was on 3c15f07c). I read the full two-commit diff against main, then the Node/Bun launch path, ProcessTracker / vm_stat / runtime-readers, umbrella exports + tsup entries, the e2e resolution suite, protocol RuntimeType, pending changesets, adapter re-exports (@bugsee/hono / @bugsee/elysia → @bugsee/bugsee/node), and leftover @bugsee/deno / isDeno references in live code (not historical docs/review/ / docs/research/).
I imported packages/bugsee/src/index.deno.ts with Node 22's type-stripping loader; it rejects with the documented "Deno is no longer supported" error. I did not run the repo test/lint/typecheck gates (no node_modules in this environment). CI on this SHA was still pending at review time. The author reported local typecheck, lint, cycles, pnpm test (13239), coverage, and umbrella-conditions e2e.
Prior findings — all addressed in f677705
P2 silent Node resolution: The umbrella keeps the deno condition (listed before node) and ./deno. packages/bugsee/src/index.deno.ts is a throwing stub; index.deno.test.ts pins the import error; umbrella-conditions.e2e.ts restored { runtime: 'Deno (unsupported: throws)', conditions: ['deno', 'node'], entry: 'index.deno.ts' }.
P2 changesets / deleted APIs: .changeset/drop-deno-support.md covers @bugsee/bugsee, @bugsee/util, and @bugsee/trackers. Pending notes no longer advertise createDenoMemoryReader / createDenoExecFile / denoVmStatGranted / @bugsee/deno.
P3 trackers README, stray ), canSpawn: README matches the Node/Bun surface; canSpawn and its test are gone (it was the Deno run-permission gate).
New findings
None that meet the bar. Node/Bun launch, tracker gates, and the macOS vm_stat child_process.execFile path only lose Deno-only branches. On Node/Bun (Deno undefined) macFree was already vm_stat, so ram_system_free does not change. isNode() no longer excludes Deno; it has no production callers outside env.ts (the bundler-plugin isNode is an AST helper). Protocol 'deno' stays on the wire contract.
Adapter packages that re-export @bugsee/bugsee/node (Hono, Elysia, …) still bypass the stub if someone imports them on Deno. That path already resolved to Node before this PR; the hono comment now says node/bun-hosted only. Not a regression of the drop.
Post-merge (author already noted; not a code blocker): npm deprecate @bugsee/deno. The PR description still lists the umbrella deno entry as Removed; f677705 kept it as the stub.
Summary
- Overall risk: Low
- Merge recommendation: Approve — previous P2s are fixed; no new correctness issues on Node/Bun. Wait for CI on
f6777053. - Most important to fix: Nothing in this SHA. After merge:
npm deprecate @bugsee/denowith a pointer at Node/Bun/browser. - Positives: The follow-up is exactly the fail-loud design this repo already used for Bun's
nodealias. Removal of@bugsee/deno, e2e/CI Deno,isDeno, and theDeno.Commandvm_stat path is complete in live code. KeepingRuntimeType: 'deno'is the right call.
Sent by Cursor Automation: Bugsee code review


Deno is no longer a supported runtime (owner decision).
Removed
@bugsee/denopackagedenoentry,exportscondition and./denosubpath (+ parity/lifecycle/server-entries tests)entry-deno.ts,Deno.servescenario branch, CISetup Denostep,ci-local/test-matrixDeno probesisDeno(@bugsee/util), Deno-only tracker code (createDenoMemoryReader,Deno.Commandvm_stat spawn) and testspnpm-workspaceoverrides,@bugsee/denolines in pending changesets (and the Deno-onlyomit-unmeasurable-event-loop-lagchangeset)Kept on purpose
RuntimeType'deno'(backend wire contract / historical data)measuresEventLoopDelay,measuresGc, …)docs/review/,docs/research/, older design docs (history)Verified locally: typecheck (101 tasks), lint (0 errors), cycles, full
pnpm test(13239 pass), per-package coverage gate for trackers/util/bugsee/node/bun, e2e umbrella/instrumentation/tsup suites on node+bun. The multi-agent review gate was not run.🤖 Generated with Claude Code