Skip to content

Commit f214760

Browse files
dependabot[bot]petebacondarwinWrangler automated PR updater
authored
Bump the workerd-and-workers-types group with 2 updates (#13111)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Pete Bacon Darwin <pbacondarwin@cloudflare.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wrangler automated PR updater <wrangler@cloudflare.com>
1 parent 53dd863 commit f214760

20 files changed

Lines changed: 474 additions & 349 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"miniflare": patch
3+
"wrangler": patch
4+
---
5+
6+
Update dependencies of "miniflare", "wrangler"
7+
8+
The following dependency versions have been updated:
9+
10+
| Dependency | From | To |
11+
| ---------- | ------------ | ------------ |
12+
| workerd | 1.20260317.1 | 1.20260329.1 |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@cloudflare/vite-plugin": patch
3+
---
4+
5+
Add missing `connect` key to `WorkerEntrypoint` and `DurableObject` key lists in the runner worker
6+
7+
The `connect` method was added to the `WorkerEntrypoint` and `DurableObject` types in workerd 1.20260329.1 but was missing from the `WORKER_ENTRYPOINT_KEYS` and `DURABLE_OBJECT_KEYS` arrays used for RPC property access in the Vite plugin runner worker. This caused the compile-time exhaustiveness check to fail with the updated workers-types.

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ This is the **Cloudflare Workers SDK** monorepo containing tools and libraries f
121121
- E2E tests require real Cloudflare account credentials
122122
- Use `vitest-pool-workers` for testing actual Workers runtime behavior
123123
- Shared vitest config (`vitest.shared.ts`): 50s timeouts, `retry: 2`, `restoreMocks: true`
124+
- Vitest 4 pool config: use `maxWorkers: 1` instead of the removed `poolOptions.forks.singleFork: true` when tests must run sequentially
124125

125126
**Git Workflow:**
126127

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
22
"extends": "../../tsconfig.workerd.json",
3+
"compilerOptions": {
4+
// @cloudflare/containers@0.0.25 has an alarm() signature incompatible
5+
// with the updated DurableObject base type in @cloudflare/workers-types.
6+
// Remove when https://github.com/cloudflare/containers/issues/167 is resolved.
7+
"skipLibCheck": true
8+
},
39
"include": ["./**/*.ts"]
410
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
22
"extends": "../tsconfig.node.json",
3+
"compilerOptions": {
4+
// @cloudflare/containers@0.0.25 has an alarm() signature incompatible
5+
// with the updated DurableObject base type in @cloudflare/workers-types.
6+
// Remove when https://github.com/cloudflare/containers/issues/167 is resolved.
7+
"skipLibCheck": true
8+
},
39
"include": ["./*.ts"]
410
}

fixtures/vitest-pool-workers-examples/queues/test/queue-producer-unit.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ it("produces queue message with mocked send", async ({ expect }) => {
1919
// Intercept calls to `QUEUE_PRODUCER.send()`
2020
const sendSpy = vi
2121
.spyOn(env.QUEUE_PRODUCER, "send")
22-
.mockImplementation(async () => {});
22+
.mockImplementation(async () => ({
23+
metadata: {
24+
metrics: {
25+
backlogCount: 0,
26+
backlogBytes: 0,
27+
oldestMessageTimestamp: 0,
28+
},
29+
},
30+
}));
2331

2432
// Enqueue job on queue
2533
const request = new IncomingRequest("https://example.com/key", {

packages/miniflare/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Local dev simulator for Cloudflare Workers, powered by workerd runtime. Main cla
3737
## Testing
3838

3939
- Test files use `.spec.ts` (NOT `.test.ts`)
40-
- `pool: "forks"`, `singleFork: true`
40+
- `pool: "forks"`, `maxWorkers: 1` (Vitest 4 equivalent of the old `singleFork: true`)
4141
- Does NOT extend `vitest.shared.ts` — own full vitest config
4242
- Timeouts: 30s test, 30s hook
4343
- `globals: true`

packages/miniflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@cspotcode/source-map-support": "0.8.1",
5252
"sharp": "^0.34.5",
5353
"undici": "catalog:default",
54-
"workerd": "1.20260317.1",
54+
"workerd": "1.20260329.1",
5555
"ws": "catalog:default",
5656
"youch": "4.1.0-beta.10"
5757
},

packages/miniflare/test/plugins/local-explorer/aggregation.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@ describe("Same ID across multiple instances with same persistence directories",
675675
},
676676
});
677677

678+
// Wait for instanceA to be ready before starting instanceB to avoid
679+
// SQLite "database is locked" errors when both instances race to open
680+
// the same persistence file simultaneously.
681+
await instanceA.ready;
682+
678683
instanceB = new Miniflare({
679684
name: "worker-b",
680685
inspectorPort: 0,
@@ -689,7 +694,6 @@ describe("Same ID across multiple instances with same persistence directories",
689694
},
690695
});
691696

692-
await instanceA.ready;
693697
await instanceB.ready;
694698

695699
await waitForWorkersInRegistry(registryPath, ["worker-a", "worker-b"]);

packages/miniflare/vitest.config.mts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ export default defineConfig({
66
testTimeout: 30_000,
77
hookTimeout: 30_000,
88
pool: "forks",
9-
poolOptions: {
10-
forks: {
11-
singleFork: true,
12-
},
13-
},
9+
maxWorkers: 1,
1410
include: ["test/**/*.spec.ts"],
1511
setupFiles: [path.resolve(__dirname, "test/setup.mjs")],
1612
globals: true,

0 commit comments

Comments
 (0)