Skip to content

fix(swc-plugin): preserve step function names in stack traces after bundler minification#1743

Merged
TooTallNate merged 3 commits intomainfrom
nr/preserve-step-fn-names
Apr 16, 2026
Merged

fix(swc-plugin): preserve step function names in stack traces after bundler minification#1743
TooTallNate merged 3 commits intomainfrom
nr/preserve-step-fn-names

Conversation

@TooTallNate
Copy link
Copy Markdown
Member

Summary

  • Add Object.defineProperty(fn, "name", { value: "originalName", configurable: true }) to the IIFE step registration in the SWC plugin
  • Ensures original step function names appear in stack traces even after bundler name mangling (e.g., Turbopack renaming errorStepFneD)

Motivation

When bundlers like Turbopack minify module-internal function names, the step function references registered in the globalThis map point to functions with mangled .name properties. This causes stack traces to show at eD (...) instead of at errorStepFn (...), breaking the e2e test "basic step error preserves message and stack trace".

V8 uses the function's .name property for stack trace frames. By explicitly setting it via Object.defineProperty in the registration IIFE, we ensure the original name is preserved regardless of bundler renaming.

Test plan

  • All 171 SWC transform tests pass (fixture files updated to include the new Object.defineProperty call)
  • Verified locally that errorStepFn appears in stack traces with Turbopack prod builds

…undler minification

Add Object.defineProperty(fn, 'name', { value, configurable: true }) to the
IIFE step registration so the original function name survives bundler name
mangling (e.g. Turbopack renaming errorStepFn to eD). V8 uses the .name
property for stack traces, so this ensures 'at errorStepFn (...)' appears
instead of 'at eD (...)'.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Apr 16, 2026 7:02pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Apr 16, 2026 7:02pm
example-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workbench-astro-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workbench-express-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workbench-fastify-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workbench-hono-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workbench-nitro-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workbench-nuxt-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workbench-vite-workflow Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workflow-docs Ready Ready Preview, Comment, Open in v0 Apr 16, 2026 7:02pm
workflow-swc-playground Ready Ready Preview, Comment Apr 16, 2026 7:02pm
workflow-web Ready Ready Preview, Comment Apr 16, 2026 7:02pm

@TooTallNate TooTallNate requested a review from a team as a code owner April 15, 2026 06:10
Copilot AI review requested due to automatic review settings April 15, 2026 06:10
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.043s (-3.4%) 1.005s (~) 0.962s 10 1.00x
💻 Local Nitro 0.044s (+1.2%) 1.005s (~) 0.961s 10 1.02x
🐘 Postgres Nitro 0.046s (-51.3% 🟢) 1.009s (-3.2%) 0.963s 10 1.08x
💻 Local Next.js (Turbopack) 0.051s 1.006s 0.955s 10 1.19x
🐘 Postgres Express 0.057s (-1.7%) 1.010s (~) 0.953s 10 1.33x
🐘 Postgres Next.js (Turbopack) 0.059s 1.010s 0.951s 10 1.39x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.225s (-45.1% 🟢) 2.011s (-19.8% 🟢) 1.786s 10 1.00x
▲ Vercel Express 0.237s (+0.8%) 1.919s (-10.1% 🟢) 1.682s 10 1.06x
▲ Vercel Next.js (Turbopack) 0.327s (+29.8% 🔺) 2.008s (-13.9% 🟢) 1.681s 10 1.45x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.111s (-2.5%) 2.010s (~) 0.899s 10 1.00x
💻 Local Next.js (Turbopack) 1.123s 2.006s 0.883s 10 1.01x
💻 Local Nitro 1.133s (~) 2.006s (~) 0.874s 10 1.02x
🐘 Postgres Express 1.140s (-0.6%) 2.010s (~) 0.870s 10 1.03x
💻 Local Express 1.140s (+1.3%) 2.006s (~) 0.866s 10 1.03x
🐘 Postgres Next.js (Turbopack) 1.144s 2.011s 0.867s 10 1.03x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.844s (+51.7% 🔺) 4.051s (+6.4% 🔺) 1.207s 10 1.00x
▲ Vercel Next.js (Turbopack) 3.044s (+49.6% 🔺) 4.502s (+17.5% 🔺) 1.458s 10 1.07x
▲ Vercel Nitro 3.222s (-17.2% 🟢) 4.662s (-21.1% 🟢) 1.439s 10 1.13x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 10.692s (-1.6%) 11.023s (~) 0.332s 3 1.00x
💻 Local Next.js (Turbopack) 10.818s 11.022s 0.204s 3 1.01x
🐘 Postgres Next.js (Turbopack) 10.862s 11.023s 0.160s 3 1.02x
💻 Local Nitro 10.919s (~) 11.024s (~) 0.105s 3 1.02x
🐘 Postgres Express 10.952s (~) 11.026s (~) 0.074s 3 1.02x
💻 Local Express 10.988s (+0.6%) 11.025s (~) 0.037s 3 1.03x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 19.414s (+12.1% 🔺) 21.100s (+8.8% 🔺) 1.686s 2 1.00x
▲ Vercel Nitro 21.467s (-9.5% 🟢) 22.631s (-9.9% 🟢) 1.164s 2 1.11x
▲ Vercel Express 28.469s (+67.7% 🔺) 29.849s (+49.1% 🔺) 1.380s 2 1.47x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 14.032s (-3.9%) 14.621s (-2.7%) 0.589s 5 1.00x
🐘 Postgres Next.js (Turbopack) 14.474s 15.021s 0.547s 4 1.03x
🐘 Postgres Express 14.633s (~) 15.025s (~) 0.393s 4 1.04x
💻 Local Next.js (Turbopack) 14.660s 15.029s 0.369s 4 1.04x
💻 Local Nitro 14.977s (-0.6%) 15.030s (-6.2% 🟢) 0.053s 4 1.07x
💻 Local Express 15.032s (~) 15.782s (+5.0% 🔺) 0.750s 4 1.07x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 36.069s (-44.0% 🟢) 37.624s (-43.5% 🟢) 1.555s 2 1.00x
▲ Vercel Express 40.934s (-18.6% 🟢) 41.999s (-20.1% 🟢) 1.065s 2 1.13x
▲ Vercel Next.js (Turbopack) 54.451s (+3.6%) 56.064s (+2.7%) 1.613s 2 1.51x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 12.990s (-7.0% 🟢) 13.452s (-6.0% 🟢) 0.461s 7 1.00x
🐘 Postgres Next.js (Turbopack) 13.814s 14.024s 0.211s 7 1.06x
🐘 Postgres Express 13.983s (~) 14.308s (-2.0%) 0.325s 7 1.08x
💻 Local Next.js (Turbopack) 16.164s 16.864s 0.701s 6 1.24x
💻 Local Nitro 16.675s (-0.6%) 17.031s (~) 0.355s 6 1.28x
💻 Local Express 16.879s (+1.7%) 17.031s (~) 0.152s 6 1.30x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 109.378s (-74.1% 🟢) 110.536s (-74.0% 🟢) 1.158s 1 1.00x
▲ Vercel Express 390.847s (+222.4% 🔺) 392.282s (+217.3% 🔺) 1.435s 1 3.57x
▲ Vercel Next.js (Turbopack) 392.915s (~) 394.590s (~) 1.675s 1 3.59x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.204s (-5.5% 🟢) 2.009s (~) 0.804s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.232s 2.010s 0.778s 15 1.02x
🐘 Postgres Express 1.251s (-0.7%) 2.010s (~) 0.759s 15 1.04x
💻 Local Nitro 1.508s (-7.6% 🟢) 2.005s (-3.3%) 0.498s 15 1.25x
💻 Local Next.js (Turbopack) 1.527s 2.007s 0.479s 15 1.27x
💻 Local Express 1.533s (+2.9%) 2.005s (~) 0.472s 15 1.27x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.594s (-23.6% 🟢) 3.774s (-23.5% 🟢) 1.180s 8 1.00x
▲ Vercel Express 2.723s (-4.8%) 3.880s (-16.1% 🟢) 1.157s 8 1.05x
▲ Vercel Nitro 2.876s (+2.1%) 4.117s (-4.7%) 1.241s 8 1.11x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.325s (-1.1%) 3.008s (~) 0.683s 10 1.00x
🐘 Postgres Express 2.342s (-0.8%) 3.011s (~) 0.669s 10 1.01x
🐘 Postgres Next.js (Turbopack) 2.398s 3.010s 0.612s 10 1.03x
💻 Local Express 3.012s (+2.0%) 3.675s (+6.4% 🔺) 0.663s 9 1.30x
💻 Local Nitro 3.040s (-3.3%) 3.759s (-3.2%) 0.720s 8 1.31x
💻 Local Next.js (Turbopack) 3.062s 3.759s 0.697s 8 1.32x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.074s (-24.1% 🟢) 4.321s (-27.0% 🟢) 1.247s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.104s (-56.3% 🟢) 4.496s (-49.5% 🟢) 1.392s 7 1.01x
▲ Vercel Express 3.320s (-8.3% 🟢) 4.828s (-5.5% 🟢) 1.508s 7 1.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.388s (-2.6%) 4.009s (~) 0.621s 8 1.00x
🐘 Postgres Express 3.481s (~) 4.011s (~) 0.530s 8 1.03x
🐘 Postgres Next.js (Turbopack) 3.685s 4.012s 0.327s 8 1.09x
💻 Local Nitro 8.268s (-1.0%) 9.020s (~) 0.752s 4 2.44x
💻 Local Next.js (Turbopack) 8.310s 9.020s 0.710s 4 2.45x
💻 Local Express 8.862s (+6.3% 🔺) 9.020s (~) 0.158s 4 2.62x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.986s (+13.1% 🔺) 5.502s (-0.6%) 1.516s 6 1.00x
▲ Vercel Next.js (Turbopack) 5.209s (-41.6% 🟢) 6.610s (-39.7% 🟢) 1.401s 6 1.31x
▲ Vercel Express 9.079s (+114.1% 🔺) 10.088s (+64.7% 🔺) 1.009s 3 2.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.196s (-4.8%) 2.008s (~) 0.812s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.227s 2.009s 0.782s 15 1.03x
🐘 Postgres Express 1.250s (-0.6%) 2.008s (~) 0.758s 15 1.04x
💻 Local Next.js (Turbopack) 1.521s 2.006s 0.485s 15 1.27x
💻 Local Nitro 1.529s (-18.1% 🟢) 2.007s (-14.3% 🟢) 0.478s 15 1.28x
💻 Local Express 1.942s (+2.6%) 2.364s (~) 0.422s 14 1.62x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.342s (-4.8%) 3.642s (-12.6% 🟢) 1.300s 9 1.00x
▲ Vercel Express 2.475s (-4.1%) 3.532s (-18.8% 🟢) 1.057s 9 1.06x
▲ Vercel Next.js (Turbopack) 3.820s (+30.3% 🔺) 4.932s (+6.2% 🔺) 1.112s 7 1.63x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.281s (-2.5%) 3.008s (~) 0.727s 10 1.00x
🐘 Postgres Express 2.339s (~) 3.009s (~) 0.670s 10 1.03x
🐘 Postgres Next.js (Turbopack) 2.405s 3.010s 0.605s 10 1.05x
💻 Local Next.js (Turbopack) 3.038s 3.885s 0.847s 8 1.33x
💻 Local Nitro 3.099s (+1.1%) 4.011s (+3.2%) 0.912s 8 1.36x
💻 Local Express 3.285s (+4.9%) 4.011s (+6.6% 🔺) 0.726s 8 1.44x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.340s (+4.6%) 4.675s (-2.4%) 1.335s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.454s (+9.9% 🔺) 4.787s (+5.9% 🔺) 1.333s 7 1.03x
▲ Vercel Nitro 4.521s (+39.8% 🔺) 6.437s (+26.8% 🔺) 1.915s 5 1.35x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.406s (-2.1%) 4.011s (~) 0.605s 8 1.00x
🐘 Postgres Express 3.471s (-0.8%) 4.009s (~) 0.539s 8 1.02x
🐘 Postgres Next.js (Turbopack) 3.672s 4.012s 0.340s 8 1.08x
💻 Local Next.js (Turbopack) 7.750s 8.521s 0.771s 4 2.28x
💻 Local Express 8.878s (+0.9%) 9.526s (+2.7%) 0.648s 4 2.61x
💻 Local Nitro 9.153s (~) 9.775s (-2.5%) 0.622s 4 2.69x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 4.573s (-32.3% 🟢) 5.479s (-35.9% 🟢) 0.907s 6 1.00x
▲ Vercel Express 4.633s (-27.8% 🟢) 5.870s (-28.2% 🟢) 1.238s 6 1.01x
▲ Vercel Nitro 6.104s (+19.9% 🔺) 7.696s (+12.9% 🔺) 1.592s 4 1.33x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.602s (-26.6% 🟢) 1.006s (~) 0.404s 60 1.00x
🐘 Postgres Next.js (Turbopack) 0.780s 1.006s 0.226s 60 1.30x
🐘 Postgres Express 0.836s (~) 1.023s (~) 0.188s 59 1.39x
💻 Local Next.js (Turbopack) 0.862s 1.005s 0.143s 60 1.43x
💻 Local Express 1.005s (+2.1%) 1.544s (+43.5% 🔺) 0.539s 39 1.67x
💻 Local Nitro 1.018s (+3.8%) 1.942s (+77.5% 🔺) 0.923s 31 1.69x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 10.955s (-50.3% 🟢) 12.431s (-48.3% 🟢) 1.477s 5 1.00x
▲ Vercel Next.js (Turbopack) 12.316s (-15.1% 🟢) 13.786s (-14.3% 🟢) 1.470s 5 1.12x
▲ Vercel Express 21.038s (+10.6% 🔺) 22.721s (+6.5% 🔺) 1.683s 4 1.92x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.473s (-23.6% 🟢) 2.007s (-4.4%) 0.534s 45 1.00x
🐘 Postgres Next.js (Turbopack) 1.930s 2.124s 0.194s 43 1.31x
🐘 Postgres Express 1.945s (-1.6%) 2.203s (-2.4%) 0.258s 41 1.32x
💻 Local Next.js (Turbopack) 2.734s 3.008s 0.274s 30 1.86x
💻 Local Express 3.143s (+4.2%) 3.923s (+9.4% 🔺) 0.779s 23 2.13x
💻 Local Nitro 3.321s (+9.4% 🔺) 4.238s (+12.8% 🔺) 0.917s 22 2.26x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 50.868s (+28.8% 🔺) 52.163s (+26.3% 🔺) 1.295s 3 1.00x
▲ Vercel Next.js (Turbopack) 77.720s (+56.1% 🔺) 79.331s (+53.4% 🔺) 1.611s 2 1.53x
▲ Vercel Express 338.041s (+879.0% 🔺) 339.097s (+821.2% 🔺) 1.056s 1 6.65x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.063s (-25.4% 🟢) 3.539s (-23.1% 🟢) 0.477s 34 1.00x
🐘 Postgres Next.js (Turbopack) 3.915s 4.110s 0.195s 30 1.28x
🐘 Postgres Express 3.990s (~) 4.331s (-0.9%) 0.341s 28 1.30x
💻 Local Next.js (Turbopack) 8.887s 9.249s 0.362s 13 2.90x
💻 Local Express 9.289s (+0.9%) 10.019s (~) 0.729s 12 3.03x
💻 Local Nitro 9.406s (+1.2%) 10.019s (~) 0.613s 12 3.07x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 109.934s (-15.5% 🟢) 111.294s (-15.8% 🟢) 1.360s 2 1.00x
▲ Vercel Nitro 250.280s (+158.3% 🔺) 251.728s (+155.8% 🔺) 1.448s 2 2.28x
▲ Vercel Next.js (Turbopack) 421.827s (+293.7% 🔺) 423.544s (+288.9% 🔺) 1.717s 1 3.84x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.228s (-19.4% 🟢) 1.007s (~) 0.778s 60 1.00x
🐘 Postgres Next.js (Turbopack) 0.257s 1.007s 0.751s 60 1.12x
🐘 Postgres Express 0.287s (+1.7%) 1.007s (~) 0.720s 60 1.26x
💻 Local Next.js (Turbopack) 0.587s 1.005s 0.417s 60 2.57x
💻 Local Express 0.596s (+6.4% 🔺) 1.004s (~) 0.408s 60 2.61x
💻 Local Nitro 0.646s (+6.9% 🔺) 1.022s (~) 0.376s 59 2.83x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 1.661s (-15.0% 🟢) 3.237s (-11.0% 🟢) 1.576s 19 1.00x
▲ Vercel Next.js (Turbopack) 1.947s (-3.7%) 3.448s (-9.1% 🟢) 1.501s 18 1.17x
▲ Vercel Nitro 2.575s (+55.1% 🔺) 4.078s (+21.7% 🔺) 1.503s 15 1.55x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.362s (-27.1% 🟢) 1.006s (~) 0.644s 90 1.00x
🐘 Postgres Next.js (Turbopack) 0.494s 1.007s 0.513s 90 1.36x
🐘 Postgres Express 0.498s (-2.4%) 1.007s (~) 0.509s 90 1.37x
💻 Local Express 2.610s (+3.8%) 3.010s (~) 0.400s 30 7.21x
💻 Local Nitro 2.613s (+3.0%) 3.010s (~) 0.397s 30 7.22x
💻 Local Next.js (Turbopack) 2.622s 3.042s 0.421s 30 7.24x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.977s (-7.7% 🟢) 4.633s (-3.9%) 1.656s 20 1.00x
▲ Vercel Express 3.246s (+6.6% 🔺) 4.753s (-1.1%) 1.506s 19 1.09x
▲ Vercel Next.js (Turbopack) 3.418s (-3.3%) 4.854s (-6.5% 🟢) 1.436s 19 1.15x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.579s (-26.8% 🟢) 1.006s (~) 0.428s 120 1.00x
🐘 Postgres Next.js (Turbopack) 0.786s 1.007s 0.221s 120 1.36x
🐘 Postgres Express 0.805s (-1.7%) 1.008s (-0.9%) 0.203s 120 1.39x
💻 Local Next.js (Turbopack) 11.025s 11.481s 0.455s 11 19.05x
💻 Local Nitro 11.251s (+0.5%) 11.939s (+2.4%) 0.688s 11 19.44x
💻 Local Express 11.526s (+3.0%) 12.030s (+0.8%) 0.504s 10 19.92x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 7.974s (+7.5% 🔺) 9.236s (~) 1.262s 14 1.00x
▲ Vercel Nitro 8.119s (+5.1% 🔺) 9.573s (+1.8%) 1.454s 13 1.02x
▲ Vercel Next.js (Turbopack) 8.499s (-17.7% 🟢) 9.888s (-19.5% 🟢) 1.389s 13 1.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.149s (-27.1% 🟢) 1.000s (~) 0.001s (-20.0% 🟢) 1.009s (~) 0.860s 10 1.00x
💻 Local Next.js (Turbopack) 0.177s 1.003s 0.012s 1.019s 0.842s 10 1.18x
🐘 Postgres Next.js (Turbopack) 0.194s 1.001s 0.002s 1.011s 0.817s 10 1.30x
💻 Local Nitro 0.201s (-6.2% 🟢) 1.004s (~) 0.012s (-6.4% 🟢) 1.018s (~) 0.817s 10 1.34x
💻 Local Express 0.206s (+3.5%) 1.004s (~) 0.012s (+0.8%) 1.018s (~) 0.812s 10 1.38x
🐘 Postgres Express 0.215s (+4.8%) 0.999s (~) 0.001s (-18.8% 🟢) 1.012s (~) 0.797s 10 1.44x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 1.570s (-77.1% 🟢) 2.819s (-67.4% 🟢) 1.088s (+72.2% 🔺) 4.268s (-56.4% 🟢) 2.698s 10 1.00x
▲ Vercel Nitro 2.904s (-24.2% 🟢) 3.918s (-25.7% 🟢) 1.130s (+52.2% 🔺) 5.375s (-17.1% 🟢) 2.471s 10 1.85x
▲ Vercel Express 2.998s (+19.7% 🔺) 4.311s (+5.4% 🔺) 0.741s (-22.9% 🟢) 5.391s (-3.6%) 2.393s 10 1.91x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.499s (-20.0% 🟢) 1.005s (~) 0.003s (-18.4% 🟢) 1.020s (~) 0.521s 59 1.00x
🐘 Postgres Express 0.618s (-1.9%) 1.006s (~) 0.004s (+0.9%) 1.023s (~) 0.405s 59 1.24x
🐘 Postgres Next.js (Turbopack) 0.621s 1.010s 0.004s 1.023s 0.402s 59 1.24x
💻 Local Next.js (Turbopack) 0.675s 1.011s 0.010s 1.024s 0.349s 59 1.35x
💻 Local Express 0.770s (+1.7%) 1.012s (-1.7%) 0.012s (+27.8% 🔺) 1.026s (-1.4%) 0.255s 59 1.54x
💻 Local Nitro 0.855s (+2.0%) 1.012s (~) 0.010s (+7.5% 🔺) 1.117s (~) 0.262s 54 1.71x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 4.462s (-84.8% 🟢) 5.550s (-82.0% 🟢) 0.214s (+91.2% 🔺) 6.125s (-80.7% 🟢) 1.663s 10 1.00x
▲ Vercel Express 6.787s (+4.3%) 7.628s (-4.8%) 0.201s (-50.8% 🟢) 8.493s (-3.9%) 1.706s 8 1.52x
▲ Vercel Next.js (Turbopack) 73.243s (+332.9% 🔺) 74.394s (+307.9% 🔺) 0.170s (-19.4% 🟢) 74.864s (+295.4% 🔺) 1.620s 4 16.41x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.944s (-2.5%) 1.108s (-11.2% 🟢) 0.000s (-100.0% 🟢) 1.116s (-11.2% 🟢) 0.172s 55 1.00x
🐘 Postgres Next.js (Turbopack) 0.960s 1.201s 0.000s 1.211s 0.251s 50 1.02x
🐘 Postgres Express 1.016s (+5.7% 🔺) 1.390s (+8.8% 🔺) 0.000s (-100.0% 🟢) 1.404s (+7.5% 🔺) 0.389s 43 1.08x
💻 Local Nitro 1.266s (+3.6%) 2.023s (~) 0.001s (+700.0% 🔺) 2.025s (~) 0.759s 30 1.34x
💻 Local Express 1.279s (+4.4%) 2.024s (~) 0.000s (+10.0% 🔺) 2.026s (~) 0.747s 30 1.35x
💻 Local Next.js (Turbopack) 1.291s 2.021s 0.000s 2.024s 0.733s 30 1.37x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.589s (-4.0%) 4.779s (-6.3% 🟢) 0.000s (-8.3% 🟢) 5.108s (-7.6% 🟢) 1.519s 12 1.00x
▲ Vercel Next.js (Turbopack) 3.760s (-63.1% 🟢) 4.861s (-57.8% 🟢) 0.000s (+Infinity% 🔺) 5.236s (-56.5% 🟢) 1.476s 12 1.05x
▲ Vercel Nitro 4.146s (+35.9% 🔺) 5.319s (+21.1% 🔺) 0.000s (+18.2% 🔺) 5.639s (+17.3% 🔺) 1.494s 11 1.16x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.617s (-9.8% 🟢) 2.070s (-3.3%) 0.000s (-100.0% 🟢) 2.078s (-4.4%) 0.461s 29 1.00x
🐘 Postgres Express 1.819s (+2.7%) 2.143s (-1.6%) 0.000s (+Infinity% 🔺) 2.195s (~) 0.376s 28 1.13x
🐘 Postgres Next.js (Turbopack) 1.845s 2.145s 0.000s 2.155s 0.310s 28 1.14x
💻 Local Nitro 3.581s (+5.7% 🔺) 4.099s (+1.7%) 0.000s (-75.0% 🟢) 4.102s (+1.6%) 0.521s 15 2.21x
💻 Local Express 3.700s (+6.7% 🔺) 4.101s (+1.7%) 0.000s (-50.0% 🟢) 4.104s (+1.7%) 0.404s 15 2.29x
💻 Local Next.js (Turbopack) 3.726s 4.033s 0.000s 4.037s 0.311s 15 2.30x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 4.229s (+3.3%) 5.243s (-2.4%) 0.000s (-66.7% 🟢) 5.574s (-3.8%) 1.345s 11 1.00x
▲ Vercel Next.js (Turbopack) 4.637s (-17.4% 🟢) 5.507s (-21.1% 🟢) 0.000s (-100.0% 🟢) 5.879s (-22.0% 🟢) 1.242s 11 1.10x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 14/21
🐘 Postgres Nitro 21/21
▲ Vercel Nitro 11/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 19/21
Next.js (Turbopack) 🐘 Postgres 17/21
Nitro 🐘 Postgres 20/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 923 0 67 990
✅ 💻 Local Development 994 0 86 1080
✅ 📦 Local Production 994 0 86 1080
✅ 🐘 Local Postgres 994 0 86 1080
✅ 🪟 Windows 90 0 0 90
❌ 🌍 Community Worlds 133 98 0 231
✅ 📋 Other 252 0 18 270
Total 4380 98 343 4821

❌ Failed Tests

🌍 Community Worlds (98 failed)

mongodb (15 failed):

  • readableStreamWorkflow | wrun_01KPBW4AWHG97CS1CP718HRHMA
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPBW51CYA387R23JQGRTD3ZY
  • webhookWorkflow | wrun_01KPBW59XAHE84R5YEJRGFPM8D
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPBW8YFBPTQV5KQ8B9ASAARV
  • fetchWorkflow | wrun_01KPBW9C56H4QK9CMV5HXHNTFX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPBWDJBSFCBEQMMY35DABARA
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPBWN5AE1Y4SSD24B0JWHT2J

redis (15 failed):

  • readableStreamWorkflow | wrun_01KPBW4AWHG97CS1CP718HRHMA
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPBW51CYA387R23JQGRTD3ZY
  • webhookWorkflow | wrun_01KPBW59XAHE84R5YEJRGFPM8D
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPBW8YFBPTQV5KQ8B9ASAARV
  • fetchWorkflow | wrun_01KPBW9C56H4QK9CMV5HXHNTFX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPBWDJBSFCBEQMMY35DABARA
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPBWN5AE1Y4SSD24B0JWHT2J

turso (68 failed):

  • addTenWorkflow | wrun_01KPBW3FWQ6EZ8DDTZ18GKCXGM
  • addTenWorkflow | wrun_01KPBW3FWQ6EZ8DDTZ18GKCXGM
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KPBTNVRRMDF7BR2WWDK4C5KB
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KPBW411DVRSR6AYC5EACAV0S
  • promiseRaceWorkflow | wrun_01KPBW46GJHDA85BT79380573D
  • promiseAnyWorkflow | wrun_01KPBW48HH306Y0M3MEEGXPBX7
  • importedStepOnlyWorkflow | wrun_01KPBTP7MCPWGE91XQGF91P1NF
  • readableStreamWorkflow | wrun_01KPBW4AWHG97CS1CP718HRHMA
  • hookWorkflow | wrun_01KPBW4NK0N5SWMT1G4FF3MNK4
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPBW51CYA387R23JQGRTD3ZY
  • webhookWorkflow | wrun_01KPBW59XAHE84R5YEJRGFPM8D
  • sleepingWorkflow | wrun_01KPBW5GDPH6GEFP70XQB0FNYM
  • parallelSleepWorkflow | wrun_01KPBW5WBPH335J2HZ7QNRB5FJ
  • nullByteWorkflow | wrun_01KPBW5ZJ4X249BRK8FZ51JEXR
  • workflowAndStepMetadataWorkflow | wrun_01KPBW61KFA6X4QG2W9T4PY4Y4
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPBW8YFBPTQV5KQ8B9ASAARV
  • fetchWorkflow | wrun_01KPBW9C56H4QK9CMV5HXHNTFX
  • promiseRaceStressTestWorkflow | wrun_01KPBW9ED4SDH8C51X7YXZKJXD
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KPBWCYJTB56BR5WNDFJ0FFBY
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPBWDJBSFCBEQMMY35DABARA
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KPBWE7BNX84ZYGZY76TGE7GM
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KPBWEV9BDK26J5XPEDW0HY00
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KPBWF412XZS5PJGEAB5XS5C2
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KPBWF9DKN0QH3MET4VJTG10W
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KPBWG70HBTJX98QSAE3MBXJ2
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KPBWGHKH7W8V9T17Q8Z5FSPR
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KPBWH0KKN3MMZ0EDZ67K0GNQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KPBWH5Z12GSAN9D00SW3S2Y4
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KPBWHCHWDKE1N88QXCZ6V6F1
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KPBWHJZJ0A1G5NY9X2QHM3K5
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KPBWHSJ4TYJXCQB177DD1D1V
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KPBWHZXREZY1C7Z5GX90D0N1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KPBWJ6GVY4KQ8CZR20P26M3T
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KPBWJHMSMETXP6KF35CG154T
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KPBWJTGJ8Z0APZXDZ46JPQ1F
  • cancelRun - cancelling a running workflow | wrun_01KPBWK13X9BGRCV8K2DW5TKH1
  • cancelRun via CLI - cancelling a running workflow | wrun_01KPBWKA9HDS0EG296Y3AQWBYA
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KPBWKP51T83F3EYHFXMTZD27
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KPBWMCRSS75YQ594RTZ4ZQYS
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KPBWMPXW3QTXH0XW5XP8NJK3
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KPBWN17G0CKCCB9ZJ4AGED1A
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KPBWN39GMH5BJ0AFC09EMHRX
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPBWN5AE1Y4SSD24B0JWHT2J
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KPBWN8FMWQZAPFM21696VN05

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 83 0 7
✅ example 83 0 7
✅ express 83 0 7
✅ fastify 83 0 7
✅ hono 83 0 7
✅ nextjs-turbopack 88 0 2
✅ nextjs-webpack 88 0 2
✅ nitro 83 0 7
✅ nuxt 83 0 7
✅ sveltekit 83 0 7
✅ vite 83 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 84 0 6
✅ express-stable 84 0 6
✅ fastify-stable 84 0 6
✅ hono-stable 84 0 6
✅ nextjs-turbopack-canary 71 0 19
✅ nextjs-turbopack-stable 90 0 0
✅ nextjs-webpack-canary 71 0 19
✅ nextjs-webpack-stable 90 0 0
✅ nitro-stable 84 0 6
✅ nuxt-stable 84 0 6
✅ sveltekit-stable 84 0 6
✅ vite-stable 84 0 6
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 84 0 6
✅ express-stable 84 0 6
✅ fastify-stable 84 0 6
✅ hono-stable 84 0 6
✅ nextjs-turbopack-canary 71 0 19
✅ nextjs-turbopack-stable 90 0 0
✅ nextjs-webpack-canary 71 0 19
✅ nextjs-webpack-stable 90 0 0
✅ nitro-stable 84 0 6
✅ nuxt-stable 84 0 6
✅ sveltekit-stable 84 0 6
✅ vite-stable 84 0 6
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 84 0 6
✅ express-stable 84 0 6
✅ fastify-stable 84 0 6
✅ hono-stable 84 0 6
✅ nextjs-turbopack-canary 71 0 19
✅ nextjs-turbopack-stable 90 0 0
✅ nextjs-webpack-canary 71 0 19
✅ nextjs-webpack-stable 90 0 0
✅ nitro-stable 84 0 6
✅ nuxt-stable 84 0 6
✅ sveltekit-stable 84 0 6
✅ vite-stable 84 0 6
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 90 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 6 0 0
❌ mongodb 56 15 0
✅ redis-dev 6 0 0
❌ redis 56 15 0
✅ turso-dev 6 0 0
❌ turso 3 68 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 84 0 6
✅ e2e-local-postgres-nest-stable 84 0 6
✅ e2e-local-prod-nest-stable 84 0 6

📋 View full workflow run

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2026

🦋 Changeset detected

Latest commit: ae3131d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@workflow/swc-plugin Patch
@workflow/astro Patch
@workflow/builders Patch
@workflow/cli Patch
@workflow/nest Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
workflow Patch
@workflow/vite Patch
@workflow/vitest Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/ai Patch
@workflow/core Patch
@workflow/web-shared Patch
@workflow/web Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the @workflow/swc-plugin step-mode transform so inline step registration IIFEs explicitly set the registered function’s .name, preserving human-readable step names in stack traces even after bundler minification/mangling.

Changes:

  • Emit Object.defineProperty(__wf_fn, "name", { value: "<original>", configurable: true }) inside inline step registration IIFEs.
  • Thread the original function name through create_inline_step_registration(...) call sites.
  • Update SWC transform fixture snapshots (and add a changeset) to reflect the new emitted code.

Reviewed changes

Copilot reviewed 47 out of 47 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/swc-plugin-workflow/transform/src/lib.rs Extend inline step registration codegen to define the function name property using the original step name.
.changeset/preserve-step-fn-names.md Publish a patch changeset for the SWC plugin behavior change.
packages/swc-plugin-workflow/transform/tests/fixture/var-named-step-function/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/using-declaration-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/unused-variables-and-types/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/unused-exports/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-default-export/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/step-with-this-arguments-super/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/step-with-imports/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/step-arrow-function/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/static-method-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/static-getter-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/single-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/separate-export-statement/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/private-member-dce/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/private-member-dce-native/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/object-property-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/object-getter-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/nested-steps-in-object-constructor/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/nested-step-with-closure/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/nested-step-in-workflow/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/multiple-const-step-functions/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/module-level-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/mixed-functions/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/let-arrow-step-function/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-nested-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/instance-getter-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/factory-with-step-method/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/export-default-class-named/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/export-default-class-anonymous/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/export-default-class-anonymous-step-only/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/destructuring/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/deeply-nested-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/closure-typescript-expressions/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/closure-new-expr-and-module-declarations/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name-step-methods/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/agent-with-tool-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/agent-with-tool-step-shorthand-method/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/misplaced-function-directive/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/getter-workflow/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/conflicting-directives/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .changeset/preserve-step-fn-names.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nathan Rajlich <n@n8.io>
@TooTallNate TooTallNate merged commit 136bd35 into main Apr 16, 2026
278 of 297 checks passed
@TooTallNate TooTallNate deleted the nr/preserve-step-fn-names branch April 16, 2026 20:20
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.

3 participants