Skip to content

Commit

Permalink
[wrangler@2] fix: pin workerd to 1.20230404.0 (#4609)
Browse files Browse the repository at this point in the history
* fix: pin `workerd` to `1.20230404.0`

* fix: run Vitest tests in-band and with random inspector ports
  • Loading branch information
mrbbot authored Dec 15, 2023
1 parent 49a4696 commit c228c91
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 59 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-yaks-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

fix: pin `workerd` to `1.20230404.0`
4 changes: 4 additions & 0 deletions fixtures/shared/src/run-wrangler-long-lived.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ async function runLongLivedWrangler(command: string[], cwd: string) {
(resolve) => (resolveReadyPromise = resolve)
);

if (!command.includes("--inspector-port")) {
command.push("--inspector-port", "0");
}

const wranglerProcess = fork(
"../../packages/wrangler/bin/wrangler.js",
command,
Expand Down
112 changes: 56 additions & 56 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"postinstall": "patch-package",
"prettify": "prettier . --write --ignore-unknown",
"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",
"test:ci": "npm run test:ci --workspace=packages/wrangler --workspace=packages/pages-shared --if-present && npx vitest"
"test:ci": "npm run test:ci --workspace=packages/wrangler --workspace=packages/pages-shared --if-present && npx vitest --no-threads"
},
"dependencies": {
"@changesets/changelog-github": "^0.4.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"@cloudflare/workers-types": "^4.20221111.1",
"@iarna/toml": "^3.0.0",
"@microsoft/api-extractor": "^7.28.3",
"@miniflare/tre": "3.0.0-next.13",
"@miniflare/tre": "3.0.0-next.14",
"@types/better-sqlite3": "^7.6.0",
"@types/busboy": "^1.5.0",
"@types/command-exists": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/dev/local.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -948,5 +948,5 @@ export async function getMiniflare3(): Promise<
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
typeof import("@miniflare/tre")
> {
return (miniflare3Module ??= await npxImport("@miniflare/[email protected].13"));
return (miniflare3Module ??= await npxImport("@miniflare/[email protected].14"));
}

0 comments on commit c228c91

Please sign in to comment.