Skip to content

refactor(core): remove dependency on @cloudflare/workers-types - #450

Merged
andrewheberle merged 3 commits into
mainfrom
refactor/remove-workers-types
Oct 7, 2026
Merged

andrewheberle merged 3 commits into
mainfrom
refactor/remove-workers-types

Conversation

@andrewheberle

Copy link
Copy Markdown
Owner

No description provided.

andrewheberle and others added 2 commits October 7, 2026 12:38
Replace the ambient Workers types with small structural types (CaDatabase,
CaSecret) and Hono's ExecutionContext so the published declarations no
longer require @cloudflare/workers-types. Wrangler-generated bindings still
satisfy SshCaBindings directly.

Keep Workers as the primary target by asserting in workers-integration that
the package satisfies ExportedHandler<Env> and that Env is assignable to
SshCaBindings, with a type check now run as part of test:workers.

Also add @types/node as an explicit dev dependency, set lib explicitly in
tsconfig, and drop the unused CFArgs type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 636221a5-1653-4ee1-bf29-15790badc18a
  • Autopilot · 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

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

@socket-security

socket-security Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​node@​24.19.11001008196100

View full report

@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 71.32%. Comparing base (87d2e47) to head (1b18258).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/core/src/index.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #450   +/-   ##
=======================================
  Coverage   71.32%   71.32%           
=======================================
  Files          20       20           
  Lines        1123     1123           
  Branches      266      266           
=======================================
  Hits          801      801           
  Misses        297      297           
  Partials       25       25           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

Make clear that the package targets and is tested on Cloudflare Workers
while not relying on Workers-specific APIs, and list what it needs from
the runtime and its bindings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andrewheberle
andrewheberle merged commit a51d80f into main Oct 7, 2026
10 of 11 checks passed
@andrewheberle
andrewheberle deleted the refactor/remove-workers-types branch October 7, 2026 04:45
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