Skip to content

Commit d1d34fe

Browse files
Rename Mixed Mode to remote proxy/remote bindings depending on context (#9586)
* Rename Mixed Mode to remote proxy/remote bindings depending on context * fixups * add changeset * lockfile * fix tests * lockfile * more stable tests * maybe fix tests * maybe fix tests * Update fixtures/vitest-pool-workers-remote-bindings/remote-worker.js * Update packages/wrangler/e2e/wrangler-remote-resources.test.ts * Update fixtures/vitest-pool-workers-remote-bindings/test/index.spec.ts * Update fixtures/vitest-pool-workers-remote-bindings/test/index.spec.ts * maybe fix tests --------- Co-authored-by: Carmen Popoviciu <[email protected]>
1 parent 9fd3e5f commit d1d34fe

File tree

90 files changed

+873
-761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+873
-761
lines changed

.changeset/nice-falcons-yell.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@cloudflare/vite-plugin": patch
3+
"@cloudflare/vitest-pool-workers": patch
4+
"miniflare": patch
5+
"wrangler": patch
6+
---
7+
8+
Remove the Mixed Mode naming in favour of "remote bindings"/"remote proxy"

fixtures/vitest-pool-workers-mixed-mode/remote-worker.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

fixtures/vitest-pool-workers-mixed-mode/wrangler.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

fixtures/vitest-pool-workers-mixed-mode/package.json renamed to fixtures/vitest-pool-workers-remote-bindings/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@fixture/vitest-pool-workers-mixed-mode",
2+
"name": "@fixture/vitest-pool-workers-remote-bindings",
33
"private": true,
44
"scripts": {
55
"test": "vitest run --config vitest.workers.config.ts",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default {
2+
fetch() {
3+
return new Response(
4+
"Hello from a remote Worker part of the vitest-pool-workers remote bindings fixture!"
5+
);
6+
},
7+
};

fixtures/vitest-pool-workers-mixed-mode/test/index.spec.ts renamed to fixtures/vitest-pool-workers-remote-bindings/test/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ describe("Hello World worker", () => {
1818
const response = await env.MY_WORKER.fetch(request, env, ctx);
1919
await waitOnExecutionContext(ctx);
2020
expect(await response.text()).toMatchInlineSnapshot(
21-
`"Hello from a remote worker part of the vitest-pool-workers mixed mode fixture!"`
21+
`"Hello from a remote Worker part of the vitest-pool-workers remote bindings fixture!"`
2222
);
2323
}
2424
);
2525

2626
it("responds with Hello World! (integration style)", async () => {
2727
const response = await SELF.fetch("https://example.com");
2828
expect(await response.text()).toMatchInlineSnapshot(
29-
`"Response from remote worker: Hello from a remote worker part of the vitest-pool-workers mixed mode fixture!"`
29+
`"Response from remote worker: Hello from a remote Worker part of the vitest-pool-workers remote bindings fixture!"`
3030
);
3131
});
3232
});

fixtures/vitest-pool-workers-mixed-mode/vitest.workers.config.ts renamed to fixtures/vitest-pool-workers-remote-bindings/vitest.workers.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineWorkersConfig({
1515
test: {
1616
poolOptions: {
1717
workers: {
18-
experimental_mixedMode: true,
18+
experimental_remoteBindings: true,
1919
wrangler: { configPath: "./wrangler.json" },
2020
},
2121
},
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "vitest-remote-bindings-fixture-test",
3+
"main": "src/index.js",
4+
"compatibility_date": "2025-06-01",
5+
"services": [
6+
{
7+
"binding": "MY_WORKER",
8+
"service": "my-worker-test",
9+
"experimental_remote": true
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)