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

@logaretmlogaretm commented May 14, 2026

Copy link
Copy Markdown
Member

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 📦

PathSize% ChangeChange
@sentry/browser26.92 kB--
@sentry/browser - with treeshaking flags25.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 flags73.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/react28.67 kB--
@sentry/react (incl. Tracing)47.1 kB--
@sentry/vue31.84 kB--
@sentry/vue (incl. Tracing)46.7 kB--
@sentry/svelte26.94 kB--
CDN Bundle29.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 - uncompressed86.28 kB--
CDN Bundle (incl. Tracing) - uncompressed141.83 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed90.47 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed145.29 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed215.32 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed260.57 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed264.01 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed274.27 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed277.7 kB--
@sentry/nextjs (client)49.61 kB--
@sentry/sveltekit (client)45.31 kB--
@sentry/node-core61.97 kB+0.02%+11 B 🔺
@sentry/node166.93 kB+0.01%+6 B 🔺
@sentry/node - without tracing74.37 kB+0.01%+3 B 🔺
@sentry/aws-serverless109.18 kB+0.01%+5 B 🔺
@sentry/cloudflare (withSentry) - minified170.88 kB--
@sentry/cloudflare (withSentry)431.1 kB--

View base workflow run

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

@logaretm@nicohrubec