Skip to content

chore: drop Deno support and remove @bugsee/deno - #188

Merged
krassx merged 2 commits into
mainfrom
chore/drop-deno
Nov 6, 2026
Merged

krassx merged 2 commits into
mainfrom
chore/drop-deno

Conversation

@krassx

@krassx krassx commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Deno is no longer a supported runtime (owner decision).

Removed

  • @bugsee/deno package
  • umbrella deno entry, exports condition and ./deno subpath (+ parity/lifecycle/server-entries tests)
  • Deno e2e target + entry-deno.ts, Deno.serve scenario branch, CI Setup Deno step, ci-local/test-matrix Deno probes
  • isDeno (@bugsee/util), Deno-only tracker code (createDenoMemoryReader, Deno.Command vm_stat spawn) and tests
  • sample pnpm-workspace overrides, @bugsee/deno lines in pending changesets (and the Deno-only omit-unmeasurable-event-loop-lag changeset)
  • live docs (CLAUDE.md, READMEs, dev-environment, PROGRESS entry)

Kept on purpose

  • protocol RuntimeType 'deno' (backend wire contract / historical data)
  • generic launch seams (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

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>
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too 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.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fe58631b-a2fb-4279-a038-c9489ee24cee
Commits

Reviewing files that changed from the base of the PR and between 5037d0f and f677705.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 149

  • .changeset/app-uptime-context.md
  • .changeset/capture-trace-disk-pressure.md
  • .changeset/delete-legacy-node-samplers.md
  • .changeset/drop-deno-support.md
  • .changeset/gc-event-and-elu-percent.md
  • .changeset/memory-limit-gate.md
  • .changeset/node-disk-space.md
  • .changeset/node-process-tracker.md
  • .changeset/node-runtime-traces.md
  • .changeset/node-storage-tracker.md
  • .changeset/omit-unavailable-elu.md
  • .changeset/omit-unmeasurable-event-loop-lag.md
  • .changeset/ram-system-free-macos-vmstat.md
  • .changeset/ram-system-free-semantics.md
  • .changeset/spec-zero-vs-omit.md
  • .github/workflows/ci.yml
  • CLAUDE.md
  • README.md
  • dev-packages/packaging-guard/package.json
  • dev-packages/packaging-guard/src/adapter-export-parity.test.ts
  • docs/PROGRESS.md
  • docs/dev-environment.md
  • docs/implementation-standards.md
  • packages/bugsee/README.md
  • packages/bugsee/package.json
  • packages/bugsee/src/deno.ts
  • packages/bugsee/src/export-parity.test-d.ts
  • packages/bugsee/src/export-parity.test.ts
  • packages/bugsee/src/index.deno.test.ts
  • packages/bugsee/src/index.deno.ts
  • packages/bugsee/src/lifecycle-exports.test.ts
  • packages/bugsee/src/node.ts
  • packages/bugsee/src/public-surface.test-d.ts
  • packages/bugsee/src/relaunch-options.test.ts
  • packages/bugsee/src/server-entries.test.ts
  • packages/bugsee/src/server-launch.ts
  • packages/bugsee/src/wire.ts
  • packages/bun/src/launch.ts
  • packages/capture/README.md
  • packages/capture/src/absolutize-url.test.ts
  • packages/capture/src/absolutize-url.ts
  • packages/capture/src/capture-state-producer.ts
  • packages/capture/src/network-provider.test.ts
  • packages/core/README.md
  • packages/core/src/client.ts
  • packages/core/src/relaunch-timer.test.ts
  • packages/core/src/stack.ts
  • packages/deno/LICENSE
  • packages/deno/README.md
  • packages/deno/package.json
  • packages/deno/src/deno-serve-interceptor.test.ts
  • packages/deno/src/deno-serve-interceptor.ts
  • packages/deno/src/environment.test.ts
  • packages/deno/src/environment.ts
  • packages/deno/src/index.exports.test.ts
  • packages/deno/src/index.ts
  • packages/deno/src/launch.test.ts
  • packages/deno/src/launch.ts
  • packages/deno/src/local-variables-gate.test.ts
  • packages/deno/src/relaunch.test.ts
  • packages/deno/src/relaunch.ts
  • packages/deno/tsconfig.json
  • packages/deno/tsup.config.ts
  • packages/deno/vitest.config.ts
  • packages/e2e-kit/src/collector.ts
  • packages/elysia/README.md
  • packages/elysia/src/index.ts
  • packages/express/README.md
  • packages/fastify/README.md
  • packages/hapi/README.md
  • packages/hapi/src/index.ts
  • packages/hono/README.md
  • packages/hono/src/index.ts
  • packages/hono/src/middleware.ts
  • packages/instrumentation-tests/README.md
  • packages/instrumentation-tests/app/browser-scenario.ts
  • packages/instrumentation-tests/app/entry-deno.ts
  • packages/instrumentation-tests/app/entry-umbrella.ts
  • packages/instrumentation-tests/app/scenario.ts
  • packages/instrumentation-tests/package.json
  • packages/instrumentation-tests/test/durable-object-tenants.e2e.ts
  • packages/instrumentation-tests/test/edge.e2e.ts
  • packages/instrumentation-tests/test/instrumentation.e2e.ts
  • packages/instrumentation-tests/test/local-variables.e2e.ts
  • packages/instrumentation-tests/test/opentelemetry.e2e.ts
  • packages/instrumentation-tests/test/runtimes.ts
  • packages/instrumentation-tests/test/tsup-node-protocol.e2e.ts
  • packages/instrumentation-tests/test/umbrella-conditions.e2e.ts
  • packages/instrumentation-tests/test/umbrella.e2e.ts
  • packages/instrumentation-tests/vitest.config.ts
  • packages/integration-shims/src/index.test.ts
  • packages/integration-shims/src/index.ts
  • packages/koa/README.md
  • packages/koa/src/index.ts
  • packages/node-utils/README.md
  • packages/node-utils/src/batched-fs-chunk-storage.test.ts
  • packages/node-utils/src/bundle-store.ts
  • packages/node-utils/src/capture-ring-drainer.ts
  • packages/node-utils/src/capture-ring-writer.ts
  • packages/node-utils/src/fs-chunk-storage.ts
  • packages/node-utils/src/worker-ring-worker.ts
  • packages/node/README.md
  • packages/node/src/data-location.ts
  • packages/node/src/event-loop-watchdog.ts
  • packages/node/src/fetch-server-wrap.test.ts
  • packages/node/src/fetch-server-wrap.ts
  • packages/node/src/http-server-interceptor.ts
  • packages/node/src/launch.test.ts
  • packages/node/src/launch.ts
  • packages/node/src/local-variables.test.ts
  • packages/node/src/local-variables.ts
  • packages/node/src/server-instrument.test.ts
  • packages/node/src/server-instrument.ts
  • packages/node/src/system-events.test.ts
  • packages/node/src/system-events.ts
  • packages/node/src/trace-producers.ts
  • packages/protocol/src/upload-contract.test.ts
  • packages/protocol/src/wire.ts
  • packages/trackers/README.md
  • packages/trackers/package.json
  • packages/trackers/src/node/gc-observer.ts
  • packages/trackers/src/node/guarded-event-loop.test.ts
  • packages/trackers/src/node/guarded-event-loop.ts
  • packages/trackers/src/node/index.test.ts
  • packages/trackers/src/node/index.ts
  • packages/trackers/src/node/process-tracker.test.ts
  • packages/trackers/src/node/process-tracker.ts
  • packages/trackers/src/node/runtime-readers.test.ts
  • packages/trackers/src/node/runtime-readers.ts
  • packages/trackers/src/node/storage-tracker.ts
  • packages/trackers/src/node/vm-stat.test.ts
  • packages/trackers/src/node/vm-stat.ts
  • packages/util/src/env.test.ts
  • packages/util/src/env.ts
  • packages/util/src/index.test.ts
  • packages/util/src/index.ts
  • samples/angular-spa/pnpm-workspace.yaml
  • samples/browser-vanilla/pnpm-workspace.yaml
  • samples/express-api/pnpm-workspace.yaml
  • samples/fastify-api/pnpm-workspace.yaml
  • samples/node-service/pnpm-workspace.yaml
  • samples/node-service/scenarios.md
  • samples/react-spa/pnpm-workspace.yaml
  • samples/solid-spa/pnpm-workspace.yaml
  • samples/svelte-spa/pnpm-workspace.yaml
  • samples/vue-spa/pnpm-workspace.yaml
  • samples/webpack-sourcemaps/pnpm-workspace.yaml
  • scripts/ci-local.sh
  • scripts/test-matrix.sh

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@claude

claude Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Claude finished @krassx's task in 59s —— View job


Review of PR #188: drop Deno support and remove @bugsee/deno

I read the diff against origin/main, then checked surviving references, callers and the removed code paths. I did not run tests, typecheck or lint. The PR description says you ran them locally, and I haven't verified that.

Findings

1. P3: leftover changesets will ship false Deno claims in the changelog
These changesets still describe Deno behaviour that no longer exists. changeset version copies them verbatim into CHANGELOG.md.

  • .changeset/ram-system-free-macos-vmstat.md:7: "now reported on macOS for Node and Bun and Deno".
  • .changeset/node-runtime-traces.md:8: "Node and Deno only; omitted on Bun". This is now wrong in a way that matters: it implies the V8 heap traces are unavailable on Bun and says nothing about Deno being gone.
  • .changeset/app-uptime-context.md:7: "Node, Bun, Deno, Electron main and the browser". This file isn't touched by the PR.
  • .changeset/gc-event-and-elu-percent.md:10,12,13, .changeset/memory-limit-gate.md:7 and .changeset/omit-unavailable-elu.md: these are accurate as history ("Bun and Deno omit it"). They are harmless but now describe a runtime the package doesn't support.

Fix: scrub "Deno" from the three user-facing sentences above, since the PR already did this for node-process-tracker.md and the other changesets it edited.

2. P3: Deno processes now fall through to the Node path, which has known hazards

  • isNode() in packages/util/src/env.ts no longer excludes Deno.
  • The umbrella no longer has a deno condition. Deno resolves the node condition, so it runs the plain @bugsee/node composition.
  • Per the removed CLAUDE.md notes and the deleted packages/deno/src/local-variables-gate.test.ts, that composition on Deno has two problems:
    • captureLocalVariables: {includeCaught: true} freezes the process during launch.
    • monitorEventLoopDelay never sees a blocked loop, so event_loop_lag reports a healthy loop through a real stall.
  • The SDK now has no code that protects Deno users from either.

This follows from "no longer supported", so I'd accept it. You may still want a one-line note in the changeset or README that Deno isn't supported and the Node entry isn't safe there. The alternative is a cheap guard in @bugsee/node that forces captureLocalVariables off when globalThis.Deno exists.

3. P3: process and release housekeeping

  • packages/deno/package.json was at 0.1.0-beta.5, so it was probably published. This repo can't deprecate it, so if it was published, run npm deprecate @bugsee/deno "…" after merge.
  • The pnpm-lock.yaml diff includes churn unrelated to Deno: peer suffixes such as (postcss@8.5.32), (jiti@2.7.0) and (yaml@2.9.1) were added to the vite, webpack and html-webpack-plugin entries. This looks like a lockfile regenerated with a different resolution. --frozen-lockfile will accept it, but it's noise in a removal PR. Consider regenerating from origin/main's lockfile and removing only the Deno importers.
  • vitest.config.ts:29 still says "spawns real node/bun/deno processes".
  • Minor: see my inline comment on process-tracker.ts:140 (stray ), and canSpawn now has no production caller).

Checked and found fine

  • No remaining @bugsee/deno, isDeno, createDenoMemoryReader or Deno.serve references outside docs, history and changeset prose.
  • isNode() has no other caller that depended on the !isDeno() clause. This is a grep check, not a typecheck.
  • macFree is now simply "vmStat or undefined". On non-Deno runtimes this is identical to before.
  • Keeping protocol RuntimeType 'deno' is consistent with the stated backend wire contract (the schema JSON, upload-contract.test.ts and wire.test-d.ts agree).
  • The deleted omit-unmeasurable-event-loop-lag changeset was Deno-only.
  • The CI changes drop only the Setup Deno step and the deno --version line. Bun setup is intact.

Summary

  1. Overall risk: Low. The change is almost entirely deletion. The only behavioural change is for Deno users, which is the intent.
  2. Merge recommendation: Approve once the changeset text in finding 1 is scrubbed. Findings 2 and 3 are optional, except for the npm deprecation if the package was published.
  3. Most important issues: (1) changelog text that still claims Deno support, and (2) no guard for anyone who still runs the Node entry on Deno.
  4. Positives: The scope is clean and well documented in the PR body. The "kept on purpose" list is sensible. Removing Deno.Command and denoVmStatGranted simplified process-tracker.ts noticeably.

The PR body says the multi-agent review gate required by CLAUDE.md §6 was not run. This comment is a single-reviewer pass and does not replace it.
· branch chore/drop-deno

/** 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`)). */

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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/bun launch, ProcessTracker gates, and the macOS vm_stat child_process.execFile path only lose Deno-only branches. On Node/Bun (Deno undefined) the old macFree path already used vm_stat and never the Deno estimate, so ram_system_free does not change. Protocol RuntimeType 'deno' is correctly kept for the backend/historical wire contract. CI Setup Deno, e2e entry-deno.ts, and @bugsee/deno workspace 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.json exports (the deleted deno condition)

Problem: This suite previously documented that Deno advertises ['deno', 'node']. Removing the deno condition without a replacement means Deno's next match is node → 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 report runtime.type: 'node' with Deno's node-compat version (the identity gotcha this harness was written to catch). Idiomatic Deno.serve() is uninstrumented. Event-loop lag is no longer gated (measuresEventLoopDelay defaults true; Deno's histogram is blind). The GC observer is constructed while blind. The old @bugsee/deno launch also force-disabled captureLocalVariables after ...options because { 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/deno becomes a 404 (loud). The umbrella import does not. @bugsee/deno@0.1.0-beta.4 is still on npm today.

Fix: Keep a deno condition (and ./deno subpath) 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.md

Problem: Public removals have no changeset: @bugsee/deno, umbrella deno / ./deno, isDeno (@bugsee/util), createDenoMemoryReader / createDenoExecFile / denoVmStatGranted (@bugsee/trackers/node). Pending changesets still describe those as shipping exports and still name @bugsee/deno as a re-exporter. The Deno-only omit-unmeasurable-event-loop-lag changeset was deleted entirely, including its Node-relevant note that monitorEventLoopDelay throwing now omits rather than zeroes.

Impact: changeset version will 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.4 with no deprecation.

Scenario: Next beta changelog is the upgrade guide. A Deno app upgrades @bugsee/bugsee without seeing the break. A tracker consumer follows the ram-system-free notes and imports createDenoMemoryReader / createDenoExecFile — those names are gone from packages/trackers/src/node/index.ts.

Fix: Add a changeset on @bugsee/bugsee, @bugsee/util, and @bugsee/trackers that states the drop. Strip Deno-only API claims from pending changesets. Deprecate the npm package.

P3 Low — Live @bugsee/trackers README still documents the deleted Deno APIs

Location: packages/trackers/README.md:29

Problem: The first sentence of this paragraph was updated to "Node and Bun", but the rest still documents Deno systemMemoryInfo(), Deno.Command spawn, and a createDenoMemoryReader export that index.ts no longer has. This is the published package README.

Fix: Delete the Deno clauses so the README matches the public surface test.


Summary

  1. Overall risk: Low (for Node/Bun). Medium only if existing Deno umbrella users upgrade without a fail-loud break.
  2. 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.
  3. Most important to fix: (1) fail-loud deno export stub + restore the resolution test; (2) a real changeset + npm deprecate @bugsee/deno, and scrub stale API claims from pending changesets.
  4. Positives: Removal is thorough in code and CI (package, interceptors, e2e target, isDeno, Deno vm_stat spawn). Node/Bun behavior is preserved. Keeping RuntimeType: 'deno' is the right call. Live customer READMEs (root, @bugsee/bugsee, @bugsee/node) were updated; historical docs/review/ / docs/research/ were left on purpose.
Open in Web View Automation 

Sent by Cursor Automation: Bugsee code review

Comment thread packages/trackers/README.md Resolved
…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>
@krassx

krassx commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Addressed in f677705:

  • Silent Node resolution on Deno (P2): the umbrella keeps the deno export condition and ./deno subpath, but the module now only throws "Deno is no longer supported". Restored the ['deno','node'] case in umbrella-conditions.e2e.ts and added a unit test. I did not add a Deno guard inside @bugsee/node: with the umbrella stub, the only way to reach the Node build on Deno is importing @bugsee/node directly, which was never supported.
  • Changesets (P2/P3): added drop-deno-support.md (bugsee/util/trackers); removed the Deno claims and deleted-API mentions from the pending changesets.
  • trackers README, stray paren, canSpawn (P3): fixed; canSpawn was Deno-only so it and its test are removed.
  • Lockfile noise: regenerated from origin/main's lockfile with only the Deno importer/entries removed.
  • vitest.config comment: was already updated.
  • Needs a human after merge: npm deprecate @bugsee/deno (I haven't run it).
    Verified: typecheck, lint, cycles, full pnpm test (13239), bugsee/trackers coverage, umbrella-conditions e2e.

@claude

claude Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Claude finished @krassx's task in 39s —— View job


Re-review of PR #188 (after f6777053)

I read the latest commit and the surrounding code. I did not run tests, typecheck or lint.

Earlier findings, now fixed

  • Deno silently resolving the Node entry (claude P3-2, cursor P2): the umbrella keeps the deno condition and ./deno subpath, pointing at a throwing index.deno.ts. The ['deno', 'node'] case is restored in umbrella-conditions.e2e.ts, and tsup.config.ts builds the entry. The condition sits before node in exports.
  • Changesets: the new drop-deno-support.md covers @bugsee/bugsee, @bugsee/util and @bugsee/trackers. grep -ri deno .changeset now finds only that file.
  • trackers/README.md: the Deno clauses are gone.
  • process-tracker.ts: the stray ) is gone, and canSpawn plus its test are removed.
  • Lockfile churn: the commit message says the lockfile now contains only the Deno removals. I did not re-check the lockfile.

New finding (1 inline comment)

P3: the "Deno is no longer supported" message is unreachable for import { launch } from '@bugsee/bugsee' (packages/bugsee/src/index.deno.ts:10)

  • The stub does export {} and then throws at module level. A named import fails at the ESM link step, before the module is evaluated.
  • I reproduced this in Node. The error is SyntaxError: ... does not provide an export named 'launch', not the custom text.
  • The failure is still loud, which is the main goal, but the explanatory text only shows for import * and side-effect imports.
  • The unit test uses a dynamic import() with no named import, so it does not cover this.
  • Fix: export a throwing launch stub (and the other primary names), and test that launch() throws.

Still open (process, not code)

  • Run npm deprecate @bugsee/deno "…" after merge. This repo can't do it, and @bugsee/deno@0.1.0-beta.4 is still on npm.
  • vitest.config.ts:29 still says "spawns real node/bun/deno processes". This is cosmetic.
  • The PR body says the multi-agent review gate from CLAUDE.md §6 was not run.

Summary

  1. Overall risk: Low. The change is almost entirely deletion, and Node and Bun behaviour is unchanged.
  2. Merge recommendation: Approve. The inline P3 is optional polish, and the npm deprecate step is the one thing to do after merge.
  3. Most important fix: make the Deno stub export a throwing launch, so users see the explanatory message.
  4. Positives: the review round was addressed promptly. The fail-loud stub keeps a regression test in the resolution suite. The changesets are now honest about the removals.
    · branch chore/drop-deno

// misbehaviour into an immediate, explained error. It must stay listed BEFORE `node` in package.json
// `exports` (see `test/umbrella-conditions.e2e.ts`).
export {};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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/.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

  1. Overall risk: Low
  2. Merge recommendation: Approve — previous P2s are fixed; no new correctness issues on Node/Bun. Wait for CI on f6777053.
  3. Most important to fix: Nothing in this SHA. After merge: npm deprecate @bugsee/deno with a pointer at Node/Bun/browser.
  4. Positives: The follow-up is exactly the fail-loud design this repo already used for Bun's node alias. Removal of @bugsee/deno, e2e/CI Deno, isDeno, and the Deno.Command vm_stat path is complete in live code. Keeping RuntimeType: 'deno' is the right call.
Open in Web View Automation 

Sent by Cursor Automation: Bugsee code review

@krassx
krassx merged commit c5ed64a into main Nov 6, 2026
@krassx
krassx deleted the chore/drop-deno branch November 6, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant