Skip to content

feat(cloudflare): Support Cloudflare types v5 & newer wrangler versions#22180

Merged
JPeer264 merged 2 commits into
developfrom
jp/cloudflare-types-5
Jul 13, 2026
Merged

feat(cloudflare): Support Cloudflare types v5 & newer wrangler versions#22180
JPeer264 merged 2 commits into
developfrom
jp/cloudflare-types-5

Conversation

@JPeer264

@JPeer264 JPeer264 commented Jul 10, 2026

Copy link
Copy Markdown
Member

closes #22178
closes JS-2999

I updated the types for our dev packages, but kept the tests on the older version to cross-check compatibility as well for older versions.

In the past I wanted to keep the oldest version in here to not break something by accident, but if we do that, we might miss on potential new features/options, such as the new step.do option, which we wouldn't have passed along. So IMO it is better to keep it latest here and test against old and new versions instead


There are new types within the ExecutionContext, to support older versions where only waitUntil and passThroughOnException were required and the newer one which has more types in it, ExecutionContextCompat was created, that picks the types which were needed before and adds the newer ExecutionContext as well

@JPeer264 JPeer264 self-assigned this Jul 10, 2026
@JPeer264 JPeer264 requested a review from a team as a code owner July 10, 2026 08:06
@JPeer264 JPeer264 requested review from andreiborza and mydea and removed request for a team July 10, 2026 08:06
@linear-code

linear-code Bot commented Jul 10, 2026

Copy link
Copy Markdown

JS-2999

@JPeer264 JPeer264 marked this pull request as draft July 10, 2026 08:47
@JPeer264 JPeer264 removed request for andreiborza and mydea July 10, 2026 08:47
@JPeer264

Copy link
Copy Markdown
Member Author

Put into draft as it seems wrapRequestHandler needs some tweaking

@JPeer264 JPeer264 force-pushed the jp/cloudflare-types-5 branch from 6b77f35 to f676617 Compare July 13, 2026 08:31
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.6 kB - -
@sentry/browser - with treeshaking flags 26.04 kB - -
@sentry/browser (incl. Tracing) 46.35 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.14 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.13 kB - -
@sentry/browser (incl. Tracing, Replay) 85.62 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.26 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.33 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.99 kB - -
@sentry/browser (incl. Feedback) 44.78 kB - -
@sentry/browser (incl. sendFeedback) 32.4 kB - -
@sentry/browser (incl. FeedbackAsync) 37.53 kB - -
@sentry/browser (incl. Metrics) 28.68 kB - -
@sentry/browser (incl. Logs) 28.93 kB - -
@sentry/browser (incl. Metrics & Logs) 29.61 kB - -
@sentry/react 29.39 kB - -
@sentry/react (incl. Tracing) 48.62 kB - -
@sentry/vue 33.03 kB - -
@sentry/vue (incl. Tracing) 48.33 kB - -
@sentry/svelte 27.63 kB - -
CDN Bundle 30 kB - -
CDN Bundle (incl. Tracing) 48.33 kB - -
CDN Bundle (incl. Logs, Metrics) 31.58 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.65 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.82 kB - -
CDN Bundle (incl. Tracing, Replay) 85.84 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.64 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.92 kB - -
CDN Bundle - uncompressed 89.33 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.07 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.03 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 150.05 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 218.76 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.28 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 269.24 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.98 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.93 kB - -
@sentry/nextjs (client) 51.17 kB - -
@sentry/sveltekit (client) 46.8 kB - -
@sentry/core/server 78.42 kB - -
@sentry/core/browser 64.77 kB - -
@sentry/node-core 62.73 kB -0.01% -2 B 🔽
@sentry/node 125.35 kB - -
@sentry/node (incl. diagnostics channel injection) 139.64 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 69.96 kB - -
@sentry/node/light 50.73 kB - -
@sentry/node - without tracing 74.04 kB - -
@sentry/aws-serverless 83.26 kB -0.01% -2 B 🔽
@sentry/cloudflare (withSentry) - minified 181.58 kB +0.06% +107 B 🔺
@sentry/cloudflare (withSentry) 449.49 kB +0.12% +514 B 🔺

View base workflow run

@JPeer264 JPeer264 marked this pull request as ready for review July 13, 2026 11:31
@JPeer264 JPeer264 requested review from a team, andreiborza, isaacs and mydea and removed request for a team July 13, 2026 11:31
@JPeer264 JPeer264 merged commit 5951d2c into develop Jul 13, 2026
892 of 901 checks passed
@JPeer264 JPeer264 deleted the jp/cloudflare-types-5 branch July 13, 2026 12:02
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.

Add @cloudflare/worker-types v5 as peerDependency

2 participants