Skip to content

feat(build): define adapter-owned worker stages - #3142

Open
james-elicx wants to merge 4 commits into
codex/cdn-stack-toolingfrom
codex/cdn-v2-contracts
Open

feat(build): define adapter-owned worker stages#3142
james-elicx wants to merge 4 commits into
codex/cdn-stack-toolingfrom
codex/cdn-v2-contracts

Conversation

@james-elicx

@james-elicx james-elicx commented Sep 2, 2026

Copy link
Copy Markdown
Member

Part 2 of 16 in the staged CDN adapter stack. Depends on #3082.

Summary

  • defines transport-neutral request and response stage contracts in core vinext
  • keeps platform transport and stage interaction generic for RPC, service-binding, or HTTP adapters
  • intentionally publishes only the neutral type contract; build selection and lazy loader exports arrive atomically in feat(build): select adapter-owned worker stages #3150

Validation

  • vp test run tests/cache-adapters-config.test.ts
  • focused format, lint, and type checks
  • cumulative exact-tip changed-test sweep: 3,461 passed, 2 skipped

Review size

  • Implementation: +109 / -2 LOC
  • Tests and fixtures: +0 / -0 LOC
  • Other (docs, config, lockfile): +4 / -0 LOC
  • 3 changed files

Measured against codex/cdn-stack-tooling after rebasing onto main@a6931c0.

@pkg-pr-new

pkg-pr-new Bot commented Sep 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vinext/cloudflare@3142
npm i https://pkg.pr.new/create-vinext-app@3142
npm i https://pkg.pr.new/@vinext/types@3142
npm i https://pkg.pr.new/vinext@3142

commit: b614b12

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor
Example Preview Production Original
app-router-cloudflare preview production
pages-router-cloudflare preview production
app-router-playground preview production original
realworld-api-rest preview production
nextra-docs-template preview production
benchmarks preview production
hackernews preview production original
workers-cache preview production
static-export preview production
web preview production

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared b614b12 against base 5713241 using alternating same-runner rounds. Next.js was unchanged and skipped.

2 improved · 0 regressed · 4 within ±1.5%

Scenario Framework Baseline Current Change
Client bundle size (gzip) vinext 142.3 KB 142.3 KB ⚫ -0.0%
Client entry size (gzip) vinext 129.6 KB 129.6 KB ⚫ 0.0%
Dev server cold start vinext 3.26 s 3.18 s 🟢 -2.5%
Production build time vinext 3.79 s 3.68 s 🟢 -2.9%
RSC entry closure size (gzip) vinext 119.2 KB 119.2 KB ⚫ +0.0%
Server bundle size (gzip) vinext 202.8 KB 202.8 KB ⚫ +0.0%

View detailed results and traces

🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head

@james-elicx
james-elicx force-pushed the codex/cdn-v2-contracts branch from 3d7f3dd to 37f7924 Compare September 2, 2026 11:10
@james-elicx
james-elicx changed the base branch from codex/cdn-stack-tooling to main September 2, 2026 11:10
@james-elicx
james-elicx force-pushed the codex/cdn-v2-contracts branch 2 times, most recently from 6459a9b to c4f22db Compare September 2, 2026 12:47
@james-elicx
james-elicx changed the base branch from main to codex/cdn-stack-tooling September 2, 2026 12:47
@james-elicx
james-elicx force-pushed the codex/cdn-v2-contracts branch from c4f22db to 21a6078 Compare September 2, 2026 13:41
@james-elicx
james-elicx force-pushed the codex/cdn-v2-contracts branch from bdc7eb7 to 28037d0 Compare September 2, 2026 16:26
@james-elicx
james-elicx force-pushed the codex/cdn-v2-contracts branch from 28037d0 to b614b12 Compare September 2, 2026 17:12
@james-elicx
james-elicx marked this pull request as ready for review September 3, 2026 10:04
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