Skip to content

[world-local] Fix package info stored in data dir showing the wrong version#718

Merged
VaguelySerious merged 11 commits intomainfrom
peter/local-world-package-fix
Jan 23, 2026
Merged

[world-local] Fix package info stored in data dir showing the wrong version#718
VaguelySerious merged 11 commits intomainfrom
peter/local-world-package-fix

Conversation

@VaguelySerious
Copy link
Copy Markdown
Member

@VaguelySerious VaguelySerious commented Jan 2, 2026

Minor patch, but since we're already showing the local world package version as the deploymentId, we might as well get it right. Can then later iterate on making this more useful

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jan 2, 2026

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

Project Deployment Review Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Jan 23, 2026 6:16pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jan 23, 2026 6:16pm
example-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workbench-astro-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workbench-express-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workbench-fastify-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workbench-hono-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workbench-nitro-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workbench-vite-workflow Ready Ready Preview, Comment Jan 23, 2026 6:16pm
workflow-docs Ready Ready Preview, Comment Jan 23, 2026 6:16pm

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 2, 2026

🦋 Changeset detected

Latest commit: d8b514f

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

This PR includes changesets to release 15 packages
Name Type
@workflow/world-local Patch
@workflow/cli Patch
@workflow/core Patch
@workflow/world-postgres Patch
workflow Patch
@workflow/world-testing Patch
@workflow/builders Patch
@workflow/docs-typecheck Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/web-shared Patch
@workflow/ai Patch
@workflow/astro Patch
@workflow/sveltekit Patch
@workflow/nuxt Patch

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

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

@VaguelySerious VaguelySerious marked this pull request as draft January 2, 2026 15:43
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 2, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 456 1 38 495
✅ 💻 Local Development 418 0 32 450
✅ 📦 Local Production 418 0 32 450
✅ 🐘 Local Postgres 418 0 32 450
✅ 🪟 Windows 45 0 0 45
❌ 🌍 Community Worlds 31 161 0 192
Total 1786 162 134 2082

❌ Failed Tests

▲ Vercel Production (1 failed)

nuxt (1 failed):

  • promiseRaceStressTestWorkflow
🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • 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
  • 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
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • 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
  • 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
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • 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 (CLI) - workflow health command reports healthy endpoints
  • 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
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • 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
  • 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
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 41 0 4
✅ example 41 0 4
✅ express 41 0 4
✅ fastify 41 0 4
✅ hono 41 0 4
✅ nextjs-turbopack 44 0 1
✅ nextjs-webpack 44 0 1
✅ nitro 41 0 4
❌ nuxt 40 1 4
✅ sveltekit 41 0 4
✅ vite 41 0 4
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 45 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
❌ mongodb 5 40 0
✅ redis-dev 3 0 0
❌ redis 5 40 0
✅ starter-dev 3 0 0
❌ starter 4 41 0
✅ turso-dev 3 0 0
❌ turso 5 40 0

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 2, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.040s (-4.7%) 1.016s (~) 0.976s 10 1.00x
💻 Local Express 0.042s (-2.8%) 1.007s (~) 0.965s 10 1.04x
💻 Local Nitro 0.044s (+3.1%) 1.007s (~) 0.964s 10 1.09x
🐘 Postgres Next.js (Turbopack) 0.165s (-19.5% 🟢) 1.021s (~) 0.856s 10 4.10x
🐘 Postgres Nitro 0.216s (-12.2% 🟢) 1.022s (~) 0.806s 10 5.36x
🐘 Postgres Express 0.313s (+13.3% 🔺) 1.014s (~) 0.701s 10 7.76x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.682s (-17.9% 🟢) 1.587s (-12.7% 🟢) 0.905s 10 1.00x
▲ Vercel Next.js (Turbopack) 0.731s (-8.8% 🟢) 1.521s (-14.7% 🟢) 0.790s 10 1.07x
▲ Vercel Express 0.747s (+6.1% 🔺) 1.624s (+2.1%) 0.877s 10 1.10x

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

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.096s (~) 2.013s (~) 0.916s 10 1.00x
💻 Local Express 1.112s (~) 2.006s (~) 0.894s 10 1.01x
💻 Local Nitro 1.118s (~) 2.006s (~) 0.889s 10 1.02x
🐘 Postgres Next.js (Turbopack) 1.608s (-17.5% 🟢) 2.019s (-4.6%) 0.411s 10 1.47x
🐘 Postgres Express 2.180s (+18.0% 🔺) 3.013s (+24.8% 🔺) 0.832s 10 1.99x
🐘 Postgres Nitro 2.396s (+7.5% 🔺) 3.014s (~) 0.618s 10 2.19x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.991s (-13.5% 🟢) 3.635s (-14.7% 🟢) 0.645s 10 1.00x
▲ Vercel Express 3.031s (-11.0% 🟢) 3.730s (-9.2% 🟢) 0.699s 10 1.01x
▲ Vercel Nitro 3.107s (-7.1% 🟢) 3.752s (-11.2% 🟢) 0.645s 10 1.04x

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

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 10.723s (~) 11.019s (~) 0.296s 5 1.00x
💻 Local Express 10.822s (~) 11.013s (~) 0.191s 5 1.01x
💻 Local Nitro 10.849s (~) 11.015s (~) 0.165s 5 1.01x
🐘 Postgres Next.js (Turbopack) 15.293s (~) 16.031s (~) 0.738s 5 1.43x
🐘 Postgres Nitro 20.327s (-0.5%) 21.042s (~) 0.714s 5 1.90x
🐘 Postgres Express 20.344s (+32.7% 🔺) 21.030s (+31.2% 🔺) 0.686s 5 1.90x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 24.023s (+3.8%) 24.922s (+4.5%) 0.899s 5 1.00x
▲ Vercel Express 24.881s (+4.0%) 25.730s (+4.7%) 0.849s 5 1.04x
▲ Vercel Nitro 25.192s (+10.1% 🔺) 26.200s (+11.0% 🔺) 1.008s 5 1.05x

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

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.385s (-2.5%) 2.011s (~) 0.626s 15 1.00x
💻 Local Express 1.391s (-1.5%) 2.006s (~) 0.615s 15 1.00x
💻 Local Nitro 1.420s (+0.8%) 2.006s (~) 0.586s 15 1.03x
🐘 Postgres Next.js (Turbopack) 1.878s (-7.1% 🟢) 2.346s (-6.8% 🟢) 0.468s 13 1.36x
🐘 Postgres Express 2.213s (-6.5% 🟢) 2.678s (-11.1% 🟢) 0.465s 12 1.60x
🐘 Postgres Nitro 2.522s (+17.0% 🔺) 3.014s (~) 0.493s 10 1.82x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.909s (-5.7% 🟢) 3.674s (-4.6%) 0.765s 9 1.00x
▲ Vercel Next.js (Turbopack) 3.235s (+6.1% 🔺) 3.923s (+6.1% 🔺) 0.689s 8 1.11x
▲ Vercel Express 3.454s (+14.5% 🔺) 4.433s (+17.8% 🔺) 0.980s 7 1.19x

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

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 2.422s (-3.3%) 3.170s (+4.3%) 0.748s 10 1.00x
💻 Local Express 2.461s (-2.2%) 3.064s (+1.3%) 0.603s 10 1.02x
💻 Local Nitro 2.553s (+1.9%) 3.011s (~) 0.458s 10 1.05x
🐘 Postgres Nitro 8.613s (+10.7% 🔺) 9.307s (+11.8% 🔺) 0.694s 4 3.56x
🐘 Postgres Express 9.558s (+16.5% 🔺) 10.020s (+17.4% 🔺) 0.462s 3 3.95x
🐘 Postgres Next.js (Turbopack) 11.089s (-3.1%) 11.422s (-5.0% 🟢) 0.333s 3 4.58x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 3.427s (+1.6%) 3.974s (+2.7%) 0.547s 8 1.00x
▲ Vercel Nitro 3.638s (+15.1% 🔺) 4.293s (+14.4% 🔺) 0.655s 7 1.06x
▲ Vercel Express 3.778s (+7.3% 🔺) 4.613s (+18.1% 🔺) 0.835s 7 1.10x

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

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.413s (-1.3%) 2.010s (~) 0.598s 15 1.00x
💻 Local Nitro 1.425s (~) 2.005s (~) 0.580s 15 1.01x
💻 Local Express 1.431s (-1.4%) 2.007s (~) 0.576s 15 1.01x
🐘 Postgres Express 1.929s (-4.2%) 2.483s (-9.6% 🟢) 0.554s 13 1.37x
🐘 Postgres Nitro 1.975s (~) 2.514s (~) 0.539s 12 1.40x
🐘 Postgres Next.js (Turbopack) 2.373s (+18.0% 🔺) 2.839s (+18.2% 🔺) 0.466s 11 1.68x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.915s (+3.5%) 3.696s (+1.2%) 0.781s 9 1.00x
▲ Vercel Nitro 2.993s (+6.4% 🔺) 3.779s (~) 0.786s 8 1.03x
▲ Vercel Express 3.115s (+5.8% 🔺) 3.929s (+2.9%) 0.814s 8 1.07x

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

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 2.487s (-4.9%) 3.020s (~) 0.533s 10 1.00x
💻 Local Next.js (Turbopack) 2.500s (-2.4%) 3.058s (+1.2%) 0.558s 10 1.01x
💻 Local Nitro 2.572s (+0.7%) 3.016s (~) 0.445s 10 1.03x
🐘 Postgres Nitro 10.644s (-5.5% 🟢) 11.165s (-7.3% 🟢) 0.521s 3 4.28x
🐘 Postgres Express 11.703s (~) 12.037s (-2.7%) 0.334s 3 4.71x
🐘 Postgres Next.js (Turbopack) 14.209s (+11.9% 🔺) 15.077s (+12.5% 🔺) 0.868s 2 5.71x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.430s (+7.8% 🔺) 4.323s (+15.0% 🔺) 0.893s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.436s (+1.3%) 4.139s (+4.9%) 0.703s 8 1.00x
▲ Vercel Express 3.451s (+3.1%) 4.043s (+6.1% 🔺) 0.592s 8 1.01x

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

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.144s (-3.8%) 1.003s (~) 0.016s (-8.4% 🟢) 1.028s (~) 0.884s 10 1.00x
💻 Local Express 0.178s (-0.9%) 0.993s (~) 0.014s (-7.3% 🟢) 1.021s (~) 0.842s 10 1.24x
💻 Local Nitro 0.192s (+3.6%) 0.992s (~) 0.015s (+3.3%) 1.022s (~) 0.830s 10 1.34x
🐘 Postgres Next.js (Turbopack) 1.111s (-12.2% 🟢) 1.937s (+3.7%) 0.000s (+100.0% 🔺) 2.019s (~) 0.908s 10 7.73x
🐘 Postgres Express 2.035s (+49.4% 🔺) 2.275s (+34.9% 🔺) 0.000s (NaN%) 2.613s (+29.8% 🔺) 0.579s 10 14.16x
🐘 Postgres Nitro 2.158s (-3.5%) 2.886s (+2.9%) 0.000s (+Infinity% 🔺) 3.016s (~) 0.857s 10 15.02x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.967s (-0.7%) 3.209s (+2.4%) 0.589s (-40.0% 🟢) 4.393s (-5.1% 🟢) 1.426s 10 1.00x
▲ Vercel Nitro 2.981s (-4.3%) 3.258s (-3.6%) 0.611s (+52.8% 🔺) 4.391s (+1.3%) 1.410s 10 1.00x
▲ Vercel Next.js (Turbopack) 3.008s (-1.1%) 3.141s (-8.9% 🟢) 0.679s (+34.8% 🔺) 4.384s (-0.7%) 1.375s 10 1.01x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 7/8
🐘 Postgres Next.js (Turbopack) 5/8
▲ Vercel Next.js (Turbopack) 4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 💻 Local 8/8
Next.js (Turbopack) 💻 Local 8/8
Nitro 💻 Local 8/8
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
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

Comment on lines +328 to +329
const packageInfo = await getPackageInfo();
const currentVersion = parseVersion(packageInfo.version);
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.

When getPackageInfo() returns a fallback version of "bundled" (in bundled contexts where package.json is inaccessible), initDataDir() will crash because parseVersion('bundled') throws an error - "bundled" doesn't match the semver regex pattern.

View Details
📝 Patch Details
diff --git a/packages/world-local/src/init.ts b/packages/world-local/src/init.ts
index 7562441..2b9e4e6 100644
--- a/packages/world-local/src/init.ts
+++ b/packages/world-local/src/init.ts
@@ -326,6 +326,13 @@ export async function initDataDir(dataDir: string): Promise<void> {
   await ensureDataDir(dataDir);
 
   const packageInfo = await getPackageInfo();
+
+  // In bundled contexts, package.json is not accessible and version is 'bundled'.
+  // Skip version checking in this case since we can't determine the actual version.
+  if (packageInfo.version === 'bundled') {
+    return;
+  }
+
   const currentVersion = parseVersion(packageInfo.version);
 
   // Read existing version file

Analysis

parseVersion('bundled') crashes in initDataDir() when package.json is inaccessible

What fails: initDataDir() crashes with Error: Invalid version string: "bundled" when called in bundled contexts where import.meta.url is undefined and package.json cannot be read.

How to reproduce:

// In a bundled context (e.g., Next.js with world-local embedded):
import { createLocalWorld } from '@workflow/world-local';

const world = createLocalWorld({ dataDir: '.workflow-data' });
await world.start(); // Throws: Error: Invalid version string: "bundled"

This occurs when:

  1. import.meta.url is undefined or empty (bundled CJS contexts)
  2. getPackageInfo() falls back to returning { version: 'bundled' } (lines 60-65)
  3. initDataDir() calls parseVersion(packageInfo.version) at line 329
  4. parseVersion('bundled') throws because 'bundled' doesn't match the semver regex pattern ^(\d+)\.(\d+)\.(\d+)(?:-(.+))?$

Result: Application crash with uncaught error during startup, preventing World from initializing in bundled/production contexts.

Expected: initDataDir() should gracefully handle the bundled version case without crashing. In bundled contexts where the actual version cannot be determined, version checking should be skipped.

Fix: Added explicit check for packageInfo.version === 'bundled' in initDataDir() to skip version parsing and checking when the version cannot be determined. This is appropriate for bundled contexts because:

  • The directory structure is already ensured to be accessible (via ensureDataDir())
  • Version tracking is a best-effort feature; skipping it in bundled contexts is safe
  • Bundled contexts are typically development/testing scenarios where strict version compatibility is less critical

@VaguelySerious VaguelySerious marked this pull request as ready for review January 3, 2026 19:59
Comment thread packages/world-local/src/init.ts Outdated

/**
* Get the directory path for this module.
* Works in both ESM (direct usage) and bundled CJS contexts.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not understanding how this would work in CJS contexts (also why would it need to?)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It doesn't, the comment is wrong, whoops

* In bundled contexts where package.json cannot be read,
* returns 'bundled' as the version.
*/
export async function getPackageInfo(): Promise<PackageInfo> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wonder if we could leverage require() instead? Not blocking though, I'm fine with this for now and we can see if it causes any real world issues. Just feels a bit brittle to me.

Copy link
Copy Markdown
Member Author

@VaguelySerious VaguelySerious Jan 7, 2026

Choose a reason for hiding this comment

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

I think this should overall be replaced by the version solution that's in Pranay's event sourcing PR. We could merge this first if we want, or scrap for re-doing it after Pranay's PR lands

Comment thread packages/world-local/src/init.ts Outdated

const currentVersion = parseVersion(PACKAGE_VERSION);
const packageInfo = await getPackageInfo();
const currentVersion = parseVersion(packageInfo.version);
Copy link
Copy Markdown
Contributor

@vercel vercel Bot Jan 7, 2026

Choose a reason for hiding this comment

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

initDataDir() crashes in bundled contexts when parseVersion() receives 'bundled' string

Fix on Vercel

Copy link
Copy Markdown
Contributor

@karthikscale3 karthikscale3 left a comment

Choose a reason for hiding this comment

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

Looking good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants