clean up local testing paths in miniflare v5#14599
Conversation
🦋 Changeset detectedLatest commit: 2ffa89c The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 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 |
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR removes Miniflare's built-in live reload mechanism (the /cdn-cgi/mf/reload WebSocket endpoint, the liveReload option, and the HTML <script> injection), and drops the now-unused liveReload pass-through in Wrangler's Miniflare code paths. The Wrangler-side --live-reload flag still works via the ProxyWorker, which is correct.
One actionable issue:
- Stale public API docs —
packages/miniflare/README.md(lines 769-773) still documents theliveReload?: booleanoption that this PR removes. Since this is amajorbreaking change to Miniflare's public API, the README should be updated to drop this entry so users aren't pointed at a removed option. This file isn't part of the diff, so I can't attach an inline suggestion, but the block to delete is:
- `liveReload?: boolean`
If `true`, Miniflare will inject a script into HTML responses that
automatically reloads the page in-browser whenever the Miniflare instance's
options are updated.
Minor (non-blocking) note: loopbackPort remains in GlobalServicesOptions and is still passed by callers, but is no longer read inside getGlobalServices now that the live reload script (its only consumer) is gone. Safe to leave, but could be cleaned up if it's not needed elsewhere.
|
Review posted successfully to PR #14599. Summary of my review: The PR cleanly removes Miniflare's built-in live reload mechanism. I verified:
I flagged one actionable issue: the miniflare README still documents the removed |
@cloudflare/autoconfig
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@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: |
Fixes #[insert GH or internal issue link(s)].
Describe your change...
A picture of a cute animal (not mandatory, but encouraged)