Skip to content

refactor(apps): drop Deno specific APIs in deno-runtime#41125

Draft
d-gubert wants to merge 4 commits into
chore/deno-runtime-importsfrom
chore/refactor-deno-apis
Draft

refactor(apps): drop Deno specific APIs in deno-runtime#41125
d-gubert wants to merge 4 commits into
chore/deno-runtime-importsfrom
chore/refactor-deno-apis

Conversation

@d-gubert

@d-gubert d-gubert commented Jun 30, 2026

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

Review in cubic

@dionisio-bot

dionisio-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot

changeset-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0396edd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 939fb224-d9f2-41ae-9784-2126f813c1bf

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

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.15%. Comparing base (810b2c5) to head (0396edd).

Additional details and impacted files

Impacted file tree graph

@@                     Coverage Diff                     @@
##           chore/deno-runtime-imports   #41125   +/-   ##
===========================================================
  Coverage                       69.15%   69.15%           
===========================================================
  Files                            3433     3433           
  Lines                          132323   132323           
  Branches                        23075    23095   +20     
===========================================================
  Hits                            91502    91502           
- Misses                          37468    37471    +3     
+ Partials                         3353     3350    -3     
Flag Coverage Δ
unit 70.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

d-gubert and others added 3 commits June 30, 2026 20:17
Reduce the platform-specific surface in deno-runtime by aligning six
drifted files with their canonical node-runtime implementations, ahead
of extracting a shared base runtime:

- messenger/main: use node:events EventEmitter for the RPC response
  observer instead of EventTarget + Custom/ErrorEvent
- parseArgs: use node:util instead of @std/cli (drop dead @std/cli dep)
- BlockBuilder: extend apps-engine BlockBuilder instead of duplicating it
  (enabled by sloppy-imports)
- handleUploadEvents: read uploads via node:fs/promises readFile + Buffer
- logger: implement ILogger with the full accessor surface
- accessors/mod: extract named WithProxy<T> consts

No behavior change intended. deno task test stays green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ntime

Emit the same JSON-RPC notification shape node-runtime uses for
uncaught errors: method is the origin ('uncaughtException' /
'unhandledRejection') and params is [error.stack || error], instead of
the richer { type, message, filename, ... } / { type, reason, timestamp }
objects. The addEventListener registration mechanism stays as the
remaining genuine platform difference.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop the hand-written acorn.d.ts / acorn-walk.d.ts declaration shims and
use the real acorn / acorn-walk package types, matching node-runtime:

- ast/operations.ts, ast/mod.ts: remove @deno-types comments, import the
  real exports (FullAncestorWalkerCallback, AnyNode, Node, ...)
- ast/tests: import acorn types from the package; ast_blocks fixtures
  spread { start, end } to satisfy the real node types
- bump acorn 8.10.0 -> 8.17.0 and acorn-walk 8.2.0 -> 8.3.5 to match the
  versions node-runtime resolves (AnyNode only exists in newer acorn)
- set compilerOptions.strict: false to match node-runtime's tsconfig, as
  the real acorn-walk callback types are looser than the deleted shim

deno task test stays green (21 passed); deno check on the AST files is
clean. No behavior change intended.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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