Skip to content

ref(hono): Consolidate route patching and add clarification comments#20829

Merged
s1gr1d merged 1 commit into
developfrom
sig/hono-apply-patches
May 12, 2026
Merged

ref(hono): Consolidate route patching and add clarification comments#20829
s1gr1d merged 1 commit into
developfrom
sig/hono-apply-patches

Conversation

@s1gr1d
Copy link
Copy Markdown
Member

@s1gr1d s1gr1d commented May 12, 2026

A little bit of refactoring to combine all tests into applyPatches.test.ts and make a better distinction between prototype patching and patching of class fields (also described better in the comments). This will be important for the upcoming changes for instrumenting .request() calls.

Part of #20807

@s1gr1d s1gr1d requested a review from a team as a code owner May 12, 2026 12:50
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 26.84 kB - -
@sentry/browser - with treeshaking flags 25.28 kB - -
@sentry/browser (incl. Tracing) 44.73 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 46.73 kB - -
@sentry/browser (incl. Tracing, Profiling) 49.73 kB - -
@sentry/browser (incl. Tracing, Replay) 84.38 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 73.81 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.08 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 101.71 kB - -
@sentry/browser (incl. Feedback) 44.03 kB - -
@sentry/browser (incl. sendFeedback) 31.66 kB - -
@sentry/browser (incl. FeedbackAsync) 36.77 kB - -
@sentry/browser (incl. Metrics) 27.93 kB - -
@sentry/browser (incl. Logs) 28.08 kB - -
@sentry/browser (incl. Metrics & Logs) 28.75 kB - -
@sentry/react 28.59 kB - -
@sentry/react (incl. Tracing) 47.01 kB - -
@sentry/vue 31.75 kB - -
@sentry/vue (incl. Tracing) 46.59 kB - -
@sentry/svelte 26.86 kB - -
CDN Bundle 29.24 kB - -
CDN Bundle (incl. Tracing) 47.16 kB - -
CDN Bundle (incl. Logs, Metrics) 30.61 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.28 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 69.94 kB - -
CDN Bundle (incl. Tracing, Replay) 84.55 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 85.62 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 90.36 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 91.46 kB - -
CDN Bundle - uncompressed 85.99 kB - -
CDN Bundle (incl. Tracing) - uncompressed 141.47 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 90.18 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 144.93 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 215.01 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 260.18 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 263.62 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 273.87 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 277.31 kB - -
@sentry/nextjs (client) 49.52 kB - -
@sentry/sveltekit (client) 45.23 kB - -
@sentry/node-core 60.84 kB +0.02% +11 B 🔺
@sentry/node 165.98 kB +0.01% +9 B 🔺
@sentry/node - without tracing 73.96 kB +0.01% +6 B 🔺
@sentry/aws-serverless 108.06 kB +0.01% +3 B 🔺
@sentry/cloudflare (withSentry) - minified 170.66 kB - -
@sentry/cloudflare (withSentry) 430.47 kB - -

View base workflow run

}

if (getOriginalFunction(honoBaseProto.route as WrappedFunction)) {
// Already patched: return
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// Already patched: return
// Already patched

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm gonna apply that in the follow-up PR so we don't need another CI run

@s1gr1d s1gr1d merged commit ad47c3c into develop May 12, 2026
50 checks passed
@s1gr1d s1gr1d deleted the sig/hono-apply-patches branch May 12, 2026 13:29
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.

2 participants