[miniflare] Register workers in the dev registry by default - #15061
Conversation
|
| Name | Type |
|---|---|
| miniflare | Minor |
| @cloudflare/deploy-helpers | Patch |
| @cloudflare/pages-shared | Patch |
| @cloudflare/remote-bindings | Patch |
| @cloudflare/runtime-types | Patch |
| @cloudflare/vite-plugin | Patch |
| @cloudflare/vitest-pool-workers | Patch |
| wrangler | Patch |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
I'm Bonk, and I've done a quick review of your PR. Summary: this flips Behavioral regression (high severity): internal Vite plugin workers will now be advertised. The Vite plugin's dev Miniflare instance (
Previously these relied on the This is exactly the scenario #15040's changeset described wanting to avoid — "advertise user workers without exposing internal or external workers." Only the removed Fix: explicitly opt the internal workers out. For each of the three (and likewise Note: the |
|
Posted the review as a top-level comment on PR #15061 (inline suggestions were rejected with 422 because the target lines aren't in the diff). Key finding: The Vite plugin's dev Miniflare instance ( |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
d3be37c to
9d7509b
Compare
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
9d7509b to
adfc95b
Compare
Follow-up to #15040.
This keeps named workers advertised in the dev registry by default while allowing callers to opt out with
unsafeRegisterWorker: false. It removes all now-redundantunsafeRegisterWorker: trueoptions and updates the existing changeset to classify the option as a non-breaking minor feature.The Vite plugin explicitly opts its router, asset, and proxy workers out, ensuring that only user workers are advertised during dev and preview.
The dev registry test now verifies both default registration and the explicit
falseopt-out.A picture of a cute animal (not mandatory, but encouraged)