Fix anonymous class expression names for serialization classes - #991

Merged
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes
Feb 11, 2026
Merged

Fix anonymous class expression names for serialization classes#991
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. var Foo = class { ... }), the SWC plugin now re-inserts the binding name into the class expression (e.g. var Foo = class Foo { ... }). This preserves the class .name property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

@changeset-bot

changeset-botBot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d57648

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production490038528
✅ 💻 Local Development418062480
✅ 📦 Local Production418062480
✅ 🐘 Local Postgres418062480
✅ 🪟 Windows450348
❌ 🌍 Community Worlds103419153
✅ 📋 Other123021144
Total2015412572313

❌ Failed Tests

🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4404
✅ example4404
✅ express4404
✅ fastify4404
✅ hono4404
✅ nextjs-turbopack4701
✅ nextjs-webpack4701
✅ nitro4404
✅ nuxt4404
✅ sveltekit4404
✅ vite4404
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4503
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
✅ mongodb4503
✅ redis-dev300
✅ redis4503
✅ turso-dev300
❌ turso4413
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4107
✅ e2e-local-postgres-nest-stable4107
✅ e2e-local-prod-nest-stable4107

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.031s (-4.0%)1.004s (~)0.973s101.00x
💻 LocalExpress0.032s (-0.6%)1.005s (~)0.973s101.01x
💻 LocalNext.js (Turbopack)0.040s1.005s0.964s101.28x
🌐 RedisNext.js (Turbopack)0.048s1.004s0.957s101.53x
🌐 MongoDBNext.js (Turbopack)0.095s1.007s0.912s103.02x
🐘 PostgresExpress0.117s (-47.6% 🟢)1.010s (~)0.893s103.72x
🐘 PostgresNitro0.122s (+6.8% 🔺)1.010s (~)0.888s103.89x
🐘 PostgresNext.js (Turbopack)0.398s1.009s0.610s1012.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.757s (-17.7% 🟢)2.073s (-8.1% 🟢)1.316s101.00x
▲ VercelExpress0.788s (-5.0% 🟢)2.103s (-8.3% 🟢)1.314s101.04x
▲ VercelNext.js (Turbopack)1.034s (+17.5% 🔺)2.500s (+20.8% 🔺)1.466s101.36x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.101s2.005s0.904s101.00x
💻 LocalExpress1.103s (~)2.004s (~)0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.899s101.00x
🌐 RedisNext.js (Turbopack)1.109s2.006s0.897s101.01x
🌐 MongoDBNext.js (Turbopack)1.305s2.007s0.702s101.19x
🐘 PostgresNext.js (Turbopack)1.808s2.011s0.203s101.64x
🐘 PostgresNitro2.439s (~)3.014s (~)0.576s102.22x
🐘 PostgresExpress2.446s (+16.2% 🔺)3.019s (~)0.573s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.672s (-1.4%)3.499s (-4.0%)0.827s101.00x
▲ VercelNext.js (Turbopack)2.743s (-6.6% 🟢)3.605s (-13.2% 🟢)0.862s101.03x
▲ VercelExpress2.797s (~)3.961s (+1.4%)1.163s101.05x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)10.722s11.022s0.300s31.00x
💻 LocalNext.js (Turbopack)10.740s11.021s0.282s31.00x
💻 LocalNitro10.824s (~)11.021s (~)0.197s31.01x
💻 LocalExpress10.828s (~)11.023s (~)0.194s31.01x
🌐 MongoDBNext.js (Turbopack)12.179s13.016s0.838s31.14x
🐘 PostgresNext.js (Turbopack)14.947s15.544s0.598s21.39x
🐘 PostgresExpress20.303s (-1.0%)21.058s (~)0.754s21.89x
🐘 PostgresNitro20.331s (~)21.059s (~)0.728s21.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.636s (-11.3% 🟢)21.364s (-13.6% 🟢)0.728s21.00x
▲ VercelNitro20.881s (-9.7% 🟢)21.757s (-10.8% 🟢)0.876s21.01x
▲ VercelNext.js (Turbopack)21.390s (+0.5%)23.125s (+1.8%)1.736s21.04x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.883s27.049s0.166s31.00x
💻 LocalNext.js (Turbopack)27.216s28.055s0.839s31.01x
💻 LocalExpress27.452s (~)28.048s (~)0.596s31.02x
💻 LocalNitro27.470s (~)28.051s (~)0.581s31.02x
🌐 MongoDBNext.js (Turbopack)30.322s31.028s0.706s21.13x
🐘 PostgresNext.js (Turbopack)33.506s33.577s0.071s21.25x
🐘 PostgresExpress50.295s (~)50.627s (-1.0%)0.332s21.87x
🐘 PostgresNitro50.319s (~)51.135s (~)0.816s21.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro51.744s (-1.6%)52.832s (-1.4%)1.088s21.00x
▲ VercelNext.js (Turbopack)51.869s (-3.2%)53.492s (-1.6%)1.623s21.00x
▲ VercelExpress54.551s (+3.6%)55.713s (+3.6%)1.162s21.05x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)54.261s55.096s0.835s21.00x
💻 LocalNext.js (Turbopack)56.710s57.105s0.395s21.05x
💻 LocalExpress57.137s (~)58.102s (~)0.965s21.05x
💻 LocalNitro57.230s (~)58.101s (~)0.871s21.05x
🌐 MongoDBNext.js (Turbopack)60.682s61.055s0.372s21.12x
🐘 PostgresNext.js (Turbopack)67.302s68.161s0.859s21.24x
🐘 PostgresNitro98.161s (-2.1%)98.221s (-3.0%)0.060s11.81x
🐘 PostgresExpress100.164s (~)100.224s (-1.0%)0.060s11.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)109.039s (+1.9%)110.276s (+2.1%)1.237s11.00x
▲ VercelExpress114.385s (+6.0% 🔺)115.921s (+5.7% 🔺)1.536s11.05x
▲ VercelNitro119.083s (+5.4% 🔺)120.097s (+4.8%)1.014s11.09x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.250s2.006s0.756s151.00x
💻 LocalExpress1.400s (~)2.005s (~)0.606s151.12x
💻 LocalNext.js (Turbopack)1.411s2.005s0.594s151.13x
💻 LocalNitro1.426s (+0.8%)2.006s (~)0.580s151.14x
🐘 PostgresNext.js (Turbopack)2.147s2.512s0.364s121.72x
🌐 MongoDBNext.js (Turbopack)2.166s3.007s0.842s101.73x
🐘 PostgresNitro2.264s (-2.1%)2.830s (-6.1% 🟢)0.567s111.81x
🐘 PostgresExpress2.273s (-0.8%)3.013s (~)0.740s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.021s (-25.7% 🟢)4.023s (-26.7% 🟢)1.003s81.00x
▲ VercelNitro3.051s (+4.5%)4.474s (+17.1% 🔺)1.423s71.01x
▲ VercelExpress3.338s (+13.2% 🔺)4.131s (+5.9% 🔺)0.792s81.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.482s3.008s0.526s101.00x
💻 LocalNext.js (Turbopack)2.501s3.008s0.507s101.01x
💻 LocalExpress2.573s (+1.5%)3.008s (~)0.434s101.04x
💻 LocalNitro2.636s (+2.4%)3.008s (~)0.372s101.06x
🌐 MongoDBNext.js (Turbopack)4.668s5.176s0.509s61.88x
🐘 PostgresNitro9.266s (+0.8%)9.542s (~)0.276s43.73x
🐘 PostgresExpress10.402s (+39.0% 🔺)10.710s (+29.3% 🔺)0.308s34.19x
🐘 PostgresNext.js (Turbopack)12.413s12.701s0.288s35.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.048s (-13.4% 🟢)4.475s (-8.6% 🟢)1.427s71.00x
▲ VercelNext.js (Turbopack)3.323s (-2.2%)5.020s (+9.0% 🔺)1.698s61.09x
▲ VercelExpress3.484s (+2.5%)4.690s (+2.2%)1.205s71.14x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.011s4.581s0.571s71.00x
💻 LocalNext.js (Turbopack)7.473s8.021s0.548s41.86x
💻 LocalExpress7.480s (+3.3%)8.020s (~)0.539s41.87x
💻 LocalNitro7.652s (+7.2% 🔺)8.019s (~)0.367s41.91x
🌐 MongoDBNext.js (Turbopack)10.075s10.348s0.274s32.51x
🐘 PostgresExpress49.351s (+3.7%)50.139s (+4.2%)0.788s112.30x
🐘 PostgresNitro50.278s (+8.9% 🔺)51.111s (+8.5% 🔺)0.833s112.54x
🐘 PostgresNext.js (Turbopack)53.640s54.126s0.486s113.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.162s (+15.2% 🔺)5.217s (+7.4% 🔺)1.055s61.00x
▲ VercelNext.js (Turbopack)4.909s (+17.3% 🔺)6.357s (+16.9% 🔺)1.448s61.18x
▲ VercelExpress5.638s (+55.9% 🔺)6.814s (+40.1% 🔺)1.176s51.35x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.274s2.006s0.731s151.00x
💻 LocalNext.js (Turbopack)1.413s2.005s0.592s151.11x
💻 LocalExpress1.440s (+0.8%)2.005s (~)0.565s151.13x
💻 LocalNitro1.448s (+2.0%)2.006s (~)0.558s151.14x
🐘 PostgresNitro2.125s (-1.8%)2.596s (-11.3% 🟢)0.471s121.67x
🌐 MongoDBNext.js (Turbopack)2.157s3.008s0.851s101.69x
🐘 PostgresExpress2.188s (+4.2%)2.595s (+3.3%)0.407s121.72x
🐘 PostgresNext.js (Turbopack)2.608s2.922s0.314s112.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.716s (-4.9%)3.588s (-2.8%)0.872s91.00x
▲ VercelNext.js (Turbopack)2.785s (-4.5%)3.621s (-14.8% 🟢)0.836s91.03x
▲ VercelNitro3.276s (+15.8% 🔺)4.062s (+4.8%)0.785s81.21x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.503s3.008s0.505s101.00x
💻 LocalNext.js (Turbopack)2.557s3.007s0.451s101.02x
💻 LocalExpress2.661s (-3.8%)3.007s (~)0.347s101.06x
💻 LocalNitro2.756s (+2.2%)3.007s (~)0.251s101.10x
🌐 MongoDBNext.js (Turbopack)4.815s5.177s0.362s61.92x
🐘 PostgresExpress11.345s (-1.1%)11.700s (-2.8%)0.356s34.53x
🐘 PostgresNitro11.693s (-2.5%)12.030s (-5.3% 🟢)0.337s34.67x
🐘 PostgresNext.js (Turbopack)13.981s14.706s0.724s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.367s (-5.0%)4.491s (-0.6%)1.125s81.00x
▲ VercelNitro3.701s (+20.9% 🔺)4.636s (~)0.935s71.10x
▲ VercelNext.js (Turbopack)4.158s (+4.8%)5.478s (+6.0% 🔺)1.320s61.23x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.044s4.581s0.537s71.00x
💻 LocalNext.js (Turbopack)7.618s8.016s0.398s41.88x
💻 LocalExpress7.787s (+2.8%)8.028s (~)0.241s41.93x
💻 LocalNitro7.905s (+2.8%)8.270s (+3.1%)0.365s41.95x
🌐 MongoDBNext.js (Turbopack)9.764s10.350s0.586s32.41x
🐘 PostgresExpress50.523s (-6.2% 🟢)51.122s (-5.5% 🟢)0.599s112.49x
🐘 PostgresNitro51.354s (+3.6%)52.131s (+4.0%)0.777s112.70x
🐘 PostgresNext.js (Turbopack)58.463s59.124s0.661s114.46x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.452s (-12.2% 🟢)4.642s (-16.1% 🟢)1.190s71.00x
▲ VercelNext.js (Turbopack)4.236s (-17.8% 🟢)5.752s (-8.0% 🟢)1.517s61.23x
▲ VercelNitro6.459s (+83.8% 🔺)7.317s (+43.6% 🔺)0.858s51.87x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.149s1.000s0.001s1.007s0.857s101.00x
💻 LocalNext.js (Turbopack)0.150s1.001s0.011s1.016s0.865s101.01x
💻 LocalExpress0.171s (~)1.002s (~)0.011s (+1.0%)1.015s (~)0.844s101.15x
💻 LocalNitro0.174s (+0.8%)1.002s (~)0.010s (+1.0%)1.015s (~)0.841s101.17x
🌐 MongoDBNext.js (Turbopack)0.515s0.934s0.001s1.008s0.493s103.45x
🐘 PostgresNext.js (Turbopack)0.612s0.921s0.001s1.009s0.397s104.10x
🐘 PostgresExpress1.291s (-41.2% 🟢)1.748s (-38.4% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.722s108.64x
🐘 PostgresNitro1.298s (-45.2% 🟢)1.742s (-34.8% 🟢)0.001s (~)2.012s (-33.3% 🟢)0.715s108.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.715s (+2.9%)3.349s (+12.1% 🔺)0.099s (-60.5% 🟢)4.075s (+3.5%)1.360s101.00x
▲ VercelNitro2.725s (-3.1%)3.002s (-0.7%)0.212s (+63.7% 🔺)3.825s (-2.5%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.944s (+7.8% 🔺)3.394s (+5.1% 🔺)0.260s (+14.1% 🔺)4.397s (+7.1% 🔺)1.454s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)10/12
🐘 PostgresNext.js (Turbopack)6/12
▲ VercelNitro5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)🌐 Redis10/12
Nitro💻 Local10/12
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

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-astro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-express-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-fastify-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-hono-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nitro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nuxt-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-sveltekit-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-vite-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-docsReadyReadyPreview, Comment, Open in v0Feb 11, 2026 11:27pm
workflow-nestReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-swc-playgroundReadyReadyPreview, CommentFeb 11, 2026 11:27pm

@TooTallNate
TooTallNate marked this pull request as ready for review February 11, 2026 23:10
@TooTallNate
TooTallNate requested review from a team and CopilotFebruary 11, 2026 23:10
When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. `var Foo = class { ... }`), the SWC plugin now re-inserts the binding name into the class expression (e.g. `var Foo = class Foo { ... }`). This preserves the class `.name` property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 transform to preserve class names for serializable classes when upstream bundlers convert named class declarations into anonymous class expressions, preventing downstream bundlers from losing the class identifier during subsequent bundling passes.

Changes:

  • Update the SWC transform to re-insert the variable binding name into anonymous class expressions when custom serialization methods are present.
  • Update transform fixture outputs to reflect the newly named class expressions.
  • Document the behavior in spec.md and publish a patch changeset.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsImplements binding-name re-insertion for anonymous serializable class expressions.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-workflow.jsUpdates expected workflow-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-step.jsUpdates expected step-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-client.jsUpdates expected client-mode fixture output to include class Shell.
packages/swc-plugin-workflow/spec.mdDocuments the anonymous class expression name re-insertion behavior.
.changeset/happy-doodles-return.mdAdds a patch changeset for the plugin release.

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

Comment threadpackages/swc-plugin-workflow/spec.md Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Clean, well-scoped fix.

The guard conditions (has_serde && class_expr.ident.is_none()) correctly ensure this only fires for anonymous serialization classes, leaving named class expressions (like class _Bash) untouched. Test fixtures and spec updated appropriately.

…recompute internal_class_name after ident insertion
@TooTallNate
TooTallNate enabled auto-merge (squash) February 11, 2026 23:25
@TooTallNate
TooTallNate merged commit 054e40c into mainFeb 11, 2026
98 checks passed
@TooTallNate
TooTallNate deleted the 02-10-fix_anonymous_class_expression_names_for_serialization_classes branch February 11, 2026 23:34
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.

4 participants

@TooTallNate@pranaygp@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Fix anonymous class expression names for serialization classes - #991

Merged
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes
Feb 11, 2026
Merged

Fix anonymous class expression names for serialization classes#991
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. var Foo = class { ... }), the SWC plugin now re-inserts the binding name into the class expression (e.g. var Foo = class Foo { ... }). This preserves the class .name property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

@changeset-bot

changeset-botBot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d57648

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production490038528
✅ 💻 Local Development418062480
✅ 📦 Local Production418062480
✅ 🐘 Local Postgres418062480
✅ 🪟 Windows450348
❌ 🌍 Community Worlds103419153
✅ 📋 Other123021144
Total2015412572313

❌ Failed Tests

🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4404
✅ example4404
✅ express4404
✅ fastify4404
✅ hono4404
✅ nextjs-turbopack4701
✅ nextjs-webpack4701
✅ nitro4404
✅ nuxt4404
✅ sveltekit4404
✅ vite4404
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4503
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
✅ mongodb4503
✅ redis-dev300
✅ redis4503
✅ turso-dev300
❌ turso4413
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4107
✅ e2e-local-postgres-nest-stable4107
✅ e2e-local-prod-nest-stable4107

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.031s (-4.0%)1.004s (~)0.973s101.00x
💻 LocalExpress0.032s (-0.6%)1.005s (~)0.973s101.01x
💻 LocalNext.js (Turbopack)0.040s1.005s0.964s101.28x
🌐 RedisNext.js (Turbopack)0.048s1.004s0.957s101.53x
🌐 MongoDBNext.js (Turbopack)0.095s1.007s0.912s103.02x
🐘 PostgresExpress0.117s (-47.6% 🟢)1.010s (~)0.893s103.72x
🐘 PostgresNitro0.122s (+6.8% 🔺)1.010s (~)0.888s103.89x
🐘 PostgresNext.js (Turbopack)0.398s1.009s0.610s1012.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.757s (-17.7% 🟢)2.073s (-8.1% 🟢)1.316s101.00x
▲ VercelExpress0.788s (-5.0% 🟢)2.103s (-8.3% 🟢)1.314s101.04x
▲ VercelNext.js (Turbopack)1.034s (+17.5% 🔺)2.500s (+20.8% 🔺)1.466s101.36x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.101s2.005s0.904s101.00x
💻 LocalExpress1.103s (~)2.004s (~)0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.899s101.00x
🌐 RedisNext.js (Turbopack)1.109s2.006s0.897s101.01x
🌐 MongoDBNext.js (Turbopack)1.305s2.007s0.702s101.19x
🐘 PostgresNext.js (Turbopack)1.808s2.011s0.203s101.64x
🐘 PostgresNitro2.439s (~)3.014s (~)0.576s102.22x
🐘 PostgresExpress2.446s (+16.2% 🔺)3.019s (~)0.573s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.672s (-1.4%)3.499s (-4.0%)0.827s101.00x
▲ VercelNext.js (Turbopack)2.743s (-6.6% 🟢)3.605s (-13.2% 🟢)0.862s101.03x
▲ VercelExpress2.797s (~)3.961s (+1.4%)1.163s101.05x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)10.722s11.022s0.300s31.00x
💻 LocalNext.js (Turbopack)10.740s11.021s0.282s31.00x
💻 LocalNitro10.824s (~)11.021s (~)0.197s31.01x
💻 LocalExpress10.828s (~)11.023s (~)0.194s31.01x
🌐 MongoDBNext.js (Turbopack)12.179s13.016s0.838s31.14x
🐘 PostgresNext.js (Turbopack)14.947s15.544s0.598s21.39x
🐘 PostgresExpress20.303s (-1.0%)21.058s (~)0.754s21.89x
🐘 PostgresNitro20.331s (~)21.059s (~)0.728s21.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.636s (-11.3% 🟢)21.364s (-13.6% 🟢)0.728s21.00x
▲ VercelNitro20.881s (-9.7% 🟢)21.757s (-10.8% 🟢)0.876s21.01x
▲ VercelNext.js (Turbopack)21.390s (+0.5%)23.125s (+1.8%)1.736s21.04x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.883s27.049s0.166s31.00x
💻 LocalNext.js (Turbopack)27.216s28.055s0.839s31.01x
💻 LocalExpress27.452s (~)28.048s (~)0.596s31.02x
💻 LocalNitro27.470s (~)28.051s (~)0.581s31.02x
🌐 MongoDBNext.js (Turbopack)30.322s31.028s0.706s21.13x
🐘 PostgresNext.js (Turbopack)33.506s33.577s0.071s21.25x
🐘 PostgresExpress50.295s (~)50.627s (-1.0%)0.332s21.87x
🐘 PostgresNitro50.319s (~)51.135s (~)0.816s21.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro51.744s (-1.6%)52.832s (-1.4%)1.088s21.00x
▲ VercelNext.js (Turbopack)51.869s (-3.2%)53.492s (-1.6%)1.623s21.00x
▲ VercelExpress54.551s (+3.6%)55.713s (+3.6%)1.162s21.05x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)54.261s55.096s0.835s21.00x
💻 LocalNext.js (Turbopack)56.710s57.105s0.395s21.05x
💻 LocalExpress57.137s (~)58.102s (~)0.965s21.05x
💻 LocalNitro57.230s (~)58.101s (~)0.871s21.05x
🌐 MongoDBNext.js (Turbopack)60.682s61.055s0.372s21.12x
🐘 PostgresNext.js (Turbopack)67.302s68.161s0.859s21.24x
🐘 PostgresNitro98.161s (-2.1%)98.221s (-3.0%)0.060s11.81x
🐘 PostgresExpress100.164s (~)100.224s (-1.0%)0.060s11.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)109.039s (+1.9%)110.276s (+2.1%)1.237s11.00x
▲ VercelExpress114.385s (+6.0% 🔺)115.921s (+5.7% 🔺)1.536s11.05x
▲ VercelNitro119.083s (+5.4% 🔺)120.097s (+4.8%)1.014s11.09x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.250s2.006s0.756s151.00x
💻 LocalExpress1.400s (~)2.005s (~)0.606s151.12x
💻 LocalNext.js (Turbopack)1.411s2.005s0.594s151.13x
💻 LocalNitro1.426s (+0.8%)2.006s (~)0.580s151.14x
🐘 PostgresNext.js (Turbopack)2.147s2.512s0.364s121.72x
🌐 MongoDBNext.js (Turbopack)2.166s3.007s0.842s101.73x
🐘 PostgresNitro2.264s (-2.1%)2.830s (-6.1% 🟢)0.567s111.81x
🐘 PostgresExpress2.273s (-0.8%)3.013s (~)0.740s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.021s (-25.7% 🟢)4.023s (-26.7% 🟢)1.003s81.00x
▲ VercelNitro3.051s (+4.5%)4.474s (+17.1% 🔺)1.423s71.01x
▲ VercelExpress3.338s (+13.2% 🔺)4.131s (+5.9% 🔺)0.792s81.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.482s3.008s0.526s101.00x
💻 LocalNext.js (Turbopack)2.501s3.008s0.507s101.01x
💻 LocalExpress2.573s (+1.5%)3.008s (~)0.434s101.04x
💻 LocalNitro2.636s (+2.4%)3.008s (~)0.372s101.06x
🌐 MongoDBNext.js (Turbopack)4.668s5.176s0.509s61.88x
🐘 PostgresNitro9.266s (+0.8%)9.542s (~)0.276s43.73x
🐘 PostgresExpress10.402s (+39.0% 🔺)10.710s (+29.3% 🔺)0.308s34.19x
🐘 PostgresNext.js (Turbopack)12.413s12.701s0.288s35.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.048s (-13.4% 🟢)4.475s (-8.6% 🟢)1.427s71.00x
▲ VercelNext.js (Turbopack)3.323s (-2.2%)5.020s (+9.0% 🔺)1.698s61.09x
▲ VercelExpress3.484s (+2.5%)4.690s (+2.2%)1.205s71.14x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.011s4.581s0.571s71.00x
💻 LocalNext.js (Turbopack)7.473s8.021s0.548s41.86x
💻 LocalExpress7.480s (+3.3%)8.020s (~)0.539s41.87x
💻 LocalNitro7.652s (+7.2% 🔺)8.019s (~)0.367s41.91x
🌐 MongoDBNext.js (Turbopack)10.075s10.348s0.274s32.51x
🐘 PostgresExpress49.351s (+3.7%)50.139s (+4.2%)0.788s112.30x
🐘 PostgresNitro50.278s (+8.9% 🔺)51.111s (+8.5% 🔺)0.833s112.54x
🐘 PostgresNext.js (Turbopack)53.640s54.126s0.486s113.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.162s (+15.2% 🔺)5.217s (+7.4% 🔺)1.055s61.00x
▲ VercelNext.js (Turbopack)4.909s (+17.3% 🔺)6.357s (+16.9% 🔺)1.448s61.18x
▲ VercelExpress5.638s (+55.9% 🔺)6.814s (+40.1% 🔺)1.176s51.35x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.274s2.006s0.731s151.00x
💻 LocalNext.js (Turbopack)1.413s2.005s0.592s151.11x
💻 LocalExpress1.440s (+0.8%)2.005s (~)0.565s151.13x
💻 LocalNitro1.448s (+2.0%)2.006s (~)0.558s151.14x
🐘 PostgresNitro2.125s (-1.8%)2.596s (-11.3% 🟢)0.471s121.67x
🌐 MongoDBNext.js (Turbopack)2.157s3.008s0.851s101.69x
🐘 PostgresExpress2.188s (+4.2%)2.595s (+3.3%)0.407s121.72x
🐘 PostgresNext.js (Turbopack)2.608s2.922s0.314s112.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.716s (-4.9%)3.588s (-2.8%)0.872s91.00x
▲ VercelNext.js (Turbopack)2.785s (-4.5%)3.621s (-14.8% 🟢)0.836s91.03x
▲ VercelNitro3.276s (+15.8% 🔺)4.062s (+4.8%)0.785s81.21x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.503s3.008s0.505s101.00x
💻 LocalNext.js (Turbopack)2.557s3.007s0.451s101.02x
💻 LocalExpress2.661s (-3.8%)3.007s (~)0.347s101.06x
💻 LocalNitro2.756s (+2.2%)3.007s (~)0.251s101.10x
🌐 MongoDBNext.js (Turbopack)4.815s5.177s0.362s61.92x
🐘 PostgresExpress11.345s (-1.1%)11.700s (-2.8%)0.356s34.53x
🐘 PostgresNitro11.693s (-2.5%)12.030s (-5.3% 🟢)0.337s34.67x
🐘 PostgresNext.js (Turbopack)13.981s14.706s0.724s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.367s (-5.0%)4.491s (-0.6%)1.125s81.00x
▲ VercelNitro3.701s (+20.9% 🔺)4.636s (~)0.935s71.10x
▲ VercelNext.js (Turbopack)4.158s (+4.8%)5.478s (+6.0% 🔺)1.320s61.23x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.044s4.581s0.537s71.00x
💻 LocalNext.js (Turbopack)7.618s8.016s0.398s41.88x
💻 LocalExpress7.787s (+2.8%)8.028s (~)0.241s41.93x
💻 LocalNitro7.905s (+2.8%)8.270s (+3.1%)0.365s41.95x
🌐 MongoDBNext.js (Turbopack)9.764s10.350s0.586s32.41x
🐘 PostgresExpress50.523s (-6.2% 🟢)51.122s (-5.5% 🟢)0.599s112.49x
🐘 PostgresNitro51.354s (+3.6%)52.131s (+4.0%)0.777s112.70x
🐘 PostgresNext.js (Turbopack)58.463s59.124s0.661s114.46x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.452s (-12.2% 🟢)4.642s (-16.1% 🟢)1.190s71.00x
▲ VercelNext.js (Turbopack)4.236s (-17.8% 🟢)5.752s (-8.0% 🟢)1.517s61.23x
▲ VercelNitro6.459s (+83.8% 🔺)7.317s (+43.6% 🔺)0.858s51.87x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.149s1.000s0.001s1.007s0.857s101.00x
💻 LocalNext.js (Turbopack)0.150s1.001s0.011s1.016s0.865s101.01x
💻 LocalExpress0.171s (~)1.002s (~)0.011s (+1.0%)1.015s (~)0.844s101.15x
💻 LocalNitro0.174s (+0.8%)1.002s (~)0.010s (+1.0%)1.015s (~)0.841s101.17x
🌐 MongoDBNext.js (Turbopack)0.515s0.934s0.001s1.008s0.493s103.45x
🐘 PostgresNext.js (Turbopack)0.612s0.921s0.001s1.009s0.397s104.10x
🐘 PostgresExpress1.291s (-41.2% 🟢)1.748s (-38.4% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.722s108.64x
🐘 PostgresNitro1.298s (-45.2% 🟢)1.742s (-34.8% 🟢)0.001s (~)2.012s (-33.3% 🟢)0.715s108.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.715s (+2.9%)3.349s (+12.1% 🔺)0.099s (-60.5% 🟢)4.075s (+3.5%)1.360s101.00x
▲ VercelNitro2.725s (-3.1%)3.002s (-0.7%)0.212s (+63.7% 🔺)3.825s (-2.5%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.944s (+7.8% 🔺)3.394s (+5.1% 🔺)0.260s (+14.1% 🔺)4.397s (+7.1% 🔺)1.454s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)10/12
🐘 PostgresNext.js (Turbopack)6/12
▲ VercelNitro5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)🌐 Redis10/12
Nitro💻 Local10/12
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

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-astro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-express-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-fastify-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-hono-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nitro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nuxt-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-sveltekit-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-vite-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-docsReadyReadyPreview, Comment, Open in v0Feb 11, 2026 11:27pm
workflow-nestReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-swc-playgroundReadyReadyPreview, CommentFeb 11, 2026 11:27pm

@TooTallNate
TooTallNate marked this pull request as ready for review February 11, 2026 23:10
@TooTallNate
TooTallNate requested review from a team and CopilotFebruary 11, 2026 23:10
When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. `var Foo = class { ... }`), the SWC plugin now re-inserts the binding name into the class expression (e.g. `var Foo = class Foo { ... }`). This preserves the class `.name` property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 transform to preserve class names for serializable classes when upstream bundlers convert named class declarations into anonymous class expressions, preventing downstream bundlers from losing the class identifier during subsequent bundling passes.

Changes:

  • Update the SWC transform to re-insert the variable binding name into anonymous class expressions when custom serialization methods are present.
  • Update transform fixture outputs to reflect the newly named class expressions.
  • Document the behavior in spec.md and publish a patch changeset.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsImplements binding-name re-insertion for anonymous serializable class expressions.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-workflow.jsUpdates expected workflow-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-step.jsUpdates expected step-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-client.jsUpdates expected client-mode fixture output to include class Shell.
packages/swc-plugin-workflow/spec.mdDocuments the anonymous class expression name re-insertion behavior.
.changeset/happy-doodles-return.mdAdds a patch changeset for the plugin release.

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

Comment threadpackages/swc-plugin-workflow/spec.md Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Clean, well-scoped fix.

The guard conditions (has_serde && class_expr.ident.is_none()) correctly ensure this only fires for anonymous serialization classes, leaving named class expressions (like class _Bash) untouched. Test fixtures and spec updated appropriately.

…recompute internal_class_name after ident insertion
@TooTallNate
TooTallNate enabled auto-merge (squash) February 11, 2026 23:25
@TooTallNate
TooTallNate merged commit 054e40c into mainFeb 11, 2026
98 checks passed
@TooTallNate
TooTallNate deleted the 02-10-fix_anonymous_class_expression_names_for_serialization_classes branch February 11, 2026 23:34
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.

4 participants

@TooTallNate@pranaygp@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Fix anonymous class expression names for serialization classes - #991

Merged
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes
Feb 11, 2026
Merged

Fix anonymous class expression names for serialization classes#991
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. var Foo = class { ... }), the SWC plugin now re-inserts the binding name into the class expression (e.g. var Foo = class Foo { ... }). This preserves the class .name property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

@changeset-bot

changeset-botBot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d57648

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production490038528
✅ 💻 Local Development418062480
✅ 📦 Local Production418062480
✅ 🐘 Local Postgres418062480
✅ 🪟 Windows450348
❌ 🌍 Community Worlds103419153
✅ 📋 Other123021144
Total2015412572313

❌ Failed Tests

🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4404
✅ example4404
✅ express4404
✅ fastify4404
✅ hono4404
✅ nextjs-turbopack4701
✅ nextjs-webpack4701
✅ nitro4404
✅ nuxt4404
✅ sveltekit4404
✅ vite4404
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4503
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
✅ mongodb4503
✅ redis-dev300
✅ redis4503
✅ turso-dev300
❌ turso4413
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4107
✅ e2e-local-postgres-nest-stable4107
✅ e2e-local-prod-nest-stable4107

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.031s (-4.0%)1.004s (~)0.973s101.00x
💻 LocalExpress0.032s (-0.6%)1.005s (~)0.973s101.01x
💻 LocalNext.js (Turbopack)0.040s1.005s0.964s101.28x
🌐 RedisNext.js (Turbopack)0.048s1.004s0.957s101.53x
🌐 MongoDBNext.js (Turbopack)0.095s1.007s0.912s103.02x
🐘 PostgresExpress0.117s (-47.6% 🟢)1.010s (~)0.893s103.72x
🐘 PostgresNitro0.122s (+6.8% 🔺)1.010s (~)0.888s103.89x
🐘 PostgresNext.js (Turbopack)0.398s1.009s0.610s1012.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.757s (-17.7% 🟢)2.073s (-8.1% 🟢)1.316s101.00x
▲ VercelExpress0.788s (-5.0% 🟢)2.103s (-8.3% 🟢)1.314s101.04x
▲ VercelNext.js (Turbopack)1.034s (+17.5% 🔺)2.500s (+20.8% 🔺)1.466s101.36x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.101s2.005s0.904s101.00x
💻 LocalExpress1.103s (~)2.004s (~)0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.899s101.00x
🌐 RedisNext.js (Turbopack)1.109s2.006s0.897s101.01x
🌐 MongoDBNext.js (Turbopack)1.305s2.007s0.702s101.19x
🐘 PostgresNext.js (Turbopack)1.808s2.011s0.203s101.64x
🐘 PostgresNitro2.439s (~)3.014s (~)0.576s102.22x
🐘 PostgresExpress2.446s (+16.2% 🔺)3.019s (~)0.573s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.672s (-1.4%)3.499s (-4.0%)0.827s101.00x
▲ VercelNext.js (Turbopack)2.743s (-6.6% 🟢)3.605s (-13.2% 🟢)0.862s101.03x
▲ VercelExpress2.797s (~)3.961s (+1.4%)1.163s101.05x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)10.722s11.022s0.300s31.00x
💻 LocalNext.js (Turbopack)10.740s11.021s0.282s31.00x
💻 LocalNitro10.824s (~)11.021s (~)0.197s31.01x
💻 LocalExpress10.828s (~)11.023s (~)0.194s31.01x
🌐 MongoDBNext.js (Turbopack)12.179s13.016s0.838s31.14x
🐘 PostgresNext.js (Turbopack)14.947s15.544s0.598s21.39x
🐘 PostgresExpress20.303s (-1.0%)21.058s (~)0.754s21.89x
🐘 PostgresNitro20.331s (~)21.059s (~)0.728s21.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.636s (-11.3% 🟢)21.364s (-13.6% 🟢)0.728s21.00x
▲ VercelNitro20.881s (-9.7% 🟢)21.757s (-10.8% 🟢)0.876s21.01x
▲ VercelNext.js (Turbopack)21.390s (+0.5%)23.125s (+1.8%)1.736s21.04x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.883s27.049s0.166s31.00x
💻 LocalNext.js (Turbopack)27.216s28.055s0.839s31.01x
💻 LocalExpress27.452s (~)28.048s (~)0.596s31.02x
💻 LocalNitro27.470s (~)28.051s (~)0.581s31.02x
🌐 MongoDBNext.js (Turbopack)30.322s31.028s0.706s21.13x
🐘 PostgresNext.js (Turbopack)33.506s33.577s0.071s21.25x
🐘 PostgresExpress50.295s (~)50.627s (-1.0%)0.332s21.87x
🐘 PostgresNitro50.319s (~)51.135s (~)0.816s21.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro51.744s (-1.6%)52.832s (-1.4%)1.088s21.00x
▲ VercelNext.js (Turbopack)51.869s (-3.2%)53.492s (-1.6%)1.623s21.00x
▲ VercelExpress54.551s (+3.6%)55.713s (+3.6%)1.162s21.05x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)54.261s55.096s0.835s21.00x
💻 LocalNext.js (Turbopack)56.710s57.105s0.395s21.05x
💻 LocalExpress57.137s (~)58.102s (~)0.965s21.05x
💻 LocalNitro57.230s (~)58.101s (~)0.871s21.05x
🌐 MongoDBNext.js (Turbopack)60.682s61.055s0.372s21.12x
🐘 PostgresNext.js (Turbopack)67.302s68.161s0.859s21.24x
🐘 PostgresNitro98.161s (-2.1%)98.221s (-3.0%)0.060s11.81x
🐘 PostgresExpress100.164s (~)100.224s (-1.0%)0.060s11.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)109.039s (+1.9%)110.276s (+2.1%)1.237s11.00x
▲ VercelExpress114.385s (+6.0% 🔺)115.921s (+5.7% 🔺)1.536s11.05x
▲ VercelNitro119.083s (+5.4% 🔺)120.097s (+4.8%)1.014s11.09x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.250s2.006s0.756s151.00x
💻 LocalExpress1.400s (~)2.005s (~)0.606s151.12x
💻 LocalNext.js (Turbopack)1.411s2.005s0.594s151.13x
💻 LocalNitro1.426s (+0.8%)2.006s (~)0.580s151.14x
🐘 PostgresNext.js (Turbopack)2.147s2.512s0.364s121.72x
🌐 MongoDBNext.js (Turbopack)2.166s3.007s0.842s101.73x
🐘 PostgresNitro2.264s (-2.1%)2.830s (-6.1% 🟢)0.567s111.81x
🐘 PostgresExpress2.273s (-0.8%)3.013s (~)0.740s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.021s (-25.7% 🟢)4.023s (-26.7% 🟢)1.003s81.00x
▲ VercelNitro3.051s (+4.5%)4.474s (+17.1% 🔺)1.423s71.01x
▲ VercelExpress3.338s (+13.2% 🔺)4.131s (+5.9% 🔺)0.792s81.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.482s3.008s0.526s101.00x
💻 LocalNext.js (Turbopack)2.501s3.008s0.507s101.01x
💻 LocalExpress2.573s (+1.5%)3.008s (~)0.434s101.04x
💻 LocalNitro2.636s (+2.4%)3.008s (~)0.372s101.06x
🌐 MongoDBNext.js (Turbopack)4.668s5.176s0.509s61.88x
🐘 PostgresNitro9.266s (+0.8%)9.542s (~)0.276s43.73x
🐘 PostgresExpress10.402s (+39.0% 🔺)10.710s (+29.3% 🔺)0.308s34.19x
🐘 PostgresNext.js (Turbopack)12.413s12.701s0.288s35.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.048s (-13.4% 🟢)4.475s (-8.6% 🟢)1.427s71.00x
▲ VercelNext.js (Turbopack)3.323s (-2.2%)5.020s (+9.0% 🔺)1.698s61.09x
▲ VercelExpress3.484s (+2.5%)4.690s (+2.2%)1.205s71.14x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.011s4.581s0.571s71.00x
💻 LocalNext.js (Turbopack)7.473s8.021s0.548s41.86x
💻 LocalExpress7.480s (+3.3%)8.020s (~)0.539s41.87x
💻 LocalNitro7.652s (+7.2% 🔺)8.019s (~)0.367s41.91x
🌐 MongoDBNext.js (Turbopack)10.075s10.348s0.274s32.51x
🐘 PostgresExpress49.351s (+3.7%)50.139s (+4.2%)0.788s112.30x
🐘 PostgresNitro50.278s (+8.9% 🔺)51.111s (+8.5% 🔺)0.833s112.54x
🐘 PostgresNext.js (Turbopack)53.640s54.126s0.486s113.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.162s (+15.2% 🔺)5.217s (+7.4% 🔺)1.055s61.00x
▲ VercelNext.js (Turbopack)4.909s (+17.3% 🔺)6.357s (+16.9% 🔺)1.448s61.18x
▲ VercelExpress5.638s (+55.9% 🔺)6.814s (+40.1% 🔺)1.176s51.35x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.274s2.006s0.731s151.00x
💻 LocalNext.js (Turbopack)1.413s2.005s0.592s151.11x
💻 LocalExpress1.440s (+0.8%)2.005s (~)0.565s151.13x
💻 LocalNitro1.448s (+2.0%)2.006s (~)0.558s151.14x
🐘 PostgresNitro2.125s (-1.8%)2.596s (-11.3% 🟢)0.471s121.67x
🌐 MongoDBNext.js (Turbopack)2.157s3.008s0.851s101.69x
🐘 PostgresExpress2.188s (+4.2%)2.595s (+3.3%)0.407s121.72x
🐘 PostgresNext.js (Turbopack)2.608s2.922s0.314s112.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.716s (-4.9%)3.588s (-2.8%)0.872s91.00x
▲ VercelNext.js (Turbopack)2.785s (-4.5%)3.621s (-14.8% 🟢)0.836s91.03x
▲ VercelNitro3.276s (+15.8% 🔺)4.062s (+4.8%)0.785s81.21x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.503s3.008s0.505s101.00x
💻 LocalNext.js (Turbopack)2.557s3.007s0.451s101.02x
💻 LocalExpress2.661s (-3.8%)3.007s (~)0.347s101.06x
💻 LocalNitro2.756s (+2.2%)3.007s (~)0.251s101.10x
🌐 MongoDBNext.js (Turbopack)4.815s5.177s0.362s61.92x
🐘 PostgresExpress11.345s (-1.1%)11.700s (-2.8%)0.356s34.53x
🐘 PostgresNitro11.693s (-2.5%)12.030s (-5.3% 🟢)0.337s34.67x
🐘 PostgresNext.js (Turbopack)13.981s14.706s0.724s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.367s (-5.0%)4.491s (-0.6%)1.125s81.00x
▲ VercelNitro3.701s (+20.9% 🔺)4.636s (~)0.935s71.10x
▲ VercelNext.js (Turbopack)4.158s (+4.8%)5.478s (+6.0% 🔺)1.320s61.23x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.044s4.581s0.537s71.00x
💻 LocalNext.js (Turbopack)7.618s8.016s0.398s41.88x
💻 LocalExpress7.787s (+2.8%)8.028s (~)0.241s41.93x
💻 LocalNitro7.905s (+2.8%)8.270s (+3.1%)0.365s41.95x
🌐 MongoDBNext.js (Turbopack)9.764s10.350s0.586s32.41x
🐘 PostgresExpress50.523s (-6.2% 🟢)51.122s (-5.5% 🟢)0.599s112.49x
🐘 PostgresNitro51.354s (+3.6%)52.131s (+4.0%)0.777s112.70x
🐘 PostgresNext.js (Turbopack)58.463s59.124s0.661s114.46x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.452s (-12.2% 🟢)4.642s (-16.1% 🟢)1.190s71.00x
▲ VercelNext.js (Turbopack)4.236s (-17.8% 🟢)5.752s (-8.0% 🟢)1.517s61.23x
▲ VercelNitro6.459s (+83.8% 🔺)7.317s (+43.6% 🔺)0.858s51.87x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.149s1.000s0.001s1.007s0.857s101.00x
💻 LocalNext.js (Turbopack)0.150s1.001s0.011s1.016s0.865s101.01x
💻 LocalExpress0.171s (~)1.002s (~)0.011s (+1.0%)1.015s (~)0.844s101.15x
💻 LocalNitro0.174s (+0.8%)1.002s (~)0.010s (+1.0%)1.015s (~)0.841s101.17x
🌐 MongoDBNext.js (Turbopack)0.515s0.934s0.001s1.008s0.493s103.45x
🐘 PostgresNext.js (Turbopack)0.612s0.921s0.001s1.009s0.397s104.10x
🐘 PostgresExpress1.291s (-41.2% 🟢)1.748s (-38.4% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.722s108.64x
🐘 PostgresNitro1.298s (-45.2% 🟢)1.742s (-34.8% 🟢)0.001s (~)2.012s (-33.3% 🟢)0.715s108.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.715s (+2.9%)3.349s (+12.1% 🔺)0.099s (-60.5% 🟢)4.075s (+3.5%)1.360s101.00x
▲ VercelNitro2.725s (-3.1%)3.002s (-0.7%)0.212s (+63.7% 🔺)3.825s (-2.5%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.944s (+7.8% 🔺)3.394s (+5.1% 🔺)0.260s (+14.1% 🔺)4.397s (+7.1% 🔺)1.454s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)10/12
🐘 PostgresNext.js (Turbopack)6/12
▲ VercelNitro5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)🌐 Redis10/12
Nitro💻 Local10/12
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

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-astro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-express-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-fastify-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-hono-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nitro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nuxt-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-sveltekit-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-vite-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-docsReadyReadyPreview, Comment, Open in v0Feb 11, 2026 11:27pm
workflow-nestReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-swc-playgroundReadyReadyPreview, CommentFeb 11, 2026 11:27pm

@TooTallNate
TooTallNate marked this pull request as ready for review February 11, 2026 23:10
@TooTallNate
TooTallNate requested review from a team and CopilotFebruary 11, 2026 23:10
When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. `var Foo = class { ... }`), the SWC plugin now re-inserts the binding name into the class expression (e.g. `var Foo = class Foo { ... }`). This preserves the class `.name` property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 transform to preserve class names for serializable classes when upstream bundlers convert named class declarations into anonymous class expressions, preventing downstream bundlers from losing the class identifier during subsequent bundling passes.

Changes:

  • Update the SWC transform to re-insert the variable binding name into anonymous class expressions when custom serialization methods are present.
  • Update transform fixture outputs to reflect the newly named class expressions.
  • Document the behavior in spec.md and publish a patch changeset.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsImplements binding-name re-insertion for anonymous serializable class expressions.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-workflow.jsUpdates expected workflow-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-step.jsUpdates expected step-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-client.jsUpdates expected client-mode fixture output to include class Shell.
packages/swc-plugin-workflow/spec.mdDocuments the anonymous class expression name re-insertion behavior.
.changeset/happy-doodles-return.mdAdds a patch changeset for the plugin release.

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

Comment threadpackages/swc-plugin-workflow/spec.md Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Clean, well-scoped fix.

The guard conditions (has_serde && class_expr.ident.is_none()) correctly ensure this only fires for anonymous serialization classes, leaving named class expressions (like class _Bash) untouched. Test fixtures and spec updated appropriately.

…recompute internal_class_name after ident insertion
@TooTallNate
TooTallNate enabled auto-merge (squash) February 11, 2026 23:25
@TooTallNate
TooTallNate merged commit 054e40c into mainFeb 11, 2026
98 checks passed
@TooTallNate
TooTallNate deleted the 02-10-fix_anonymous_class_expression_names_for_serialization_classes branch February 11, 2026 23:34
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.

4 participants

@TooTallNate@pranaygp@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Fix anonymous class expression names for serialization classes - #991

Merged
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes
Feb 11, 2026
Merged

Fix anonymous class expression names for serialization classes#991
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. var Foo = class { ... }), the SWC plugin now re-inserts the binding name into the class expression (e.g. var Foo = class Foo { ... }). This preserves the class .name property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

@changeset-bot

changeset-botBot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d57648

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production490038528
✅ 💻 Local Development418062480
✅ 📦 Local Production418062480
✅ 🐘 Local Postgres418062480
✅ 🪟 Windows450348
❌ 🌍 Community Worlds103419153
✅ 📋 Other123021144
Total2015412572313

❌ Failed Tests

🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4404
✅ example4404
✅ express4404
✅ fastify4404
✅ hono4404
✅ nextjs-turbopack4701
✅ nextjs-webpack4701
✅ nitro4404
✅ nuxt4404
✅ sveltekit4404
✅ vite4404
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4503
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
✅ mongodb4503
✅ redis-dev300
✅ redis4503
✅ turso-dev300
❌ turso4413
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4107
✅ e2e-local-postgres-nest-stable4107
✅ e2e-local-prod-nest-stable4107

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.031s (-4.0%)1.004s (~)0.973s101.00x
💻 LocalExpress0.032s (-0.6%)1.005s (~)0.973s101.01x
💻 LocalNext.js (Turbopack)0.040s1.005s0.964s101.28x
🌐 RedisNext.js (Turbopack)0.048s1.004s0.957s101.53x
🌐 MongoDBNext.js (Turbopack)0.095s1.007s0.912s103.02x
🐘 PostgresExpress0.117s (-47.6% 🟢)1.010s (~)0.893s103.72x
🐘 PostgresNitro0.122s (+6.8% 🔺)1.010s (~)0.888s103.89x
🐘 PostgresNext.js (Turbopack)0.398s1.009s0.610s1012.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.757s (-17.7% 🟢)2.073s (-8.1% 🟢)1.316s101.00x
▲ VercelExpress0.788s (-5.0% 🟢)2.103s (-8.3% 🟢)1.314s101.04x
▲ VercelNext.js (Turbopack)1.034s (+17.5% 🔺)2.500s (+20.8% 🔺)1.466s101.36x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.101s2.005s0.904s101.00x
💻 LocalExpress1.103s (~)2.004s (~)0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.899s101.00x
🌐 RedisNext.js (Turbopack)1.109s2.006s0.897s101.01x
🌐 MongoDBNext.js (Turbopack)1.305s2.007s0.702s101.19x
🐘 PostgresNext.js (Turbopack)1.808s2.011s0.203s101.64x
🐘 PostgresNitro2.439s (~)3.014s (~)0.576s102.22x
🐘 PostgresExpress2.446s (+16.2% 🔺)3.019s (~)0.573s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.672s (-1.4%)3.499s (-4.0%)0.827s101.00x
▲ VercelNext.js (Turbopack)2.743s (-6.6% 🟢)3.605s (-13.2% 🟢)0.862s101.03x
▲ VercelExpress2.797s (~)3.961s (+1.4%)1.163s101.05x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)10.722s11.022s0.300s31.00x
💻 LocalNext.js (Turbopack)10.740s11.021s0.282s31.00x
💻 LocalNitro10.824s (~)11.021s (~)0.197s31.01x
💻 LocalExpress10.828s (~)11.023s (~)0.194s31.01x
🌐 MongoDBNext.js (Turbopack)12.179s13.016s0.838s31.14x
🐘 PostgresNext.js (Turbopack)14.947s15.544s0.598s21.39x
🐘 PostgresExpress20.303s (-1.0%)21.058s (~)0.754s21.89x
🐘 PostgresNitro20.331s (~)21.059s (~)0.728s21.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.636s (-11.3% 🟢)21.364s (-13.6% 🟢)0.728s21.00x
▲ VercelNitro20.881s (-9.7% 🟢)21.757s (-10.8% 🟢)0.876s21.01x
▲ VercelNext.js (Turbopack)21.390s (+0.5%)23.125s (+1.8%)1.736s21.04x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.883s27.049s0.166s31.00x
💻 LocalNext.js (Turbopack)27.216s28.055s0.839s31.01x
💻 LocalExpress27.452s (~)28.048s (~)0.596s31.02x
💻 LocalNitro27.470s (~)28.051s (~)0.581s31.02x
🌐 MongoDBNext.js (Turbopack)30.322s31.028s0.706s21.13x
🐘 PostgresNext.js (Turbopack)33.506s33.577s0.071s21.25x
🐘 PostgresExpress50.295s (~)50.627s (-1.0%)0.332s21.87x
🐘 PostgresNitro50.319s (~)51.135s (~)0.816s21.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro51.744s (-1.6%)52.832s (-1.4%)1.088s21.00x
▲ VercelNext.js (Turbopack)51.869s (-3.2%)53.492s (-1.6%)1.623s21.00x
▲ VercelExpress54.551s (+3.6%)55.713s (+3.6%)1.162s21.05x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)54.261s55.096s0.835s21.00x
💻 LocalNext.js (Turbopack)56.710s57.105s0.395s21.05x
💻 LocalExpress57.137s (~)58.102s (~)0.965s21.05x
💻 LocalNitro57.230s (~)58.101s (~)0.871s21.05x
🌐 MongoDBNext.js (Turbopack)60.682s61.055s0.372s21.12x
🐘 PostgresNext.js (Turbopack)67.302s68.161s0.859s21.24x
🐘 PostgresNitro98.161s (-2.1%)98.221s (-3.0%)0.060s11.81x
🐘 PostgresExpress100.164s (~)100.224s (-1.0%)0.060s11.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)109.039s (+1.9%)110.276s (+2.1%)1.237s11.00x
▲ VercelExpress114.385s (+6.0% 🔺)115.921s (+5.7% 🔺)1.536s11.05x
▲ VercelNitro119.083s (+5.4% 🔺)120.097s (+4.8%)1.014s11.09x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.250s2.006s0.756s151.00x
💻 LocalExpress1.400s (~)2.005s (~)0.606s151.12x
💻 LocalNext.js (Turbopack)1.411s2.005s0.594s151.13x
💻 LocalNitro1.426s (+0.8%)2.006s (~)0.580s151.14x
🐘 PostgresNext.js (Turbopack)2.147s2.512s0.364s121.72x
🌐 MongoDBNext.js (Turbopack)2.166s3.007s0.842s101.73x
🐘 PostgresNitro2.264s (-2.1%)2.830s (-6.1% 🟢)0.567s111.81x
🐘 PostgresExpress2.273s (-0.8%)3.013s (~)0.740s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.021s (-25.7% 🟢)4.023s (-26.7% 🟢)1.003s81.00x
▲ VercelNitro3.051s (+4.5%)4.474s (+17.1% 🔺)1.423s71.01x
▲ VercelExpress3.338s (+13.2% 🔺)4.131s (+5.9% 🔺)0.792s81.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.482s3.008s0.526s101.00x
💻 LocalNext.js (Turbopack)2.501s3.008s0.507s101.01x
💻 LocalExpress2.573s (+1.5%)3.008s (~)0.434s101.04x
💻 LocalNitro2.636s (+2.4%)3.008s (~)0.372s101.06x
🌐 MongoDBNext.js (Turbopack)4.668s5.176s0.509s61.88x
🐘 PostgresNitro9.266s (+0.8%)9.542s (~)0.276s43.73x
🐘 PostgresExpress10.402s (+39.0% 🔺)10.710s (+29.3% 🔺)0.308s34.19x
🐘 PostgresNext.js (Turbopack)12.413s12.701s0.288s35.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.048s (-13.4% 🟢)4.475s (-8.6% 🟢)1.427s71.00x
▲ VercelNext.js (Turbopack)3.323s (-2.2%)5.020s (+9.0% 🔺)1.698s61.09x
▲ VercelExpress3.484s (+2.5%)4.690s (+2.2%)1.205s71.14x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.011s4.581s0.571s71.00x
💻 LocalNext.js (Turbopack)7.473s8.021s0.548s41.86x
💻 LocalExpress7.480s (+3.3%)8.020s (~)0.539s41.87x
💻 LocalNitro7.652s (+7.2% 🔺)8.019s (~)0.367s41.91x
🌐 MongoDBNext.js (Turbopack)10.075s10.348s0.274s32.51x
🐘 PostgresExpress49.351s (+3.7%)50.139s (+4.2%)0.788s112.30x
🐘 PostgresNitro50.278s (+8.9% 🔺)51.111s (+8.5% 🔺)0.833s112.54x
🐘 PostgresNext.js (Turbopack)53.640s54.126s0.486s113.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.162s (+15.2% 🔺)5.217s (+7.4% 🔺)1.055s61.00x
▲ VercelNext.js (Turbopack)4.909s (+17.3% 🔺)6.357s (+16.9% 🔺)1.448s61.18x
▲ VercelExpress5.638s (+55.9% 🔺)6.814s (+40.1% 🔺)1.176s51.35x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.274s2.006s0.731s151.00x
💻 LocalNext.js (Turbopack)1.413s2.005s0.592s151.11x
💻 LocalExpress1.440s (+0.8%)2.005s (~)0.565s151.13x
💻 LocalNitro1.448s (+2.0%)2.006s (~)0.558s151.14x
🐘 PostgresNitro2.125s (-1.8%)2.596s (-11.3% 🟢)0.471s121.67x
🌐 MongoDBNext.js (Turbopack)2.157s3.008s0.851s101.69x
🐘 PostgresExpress2.188s (+4.2%)2.595s (+3.3%)0.407s121.72x
🐘 PostgresNext.js (Turbopack)2.608s2.922s0.314s112.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.716s (-4.9%)3.588s (-2.8%)0.872s91.00x
▲ VercelNext.js (Turbopack)2.785s (-4.5%)3.621s (-14.8% 🟢)0.836s91.03x
▲ VercelNitro3.276s (+15.8% 🔺)4.062s (+4.8%)0.785s81.21x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.503s3.008s0.505s101.00x
💻 LocalNext.js (Turbopack)2.557s3.007s0.451s101.02x
💻 LocalExpress2.661s (-3.8%)3.007s (~)0.347s101.06x
💻 LocalNitro2.756s (+2.2%)3.007s (~)0.251s101.10x
🌐 MongoDBNext.js (Turbopack)4.815s5.177s0.362s61.92x
🐘 PostgresExpress11.345s (-1.1%)11.700s (-2.8%)0.356s34.53x
🐘 PostgresNitro11.693s (-2.5%)12.030s (-5.3% 🟢)0.337s34.67x
🐘 PostgresNext.js (Turbopack)13.981s14.706s0.724s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.367s (-5.0%)4.491s (-0.6%)1.125s81.00x
▲ VercelNitro3.701s (+20.9% 🔺)4.636s (~)0.935s71.10x
▲ VercelNext.js (Turbopack)4.158s (+4.8%)5.478s (+6.0% 🔺)1.320s61.23x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.044s4.581s0.537s71.00x
💻 LocalNext.js (Turbopack)7.618s8.016s0.398s41.88x
💻 LocalExpress7.787s (+2.8%)8.028s (~)0.241s41.93x
💻 LocalNitro7.905s (+2.8%)8.270s (+3.1%)0.365s41.95x
🌐 MongoDBNext.js (Turbopack)9.764s10.350s0.586s32.41x
🐘 PostgresExpress50.523s (-6.2% 🟢)51.122s (-5.5% 🟢)0.599s112.49x
🐘 PostgresNitro51.354s (+3.6%)52.131s (+4.0%)0.777s112.70x
🐘 PostgresNext.js (Turbopack)58.463s59.124s0.661s114.46x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.452s (-12.2% 🟢)4.642s (-16.1% 🟢)1.190s71.00x
▲ VercelNext.js (Turbopack)4.236s (-17.8% 🟢)5.752s (-8.0% 🟢)1.517s61.23x
▲ VercelNitro6.459s (+83.8% 🔺)7.317s (+43.6% 🔺)0.858s51.87x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.149s1.000s0.001s1.007s0.857s101.00x
💻 LocalNext.js (Turbopack)0.150s1.001s0.011s1.016s0.865s101.01x
💻 LocalExpress0.171s (~)1.002s (~)0.011s (+1.0%)1.015s (~)0.844s101.15x
💻 LocalNitro0.174s (+0.8%)1.002s (~)0.010s (+1.0%)1.015s (~)0.841s101.17x
🌐 MongoDBNext.js (Turbopack)0.515s0.934s0.001s1.008s0.493s103.45x
🐘 PostgresNext.js (Turbopack)0.612s0.921s0.001s1.009s0.397s104.10x
🐘 PostgresExpress1.291s (-41.2% 🟢)1.748s (-38.4% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.722s108.64x
🐘 PostgresNitro1.298s (-45.2% 🟢)1.742s (-34.8% 🟢)0.001s (~)2.012s (-33.3% 🟢)0.715s108.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.715s (+2.9%)3.349s (+12.1% 🔺)0.099s (-60.5% 🟢)4.075s (+3.5%)1.360s101.00x
▲ VercelNitro2.725s (-3.1%)3.002s (-0.7%)0.212s (+63.7% 🔺)3.825s (-2.5%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.944s (+7.8% 🔺)3.394s (+5.1% 🔺)0.260s (+14.1% 🔺)4.397s (+7.1% 🔺)1.454s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)10/12
🐘 PostgresNext.js (Turbopack)6/12
▲ VercelNitro5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)🌐 Redis10/12
Nitro💻 Local10/12
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

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-astro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-express-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-fastify-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-hono-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nitro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nuxt-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-sveltekit-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-vite-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-docsReadyReadyPreview, Comment, Open in v0Feb 11, 2026 11:27pm
workflow-nestReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-swc-playgroundReadyReadyPreview, CommentFeb 11, 2026 11:27pm

@TooTallNate
TooTallNate marked this pull request as ready for review February 11, 2026 23:10
@TooTallNate
TooTallNate requested review from a team and CopilotFebruary 11, 2026 23:10
When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. `var Foo = class { ... }`), the SWC plugin now re-inserts the binding name into the class expression (e.g. `var Foo = class Foo { ... }`). This preserves the class `.name` property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 transform to preserve class names for serializable classes when upstream bundlers convert named class declarations into anonymous class expressions, preventing downstream bundlers from losing the class identifier during subsequent bundling passes.

Changes:

  • Update the SWC transform to re-insert the variable binding name into anonymous class expressions when custom serialization methods are present.
  • Update transform fixture outputs to reflect the newly named class expressions.
  • Document the behavior in spec.md and publish a patch changeset.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsImplements binding-name re-insertion for anonymous serializable class expressions.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-workflow.jsUpdates expected workflow-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-step.jsUpdates expected step-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-client.jsUpdates expected client-mode fixture output to include class Shell.
packages/swc-plugin-workflow/spec.mdDocuments the anonymous class expression name re-insertion behavior.
.changeset/happy-doodles-return.mdAdds a patch changeset for the plugin release.

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

Comment threadpackages/swc-plugin-workflow/spec.md Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Clean, well-scoped fix.

The guard conditions (has_serde && class_expr.ident.is_none()) correctly ensure this only fires for anonymous serialization classes, leaving named class expressions (like class _Bash) untouched. Test fixtures and spec updated appropriately.

…recompute internal_class_name after ident insertion
@TooTallNate
TooTallNate enabled auto-merge (squash) February 11, 2026 23:25
@TooTallNate
TooTallNate merged commit 054e40c into mainFeb 11, 2026
98 checks passed
@TooTallNate
TooTallNate deleted the 02-10-fix_anonymous_class_expression_names_for_serialization_classes branch February 11, 2026 23:34
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.

4 participants

@TooTallNate@pranaygp@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Fix anonymous class expression names for serialization classes - #991

Merged
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes
Feb 11, 2026
Merged

Fix anonymous class expression names for serialization classes#991
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. var Foo = class { ... }), the SWC plugin now re-inserts the binding name into the class expression (e.g. var Foo = class Foo { ... }). This preserves the class .name property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

@changeset-bot

changeset-botBot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d57648

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production490038528
✅ 💻 Local Development418062480
✅ 📦 Local Production418062480
✅ 🐘 Local Postgres418062480
✅ 🪟 Windows450348
❌ 🌍 Community Worlds103419153
✅ 📋 Other123021144
Total2015412572313

❌ Failed Tests

🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4404
✅ example4404
✅ express4404
✅ fastify4404
✅ hono4404
✅ nextjs-turbopack4701
✅ nextjs-webpack4701
✅ nitro4404
✅ nuxt4404
✅ sveltekit4404
✅ vite4404
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4503
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
✅ mongodb4503
✅ redis-dev300
✅ redis4503
✅ turso-dev300
❌ turso4413
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4107
✅ e2e-local-postgres-nest-stable4107
✅ e2e-local-prod-nest-stable4107

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.031s (-4.0%)1.004s (~)0.973s101.00x
💻 LocalExpress0.032s (-0.6%)1.005s (~)0.973s101.01x
💻 LocalNext.js (Turbopack)0.040s1.005s0.964s101.28x
🌐 RedisNext.js (Turbopack)0.048s1.004s0.957s101.53x
🌐 MongoDBNext.js (Turbopack)0.095s1.007s0.912s103.02x
🐘 PostgresExpress0.117s (-47.6% 🟢)1.010s (~)0.893s103.72x
🐘 PostgresNitro0.122s (+6.8% 🔺)1.010s (~)0.888s103.89x
🐘 PostgresNext.js (Turbopack)0.398s1.009s0.610s1012.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.757s (-17.7% 🟢)2.073s (-8.1% 🟢)1.316s101.00x
▲ VercelExpress0.788s (-5.0% 🟢)2.103s (-8.3% 🟢)1.314s101.04x
▲ VercelNext.js (Turbopack)1.034s (+17.5% 🔺)2.500s (+20.8% 🔺)1.466s101.36x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.101s2.005s0.904s101.00x
💻 LocalExpress1.103s (~)2.004s (~)0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.899s101.00x
🌐 RedisNext.js (Turbopack)1.109s2.006s0.897s101.01x
🌐 MongoDBNext.js (Turbopack)1.305s2.007s0.702s101.19x
🐘 PostgresNext.js (Turbopack)1.808s2.011s0.203s101.64x
🐘 PostgresNitro2.439s (~)3.014s (~)0.576s102.22x
🐘 PostgresExpress2.446s (+16.2% 🔺)3.019s (~)0.573s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.672s (-1.4%)3.499s (-4.0%)0.827s101.00x
▲ VercelNext.js (Turbopack)2.743s (-6.6% 🟢)3.605s (-13.2% 🟢)0.862s101.03x
▲ VercelExpress2.797s (~)3.961s (+1.4%)1.163s101.05x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)10.722s11.022s0.300s31.00x
💻 LocalNext.js (Turbopack)10.740s11.021s0.282s31.00x
💻 LocalNitro10.824s (~)11.021s (~)0.197s31.01x
💻 LocalExpress10.828s (~)11.023s (~)0.194s31.01x
🌐 MongoDBNext.js (Turbopack)12.179s13.016s0.838s31.14x
🐘 PostgresNext.js (Turbopack)14.947s15.544s0.598s21.39x
🐘 PostgresExpress20.303s (-1.0%)21.058s (~)0.754s21.89x
🐘 PostgresNitro20.331s (~)21.059s (~)0.728s21.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.636s (-11.3% 🟢)21.364s (-13.6% 🟢)0.728s21.00x
▲ VercelNitro20.881s (-9.7% 🟢)21.757s (-10.8% 🟢)0.876s21.01x
▲ VercelNext.js (Turbopack)21.390s (+0.5%)23.125s (+1.8%)1.736s21.04x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.883s27.049s0.166s31.00x
💻 LocalNext.js (Turbopack)27.216s28.055s0.839s31.01x
💻 LocalExpress27.452s (~)28.048s (~)0.596s31.02x
💻 LocalNitro27.470s (~)28.051s (~)0.581s31.02x
🌐 MongoDBNext.js (Turbopack)30.322s31.028s0.706s21.13x
🐘 PostgresNext.js (Turbopack)33.506s33.577s0.071s21.25x
🐘 PostgresExpress50.295s (~)50.627s (-1.0%)0.332s21.87x
🐘 PostgresNitro50.319s (~)51.135s (~)0.816s21.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro51.744s (-1.6%)52.832s (-1.4%)1.088s21.00x
▲ VercelNext.js (Turbopack)51.869s (-3.2%)53.492s (-1.6%)1.623s21.00x
▲ VercelExpress54.551s (+3.6%)55.713s (+3.6%)1.162s21.05x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)54.261s55.096s0.835s21.00x
💻 LocalNext.js (Turbopack)56.710s57.105s0.395s21.05x
💻 LocalExpress57.137s (~)58.102s (~)0.965s21.05x
💻 LocalNitro57.230s (~)58.101s (~)0.871s21.05x
🌐 MongoDBNext.js (Turbopack)60.682s61.055s0.372s21.12x
🐘 PostgresNext.js (Turbopack)67.302s68.161s0.859s21.24x
🐘 PostgresNitro98.161s (-2.1%)98.221s (-3.0%)0.060s11.81x
🐘 PostgresExpress100.164s (~)100.224s (-1.0%)0.060s11.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)109.039s (+1.9%)110.276s (+2.1%)1.237s11.00x
▲ VercelExpress114.385s (+6.0% 🔺)115.921s (+5.7% 🔺)1.536s11.05x
▲ VercelNitro119.083s (+5.4% 🔺)120.097s (+4.8%)1.014s11.09x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.250s2.006s0.756s151.00x
💻 LocalExpress1.400s (~)2.005s (~)0.606s151.12x
💻 LocalNext.js (Turbopack)1.411s2.005s0.594s151.13x
💻 LocalNitro1.426s (+0.8%)2.006s (~)0.580s151.14x
🐘 PostgresNext.js (Turbopack)2.147s2.512s0.364s121.72x
🌐 MongoDBNext.js (Turbopack)2.166s3.007s0.842s101.73x
🐘 PostgresNitro2.264s (-2.1%)2.830s (-6.1% 🟢)0.567s111.81x
🐘 PostgresExpress2.273s (-0.8%)3.013s (~)0.740s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.021s (-25.7% 🟢)4.023s (-26.7% 🟢)1.003s81.00x
▲ VercelNitro3.051s (+4.5%)4.474s (+17.1% 🔺)1.423s71.01x
▲ VercelExpress3.338s (+13.2% 🔺)4.131s (+5.9% 🔺)0.792s81.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.482s3.008s0.526s101.00x
💻 LocalNext.js (Turbopack)2.501s3.008s0.507s101.01x
💻 LocalExpress2.573s (+1.5%)3.008s (~)0.434s101.04x
💻 LocalNitro2.636s (+2.4%)3.008s (~)0.372s101.06x
🌐 MongoDBNext.js (Turbopack)4.668s5.176s0.509s61.88x
🐘 PostgresNitro9.266s (+0.8%)9.542s (~)0.276s43.73x
🐘 PostgresExpress10.402s (+39.0% 🔺)10.710s (+29.3% 🔺)0.308s34.19x
🐘 PostgresNext.js (Turbopack)12.413s12.701s0.288s35.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.048s (-13.4% 🟢)4.475s (-8.6% 🟢)1.427s71.00x
▲ VercelNext.js (Turbopack)3.323s (-2.2%)5.020s (+9.0% 🔺)1.698s61.09x
▲ VercelExpress3.484s (+2.5%)4.690s (+2.2%)1.205s71.14x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.011s4.581s0.571s71.00x
💻 LocalNext.js (Turbopack)7.473s8.021s0.548s41.86x
💻 LocalExpress7.480s (+3.3%)8.020s (~)0.539s41.87x
💻 LocalNitro7.652s (+7.2% 🔺)8.019s (~)0.367s41.91x
🌐 MongoDBNext.js (Turbopack)10.075s10.348s0.274s32.51x
🐘 PostgresExpress49.351s (+3.7%)50.139s (+4.2%)0.788s112.30x
🐘 PostgresNitro50.278s (+8.9% 🔺)51.111s (+8.5% 🔺)0.833s112.54x
🐘 PostgresNext.js (Turbopack)53.640s54.126s0.486s113.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.162s (+15.2% 🔺)5.217s (+7.4% 🔺)1.055s61.00x
▲ VercelNext.js (Turbopack)4.909s (+17.3% 🔺)6.357s (+16.9% 🔺)1.448s61.18x
▲ VercelExpress5.638s (+55.9% 🔺)6.814s (+40.1% 🔺)1.176s51.35x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.274s2.006s0.731s151.00x
💻 LocalNext.js (Turbopack)1.413s2.005s0.592s151.11x
💻 LocalExpress1.440s (+0.8%)2.005s (~)0.565s151.13x
💻 LocalNitro1.448s (+2.0%)2.006s (~)0.558s151.14x
🐘 PostgresNitro2.125s (-1.8%)2.596s (-11.3% 🟢)0.471s121.67x
🌐 MongoDBNext.js (Turbopack)2.157s3.008s0.851s101.69x
🐘 PostgresExpress2.188s (+4.2%)2.595s (+3.3%)0.407s121.72x
🐘 PostgresNext.js (Turbopack)2.608s2.922s0.314s112.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.716s (-4.9%)3.588s (-2.8%)0.872s91.00x
▲ VercelNext.js (Turbopack)2.785s (-4.5%)3.621s (-14.8% 🟢)0.836s91.03x
▲ VercelNitro3.276s (+15.8% 🔺)4.062s (+4.8%)0.785s81.21x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.503s3.008s0.505s101.00x
💻 LocalNext.js (Turbopack)2.557s3.007s0.451s101.02x
💻 LocalExpress2.661s (-3.8%)3.007s (~)0.347s101.06x
💻 LocalNitro2.756s (+2.2%)3.007s (~)0.251s101.10x
🌐 MongoDBNext.js (Turbopack)4.815s5.177s0.362s61.92x
🐘 PostgresExpress11.345s (-1.1%)11.700s (-2.8%)0.356s34.53x
🐘 PostgresNitro11.693s (-2.5%)12.030s (-5.3% 🟢)0.337s34.67x
🐘 PostgresNext.js (Turbopack)13.981s14.706s0.724s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.367s (-5.0%)4.491s (-0.6%)1.125s81.00x
▲ VercelNitro3.701s (+20.9% 🔺)4.636s (~)0.935s71.10x
▲ VercelNext.js (Turbopack)4.158s (+4.8%)5.478s (+6.0% 🔺)1.320s61.23x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.044s4.581s0.537s71.00x
💻 LocalNext.js (Turbopack)7.618s8.016s0.398s41.88x
💻 LocalExpress7.787s (+2.8%)8.028s (~)0.241s41.93x
💻 LocalNitro7.905s (+2.8%)8.270s (+3.1%)0.365s41.95x
🌐 MongoDBNext.js (Turbopack)9.764s10.350s0.586s32.41x
🐘 PostgresExpress50.523s (-6.2% 🟢)51.122s (-5.5% 🟢)0.599s112.49x
🐘 PostgresNitro51.354s (+3.6%)52.131s (+4.0%)0.777s112.70x
🐘 PostgresNext.js (Turbopack)58.463s59.124s0.661s114.46x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.452s (-12.2% 🟢)4.642s (-16.1% 🟢)1.190s71.00x
▲ VercelNext.js (Turbopack)4.236s (-17.8% 🟢)5.752s (-8.0% 🟢)1.517s61.23x
▲ VercelNitro6.459s (+83.8% 🔺)7.317s (+43.6% 🔺)0.858s51.87x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.149s1.000s0.001s1.007s0.857s101.00x
💻 LocalNext.js (Turbopack)0.150s1.001s0.011s1.016s0.865s101.01x
💻 LocalExpress0.171s (~)1.002s (~)0.011s (+1.0%)1.015s (~)0.844s101.15x
💻 LocalNitro0.174s (+0.8%)1.002s (~)0.010s (+1.0%)1.015s (~)0.841s101.17x
🌐 MongoDBNext.js (Turbopack)0.515s0.934s0.001s1.008s0.493s103.45x
🐘 PostgresNext.js (Turbopack)0.612s0.921s0.001s1.009s0.397s104.10x
🐘 PostgresExpress1.291s (-41.2% 🟢)1.748s (-38.4% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.722s108.64x
🐘 PostgresNitro1.298s (-45.2% 🟢)1.742s (-34.8% 🟢)0.001s (~)2.012s (-33.3% 🟢)0.715s108.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.715s (+2.9%)3.349s (+12.1% 🔺)0.099s (-60.5% 🟢)4.075s (+3.5%)1.360s101.00x
▲ VercelNitro2.725s (-3.1%)3.002s (-0.7%)0.212s (+63.7% 🔺)3.825s (-2.5%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.944s (+7.8% 🔺)3.394s (+5.1% 🔺)0.260s (+14.1% 🔺)4.397s (+7.1% 🔺)1.454s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)10/12
🐘 PostgresNext.js (Turbopack)6/12
▲ VercelNitro5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)🌐 Redis10/12
Nitro💻 Local10/12
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

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-astro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-express-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-fastify-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-hono-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nitro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nuxt-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-sveltekit-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-vite-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-docsReadyReadyPreview, Comment, Open in v0Feb 11, 2026 11:27pm
workflow-nestReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-swc-playgroundReadyReadyPreview, CommentFeb 11, 2026 11:27pm

@TooTallNate
TooTallNate marked this pull request as ready for review February 11, 2026 23:10
@TooTallNate
TooTallNate requested review from a team and CopilotFebruary 11, 2026 23:10
When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. `var Foo = class { ... }`), the SWC plugin now re-inserts the binding name into the class expression (e.g. `var Foo = class Foo { ... }`). This preserves the class `.name` property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 transform to preserve class names for serializable classes when upstream bundlers convert named class declarations into anonymous class expressions, preventing downstream bundlers from losing the class identifier during subsequent bundling passes.

Changes:

  • Update the SWC transform to re-insert the variable binding name into anonymous class expressions when custom serialization methods are present.
  • Update transform fixture outputs to reflect the newly named class expressions.
  • Document the behavior in spec.md and publish a patch changeset.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsImplements binding-name re-insertion for anonymous serializable class expressions.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-workflow.jsUpdates expected workflow-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-step.jsUpdates expected step-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-client.jsUpdates expected client-mode fixture output to include class Shell.
packages/swc-plugin-workflow/spec.mdDocuments the anonymous class expression name re-insertion behavior.
.changeset/happy-doodles-return.mdAdds a patch changeset for the plugin release.

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

Comment threadpackages/swc-plugin-workflow/spec.md Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Clean, well-scoped fix.

The guard conditions (has_serde && class_expr.ident.is_none()) correctly ensure this only fires for anonymous serialization classes, leaving named class expressions (like class _Bash) untouched. Test fixtures and spec updated appropriately.

…recompute internal_class_name after ident insertion
@TooTallNate
TooTallNate enabled auto-merge (squash) February 11, 2026 23:25
@TooTallNate
TooTallNate merged commit 054e40c into mainFeb 11, 2026
98 checks passed
@TooTallNate
TooTallNate deleted the 02-10-fix_anonymous_class_expression_names_for_serialization_classes branch February 11, 2026 23:34
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.

4 participants

@TooTallNate@pranaygp@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Fix anonymous class expression names for serialization classes - #991

Merged
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes
Feb 11, 2026
Merged

Fix anonymous class expression names for serialization classes#991
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. var Foo = class { ... }), the SWC plugin now re-inserts the binding name into the class expression (e.g. var Foo = class Foo { ... }). This preserves the class .name property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

@changeset-bot

changeset-botBot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d57648

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production490038528
✅ 💻 Local Development418062480
✅ 📦 Local Production418062480
✅ 🐘 Local Postgres418062480
✅ 🪟 Windows450348
❌ 🌍 Community Worlds103419153
✅ 📋 Other123021144
Total2015412572313

❌ Failed Tests

🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4404
✅ example4404
✅ express4404
✅ fastify4404
✅ hono4404
✅ nextjs-turbopack4701
✅ nextjs-webpack4701
✅ nitro4404
✅ nuxt4404
✅ sveltekit4404
✅ vite4404
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4503
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
✅ mongodb4503
✅ redis-dev300
✅ redis4503
✅ turso-dev300
❌ turso4413
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4107
✅ e2e-local-postgres-nest-stable4107
✅ e2e-local-prod-nest-stable4107

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.031s (-4.0%)1.004s (~)0.973s101.00x
💻 LocalExpress0.032s (-0.6%)1.005s (~)0.973s101.01x
💻 LocalNext.js (Turbopack)0.040s1.005s0.964s101.28x
🌐 RedisNext.js (Turbopack)0.048s1.004s0.957s101.53x
🌐 MongoDBNext.js (Turbopack)0.095s1.007s0.912s103.02x
🐘 PostgresExpress0.117s (-47.6% 🟢)1.010s (~)0.893s103.72x
🐘 PostgresNitro0.122s (+6.8% 🔺)1.010s (~)0.888s103.89x
🐘 PostgresNext.js (Turbopack)0.398s1.009s0.610s1012.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.757s (-17.7% 🟢)2.073s (-8.1% 🟢)1.316s101.00x
▲ VercelExpress0.788s (-5.0% 🟢)2.103s (-8.3% 🟢)1.314s101.04x
▲ VercelNext.js (Turbopack)1.034s (+17.5% 🔺)2.500s (+20.8% 🔺)1.466s101.36x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.101s2.005s0.904s101.00x
💻 LocalExpress1.103s (~)2.004s (~)0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.899s101.00x
🌐 RedisNext.js (Turbopack)1.109s2.006s0.897s101.01x
🌐 MongoDBNext.js (Turbopack)1.305s2.007s0.702s101.19x
🐘 PostgresNext.js (Turbopack)1.808s2.011s0.203s101.64x
🐘 PostgresNitro2.439s (~)3.014s (~)0.576s102.22x
🐘 PostgresExpress2.446s (+16.2% 🔺)3.019s (~)0.573s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.672s (-1.4%)3.499s (-4.0%)0.827s101.00x
▲ VercelNext.js (Turbopack)2.743s (-6.6% 🟢)3.605s (-13.2% 🟢)0.862s101.03x
▲ VercelExpress2.797s (~)3.961s (+1.4%)1.163s101.05x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)10.722s11.022s0.300s31.00x
💻 LocalNext.js (Turbopack)10.740s11.021s0.282s31.00x
💻 LocalNitro10.824s (~)11.021s (~)0.197s31.01x
💻 LocalExpress10.828s (~)11.023s (~)0.194s31.01x
🌐 MongoDBNext.js (Turbopack)12.179s13.016s0.838s31.14x
🐘 PostgresNext.js (Turbopack)14.947s15.544s0.598s21.39x
🐘 PostgresExpress20.303s (-1.0%)21.058s (~)0.754s21.89x
🐘 PostgresNitro20.331s (~)21.059s (~)0.728s21.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.636s (-11.3% 🟢)21.364s (-13.6% 🟢)0.728s21.00x
▲ VercelNitro20.881s (-9.7% 🟢)21.757s (-10.8% 🟢)0.876s21.01x
▲ VercelNext.js (Turbopack)21.390s (+0.5%)23.125s (+1.8%)1.736s21.04x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.883s27.049s0.166s31.00x
💻 LocalNext.js (Turbopack)27.216s28.055s0.839s31.01x
💻 LocalExpress27.452s (~)28.048s (~)0.596s31.02x
💻 LocalNitro27.470s (~)28.051s (~)0.581s31.02x
🌐 MongoDBNext.js (Turbopack)30.322s31.028s0.706s21.13x
🐘 PostgresNext.js (Turbopack)33.506s33.577s0.071s21.25x
🐘 PostgresExpress50.295s (~)50.627s (-1.0%)0.332s21.87x
🐘 PostgresNitro50.319s (~)51.135s (~)0.816s21.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro51.744s (-1.6%)52.832s (-1.4%)1.088s21.00x
▲ VercelNext.js (Turbopack)51.869s (-3.2%)53.492s (-1.6%)1.623s21.00x
▲ VercelExpress54.551s (+3.6%)55.713s (+3.6%)1.162s21.05x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)54.261s55.096s0.835s21.00x
💻 LocalNext.js (Turbopack)56.710s57.105s0.395s21.05x
💻 LocalExpress57.137s (~)58.102s (~)0.965s21.05x
💻 LocalNitro57.230s (~)58.101s (~)0.871s21.05x
🌐 MongoDBNext.js (Turbopack)60.682s61.055s0.372s21.12x
🐘 PostgresNext.js (Turbopack)67.302s68.161s0.859s21.24x
🐘 PostgresNitro98.161s (-2.1%)98.221s (-3.0%)0.060s11.81x
🐘 PostgresExpress100.164s (~)100.224s (-1.0%)0.060s11.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)109.039s (+1.9%)110.276s (+2.1%)1.237s11.00x
▲ VercelExpress114.385s (+6.0% 🔺)115.921s (+5.7% 🔺)1.536s11.05x
▲ VercelNitro119.083s (+5.4% 🔺)120.097s (+4.8%)1.014s11.09x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.250s2.006s0.756s151.00x
💻 LocalExpress1.400s (~)2.005s (~)0.606s151.12x
💻 LocalNext.js (Turbopack)1.411s2.005s0.594s151.13x
💻 LocalNitro1.426s (+0.8%)2.006s (~)0.580s151.14x
🐘 PostgresNext.js (Turbopack)2.147s2.512s0.364s121.72x
🌐 MongoDBNext.js (Turbopack)2.166s3.007s0.842s101.73x
🐘 PostgresNitro2.264s (-2.1%)2.830s (-6.1% 🟢)0.567s111.81x
🐘 PostgresExpress2.273s (-0.8%)3.013s (~)0.740s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.021s (-25.7% 🟢)4.023s (-26.7% 🟢)1.003s81.00x
▲ VercelNitro3.051s (+4.5%)4.474s (+17.1% 🔺)1.423s71.01x
▲ VercelExpress3.338s (+13.2% 🔺)4.131s (+5.9% 🔺)0.792s81.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.482s3.008s0.526s101.00x
💻 LocalNext.js (Turbopack)2.501s3.008s0.507s101.01x
💻 LocalExpress2.573s (+1.5%)3.008s (~)0.434s101.04x
💻 LocalNitro2.636s (+2.4%)3.008s (~)0.372s101.06x
🌐 MongoDBNext.js (Turbopack)4.668s5.176s0.509s61.88x
🐘 PostgresNitro9.266s (+0.8%)9.542s (~)0.276s43.73x
🐘 PostgresExpress10.402s (+39.0% 🔺)10.710s (+29.3% 🔺)0.308s34.19x
🐘 PostgresNext.js (Turbopack)12.413s12.701s0.288s35.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.048s (-13.4% 🟢)4.475s (-8.6% 🟢)1.427s71.00x
▲ VercelNext.js (Turbopack)3.323s (-2.2%)5.020s (+9.0% 🔺)1.698s61.09x
▲ VercelExpress3.484s (+2.5%)4.690s (+2.2%)1.205s71.14x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.011s4.581s0.571s71.00x
💻 LocalNext.js (Turbopack)7.473s8.021s0.548s41.86x
💻 LocalExpress7.480s (+3.3%)8.020s (~)0.539s41.87x
💻 LocalNitro7.652s (+7.2% 🔺)8.019s (~)0.367s41.91x
🌐 MongoDBNext.js (Turbopack)10.075s10.348s0.274s32.51x
🐘 PostgresExpress49.351s (+3.7%)50.139s (+4.2%)0.788s112.30x
🐘 PostgresNitro50.278s (+8.9% 🔺)51.111s (+8.5% 🔺)0.833s112.54x
🐘 PostgresNext.js (Turbopack)53.640s54.126s0.486s113.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.162s (+15.2% 🔺)5.217s (+7.4% 🔺)1.055s61.00x
▲ VercelNext.js (Turbopack)4.909s (+17.3% 🔺)6.357s (+16.9% 🔺)1.448s61.18x
▲ VercelExpress5.638s (+55.9% 🔺)6.814s (+40.1% 🔺)1.176s51.35x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.274s2.006s0.731s151.00x
💻 LocalNext.js (Turbopack)1.413s2.005s0.592s151.11x
💻 LocalExpress1.440s (+0.8%)2.005s (~)0.565s151.13x
💻 LocalNitro1.448s (+2.0%)2.006s (~)0.558s151.14x
🐘 PostgresNitro2.125s (-1.8%)2.596s (-11.3% 🟢)0.471s121.67x
🌐 MongoDBNext.js (Turbopack)2.157s3.008s0.851s101.69x
🐘 PostgresExpress2.188s (+4.2%)2.595s (+3.3%)0.407s121.72x
🐘 PostgresNext.js (Turbopack)2.608s2.922s0.314s112.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.716s (-4.9%)3.588s (-2.8%)0.872s91.00x
▲ VercelNext.js (Turbopack)2.785s (-4.5%)3.621s (-14.8% 🟢)0.836s91.03x
▲ VercelNitro3.276s (+15.8% 🔺)4.062s (+4.8%)0.785s81.21x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.503s3.008s0.505s101.00x
💻 LocalNext.js (Turbopack)2.557s3.007s0.451s101.02x
💻 LocalExpress2.661s (-3.8%)3.007s (~)0.347s101.06x
💻 LocalNitro2.756s (+2.2%)3.007s (~)0.251s101.10x
🌐 MongoDBNext.js (Turbopack)4.815s5.177s0.362s61.92x
🐘 PostgresExpress11.345s (-1.1%)11.700s (-2.8%)0.356s34.53x
🐘 PostgresNitro11.693s (-2.5%)12.030s (-5.3% 🟢)0.337s34.67x
🐘 PostgresNext.js (Turbopack)13.981s14.706s0.724s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.367s (-5.0%)4.491s (-0.6%)1.125s81.00x
▲ VercelNitro3.701s (+20.9% 🔺)4.636s (~)0.935s71.10x
▲ VercelNext.js (Turbopack)4.158s (+4.8%)5.478s (+6.0% 🔺)1.320s61.23x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.044s4.581s0.537s71.00x
💻 LocalNext.js (Turbopack)7.618s8.016s0.398s41.88x
💻 LocalExpress7.787s (+2.8%)8.028s (~)0.241s41.93x
💻 LocalNitro7.905s (+2.8%)8.270s (+3.1%)0.365s41.95x
🌐 MongoDBNext.js (Turbopack)9.764s10.350s0.586s32.41x
🐘 PostgresExpress50.523s (-6.2% 🟢)51.122s (-5.5% 🟢)0.599s112.49x
🐘 PostgresNitro51.354s (+3.6%)52.131s (+4.0%)0.777s112.70x
🐘 PostgresNext.js (Turbopack)58.463s59.124s0.661s114.46x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.452s (-12.2% 🟢)4.642s (-16.1% 🟢)1.190s71.00x
▲ VercelNext.js (Turbopack)4.236s (-17.8% 🟢)5.752s (-8.0% 🟢)1.517s61.23x
▲ VercelNitro6.459s (+83.8% 🔺)7.317s (+43.6% 🔺)0.858s51.87x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.149s1.000s0.001s1.007s0.857s101.00x
💻 LocalNext.js (Turbopack)0.150s1.001s0.011s1.016s0.865s101.01x
💻 LocalExpress0.171s (~)1.002s (~)0.011s (+1.0%)1.015s (~)0.844s101.15x
💻 LocalNitro0.174s (+0.8%)1.002s (~)0.010s (+1.0%)1.015s (~)0.841s101.17x
🌐 MongoDBNext.js (Turbopack)0.515s0.934s0.001s1.008s0.493s103.45x
🐘 PostgresNext.js (Turbopack)0.612s0.921s0.001s1.009s0.397s104.10x
🐘 PostgresExpress1.291s (-41.2% 🟢)1.748s (-38.4% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.722s108.64x
🐘 PostgresNitro1.298s (-45.2% 🟢)1.742s (-34.8% 🟢)0.001s (~)2.012s (-33.3% 🟢)0.715s108.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.715s (+2.9%)3.349s (+12.1% 🔺)0.099s (-60.5% 🟢)4.075s (+3.5%)1.360s101.00x
▲ VercelNitro2.725s (-3.1%)3.002s (-0.7%)0.212s (+63.7% 🔺)3.825s (-2.5%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.944s (+7.8% 🔺)3.394s (+5.1% 🔺)0.260s (+14.1% 🔺)4.397s (+7.1% 🔺)1.454s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)10/12
🐘 PostgresNext.js (Turbopack)6/12
▲ VercelNitro5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)🌐 Redis10/12
Nitro💻 Local10/12
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

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-astro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-express-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-fastify-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-hono-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nitro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nuxt-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-sveltekit-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-vite-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-docsReadyReadyPreview, Comment, Open in v0Feb 11, 2026 11:27pm
workflow-nestReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-swc-playgroundReadyReadyPreview, CommentFeb 11, 2026 11:27pm

@TooTallNate
TooTallNate marked this pull request as ready for review February 11, 2026 23:10
@TooTallNate
TooTallNate requested review from a team and CopilotFebruary 11, 2026 23:10
When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. `var Foo = class { ... }`), the SWC plugin now re-inserts the binding name into the class expression (e.g. `var Foo = class Foo { ... }`). This preserves the class `.name` property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 transform to preserve class names for serializable classes when upstream bundlers convert named class declarations into anonymous class expressions, preventing downstream bundlers from losing the class identifier during subsequent bundling passes.

Changes:

  • Update the SWC transform to re-insert the variable binding name into anonymous class expressions when custom serialization methods are present.
  • Update transform fixture outputs to reflect the newly named class expressions.
  • Document the behavior in spec.md and publish a patch changeset.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsImplements binding-name re-insertion for anonymous serializable class expressions.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-workflow.jsUpdates expected workflow-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-step.jsUpdates expected step-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-client.jsUpdates expected client-mode fixture output to include class Shell.
packages/swc-plugin-workflow/spec.mdDocuments the anonymous class expression name re-insertion behavior.
.changeset/happy-doodles-return.mdAdds a patch changeset for the plugin release.

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

Comment threadpackages/swc-plugin-workflow/spec.md Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Clean, well-scoped fix.

The guard conditions (has_serde && class_expr.ident.is_none()) correctly ensure this only fires for anonymous serialization classes, leaving named class expressions (like class _Bash) untouched. Test fixtures and spec updated appropriately.

…recompute internal_class_name after ident insertion
@TooTallNate
TooTallNate enabled auto-merge (squash) February 11, 2026 23:25
@TooTallNate
TooTallNate merged commit 054e40c into mainFeb 11, 2026
98 checks passed
@TooTallNate
TooTallNate deleted the 02-10-fix_anonymous_class_expression_names_for_serialization_classes branch February 11, 2026 23:34
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.

4 participants

@TooTallNate@pranaygp@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Fix anonymous class expression names for serialization classes - #991

Merged
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes
Feb 11, 2026
Merged

Fix anonymous class expression names for serialization classes#991
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. var Foo = class { ... }), the SWC plugin now re-inserts the binding name into the class expression (e.g. var Foo = class Foo { ... }). This preserves the class .name property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

@changeset-bot

changeset-botBot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d57648

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production490038528
✅ 💻 Local Development418062480
✅ 📦 Local Production418062480
✅ 🐘 Local Postgres418062480
✅ 🪟 Windows450348
❌ 🌍 Community Worlds103419153
✅ 📋 Other123021144
Total2015412572313

❌ Failed Tests

🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4404
✅ example4404
✅ express4404
✅ fastify4404
✅ hono4404
✅ nextjs-turbopack4701
✅ nextjs-webpack4701
✅ nitro4404
✅ nuxt4404
✅ sveltekit4404
✅ vite4404
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4503
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
✅ mongodb4503
✅ redis-dev300
✅ redis4503
✅ turso-dev300
❌ turso4413
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4107
✅ e2e-local-postgres-nest-stable4107
✅ e2e-local-prod-nest-stable4107

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.031s (-4.0%)1.004s (~)0.973s101.00x
💻 LocalExpress0.032s (-0.6%)1.005s (~)0.973s101.01x
💻 LocalNext.js (Turbopack)0.040s1.005s0.964s101.28x
🌐 RedisNext.js (Turbopack)0.048s1.004s0.957s101.53x
🌐 MongoDBNext.js (Turbopack)0.095s1.007s0.912s103.02x
🐘 PostgresExpress0.117s (-47.6% 🟢)1.010s (~)0.893s103.72x
🐘 PostgresNitro0.122s (+6.8% 🔺)1.010s (~)0.888s103.89x
🐘 PostgresNext.js (Turbopack)0.398s1.009s0.610s1012.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.757s (-17.7% 🟢)2.073s (-8.1% 🟢)1.316s101.00x
▲ VercelExpress0.788s (-5.0% 🟢)2.103s (-8.3% 🟢)1.314s101.04x
▲ VercelNext.js (Turbopack)1.034s (+17.5% 🔺)2.500s (+20.8% 🔺)1.466s101.36x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.101s2.005s0.904s101.00x
💻 LocalExpress1.103s (~)2.004s (~)0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.899s101.00x
🌐 RedisNext.js (Turbopack)1.109s2.006s0.897s101.01x
🌐 MongoDBNext.js (Turbopack)1.305s2.007s0.702s101.19x
🐘 PostgresNext.js (Turbopack)1.808s2.011s0.203s101.64x
🐘 PostgresNitro2.439s (~)3.014s (~)0.576s102.22x
🐘 PostgresExpress2.446s (+16.2% 🔺)3.019s (~)0.573s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.672s (-1.4%)3.499s (-4.0%)0.827s101.00x
▲ VercelNext.js (Turbopack)2.743s (-6.6% 🟢)3.605s (-13.2% 🟢)0.862s101.03x
▲ VercelExpress2.797s (~)3.961s (+1.4%)1.163s101.05x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)10.722s11.022s0.300s31.00x
💻 LocalNext.js (Turbopack)10.740s11.021s0.282s31.00x
💻 LocalNitro10.824s (~)11.021s (~)0.197s31.01x
💻 LocalExpress10.828s (~)11.023s (~)0.194s31.01x
🌐 MongoDBNext.js (Turbopack)12.179s13.016s0.838s31.14x
🐘 PostgresNext.js (Turbopack)14.947s15.544s0.598s21.39x
🐘 PostgresExpress20.303s (-1.0%)21.058s (~)0.754s21.89x
🐘 PostgresNitro20.331s (~)21.059s (~)0.728s21.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.636s (-11.3% 🟢)21.364s (-13.6% 🟢)0.728s21.00x
▲ VercelNitro20.881s (-9.7% 🟢)21.757s (-10.8% 🟢)0.876s21.01x
▲ VercelNext.js (Turbopack)21.390s (+0.5%)23.125s (+1.8%)1.736s21.04x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.883s27.049s0.166s31.00x
💻 LocalNext.js (Turbopack)27.216s28.055s0.839s31.01x
💻 LocalExpress27.452s (~)28.048s (~)0.596s31.02x
💻 LocalNitro27.470s (~)28.051s (~)0.581s31.02x
🌐 MongoDBNext.js (Turbopack)30.322s31.028s0.706s21.13x
🐘 PostgresNext.js (Turbopack)33.506s33.577s0.071s21.25x
🐘 PostgresExpress50.295s (~)50.627s (-1.0%)0.332s21.87x
🐘 PostgresNitro50.319s (~)51.135s (~)0.816s21.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro51.744s (-1.6%)52.832s (-1.4%)1.088s21.00x
▲ VercelNext.js (Turbopack)51.869s (-3.2%)53.492s (-1.6%)1.623s21.00x
▲ VercelExpress54.551s (+3.6%)55.713s (+3.6%)1.162s21.05x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)54.261s55.096s0.835s21.00x
💻 LocalNext.js (Turbopack)56.710s57.105s0.395s21.05x
💻 LocalExpress57.137s (~)58.102s (~)0.965s21.05x
💻 LocalNitro57.230s (~)58.101s (~)0.871s21.05x
🌐 MongoDBNext.js (Turbopack)60.682s61.055s0.372s21.12x
🐘 PostgresNext.js (Turbopack)67.302s68.161s0.859s21.24x
🐘 PostgresNitro98.161s (-2.1%)98.221s (-3.0%)0.060s11.81x
🐘 PostgresExpress100.164s (~)100.224s (-1.0%)0.060s11.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)109.039s (+1.9%)110.276s (+2.1%)1.237s11.00x
▲ VercelExpress114.385s (+6.0% 🔺)115.921s (+5.7% 🔺)1.536s11.05x
▲ VercelNitro119.083s (+5.4% 🔺)120.097s (+4.8%)1.014s11.09x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.250s2.006s0.756s151.00x
💻 LocalExpress1.400s (~)2.005s (~)0.606s151.12x
💻 LocalNext.js (Turbopack)1.411s2.005s0.594s151.13x
💻 LocalNitro1.426s (+0.8%)2.006s (~)0.580s151.14x
🐘 PostgresNext.js (Turbopack)2.147s2.512s0.364s121.72x
🌐 MongoDBNext.js (Turbopack)2.166s3.007s0.842s101.73x
🐘 PostgresNitro2.264s (-2.1%)2.830s (-6.1% 🟢)0.567s111.81x
🐘 PostgresExpress2.273s (-0.8%)3.013s (~)0.740s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.021s (-25.7% 🟢)4.023s (-26.7% 🟢)1.003s81.00x
▲ VercelNitro3.051s (+4.5%)4.474s (+17.1% 🔺)1.423s71.01x
▲ VercelExpress3.338s (+13.2% 🔺)4.131s (+5.9% 🔺)0.792s81.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.482s3.008s0.526s101.00x
💻 LocalNext.js (Turbopack)2.501s3.008s0.507s101.01x
💻 LocalExpress2.573s (+1.5%)3.008s (~)0.434s101.04x
💻 LocalNitro2.636s (+2.4%)3.008s (~)0.372s101.06x
🌐 MongoDBNext.js (Turbopack)4.668s5.176s0.509s61.88x
🐘 PostgresNitro9.266s (+0.8%)9.542s (~)0.276s43.73x
🐘 PostgresExpress10.402s (+39.0% 🔺)10.710s (+29.3% 🔺)0.308s34.19x
🐘 PostgresNext.js (Turbopack)12.413s12.701s0.288s35.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.048s (-13.4% 🟢)4.475s (-8.6% 🟢)1.427s71.00x
▲ VercelNext.js (Turbopack)3.323s (-2.2%)5.020s (+9.0% 🔺)1.698s61.09x
▲ VercelExpress3.484s (+2.5%)4.690s (+2.2%)1.205s71.14x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.011s4.581s0.571s71.00x
💻 LocalNext.js (Turbopack)7.473s8.021s0.548s41.86x
💻 LocalExpress7.480s (+3.3%)8.020s (~)0.539s41.87x
💻 LocalNitro7.652s (+7.2% 🔺)8.019s (~)0.367s41.91x
🌐 MongoDBNext.js (Turbopack)10.075s10.348s0.274s32.51x
🐘 PostgresExpress49.351s (+3.7%)50.139s (+4.2%)0.788s112.30x
🐘 PostgresNitro50.278s (+8.9% 🔺)51.111s (+8.5% 🔺)0.833s112.54x
🐘 PostgresNext.js (Turbopack)53.640s54.126s0.486s113.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.162s (+15.2% 🔺)5.217s (+7.4% 🔺)1.055s61.00x
▲ VercelNext.js (Turbopack)4.909s (+17.3% 🔺)6.357s (+16.9% 🔺)1.448s61.18x
▲ VercelExpress5.638s (+55.9% 🔺)6.814s (+40.1% 🔺)1.176s51.35x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.274s2.006s0.731s151.00x
💻 LocalNext.js (Turbopack)1.413s2.005s0.592s151.11x
💻 LocalExpress1.440s (+0.8%)2.005s (~)0.565s151.13x
💻 LocalNitro1.448s (+2.0%)2.006s (~)0.558s151.14x
🐘 PostgresNitro2.125s (-1.8%)2.596s (-11.3% 🟢)0.471s121.67x
🌐 MongoDBNext.js (Turbopack)2.157s3.008s0.851s101.69x
🐘 PostgresExpress2.188s (+4.2%)2.595s (+3.3%)0.407s121.72x
🐘 PostgresNext.js (Turbopack)2.608s2.922s0.314s112.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.716s (-4.9%)3.588s (-2.8%)0.872s91.00x
▲ VercelNext.js (Turbopack)2.785s (-4.5%)3.621s (-14.8% 🟢)0.836s91.03x
▲ VercelNitro3.276s (+15.8% 🔺)4.062s (+4.8%)0.785s81.21x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.503s3.008s0.505s101.00x
💻 LocalNext.js (Turbopack)2.557s3.007s0.451s101.02x
💻 LocalExpress2.661s (-3.8%)3.007s (~)0.347s101.06x
💻 LocalNitro2.756s (+2.2%)3.007s (~)0.251s101.10x
🌐 MongoDBNext.js (Turbopack)4.815s5.177s0.362s61.92x
🐘 PostgresExpress11.345s (-1.1%)11.700s (-2.8%)0.356s34.53x
🐘 PostgresNitro11.693s (-2.5%)12.030s (-5.3% 🟢)0.337s34.67x
🐘 PostgresNext.js (Turbopack)13.981s14.706s0.724s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.367s (-5.0%)4.491s (-0.6%)1.125s81.00x
▲ VercelNitro3.701s (+20.9% 🔺)4.636s (~)0.935s71.10x
▲ VercelNext.js (Turbopack)4.158s (+4.8%)5.478s (+6.0% 🔺)1.320s61.23x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.044s4.581s0.537s71.00x
💻 LocalNext.js (Turbopack)7.618s8.016s0.398s41.88x
💻 LocalExpress7.787s (+2.8%)8.028s (~)0.241s41.93x
💻 LocalNitro7.905s (+2.8%)8.270s (+3.1%)0.365s41.95x
🌐 MongoDBNext.js (Turbopack)9.764s10.350s0.586s32.41x
🐘 PostgresExpress50.523s (-6.2% 🟢)51.122s (-5.5% 🟢)0.599s112.49x
🐘 PostgresNitro51.354s (+3.6%)52.131s (+4.0%)0.777s112.70x
🐘 PostgresNext.js (Turbopack)58.463s59.124s0.661s114.46x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.452s (-12.2% 🟢)4.642s (-16.1% 🟢)1.190s71.00x
▲ VercelNext.js (Turbopack)4.236s (-17.8% 🟢)5.752s (-8.0% 🟢)1.517s61.23x
▲ VercelNitro6.459s (+83.8% 🔺)7.317s (+43.6% 🔺)0.858s51.87x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.149s1.000s0.001s1.007s0.857s101.00x
💻 LocalNext.js (Turbopack)0.150s1.001s0.011s1.016s0.865s101.01x
💻 LocalExpress0.171s (~)1.002s (~)0.011s (+1.0%)1.015s (~)0.844s101.15x
💻 LocalNitro0.174s (+0.8%)1.002s (~)0.010s (+1.0%)1.015s (~)0.841s101.17x
🌐 MongoDBNext.js (Turbopack)0.515s0.934s0.001s1.008s0.493s103.45x
🐘 PostgresNext.js (Turbopack)0.612s0.921s0.001s1.009s0.397s104.10x
🐘 PostgresExpress1.291s (-41.2% 🟢)1.748s (-38.4% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.722s108.64x
🐘 PostgresNitro1.298s (-45.2% 🟢)1.742s (-34.8% 🟢)0.001s (~)2.012s (-33.3% 🟢)0.715s108.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.715s (+2.9%)3.349s (+12.1% 🔺)0.099s (-60.5% 🟢)4.075s (+3.5%)1.360s101.00x
▲ VercelNitro2.725s (-3.1%)3.002s (-0.7%)0.212s (+63.7% 🔺)3.825s (-2.5%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.944s (+7.8% 🔺)3.394s (+5.1% 🔺)0.260s (+14.1% 🔺)4.397s (+7.1% 🔺)1.454s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)10/12
🐘 PostgresNext.js (Turbopack)6/12
▲ VercelNitro5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)🌐 Redis10/12
Nitro💻 Local10/12
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

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-astro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-express-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-fastify-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-hono-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nitro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nuxt-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-sveltekit-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-vite-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-docsReadyReadyPreview, Comment, Open in v0Feb 11, 2026 11:27pm
workflow-nestReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-swc-playgroundReadyReadyPreview, CommentFeb 11, 2026 11:27pm

@TooTallNate
TooTallNate marked this pull request as ready for review February 11, 2026 23:10
@TooTallNate
TooTallNate requested review from a team and CopilotFebruary 11, 2026 23:10
When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. `var Foo = class { ... }`), the SWC plugin now re-inserts the binding name into the class expression (e.g. `var Foo = class Foo { ... }`). This preserves the class `.name` property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 transform to preserve class names for serializable classes when upstream bundlers convert named class declarations into anonymous class expressions, preventing downstream bundlers from losing the class identifier during subsequent bundling passes.

Changes:

  • Update the SWC transform to re-insert the variable binding name into anonymous class expressions when custom serialization methods are present.
  • Update transform fixture outputs to reflect the newly named class expressions.
  • Document the behavior in spec.md and publish a patch changeset.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsImplements binding-name re-insertion for anonymous serializable class expressions.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-workflow.jsUpdates expected workflow-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-step.jsUpdates expected step-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-client.jsUpdates expected client-mode fixture output to include class Shell.
packages/swc-plugin-workflow/spec.mdDocuments the anonymous class expression name re-insertion behavior.
.changeset/happy-doodles-return.mdAdds a patch changeset for the plugin release.

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

Comment threadpackages/swc-plugin-workflow/spec.md Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Clean, well-scoped fix.

The guard conditions (has_serde && class_expr.ident.is_none()) correctly ensure this only fires for anonymous serialization classes, leaving named class expressions (like class _Bash) untouched. Test fixtures and spec updated appropriately.

…recompute internal_class_name after ident insertion
@TooTallNate
TooTallNate enabled auto-merge (squash) February 11, 2026 23:25
@TooTallNate
TooTallNate merged commit 054e40c into mainFeb 11, 2026
98 checks passed
@TooTallNate
TooTallNate deleted the 02-10-fix_anonymous_class_expression_names_for_serialization_classes branch February 11, 2026 23:34
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.

4 participants

@TooTallNate@pranaygp@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Fix anonymous class expression names for serialization classes - #991

Merged
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes
Feb 11, 2026
Merged

Fix anonymous class expression names for serialization classes#991
TooTallNate merged 2 commits into
mainfrom
02-10-fix_anonymous_class_expression_names_for_serialization_classes

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. var Foo = class { ... }), the SWC plugin now re-inserts the binding name into the class expression (e.g. var Foo = class Foo { ... }). This preserves the class .name property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

@changeset-bot

changeset-botBot commented Feb 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d57648

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

This PR includes changesets to release 15 packages
NameType
@workflow/swc-pluginPatch
@workflow/astroPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
workflowPatch
@workflow/vitePatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/corePatch
@workflow/web-sharedPatch

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

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production490038528
✅ 💻 Local Development418062480
✅ 📦 Local Production418062480
✅ 🐘 Local Postgres418062480
✅ 🪟 Windows450348
❌ 🌍 Community Worlds103419153
✅ 📋 Other123021144
Total2015412572313

❌ Failed Tests

🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4404
✅ example4404
✅ express4404
✅ fastify4404
✅ hono4404
✅ nextjs-turbopack4701
✅ nextjs-webpack4701
✅ nitro4404
✅ nuxt4404
✅ sveltekit4404
✅ vite4404
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4107
✅ express-stable4107
✅ fastify-stable4107
✅ hono-stable4107
✅ nextjs-turbopack-stable4503
✅ nextjs-webpack-stable4503
✅ nitro-stable4107
✅ nuxt-stable4107
✅ sveltekit-stable4107
✅ vite-stable4107
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4503
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
✅ mongodb4503
✅ redis-dev300
✅ redis4503
✅ turso-dev300
❌ turso4413
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4107
✅ e2e-local-postgres-nest-stable4107
✅ e2e-local-prod-nest-stable4107

📋 View full workflow run

@github-actions

github-actionsBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.031s (-4.0%)1.004s (~)0.973s101.00x
💻 LocalExpress0.032s (-0.6%)1.005s (~)0.973s101.01x
💻 LocalNext.js (Turbopack)0.040s1.005s0.964s101.28x
🌐 RedisNext.js (Turbopack)0.048s1.004s0.957s101.53x
🌐 MongoDBNext.js (Turbopack)0.095s1.007s0.912s103.02x
🐘 PostgresExpress0.117s (-47.6% 🟢)1.010s (~)0.893s103.72x
🐘 PostgresNitro0.122s (+6.8% 🔺)1.010s (~)0.888s103.89x
🐘 PostgresNext.js (Turbopack)0.398s1.009s0.610s1012.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.757s (-17.7% 🟢)2.073s (-8.1% 🟢)1.316s101.00x
▲ VercelExpress0.788s (-5.0% 🟢)2.103s (-8.3% 🟢)1.314s101.04x
▲ VercelNext.js (Turbopack)1.034s (+17.5% 🔺)2.500s (+20.8% 🔺)1.466s101.36x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.101s2.005s0.904s101.00x
💻 LocalExpress1.103s (~)2.004s (~)0.901s101.00x
💻 LocalNitro1.105s (~)2.005s (~)0.899s101.00x
🌐 RedisNext.js (Turbopack)1.109s2.006s0.897s101.01x
🌐 MongoDBNext.js (Turbopack)1.305s2.007s0.702s101.19x
🐘 PostgresNext.js (Turbopack)1.808s2.011s0.203s101.64x
🐘 PostgresNitro2.439s (~)3.014s (~)0.576s102.22x
🐘 PostgresExpress2.446s (+16.2% 🔺)3.019s (~)0.573s102.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.672s (-1.4%)3.499s (-4.0%)0.827s101.00x
▲ VercelNext.js (Turbopack)2.743s (-6.6% 🟢)3.605s (-13.2% 🟢)0.862s101.03x
▲ VercelExpress2.797s (~)3.961s (+1.4%)1.163s101.05x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)10.722s11.022s0.300s31.00x
💻 LocalNext.js (Turbopack)10.740s11.021s0.282s31.00x
💻 LocalNitro10.824s (~)11.021s (~)0.197s31.01x
💻 LocalExpress10.828s (~)11.023s (~)0.194s31.01x
🌐 MongoDBNext.js (Turbopack)12.179s13.016s0.838s31.14x
🐘 PostgresNext.js (Turbopack)14.947s15.544s0.598s21.39x
🐘 PostgresExpress20.303s (-1.0%)21.058s (~)0.754s21.89x
🐘 PostgresNitro20.331s (~)21.059s (~)0.728s21.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.636s (-11.3% 🟢)21.364s (-13.6% 🟢)0.728s21.00x
▲ VercelNitro20.881s (-9.7% 🟢)21.757s (-10.8% 🟢)0.876s21.01x
▲ VercelNext.js (Turbopack)21.390s (+0.5%)23.125s (+1.8%)1.736s21.04x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.883s27.049s0.166s31.00x
💻 LocalNext.js (Turbopack)27.216s28.055s0.839s31.01x
💻 LocalExpress27.452s (~)28.048s (~)0.596s31.02x
💻 LocalNitro27.470s (~)28.051s (~)0.581s31.02x
🌐 MongoDBNext.js (Turbopack)30.322s31.028s0.706s21.13x
🐘 PostgresNext.js (Turbopack)33.506s33.577s0.071s21.25x
🐘 PostgresExpress50.295s (~)50.627s (-1.0%)0.332s21.87x
🐘 PostgresNitro50.319s (~)51.135s (~)0.816s21.87x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro51.744s (-1.6%)52.832s (-1.4%)1.088s21.00x
▲ VercelNext.js (Turbopack)51.869s (-3.2%)53.492s (-1.6%)1.623s21.00x
▲ VercelExpress54.551s (+3.6%)55.713s (+3.6%)1.162s21.05x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)54.261s55.096s0.835s21.00x
💻 LocalNext.js (Turbopack)56.710s57.105s0.395s21.05x
💻 LocalExpress57.137s (~)58.102s (~)0.965s21.05x
💻 LocalNitro57.230s (~)58.101s (~)0.871s21.05x
🌐 MongoDBNext.js (Turbopack)60.682s61.055s0.372s21.12x
🐘 PostgresNext.js (Turbopack)67.302s68.161s0.859s21.24x
🐘 PostgresNitro98.161s (-2.1%)98.221s (-3.0%)0.060s11.81x
🐘 PostgresExpress100.164s (~)100.224s (-1.0%)0.060s11.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)109.039s (+1.9%)110.276s (+2.1%)1.237s11.00x
▲ VercelExpress114.385s (+6.0% 🔺)115.921s (+5.7% 🔺)1.536s11.05x
▲ VercelNitro119.083s (+5.4% 🔺)120.097s (+4.8%)1.014s11.09x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.250s2.006s0.756s151.00x
💻 LocalExpress1.400s (~)2.005s (~)0.606s151.12x
💻 LocalNext.js (Turbopack)1.411s2.005s0.594s151.13x
💻 LocalNitro1.426s (+0.8%)2.006s (~)0.580s151.14x
🐘 PostgresNext.js (Turbopack)2.147s2.512s0.364s121.72x
🌐 MongoDBNext.js (Turbopack)2.166s3.007s0.842s101.73x
🐘 PostgresNitro2.264s (-2.1%)2.830s (-6.1% 🟢)0.567s111.81x
🐘 PostgresExpress2.273s (-0.8%)3.013s (~)0.740s101.82x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.021s (-25.7% 🟢)4.023s (-26.7% 🟢)1.003s81.00x
▲ VercelNitro3.051s (+4.5%)4.474s (+17.1% 🔺)1.423s71.01x
▲ VercelExpress3.338s (+13.2% 🔺)4.131s (+5.9% 🔺)0.792s81.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.482s3.008s0.526s101.00x
💻 LocalNext.js (Turbopack)2.501s3.008s0.507s101.01x
💻 LocalExpress2.573s (+1.5%)3.008s (~)0.434s101.04x
💻 LocalNitro2.636s (+2.4%)3.008s (~)0.372s101.06x
🌐 MongoDBNext.js (Turbopack)4.668s5.176s0.509s61.88x
🐘 PostgresNitro9.266s (+0.8%)9.542s (~)0.276s43.73x
🐘 PostgresExpress10.402s (+39.0% 🔺)10.710s (+29.3% 🔺)0.308s34.19x
🐘 PostgresNext.js (Turbopack)12.413s12.701s0.288s35.00x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.048s (-13.4% 🟢)4.475s (-8.6% 🟢)1.427s71.00x
▲ VercelNext.js (Turbopack)3.323s (-2.2%)5.020s (+9.0% 🔺)1.698s61.09x
▲ VercelExpress3.484s (+2.5%)4.690s (+2.2%)1.205s71.14x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.011s4.581s0.571s71.00x
💻 LocalNext.js (Turbopack)7.473s8.021s0.548s41.86x
💻 LocalExpress7.480s (+3.3%)8.020s (~)0.539s41.87x
💻 LocalNitro7.652s (+7.2% 🔺)8.019s (~)0.367s41.91x
🌐 MongoDBNext.js (Turbopack)10.075s10.348s0.274s32.51x
🐘 PostgresExpress49.351s (+3.7%)50.139s (+4.2%)0.788s112.30x
🐘 PostgresNitro50.278s (+8.9% 🔺)51.111s (+8.5% 🔺)0.833s112.54x
🐘 PostgresNext.js (Turbopack)53.640s54.126s0.486s113.37x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.162s (+15.2% 🔺)5.217s (+7.4% 🔺)1.055s61.00x
▲ VercelNext.js (Turbopack)4.909s (+17.3% 🔺)6.357s (+16.9% 🔺)1.448s61.18x
▲ VercelExpress5.638s (+55.9% 🔺)6.814s (+40.1% 🔺)1.176s51.35x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.274s2.006s0.731s151.00x
💻 LocalNext.js (Turbopack)1.413s2.005s0.592s151.11x
💻 LocalExpress1.440s (+0.8%)2.005s (~)0.565s151.13x
💻 LocalNitro1.448s (+2.0%)2.006s (~)0.558s151.14x
🐘 PostgresNitro2.125s (-1.8%)2.596s (-11.3% 🟢)0.471s121.67x
🌐 MongoDBNext.js (Turbopack)2.157s3.008s0.851s101.69x
🐘 PostgresExpress2.188s (+4.2%)2.595s (+3.3%)0.407s121.72x
🐘 PostgresNext.js (Turbopack)2.608s2.922s0.314s112.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.716s (-4.9%)3.588s (-2.8%)0.872s91.00x
▲ VercelNext.js (Turbopack)2.785s (-4.5%)3.621s (-14.8% 🟢)0.836s91.03x
▲ VercelNitro3.276s (+15.8% 🔺)4.062s (+4.8%)0.785s81.21x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)2.503s3.008s0.505s101.00x
💻 LocalNext.js (Turbopack)2.557s3.007s0.451s101.02x
💻 LocalExpress2.661s (-3.8%)3.007s (~)0.347s101.06x
💻 LocalNitro2.756s (+2.2%)3.007s (~)0.251s101.10x
🌐 MongoDBNext.js (Turbopack)4.815s5.177s0.362s61.92x
🐘 PostgresExpress11.345s (-1.1%)11.700s (-2.8%)0.356s34.53x
🐘 PostgresNitro11.693s (-2.5%)12.030s (-5.3% 🟢)0.337s34.67x
🐘 PostgresNext.js (Turbopack)13.981s14.706s0.724s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.367s (-5.0%)4.491s (-0.6%)1.125s81.00x
▲ VercelNitro3.701s (+20.9% 🔺)4.636s (~)0.935s71.10x
▲ VercelNext.js (Turbopack)4.158s (+4.8%)5.478s (+6.0% 🔺)1.320s61.23x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)4.044s4.581s0.537s71.00x
💻 LocalNext.js (Turbopack)7.618s8.016s0.398s41.88x
💻 LocalExpress7.787s (+2.8%)8.028s (~)0.241s41.93x
💻 LocalNitro7.905s (+2.8%)8.270s (+3.1%)0.365s41.95x
🌐 MongoDBNext.js (Turbopack)9.764s10.350s0.586s32.41x
🐘 PostgresExpress50.523s (-6.2% 🟢)51.122s (-5.5% 🟢)0.599s112.49x
🐘 PostgresNitro51.354s (+3.6%)52.131s (+4.0%)0.777s112.70x
🐘 PostgresNext.js (Turbopack)58.463s59.124s0.661s114.46x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.452s (-12.2% 🟢)4.642s (-16.1% 🟢)1.190s71.00x
▲ VercelNext.js (Turbopack)4.236s (-17.8% 🟢)5.752s (-8.0% 🟢)1.517s61.23x
▲ VercelNitro6.459s (+83.8% 🔺)7.317s (+43.6% 🔺)0.858s51.87x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.149s1.000s0.001s1.007s0.857s101.00x
💻 LocalNext.js (Turbopack)0.150s1.001s0.011s1.016s0.865s101.01x
💻 LocalExpress0.171s (~)1.002s (~)0.011s (+1.0%)1.015s (~)0.844s101.15x
💻 LocalNitro0.174s (+0.8%)1.002s (~)0.010s (+1.0%)1.015s (~)0.841s101.17x
🌐 MongoDBNext.js (Turbopack)0.515s0.934s0.001s1.008s0.493s103.45x
🐘 PostgresNext.js (Turbopack)0.612s0.921s0.001s1.009s0.397s104.10x
🐘 PostgresExpress1.291s (-41.2% 🟢)1.748s (-38.4% 🟢)0.001s (~)2.013s (-33.2% 🟢)0.722s108.64x
🐘 PostgresNitro1.298s (-45.2% 🟢)1.742s (-34.8% 🟢)0.001s (~)2.012s (-33.3% 🟢)0.715s108.68x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.715s (+2.9%)3.349s (+12.1% 🔺)0.099s (-60.5% 🟢)4.075s (+3.5%)1.360s101.00x
▲ VercelNitro2.725s (-3.1%)3.002s (-0.7%)0.212s (+63.7% 🔺)3.825s (-2.5%)1.100s101.00x
▲ VercelNext.js (Turbopack)2.944s (+7.8% 🔺)3.394s (+5.1% 🔺)0.260s (+14.1% 🔺)4.397s (+7.1% 🔺)1.454s101.08x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)10/12
🐘 PostgresNext.js (Turbopack)6/12
▲ VercelNitro5/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local10/12
Next.js (Turbopack)🌐 Redis10/12
Nitro💻 Local10/12
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

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentFeb 11, 2026 11:27pm
example-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-astro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-express-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-fastify-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-hono-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nitro-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-nuxt-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-sveltekit-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workbench-vite-workflowReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-docsReadyReadyPreview, Comment, Open in v0Feb 11, 2026 11:27pm
workflow-nestReadyReadyPreview, CommentFeb 11, 2026 11:27pm
workflow-swc-playgroundReadyReadyPreview, CommentFeb 11, 2026 11:27pm

@TooTallNate
TooTallNate marked this pull request as ready for review February 11, 2026 23:10
@TooTallNate
TooTallNate requested review from a team and CopilotFebruary 11, 2026 23:10
When upstream bundlers like tsup/esbuild transform class declarations into anonymous class expressions (e.g. `var Foo = class { ... }`), the SWC plugin now re-inserts the binding name into the class expression (e.g. `var Foo = class Foo { ... }`). This preserves the class `.name` property through subsequent bundling passes, preventing runtime failures in downstream bundlers like Nitro's Rollup bundler that rely on the class expression name for serialization class registration.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 transform to preserve class names for serializable classes when upstream bundlers convert named class declarations into anonymous class expressions, preventing downstream bundlers from losing the class identifier during subsequent bundling passes.

Changes:

  • Update the SWC transform to re-insert the variable binding name into anonymous class expressions when custom serialization methods are present.
  • Update transform fixture outputs to reflect the newly named class expressions.
  • Document the behavior in spec.md and publish a patch changeset.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/swc-plugin-workflow/transform/src/lib.rsImplements binding-name re-insertion for anonymous serializable class expressions.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-workflow.jsUpdates expected workflow-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-step.jsUpdates expected step-mode fixture output to include class Shell.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name/output-client.jsUpdates expected client-mode fixture output to include class Shell.
packages/swc-plugin-workflow/spec.mdDocuments the anonymous class expression name re-insertion behavior.
.changeset/happy-doodles-return.mdAdds a patch changeset for the plugin release.

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

Comment threadpackages/swc-plugin-workflow/spec.md Outdated
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs
Comment threadpackages/swc-plugin-workflow/transform/src/lib.rs Outdated

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Clean, well-scoped fix.

The guard conditions (has_serde && class_expr.ident.is_none()) correctly ensure this only fires for anonymous serialization classes, leaving named class expressions (like class _Bash) untouched. Test fixtures and spec updated appropriately.

…recompute internal_class_name after ident insertion
@TooTallNate
TooTallNate enabled auto-merge (squash) February 11, 2026 23:25
@TooTallNate
TooTallNate merged commit 054e40c into mainFeb 11, 2026
98 checks passed
@TooTallNate
TooTallNate deleted the 02-10-fix_anonymous_class_expression_names_for_serialization_classes branch February 11, 2026 23:34
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.

4 participants

@TooTallNate@pranaygp@ijjk