Skip to content

[wrangler] Delegate experimental cf types to dev providers - #16166

Draft
edmundhung wants to merge 1 commit into
cloudflare:mainfrom
edmundhung:edmundhung/delegate-types-local-api
Draft

edmundhung wants to merge 1 commit into
cloudflare:mainfrom
edmundhung:edmundhung/delegate-types-local-api

Conversation

@edmundhung

Copy link
Copy Markdown
Member

Summary

  • Add an experimental types delegate to Wrangler and the Vite plugin so cf can generate Worker and runtime types using the project-installed provider.
  • Share the Wrangler new-config generator with its delegate and support --mode and --no-include-runtime.
  • This is the first half of a coordinated cf change; cf should drop its direct Miniflare and runtime-types dependencies after these delegates are available.

Testing

  • Wrangler focused tests (29) and Vite new-config tests (24) pass.
  • Wrangler and Vite plugin builds and TypeScript checks pass.

Coordination

  • Draft pending prerelease packages and an integration test in cloudflare/cf. The main-branch Vite plugin is 1.x, while cf currently requires Vite plugin 2.x; the Vite v2 branch will need this delegate before cf can use it.

  • Tests included/updated

  • Automated tests not possible - manual testing has been completed as follows:

  • Additional testing not necessary because:

  • Cloudflare docs PR(s):

  • Documentation not necessary because: internal, experimental delegate protocol.

@changeset-bot

changeset-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1f3e0d8

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

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@cloudflare/vite-plugin Minor
@cloudflare/vitest-plugin 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

@pkg-pr-new

pkg-pr-new Bot commented Oct 9, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@16166

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@16166

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@16166

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@16166

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@16166

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@16166

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@16166

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@16166

miniflare

npm i https://pkg.pr.new/miniflare@16166

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@16166

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@16166

@cloudflare/runtime-types

npm i https://pkg.pr.new/@cloudflare/runtime-types@16166

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@16166

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@16166

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@16166

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@16166

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@16166

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@16166

wrangler

npm i https://pkg.pr.new/wrangler@16166

commit: 1f3e0d8

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

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants