Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
433 commits
Select commit Hold shift + click to select a range
5b3d40f
fix: clarify custom domain routing
Refzlund May 1, 2026
c318df0
test: keep docs integrity checks focused
Refzlund May 1, 2026
580cf6e
fix: resolve typed env vars for deploy
Refzlund May 1, 2026
9c2f55d
fix: include zone permissions in managed tokens
Refzlund May 2, 2026
a235ee6
fix: split account and zone token policies
Refzlund May 2, 2026
9eb6d63
fix: clean package dist before build
Refzlund May 2, 2026
43e10e3
feat: enhance article and TOC components with dynamic content offset …
Refzlund May 10, 2026
7127e49
fix: update Floating TOC styles for improved layout and interaction
Refzlund May 10, 2026
e25ea0a
refactor: simplify content offset calculations and improve title widt…
Refzlund May 10, 2026
2303d83
feat(devflare): add `server` dev host/port config + changesets next-t…
Refzlund Jun 28, 2026
6b7356d
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
51e8463
fix(ci): publish.yml — drop --tag (forbidden in pre mode) + pre-mode-…
Refzlund Jun 28, 2026
3973c8a
fix(ci): configure git identity unconditionally in publish workflow
Refzlund Jun 28, 2026
db83da3
feat(devflare): Phase A — freeze API contract + release/stability pol…
Refzlund Jun 28, 2026
6eeebd5
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
3cd03ab
feat(devflare): Phase B — close unfinished bridge/shim code paths
Refzlund Jun 28, 2026
131e8e8
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
dcc56e7
feat(devflare): Phase C — model v4 deploy-policy options + Cloudflare…
Refzlund Jun 28, 2026
9b77884
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
38f576f
feat(devflare): Phase D — deploy & secrets maturity guide + clearer p…
Refzlund Jun 28, 2026
357fd7f
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
e27dd17
feat(devflare): Phase E — enforce lint + gate publish on tests + fix …
Refzlund Jun 28, 2026
458898c
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
3f9f0d7
docs(devflare): Phase F — architecture & docs debt close-out
Refzlund Jun 28, 2026
f7e7992
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
e7b82e3
chore(devflare): packaging & release hygiene (LICENSE, node bin, expo…
Refzlund Jun 28, 2026
023b0e3
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
0b47000
fix(devflare): docs & contract honesty (entrypoint rows, bridge ports…
Refzlund Jun 28, 2026
db91029
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
cd82c4e
fix(devflare): repair DO WebSocket relay through the live gateway + c…
Refzlund Jun 28, 2026
55604c0
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
c813821
docs(devflare): accurate Cloudflare support matrix + offline-binding …
Refzlund Jun 28, 2026
de4bc5a
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
bef00b5
test(devflare): fix NaN error messages, ratchet lint to error, harden…
Refzlund Jun 28, 2026
f322db8
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
22d4986
chore(devflare): final QA sweep — bridge WS frame guard, docs notes, …
Refzlund Jun 28, 2026
d08f0c4
fix(devflare): build importable bundles with rolldown + verify dist b…
Refzlund Jun 28, 2026
35ad35b
ci(devflare): run build before the unit gate + bun 1.3.14 in publish
Refzlund Jun 28, 2026
445b501
test(devflare): move nested-Miniflare worker-loader test to a serial …
Refzlund Jun 28, 2026
8938d0e
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
db98dd9
fix(devflare): declare typescript as a runtime dependency
Refzlund Jun 28, 2026
17411f2
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
6fab0de
fix(devflare): CLI bin runs dist under node + robust dependency packa…
Refzlund Jun 28, 2026
d8e8abc
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
feab91d
feat(devflare): remote flag + preview/jurisdiction/migration on core …
Refzlund Jun 28, 2026
1420744
chore(release): version packages [skip ci]
github-actions[bot] Jun 28, 2026
81b4c63
feat(devflare): Stream, VPC services/networks, and Flagship bindings …
Refzlund Jun 29, 2026
a2aeef6
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
54f4566
feat(devflare): wire Analytics Engine + tail consumers + mTLS remote …
Refzlund Jun 29, 2026
fd4f874
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
b3f6771
feat(devflare): offline mocks for Vectorize + Analytics Engine, cf.al…
Refzlund Jun 29, 2026
acd012f
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
e267951
fix(devflare): honest offline-support classification for Durable Obje…
Refzlund Jun 29, 2026
9765278
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
49aad79
feat(devflare): gradual/percentage deploy + devflare tail command (CF…
Refzlund Jun 29, 2026
67a0af0
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
15fed0f
feat(devflare): cron grammar validation + build-time 2-arg fetch chec…
Refzlund Jun 29, 2026
0d68f4d
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
f1209e4
fix(devflare): typed env/vars proxies assignable to augmented Devflar…
Refzlund Jun 29, 2026
9c06ba8
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
53347f3
docs(devflare): CF-7 boundaries — DO WS hibernation (covered), unsafe…
Refzlund Jun 29, 2026
804bc79
feat(devflare): close CF-8 config-coverage gaps (queue/service/stream…
Refzlund Jun 29, 2026
c2e2206
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
848e41f
feat(devflare): productions deployments history subcommand + observab…
Refzlund Jun 29, 2026
acc5a0e
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
fb5dff4
feat(devflare): sendEmail pure-offline test parity — createMockSendEm…
Refzlund Jun 29, 2026
2af2b04
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
23650d8
feat(devflare): server.liveReload + server.cf local-dev options (CF-15)
Refzlund Jun 29, 2026
b54cf56
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
0ba2da4
fix(devflare): streamingTailConsumers rejects environment (wrangler S…
Refzlund Jun 29, 2026
06da2a8
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
50a2474
feat(devflare): model Durable Objects binding environment sub-field (…
Refzlund Jun 29, 2026
088a0c2
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
95b548f
fix(devflare): fold service-binding environment into the service name…
Refzlund Jun 29, 2026
9d5854d
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
8e71c14
docs(devflare): generalize esbuild bundling-flag passthrough boundary…
Refzlund Jun 29, 2026
0ad0536
feat(devflare): reject route flags on non-custom-domain routes + add …
Refzlund Jun 29, 2026
5248085
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
cd9efe6
feat(devflare): model+wire server.publicUrl local-dev knob (CF-28)
Refzlund Jun 29, 2026
9a2dcb5
chore(release): version packages [skip ci]
github-actions[bot] Jun 29, 2026
f3e1256
docs(devflare): record CF-29/CF-30 convergence — gap loop closed (zer…
Refzlund Jun 29, 2026
3e27fa5
feat(devflare): R2 presigned PUT/GET URLs with dev/prod symmetry
Refzlund Jul 11, 2026
fd33304
chore(release): version packages [skip ci]
github-actions[bot] Jul 11, 2026
50c14ab
fix(dev): bridge DO RPC methods past a custom fetch handler
Refzlund Jul 16, 2026
2d4643c
chore(release): version packages [skip ci]
github-actions[bot] Jul 16, 2026
4477cc9
fix(dev): relay Durable Object WebSocket-hibernation broadcast across…
Refzlund Jul 16, 2026
158aba5
chore(release): version packages [skip ci]
github-actions[bot] Jul 16, 2026
e8cd40f
fix(dev): forward app-route WebSocket upgrades to the app worker
Refzlund Jul 16, 2026
6fa9740
chore(release): version packages [skip ci]
github-actions[bot] Jul 16, 2026
03d550c
fix(bridge): preserve multiple Set-Cookie headers relayed through the…
Refzlund Jul 17, 2026
da69c22
chore(release): version packages [skip ci]
github-actions[bot] Jul 17, 2026
844e4e1
feat(dev-server): DEVFLARE_PERSIST_DIR env override for the persist d…
Refzlund Jul 17, 2026
9f01e44
chore(release): version packages [skip ci]
github-actions[bot] Jul 17, 2026
69a9d38
feat(devflare): workspace dev — run several apps in one Miniflare wit…
Refzlund Jul 17, 2026
a977ed4
chore(release): version packages [skip ci]
github-actions[bot] Jul 17, 2026
cd794ad
fix(dev-server): workspace dev crashed at startup for any app owning …
Refzlund Jul 17, 2026
ebadf79
chore(release): version packages [skip ci]
github-actions[bot] Jul 17, 2026
0b7ebc9
fix(sveltekit): ride out transient bridge outages when creating the d…
Refzlund Jul 21, 2026
ea7abcd
chore(release): version packages [skip ci]
github-actions[bot] Jul 21, 2026
2b42355
fix(bridge,sveltekit): a retried connect could dismantle the connecti…
Refzlund Jul 30, 2026
902ed96
chore(release): version packages [skip ci]
github-actions[bot] Jul 30, 2026
a53ad70
fix(dev-server): notice when the runtime dies, instead of serving 500…
Refzlund Jul 30, 2026
c4ddb2a
chore(release): version packages [skip ci]
github-actions[bot] Jul 30, 2026
0d3055f
fix(bundler): stop the inlineDynamicImports warning on every dev star…
Refzlund Jul 30, 2026
8384f9e
feat: let two instances share an app directory via DEVFLARE_DIR
Refzlund Jul 31, 2026
4bc6476
docs: regenerate the LLM handbook for DEVFLARE_DIR
Refzlund Jul 31, 2026
ce0d343
chore(release): version packages [skip ci]
github-actions[bot] Jul 31, 2026
4ac411f
fix: DEVFLARE_DIR was ignored on the path that actually runs
Refzlund Jul 31, 2026
d08148c
chore(release): version packages [skip ci]
github-actions[bot] Jul 31, 2026
48bab1b
feat: let the browser shim be moved off 8788, from the CLI
Refzlund Jul 31, 2026
0ce4104
chore(release): version packages [skip ci]
github-actions[bot] Jul 31, 2026
4c34bfb
fix: the browser shim served @cloudflare/puppeteer 1.0.x's endpoints …
Refzlund Aug 1, 2026
9a9431f
fix: the browser shim's sessions and history lists lacked their envelope
Refzlund Aug 1, 2026
d2b3b6d
chore(release): version packages [skip ci]
github-actions[bot] Aug 1, 2026
8c1284c
fix(bundler): stop the unresolved-import warning for Node builtin sub…
Refzlund Aug 2, 2026
092d1d0
chore(release): version packages [skip ci]
github-actions[bot] Aug 2, 2026
facd6b9
test: pin that a second test context starts with empty storage
Refzlund Aug 2, 2026
1cfb463
perf: createTestContext() reloaded the config for every context
Refzlund Aug 2, 2026
5fcd74a
fix: a suite with Durable Objects could only run one test file per pr…
Refzlund Aug 2, 2026
d543a5f
chore(release): version packages [skip ci]
github-actions[bot] Aug 2, 2026
67feb43
feat(email): outbox, SMTP relay with a recipient pin, and an IMAP inb…
Refzlund Aug 6, 2026
ac1d671
chore(release): version packages [skip ci]
github-actions[bot] Aug 6, 2026
45938ee
feat(config): a committed env tier, and a var that is required to bui…
Refzlund Aug 7, 2026
ddea3a0
chore(release): version packages [skip ci]
github-actions[bot] Aug 7, 2026
587f86c
feat(config): zones — Email Routing rules and DNS records, declared a…
Refzlund Aug 7, 2026
a25b3e0
chore(release): version packages [skip ci]
github-actions[bot] Aug 7, 2026
a20aa35
feat(config): zones.emailSending — check, and optionally perform, sen…
Refzlund Aug 7, 2026
a69d3c2
chore(release): version packages [skip ci]
github-actions[bot] Aug 7, 2026
166a389
feat(config): eventSubscriptions — platform events onto a Queue, reco…
Refzlund Aug 7, 2026
e02aaca
chore(release): version packages [skip ci]
github-actions[bot] Aug 7, 2026
dd5d525
fix(config): create forward destinations before the rules — the verif…
Refzlund Aug 7, 2026
1a8bd5c
fix(dev-server,sveltekit): a reloading runtime is not a dev server th…
Refzlund Aug 7, 2026
fe3614c
chore(release): version packages [skip ci]
github-actions[bot] Aug 7, 2026
9f93d43
fix(email): the outbound loopback listener let one open socket hold t…
Refzlund Aug 7, 2026
c6b32a9
chore(release): version packages [skip ci]
github-actions[bot] Aug 7, 2026
a74e46f
fix(config): a DNS record Cloudflare OWNS is reported, not attempted
Refzlund Aug 7, 2026
50bc536
chore(release): version packages [skip ci]
github-actions[bot] Aug 7, 2026
c5ab77e
fix(dev-server,bridge,test): a rate limit binding carries its namespa…
Refzlund Aug 7, 2026
1c0bdd1
chore(release): version packages [skip ci]
github-actions[bot] Aug 7, 2026
437a6f9
fix(dev-server,bridge,test): a WebSocket route that refuses is a refu…
Refzlund Aug 10, 2026
1c7f506
chore(release): version packages [skip ci]
github-actions[bot] Aug 10, 2026
cb15875
fix(cli,deploy): a deploy is successful only when something SAW the u…
Refzlund Sep 3, 2026
a9505e4
chore(release): version packages [skip ci]
github-actions[bot] Sep 3, 2026
cf5cbd7
fix(browser-shim): a session is reaped when its client leaves, not 60…
Refzlund Sep 17, 2026
3d8c627
chore(release): version packages [skip ci]
github-actions[bot] Sep 17, 2026
6633df4
fix(deps): move to Miniflare 5 and Wrangler 4.148, and upgrade depend…
Refzlund Oct 8, 2026
a705c0b
test(test-context): fail fast, naming Bun, when its bundler stops ans…
Refzlund Oct 8, 2026
5927ba5
ci: move CI and the workspace onto Bun 1.4.2
Refzlund Oct 8, 2026
7d32c01
chore(release): version packages [skip ci]
github-actions[bot] Oct 8, 2026
83a757e
chore(deps): remove the unused citty, defu and fast-glob
Refzlund Oct 8, 2026
7ed704e
chore(lint): move to Biome 2.5.15
Refzlund Oct 8, 2026
74b7797
feat(config): move the config schema to zod 4
Refzlund Oct 8, 2026
239269d
feat(types): support @cloudflare/workers-types 5
Refzlund Oct 8, 2026
88ea513
feat(sveltekit): support SvelteKit 3 alongside SvelteKit 2
Refzlund Oct 8, 2026
a72c838
fix(config): move to c12 3.3.4 and reload an edited config under Bun …
Refzlund Oct 8, 2026
6c83e95
chore(release): move to @changesets/cli 3.0.3
Refzlund Oct 9, 2026
c9f6872
chore(deps): move to wrangler 4.149.0, miniflare 5.20261006.1-alpha a…
Refzlund Oct 9, 2026
6a21cf7
docs(config): say what was measured about a config's imported modules
Refzlund Oct 9, 2026
c87c16a
chore(changeset): SvelteKit 3, workers-types 5, zod 4, c12 3 and the …
Refzlund Oct 9, 2026
0a960d6
ci(types): type-check devflare's sources against workers-types 4 again
Refzlund Oct 9, 2026
89e7da0
chore(changeset): correct three claims in the upgrade changeset
Refzlund Oct 9, 2026
016c34c
docs: say where the c12 reload test grades, and state the latest-tag …
Refzlund Oct 9, 2026
e387566
chore(release): version packages [skip ci]
github-actions[bot] Oct 9, 2026
9f0576f
ci(deploy): build an unbuilt workspace devflare before deploying with it
Refzlund Oct 9, 2026
387084d
fix(config): a missing config raises ConfigNotFoundError again
Refzlund Oct 9, 2026
1d355e8
fix(test): createMockArtifacts().get() rejects a missing repo with NO…
Refzlund Oct 9, 2026
5ed759c
fix(types): devflare types writes a file Biome leaves unchanged
Refzlund Oct 9, 2026
3bb2f9d
chore(documentation): drop the stale nested bun.lock
Refzlund Oct 9, 2026
28f0d99
fix(config): tell a found config by its path, not c12 3's `_configFile`
Refzlund Oct 9, 2026
2ec6b27
refactor(documentation): move from $lib to SvelteKit 3's #lib
Refzlund Oct 9, 2026
3aa282e
ci(types): check devflare's sources against the workers-types 4 FLOOR
Refzlund Oct 9, 2026
63e705b
docs(vite): say why SvelteKit 3's adapter platform proxy is left running
Refzlund Oct 9, 2026
c5d19ae
ci(publish): a changeset naming only private packages is not pending
Refzlund Oct 9, 2026
400c12d
chore(changeset): ConfigNotFoundError, Artifacts.get NOT_FOUND, forma…
Refzlund Oct 9, 2026
5b76e1f
style(documentation): re-sort the imports the #lib rename reordered
Refzlund Oct 9, 2026
c453738
test(test-context): give the built-dist autodiscovery test time to build
Refzlund Oct 9, 2026
fb50d1e
test(integration): build the package in a hook, not inside the first …
Refzlund Oct 9, 2026
fa44462
chore(turbo): stop turbo writing a root AGENTS.md block
Refzlund Oct 9, 2026
2b18974
chore(documentation): remove scratch files committed by accident
Refzlund Oct 9, 2026
a76bb15
fix(deploy): any devflare resolution failure means nothing to build
Refzlund Oct 9, 2026
624b477
fix(productions): never delete or roll back a Worker the scan merely …
Refzlund Oct 9, 2026
5c2369a
fix(types): the generated env.d.ts also survives `biome check`'s impo…
Refzlund Oct 9, 2026
3ff105f
test(config): grade the existence check on an absolute --config path
Refzlund Oct 9, 2026
8b511a0
fix(publish): a changeset whose frontmatter cannot be fully read stay…
Refzlund Oct 9, 2026
089e7c6
docs(release): a changeset naming only private packages does not release
Refzlund Oct 9, 2026
6a601c0
docs(test): say which workers-types document Artifacts NOT_FOUND
Refzlund Oct 9, 2026
4b44d8b
docs(types): show typed service bindings as import() types
Refzlund Oct 9, 2026
dd39153
chore(release): version packages [skip ci]
github-actions[bot] Oct 9, 2026
17d07cf
fix(workspace): hand a Vite app's manifest env to its Vite child
Refzlund Oct 9, 2026
a47663a
fix(workspace): stop a Vite app's whole process tree
Refzlund Oct 9, 2026
fec376e
chore(release): version packages [skip ci]
github-actions[bot] Oct 9, 2026
9954043
fix(test): env.dispose() drains cf.worker.fetch waitUntil work
Refzlund Oct 9, 2026
cad8e05
fix(test): leave settled waitUntil work to bun, scope drains per context
Refzlund Oct 9, 2026
bb70efc
fix(test): classify waitUntil work with Bun.peek.status before attaching
Refzlund Oct 9, 2026
af5c8dd
chore(release): version packages [skip ci]
github-actions[bot] Oct 9, 2026
5ff30d8
fix(sveltekit): resolve env.NAME vars and .dev.vars in the Vite child
Refzlund Oct 10, 2026
8c0d7c6
fix(sveltekit): QA round 1 (0 red) — grade the seam's split, the real…
Refzlund Oct 10, 2026
30fc091
chore(release): version packages [skip ci]
github-actions[bot] Oct 10, 2026
04001b5
test: stop a child_process module mock leaking into later unit files
Refzlund Oct 10, 2026
ea9f171
fix(dev-server): wait for a child's real exit, not for `killed`
Refzlund Oct 10, 2026
86ddafd
chore(release): version packages [skip ci]
github-actions[bot] Oct 10, 2026
d22f901
fix(config): resolve env.NAME vars for referenced workers and offline…
Refzlund Oct 10, 2026
cda2f31
test(dev-server): a referenced worker's env.NAME var reaches it resol…
Refzlund Oct 10, 2026
de7aaed
docs(changeset): say what a referenced worker's descriptor did before…
Refzlund Oct 10, 2026
2693af5
fix(config): QA round 1 (2 red) — own .env outranks a copied one; wai…
Refzlund Oct 10, 2026
753041c
chore(release): version packages [skip ci]
github-actions[bot] Oct 10, 2026
e3f5f3b
fix(dev-server): a Vite child ranks the coordinator's .env copies bel…
Refzlund Oct 10, 2026
29a5937
fix(dev-server): QA round 1 (0 red) — state the limits; assert the or…
Refzlund Oct 10, 2026
09c019f
chore(release): version packages [skip ci]
github-actions[bot] Oct 10, 2026
0e03649
fix(config,vite): a ref() binding names its real worker in every buil…
Refzlund Oct 10, 2026
a0fc696
fix(config,test): QA round 1 (2 red) — no <pending> path under Node, …
Refzlund Oct 10, 2026
0871d7b
chore(release): version packages [skip ci]
github-actions[bot] Oct 10, 2026
308e6e0
feat(workspace): the coordinator holds a lock on its persist dir
Refzlund Oct 12, 2026
c012d1d
fix(workspace): QA round 1 on the coordinator lock
Refzlund Oct 12, 2026
6851887
test(workspace): the startup-race test makes start() slow, so a stop(…
Refzlund Oct 12, 2026
1468590
refactor(workspace): split the coordinator lock's pure protocol into …
Refzlund Oct 12, 2026
8c13b7d
chore(release): version packages [skip ci]
github-actions[bot] Oct 12, 2026
e0adb79
fix(miniflare-options): root a worker's modules where they live, so a…
Refzlund Oct 12, 2026
ddddc26
fix(workspace): give each app its own generated root when DEVFLARE_DI…
Refzlund Oct 12, 2026
ae4742a
chore(release): version packages [skip ci]
github-actions[bot] Oct 12, 2026
5f08579
test(workspace): grade the per-app generated root — each Vite child's…
Refzlund Oct 12, 2026
dcb283c
chore(release): version packages [skip ci]
github-actions[bot] Oct 12, 2026
bffdd3d
fix(dev): report a slow Vite start truthfully, and say "Workspace rea…
Refzlund Oct 14, 2026
cbd1504
fix(dev): QA round 1 (1 red, 5 yellow) — grade the workspace's use of…
Refzlund Oct 14, 2026
3cda0f7
chore(release): version packages [skip ci]
github-actions[bot] Oct 14, 2026
24ab152
fix(browser-shim): the relay closes the other end whatever code the f…
Refzlund Oct 14, 2026
9454639
fix(browser-shim): a Chrome that disconnected is seen out, not killed…
Refzlund Oct 14, 2026
93905f8
fix(browser-shim): QA round 1 (0 red, 6 yellow) — the shim's own rela…
Refzlund Oct 14, 2026
a49c0ef
chore(release): version packages [skip ci]
github-actions[bot] Oct 14, 2026
c0cc5ce
feat(config): export the dotenv layer's pure readers from `devflare`
Refzlund Oct 17, 2026
9b001c9
chore(release): version packages [skip ci]
github-actions[bot] Oct 17, 2026
3ffd6c0
fix(dev-server): a worker's console.warn logs as a warning, not an error
Refzlund Oct 22, 2026
c5781ef
fix(browser-shim): a Chrome the OS reports exited is not reported as …
Refzlund Oct 22, 2026
f8a6368
fix(browser-shim): QA round 1 (0 red, 5 yellow) — the reap's poll, cl…
Refzlund Oct 22, 2026
76e75ad
chore(release): version packages [skip ci]
github-actions[bot] Oct 22, 2026
8cb525b
feat(config): loadConfig takes dotenv: false, and compileBuildConfig …
Refzlund Oct 20, 2026
aa1415b
chore(release): version packages [skip ci]
github-actions[bot] Oct 23, 2026
23695fd
feat(config): DEVFLARE_LOCAL_DEV_VARS=off keeps the local-vars overla…
Refzlund Oct 23, 2026
30d9766
fix(config): QA round 1 (1 red, 3 yellow) — the switch's name reaches…
Refzlund Oct 23, 2026
1b68224
chore(release): version packages [skip ci]
github-actions[bot] Oct 23, 2026
40b448b
fix(config): an async defineConfig factory types as a Promise, and re…
Refzlund Oct 23, 2026
b474e92
fix(config): ref().worker keeps the entrypoints defineConfig<Entrypoi…
Refzlund Oct 23, 2026
1d96176
fix(config): QA round 1 (1 red, 2 yellow) — a DefineConfigInput value…
Refzlund Oct 23, 2026
3204526
chore(release): version packages [skip ci]
github-actions[bot] Oct 23, 2026
a414c8b
test(dev-server): a Vite child inherits DEVFLARE_LOCAL_DEV_VARS
Refzlund Oct 23, 2026
de513f7
fix(deploy): env.<name>.vars descriptors are resolved after the merge…
Refzlund Oct 23, 2026
b2ae38f
fix(deploy): QA round 1 (0 red, 4 yellow) — the drift check has a liv…
Refzlund Oct 23, 2026
34192aa
chore(release): version packages [skip ci]
github-actions[bot] Oct 24, 2026
9cca5e1
feat(config): resolveConfigEnvVarsFromSources reports a missing varia…
Refzlund Oct 24, 2026
feaabea
chore(release): version packages [skip ci]
github-actions[bot] Oct 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets).

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@4.0.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "next",
"updateInternalDependencies": "patch",
"ignore": []
}
4 changes: 4 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"mode": "pre",
"tag": "next"
}
16 changes: 16 additions & 0 deletions .changeset/pre/absent-in-dev-honours-a-real-value.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'devflare': patch
---

Correct what `.absentInDev()` promises. It said the key is "omitted entirely in dev"; what it
actually does — and always did — is omit the key when NOTHING supplies a value. A value that is
genuinely present still wins, in dev as everywhere else.

That is the intended escape hatch: a developer who deliberately exports a sender to point their
machine at a real one gets it. But the absolute phrasing invited the pairing that defeats the
descriptor entirely — writing the value into `.env.public`, which is committed, so it reaches
every checkout and hands the exact placeholder to every laptop the descriptor exists to withhold.
The documentation now says both halves, and a test pins the behaviour so the warning cannot
quietly become false.

No behaviour change.
35 changes: 35 additions & 0 deletions .changeset/pre/absolute-devflare-dir-modules-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
'devflare': patch
---

An absolute `DEVFLARE_DIR` outside the app now works, in `devflare dev` and `workspace dev`. Three
things stood in the way.

**The modules root.** Each worker's modules root was the app directory (or its `baseDir`), while the
bundles devflare runs live in the generated-state directory. A `DEVFLARE_DIR` outside the app put
the bundle outside that root, and dev refused to start:

```
Module …/worker-entrypoints/main.js lies outside the worker's modules root …/apps/api; workerd cannot load it.
```

An app whose `baseDir` names a subfolder (`baseDir: './src'`) hit the same refusal at the default
`.devflare`, because the bundle never lives under `src`. The configured root is still used whenever
it holds every module. When it does not, the root becomes the deepest directory the worker's modules
share. A configured root on another drive is no longer read as holding the modules (it used to
yield an absolute module name), and modules that share no directory at all are refused, naming each.

**One directory for every app.** In `workspace dev`, an override that lands outside the apps (any
absolute path, or a relative one climbing out such as `../gen`) is the same directory for all of
them. Every app wrote its bundle to one path, and since Miniflare reads the bundles only after the
last app is prepared, every app served the last one's code. Each such app now keeps its state in the
subdirectory named by its path below the manifest — `<DEVFLARE_DIR>/apps/api` for `apps/api` — and a
Vite app's child process is handed that subdirectory as its `DEVFLARE_DIR`. The workspace's own
state stays where it was, at `<DEVFLARE_DIR>/workspace-data`. An app outside the manifest directory
has no such subdirectory, so it is refused, naming both directories. An override that stays inside
each app, such as `.devflare-e2e`, changes nothing.

**The generated Vite config.** It began `import { defineConfig } from 'vite'`, which Node resolves
from the config file's own directory. Outside every `node_modules`, Vite refused it with
`Cannot find package 'vite'`. It now exports the config function directly, which is what
`defineConfig` returned.
32 changes: 32 additions & 0 deletions .changeset/pre/async-config-factories.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
'devflare': patch
---

A config written `defineConfig(async () => …)` is now typed and referenced as what it is: a
Promise.

**`defineConfig` picks the right overload for a factory.** Any function satisfied the config
object's type on its own, because a function's `name` is a string and every other field is
optional. So the object overload took every factory: an async factory typed as `TypedConfig` and
reading `config.bindings` type-checked while it was `undefined` at runtime. It now types as
`Promise<TypedConfig<…>>`, explicit `defineConfig<Entrypoints>(async () => …)` included.

The same mistake meant that no factory's body was checked against the config schema. A factory
returning `bindings: { kv: 42 }` compiled without an error, and its returned object got no editor
completions. Both kinds of factory are now checked against the schema and get the config's
completions, and a sync factory's `vars` are inferred as an object's are. **A factory config may
report type errors it had all along**, including a factory that declares a parameter, which
`defineConfig` never passes. A plain object config types as before, and its errors now point at the
field that is wrong rather than at the whole call. A value typed as `DefineConfigInput`, which may
be either form, now types as `TypedConfig<…> | Promise<TypedConfig<…>>`.

**`ref()` evaluates the referenced module's default before reading `name`.** It awaits it and calls
it when it is a factory, as c12 does when `loadConfig` reads a config file. Before this change, a
ref to an async config threw `Referenced config must have a "name" property`, and a ref to a module
exporting a named factory (`export default function makeConfig() {…}`) resolved to a worker called
`makeConfig`. `ref().config` is now typed as the config such a module evaluates to, not as the
function it exports.

**`ref().worker(…)` keeps the entrypoints a config declares.** For any config written
`defineConfig<Entrypoints>(…)`, object or factory, the accessor widened to `string`, so an
unknown entrypoint name type-checked. It is now limited to `Entrypoints`.
28 changes: 28 additions & 0 deletions .changeset/pre/bridge-app-route-websocket-forward.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
'devflare': patch
---

Fix `devflare dev`: forward app-route WebSocket upgrades to the app worker.

In worker mode the dev gateway runs as the entry worker (`routes: ['*']`) with
the app (e.g. SvelteKit) worker as a service binding. A browser opening
`new WebSocket('/api/doc/:id/subscribe')` — whose handler does
`return stub.fetch(clientUpgradeRequest)` and returns the Durable Object's `101`
— never reached that handler: the gateway hijacked **every** unmatched WebSocket
upgrade into its in-worker bridge RPC socket. The socket appeared to upgrade
(`101`), but the app route never ran, so a DO's hibernation broadcast never
crossed tabs and a second concurrent connection could not share the DO instance.

This is distinct from the programmatic `stub.connect()` path fixed in the prior
release; it is the path a Worker/SvelteKit route takes when it forwards a client
WebSocket upgrade to a DO.

The gateway now forwards an unmatched WebSocket upgrade to the app worker and
passes its response through when the app answers with a genuine upgrade
(`101` + a `webSocket`), so `stub.fetch(clientUpgradeRequest)` reaches the DO and
its client socket streams back to the browser — two tabs then share one DO
instance and `ctx.getWebSockets()` broadcasts (and `webSocketClose` leave frames)
work. It falls back to the bridge RPC socket only when the app does not answer
with an upgrade (the bridge client path, which exists only when there is no app
worker). The `/_devflare/do-ws` connect() path, configured `wsRoutes`, and the
native DO RPC path are unchanged.
19 changes: 19 additions & 0 deletions .changeset/pre/bridge-do-rpc-native-dispatch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'devflare': patch
---

Fix `devflare dev`: bridge Durable Object RPC **method** calls (e.g.
`stub.push(arg)`, `stub.pull(since)`) when the DO also defines a custom `fetch()`
handler.

The local dev gateway routed every DO method call through the DO's `fetch()`
using an internal `_rpc` convention. A DO that `extends DurableObject` and
overrides `fetch()` — for example a websocket-only handler that returns `426`
for non-upgrade requests — received that probe on its own `fetch()`, returned a
non-JSON body, and the call failed with a bogus `... is not valid JSON` error.

The gateway now dispatches method calls natively (`stub[method](...args)`) —
exactly as on real Cloudflare, and matching what `devflare/test` already did —
and only falls back to the `_rpc` fetch convention for Durable Objects that are
not RPC-enabled. The `.fetch()`/WebSocket bridge paths are unchanged and still
reach the user handler.
24 changes: 24 additions & 0 deletions .changeset/pre/bridge-do-websocket-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
"devflare": patch
---

Fix the Durable Object WebSocket relay through the live dev gateway, and harden
proxied-response limits:

- **DO WebSocket `stub.connect()` was broken in both directions.** The live
gateway (`gateway-runtime.ts`) and the bridge client disagreed on the WS-data
wire format: the client sent/expected binary `WsData` frames while the gateway
only read string frames inbound and emitted a JSON `ws.data` envelope outbound,
so every payload was silently dropped. The gateway now speaks the same binary
`WsData` frame format as the client (matching `wire.ts`/`server.ts`) in both
directions, honoring the TEXT flag. Added an end-to-end integration test that
round-trips binary (both directions) and a text frame through the real gateway.
- **Oversized proxied responses now throw a clear error** instead of being
silently truncated. DO and service-binding `fetch()` responses reached through
the bridge are delivered inline over the WebSocket and are capped at 512 KB
(workerd's ~1 MB message limit); a larger body now throws, with the boundary
documented in the Cloudflare support matrix. Large R2 objects remain exempt
(HTTP transfer side-channel).
- The gateway handshake now advertises only the capabilities it actually
implements end-to-end (`ws-relay`, `http-transfer`); `streams` is no longer
advertised since proxied responses are inlined, not streamed.
31 changes: 31 additions & 0 deletions .changeset/pre/bridge-do-websocket-hibernation-broadcast.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
'devflare': patch
---

Fix `devflare dev`: relay a Durable Object's WebSocket-hibernation cross-socket
broadcast.

Two WebSocket clients connecting to the SAME DO instance
(`env.DOC_ROOM.getByName(id)` twice) could not see each other's messages when the
DO used the hibernation API (`ctx.acceptWebSocket()` with the runtime-dispatched
`webSocketMessage`/`webSocketClose` handlers and a `ctx.getWebSockets()`
broadcast). The upgrade succeeded (`101`) and both sockets landed on one instance
(`ctx.getWebSockets().length` reached 2), but `webSocketMessage` never fired, so
a frame sent by one client was never delivered to the other.

Root cause: the bridge gateway pumped the DO's WebSocket **in-process** (it called
`stub.fetch(upgrade)` and drove the returned client socket with
`accept()`/`send()`). An in-process-pumped partner socket does not trigger
workerd's hibernation dispatch — only a genuine inbound connection does. The
`devflare/test` gateway had no DO WebSocket handler at all, so `stub.connect()`
hung there.

Durable Object `connect()` now opens a real pass-through WebSocket to a new
`/_devflare/do-ws` gateway endpoint, which forwards the upgrade to the DO and
returns its `101` response verbatim (the same pattern the browser WebSocket routes
already use). miniflare then wires the inbound connection to the DO's client
socket, so the runtime dispatches the hibernation handlers and delivers
`ctx.getWebSockets()` broadcasts across every connected client — exactly as on
real Cloudflare. Both the `devflare dev` and `devflare/test` gateways are covered.
The single-socket WebSocket path, the legacy in-process relay (`createWsProxy`),
and the native DO RPC path are unchanged.
27 changes: 27 additions & 0 deletions .changeset/pre/bridge-set-cookie-fidelity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
'devflare': patch
---

Fix multi-`Set-Cookie` corruption when a response is relayed through the dev
bridge.

When a Durable Object or service-binding `fetch()` response set **more than one**
cookie (e.g. a session cookie plus a CSRF cookie), the bridge flattened the
response headers with `Headers.entries()`/`forEach()`. Per the Fetch spec's
sort-and-combine, those APIs fold multiple `Set-Cookie` headers into a single
comma-joined value, so the browser received one corrupted
`Set-Cookie: a=1; Path=/; SameSite=Lax, b=2; Path=/; HttpOnly` — the second
cookie was lost and the first mangled. This bit any response relayed via a
service-binding or DO `fetch` through the local bridge whenever the gateway ran
under a compatibility date before `2023-08-01` (where workerd still combines
`Set-Cookie` and has no `getSetCookie()`).

The bridge now enumerates `Set-Cookie` separately and carries each value as its
own entry through serialize → deserialize (reconstructed with `append`, never a
join), so every cookie survives byte-faithfully with all attributes intact. It
reads cookies via the standard `Headers.getSetCookie()` and falls back to
workerd's legacy `getAll('set-cookie')`; when a runtime exposes neither, the
combined value is preserved verbatim rather than dropped. Both the workerd
gateway (`GATEWAY_RUNTIME_JS`) and the host-side (`server.ts`) serialization
paths are fixed, for `Request` and `Response` alike. Single-cookie and
non-cookie headers are unchanged.
30 changes: 30 additions & 0 deletions .changeset/pre/bridge-superseded-socket-isolation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
"devflare": patch
---

Stop a retried bridge connect from tearing down the connection it just established,
and stop the SvelteKit handle from blaming a request's own error on the platform.

**`BridgeClient` — a superseded socket could dismantle the live connection.** A refused
socket rejects on `error` but stays alive until its `close` arrives, so a caller that
retries in between replaces `this.ws` while the old socket is still wired to its
handlers. Those handlers were unconditional: the abandoned socket's `close` ran
`handleDisconnect()` — clearing `isConnected`, dropping the codec and rejecting every
in-flight call on the connection that had just replaced it — while a late `open`
installed a second codec over the live one, and either could clear another attempt's
in-flight marker. The connect timeout, too, closed whichever socket was current rather
than the one that attempt opened. Every handler now acts only while its own socket is
still the client's, and settles its own attempt. Overlapping attempts were rare when a
request connected once; `connectBridgeWithRetry` (added in the previous release) retries
~20 times inside a single request, which makes them routine — so a bridge that blinked
during an HMR reload could leave the client wedged rather than reconnected.

**`devflare/sveltekit` — the platform fallback caught the whole request.** The `try` in
`handle`/`createHandle` spanned both `createDevflarePlatform()` and `resolve(event)`, so
an error thrown anywhere downstream was logged as `[devflare] Failed to create platform`
— hiding the real cause behind a wrong diagnosis — and the request was then re-run via
the fallback. That re-run repeated every side effect the first pass had already
performed, and ran outside the request context devflare had established for it, so
`getContext()`/`env()` throw during the retry. The fallback is now scoped to building the
platform: a request that fails on its own merits propagates, once. A genuine platform
failure still falls through to an unbridged `resolve()` exactly as before.
36 changes: 36 additions & 0 deletions .changeset/pre/browser-relay-closes-the-other-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
'devflare': patch
---

The local BROWSER binding now closes the other end of its DevTools relay whatever code the first
end closed with. A `browser.close()` — or any CDP command — that is in flight when Chrome exits or
crashes now fails at once instead of waiting out puppeteer's 180-second `protocolTimeout`. (A Chrome
that stays up and simply never answers still waits it out; nothing closed, so there is nothing to
relay.) The dev log also no longer prints

```
ERROR [BrowserBinding] Failed to close socket: Invalid WebSocket close code: 1005.
ERROR [BrowserBinding] Failed to close socket: Invalid WebSocket close code: 1006.
```

once per session.

The relay between `@cloudflare/puppeteer` and Chrome copied one end's close code onto the other. The
two codes every session produces are reserved — workerd reports 1006 when Chrome exits and drops its
socket, and 1005 for `@cloudflare/puppeteer`'s own disconnect, a bare `ws.close()` — and workerd
refuses to SEND either. The copy threw, the relay logged it, and the other end was never closed.
When Chrome went down with a CDP command still in flight, the client was never told, and the
command waited out puppeteer's 180-second `protocolTimeout`. A crash does that every time; it was
also seen on `browser.close()` itself, whose reply Chrome can exit without sending.

The relay now sends the nearest close each end may carry, measured against workerd itself: a close
with no status is relayed as no status, a code RFC 6455 assigns for sending passes through, and anything
else — 1006 above all — becomes 1011 with the original code in the reason. If workerd refuses a coded
close anyway, the socket is closed without a code rather than left open; only a socket that cannot
be closed at all is still reported. The shim's own websocket relay had the same check and the same
defect, and uses the same translation.

Measured with real Chrome and `@cloudflare/puppeteer` 1.4.0, 20 sessions each: a command in flight
when Chrome crashed was still pending after 10 s in 20 of 20 sessions before, and was rejected in
44–184 ms in 20 of 20 after; ordinary sessions printed 20 `Failed to close socket` lines before and
0 after.
26 changes: 26 additions & 0 deletions .changeset/pre/browser-shim-exited-chrome-is-not-running.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
'devflare': patch
---

On Windows the Browser Rendering shim no longer reports a Chrome that has exited as still running:

```
[BrowserShim] Failed to close Chrome for session …: Chrome (pid 11076) was still running after its
DevTools connection closed and it was killed: ERROR: The process with PID 11076 (child process of
PID 15200) could not be terminated.
Reason: There is no running instance of the task.
```

After a client closes its browser, the shim waits for Chrome to exit before deciding it must be
killed. It decided by the runtime's `exit` event alone, and on Windows that event can arrive
seconds after Chrome has exited. Measured under Bun and Node alike, it came more than a second
after the operating system reported the exit in about one session in six, 17.6 s at worst. Past
the 5 s grace the shim killed a Chrome that was already gone, waited 5 s more for the event, and
logged it as an error — while taskkill answered "There is no running instance of the task" for its
pid.

The shim now also asks the operating system (`process.kill(pid, 0)`) while it waits, so a Chrome
that has exited is seen out within a tenth of a second, silently, whether or not the event has
come; a debug line records when it was the operating system's answer that decided. A Chrome the OS
still reports running after the kill is still reported. If the operating system cannot be asked at
all, the error names the Chrome and says whether it was killed.
Loading