Skip to content

Commit 4204d20

Browse files
committed
Rename Mixed Mode to remote proxy/remote bindings depending on context
1 parent 4e16a75 commit 4204d20

File tree

92 files changed

+664
-679
lines changed

Some content is hidden

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

92 files changed

+664
-679
lines changed

.changeset/itchy-ears-carry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@cloudflare/vitest-pool-workers": patch
33
---
44

5-
add experimental support for mixed mode
5+
add experimental support for remote bindings

.changeset/tall-insects-read.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"wrangler": patch
55
---
66

7-
performance improvement: restart a mixed mode session only if the worker's remote bindings have changed
7+
performance improvement: restart a remote proxy session only if the worker's remote bindings have changed

.changeset/wet-socks-read.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"wrangler": patch
33
---
44

5-
expose new `experimental_maybeStartOrUpdateMixedModeSession` utility
5+
expose new `experimental_maybeStartOrUpdateRemoteProxySession` utility

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
});

0 commit comments

Comments
 (0)