Skip to content

[do not merge] Bump flight-booking-app + nextjs to workflow v5 beta#50

Draft
VaguelySerious wants to merge 1 commit into
mainfrom
peter/examples-prerelease-tarball
Draft

[do not merge] Bump flight-booking-app + nextjs to workflow v5 beta#50
VaguelySerious wants to merge 1 commit into
mainfrom
peter/examples-prerelease-tarball

Conversation

@VaguelySerious

@VaguelySerious VaguelySerious commented Jun 15, 2026

Copy link
Copy Markdown
Member

What

Bumps the workflow deps in flight-booking-app and nextjs to the published v5.0.0-beta pre-release on npm.

  • flight-booking-app: workflow@5.0.0-beta.15, @workflow/ai@5.0.0-beta.9, @workflow/world-postgres@5.0.0-beta.14
  • nextjs: workflow@5.0.0-beta.15

(@workflow/ai and @workflow/world-postgres have no .15 published; .9 and .14 are their latest betas from the same release line.)

v5 migration finding

getWorld() is now async in v5 (() => Promise<World>). The flight-booking-app instrumentation.ts called getWorld().start?.(), which fails the type check and — more importantly — would silently no-op at runtime (.start is undefined on a Promise), so the world worker would never start. Fixed by awaiting:

const world = await getWorld();
await world.start?.();

This is the only example using the optional async-world bootstrap, so it's the only one affected.

Local testing

  • nextjs: pnpm build ✓; pnpm dev + curl -X POST /api/signup started a run and both steps (create user, send welcome email) executed via the flow route ✓
  • flight-booking-app: pnpm build ✓ (after the instrumentation fix); pnpm dev boots, homepage 200, "Initializing workflow World" logs ✓ (LLM chat path not exercised — no AI Gateway key configured locally)

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
birthday-card-generator Ready Ready Preview, Comment Jun 15, 2026 12:33pm
flight-booking-app Ready Ready Preview, Comment Jun 15, 2026 12:33pm

@VaguelySerious VaguelySerious changed the title Test workflow v5 pre-release tarball (flight-booking-app + nextjs) [do not merge] Test workflow v5 pre-release tarball (flight-booking-app + nextjs) Jun 15, 2026
@VaguelySerious VaguelySerious changed the title [do not merge] Test workflow v5 pre-release tarball (flight-booking-app + nextjs) [do not merge] Test workflow v5 pre-release tarball Jun 15, 2026
Move both examples to the published v5 pre-release on npm:
- flight-booking-app: workflow@5.0.0-beta.15, @workflow/ai@5.0.0-beta.9,
  @workflow/world-postgres@5.0.0-beta.14
- nextjs: workflow@5.0.0-beta.15

flight-booking-app also needs a v5 migration fix: `getWorld()` is now async
(returns `Promise<World>`), so `instrumentation.ts` must await it before
calling `world.start?.()` — otherwise the world worker silently never starts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VaguelySerious VaguelySerious force-pushed the peter/examples-prerelease-tarball branch from cb5c231 to e20c833 Compare June 15, 2026 12:32
@VaguelySerious VaguelySerious changed the title [do not merge] Test workflow v5 pre-release tarball Bump flight-booking-app + nextjs to workflow v5 beta Jun 15, 2026
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​workflow/​world-postgres@​5.0.0-beta.148310010096100
Addedworkflow@​5.0.0-beta.15991008599100
Added@​workflow/​ai@​5.0.0-beta.9861008696100

View full report

@VaguelySerious VaguelySerious changed the title Bump flight-booking-app + nextjs to workflow v5 beta [do not merge] Bump flight-booking-app + nextjs to workflow v5 beta Jun 15, 2026
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.

1 participant