Skip to content

fix(tests): pin tsx to 4.21.0 in hono-4 E2E test#20892

Merged
nicohrubec merged 1 commit into
developfrom
awad/fix-e2e-tsx-regression
May 15, 2026
Merged

fix(tests): pin tsx to 4.21.0 in hono-4 E2E test#20892
nicohrubec merged 1 commit into
developfrom
awad/fix-e2e-tsx-regression

Conversation

@logaretm
Copy link
Copy Markdown
Member

@logaretm logaretm commented May 14, 2026

tsx 4.21.1, published today, introduced a regression where its ESM loader transforms .json files into ESM output. This breaks @fastify/otel, which does a CJS require('./package.json') and gets var name="@fastify/otel"... instead of valid JSON, crashing the hono-4 (node) E2E test.

Pinning tsx to 4.21.0 avoids the regression.

tsx 4.21.1 (published 2026-05-14) introduced a regression where its ESM
loader transforms .json files to ESM output. This breaks CJS require()
calls — specifically @fastify/otel's `require('./package.json')` gets
the ESM-transformed content instead of valid JSON, crashing the Node
test variant.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 26.92 kB - -
@sentry/browser - with treeshaking flags 25.35 kB - -
@sentry/browser (incl. Tracing) 44.83 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 46.83 kB - -
@sentry/browser (incl. Tracing, Profiling) 49.82 kB - -
@sentry/browser (incl. Tracing, Replay) 84.45 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 73.92 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.15 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 101.8 kB - -
@sentry/browser (incl. Feedback) 44.11 kB - -
@sentry/browser (incl. sendFeedback) 31.73 kB - -
@sentry/browser (incl. FeedbackAsync) 36.84 kB - -
@sentry/browser (incl. Metrics) 28.01 kB - -
@sentry/browser (incl. Logs) 28.16 kB - -
@sentry/browser (incl. Metrics & Logs) 28.84 kB - -
@sentry/react 28.67 kB - -
@sentry/react (incl. Tracing) 47.1 kB - -
@sentry/vue 31.84 kB - -
@sentry/vue (incl. Tracing) 46.7 kB - -
@sentry/svelte 26.94 kB - -
CDN Bundle 29.31 kB - -
CDN Bundle (incl. Tracing) 47.23 kB - -
CDN Bundle (incl. Logs, Metrics) 30.68 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.36 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.05 kB - -
CDN Bundle (incl. Tracing, Replay) 84.65 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 85.72 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 90.46 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 91.56 kB - -
CDN Bundle - uncompressed 86.28 kB - -
CDN Bundle (incl. Tracing) - uncompressed 141.83 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 90.47 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 145.29 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 215.32 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 260.57 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 264.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 274.27 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 277.7 kB - -
@sentry/nextjs (client) 49.61 kB - -
@sentry/sveltekit (client) 45.31 kB - -
@sentry/node-core 61.97 kB +0.02% +11 B 🔺
@sentry/node 166.93 kB +0.01% +6 B 🔺
@sentry/node - without tracing 74.37 kB +0.01% +3 B 🔺
@sentry/aws-serverless 109.18 kB +0.01% +5 B 🔺
@sentry/cloudflare (withSentry) - minified 170.88 kB - -
@sentry/cloudflare (withSentry) 431.1 kB - -

View base workflow run

@nicohrubec nicohrubec merged commit 7965358 into develop May 15, 2026
45 checks passed
@nicohrubec nicohrubec deleted the awad/fix-e2e-tsx-regression branch May 15, 2026 05:24
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