Skip to content

Commit

Permalink
Use python_workers compat flag instead of experimental (#5148)
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Mar 5, 2024
1 parent b53e0bd commit 11951f3
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .changeset/nice-seals-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"miniflare": minor
"wrangler": minor
---

chore: bump `workerd` to [`1.20240304.0`](https://github.com/cloudflare/workerd/releases/tag/v1.20240304.0)
6 changes: 6 additions & 0 deletions .changeset/tender-cooks-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"miniflare": minor
"wrangler": minor
---

fix: use python_workers compat flag for Python
2 changes: 1 addition & 1 deletion fixtures/python-worker/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "dep-python-worker"
main = "src/index.py"
compatibility_flags = ["experimental"]
compatibility_flags = ["python_workers"]
compatibility_date = "2024-01-29"
2 changes: 1 addition & 1 deletion packages/miniflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"glob-to-regexp": "^0.4.1",
"stoppable": "^1.1.0",
"undici": "^5.28.2",
"workerd": "1.20240223.1",
"workerd": "1.20240304.0",
"ws": "^8.11.0",
"youch": "^3.2.2",
"zod": "^3.20.6"
Expand Down
4 changes: 2 additions & 2 deletions packages/miniflare/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ test("Miniflare: service binding to current worker", async (t) => {
if (pathname === "/callback") return new Response("callback");
const response = await env.SELF.fetch("http://placeholder/callback");
const text = await response.text();
return new Response("body:" + text);
return new Response("body:" + text);
}
}`,
});
Expand Down Expand Up @@ -822,7 +822,7 @@ test("Miniflare: python modules", async (t) => {
contents: `def add(a, b):\n return a + b`,
},
],
compatibilityFlags: ["experimental"],
compatibilityFlags: ["python_workers"],
});
t.teardown(() => mf.dispose());
const res = await mf.dispatchFetch("http://localhost");
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/e2e/dev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ describe("basic dev python tests", () => {
name = "${workerName}"
main = "index.py"
compatibility_date = "2023-01-01"
compatibility_flags = ["experimental"]
compatibility_flags = ["python_workers"]
`,
"index.py": dedent`
from js import Response
Expand Down
38 changes: 19 additions & 19 deletions pnpm-lock.yaml

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

0 comments on commit 11951f3

Please sign in to comment.