Files
James Anderson 36f1775122 feat: AsyncLocalStorage for ExecutionContext (ctx) propagation (#410)
Adds request-context.ts shim with runWithExecutionContext() and
getRequestExecutionContext() so Cloudflare Workers ctx is accessible
anywhere in the call stack without manual threading.

- New shims/request-context.ts with ALS keyed on Symbol.for('vinext.requestContext.als')
- app-router-entry.ts wraps each request in runWithExecutionContext(ctx, ...)
- app-rsc-entry.ts generated code imports the helpers for downstream use
- deploy.ts generated worker entry forwards ctx in fetch(request, env, ctx)
- kv-cache-handler.ts uses getRequestExecutionContext() ?? this.ctx
- 8 new tests in tests/request-context.test.ts
2026-03-10 15:28:51 +00:00
..
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00
2026-03-09 14:56:14 +00:00