[remote-bindings] Extract remote bindings package#14651
Conversation
🦋 Changeset detectedLatest commit: 14afe21 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
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 |
|
✅ All changesets look good |
@cloudflare/autoconfig
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/remote-bindings
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
|
The new package This is a clean, well-tested internal refactor. All the substantive changes I've examined are faithful extractions:
I found no logic bugs, security issues, backward-compat violations, or incorrect API behavior. The minor logger-defaulting difference in the vite-plugin path (console vs wrangler logger) is cosmetic and not actionable. LGTM |
Extracts Wrangler's remote-binding session and shared DevEnv machinery into a new
@cloudflare/remote-bindingspackage, so Vite and Vitest Pool can use remote bindings without going through Wrangler internals.This PR is stacked on #14630.
The new package owns:
Wrangler keeps thin adapters for Wrangler-specific config, bundling, local runtime, logging, preview upload handling, and inspector integration.
@cloudflare/vite-pluginand@cloudflare/vitest-pool-workersnow consume@cloudflare/remote-bindingsdirectly for remote-binding sessions.Validated locally with:
pnpm --filter @cloudflare/remote-bindings check:typepnpm --filter @cloudflare/remote-bindings test:cipnpm --filter wrangler check:typepnpm --filter @cloudflare/vite-plugin check:typepnpm --filter @cloudflare/vitest-pool-workers check:typepnpm check:catalogpnpm check:pinned-depspnpm check:package-depspnpm check:formatpnpm check:lintpnpm check:private-packagespnpm -w test:ci -F wrangler -- ConfigController.test.ts DevEnv.test.ts LocalRuntimeController.test.ts MultiworkerRuntimeController.test.ts RemoteRuntimeController.test.ts utils.test.ts remote-bindings.test.ts remote-bindings-errors.test.ts dev.test.ts print-bindings.test.tsCredentialed remote-binding E2Es have not been run.
A picture of a cute animal (not mandatory, but encouraged)