Skip to content

Commit c228c91

Browse files
authored
[wrangler@2] fix: pin workerd to 1.20230404.0 (#4609)
* fix: pin `workerd` to `1.20230404.0` * fix: run Vitest tests in-band and with random inspector ports
1 parent 49a4696 commit c228c91

File tree

6 files changed

+68
-59
lines changed

6 files changed

+68
-59
lines changed

.changeset/cyan-yaks-rule.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
fix: pin `workerd` to `1.20230404.0`

fixtures/shared/src/run-wrangler-long-lived.ts

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ async function runLongLivedWrangler(command: string[], cwd: string) {
3535
(resolve) => (resolveReadyPromise = resolve)
3636
);
3737

38+
if (!command.includes("--inspector-port")) {
39+
command.push("--inspector-port", "0");
40+
}
41+
3842
const wranglerProcess = fork(
3943
"../../packages/wrangler/bin/wrangler.js",
4044
command,

package-lock.json

+56-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"postinstall": "patch-package",
2525
"prettify": "prettier . --write --ignore-unknown",
2626
"test": "npm run clean --workspace=wrangler && npm run bundle --workspace=wrangler && npm run test --workspace=packages/wrangler --workspace=packages/edge-preview-authenticated-proxy --workspace=packages/pages-shared --if-present && npx vitest",
27-
"test:ci": "npm run test:ci --workspace=packages/wrangler --workspace=packages/pages-shared --if-present && npx vitest"
27+
"test:ci": "npm run test:ci --workspace=packages/wrangler --workspace=packages/pages-shared --if-present && npx vitest --no-threads"
2828
},
2929
"dependencies": {
3030
"@changesets/changelog-github": "^0.4.5",

packages/wrangler/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"@cloudflare/workers-types": "^4.20221111.1",
121121
"@iarna/toml": "^3.0.0",
122122
"@microsoft/api-extractor": "^7.28.3",
123-
"@miniflare/tre": "3.0.0-next.13",
123+
"@miniflare/tre": "3.0.0-next.14",
124124
"@types/better-sqlite3": "^7.6.0",
125125
"@types/busboy": "^1.5.0",
126126
"@types/command-exists": "^1.2.0",

packages/wrangler/src/dev/local.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -948,5 +948,5 @@ export async function getMiniflare3(): Promise<
948948
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
949949
typeof import("@miniflare/tre")
950950
> {
951-
return (miniflare3Module ??= await npxImport("@miniflare/[email protected].13"));
951+
return (miniflare3Module ??= await npxImport("@miniflare/[email protected].14"));
952952
}

0 commit comments

Comments
 (0)