diff --git a/.changeset/nice-seals-raise.md b/.changeset/nice-seals-raise.md new file mode 100644 index 000000000000..586f3627bd44 --- /dev/null +++ b/.changeset/nice-seals-raise.md @@ -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) diff --git a/.changeset/tender-cooks-cheer.md b/.changeset/tender-cooks-cheer.md new file mode 100644 index 000000000000..6309ed85afdf --- /dev/null +++ b/.changeset/tender-cooks-cheer.md @@ -0,0 +1,6 @@ +--- +"miniflare": minor +"wrangler": minor +--- + +fix: use python_workers compat flag for Python diff --git a/fixtures/python-worker/wrangler.toml b/fixtures/python-worker/wrangler.toml index 882e41bd6089..3653c0fba02a 100644 --- a/fixtures/python-worker/wrangler.toml +++ b/fixtures/python-worker/wrangler.toml @@ -1,4 +1,4 @@ name = "dep-python-worker" main = "src/index.py" -compatibility_flags = ["experimental"] +compatibility_flags = ["python_workers"] compatibility_date = "2024-01-29" \ No newline at end of file diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index 7069741008dc..41ce6d9cbe08 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -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" diff --git a/packages/miniflare/test/index.spec.ts b/packages/miniflare/test/index.spec.ts index 352efca8e182..6b585bb42720 100644 --- a/packages/miniflare/test/index.spec.ts +++ b/packages/miniflare/test/index.spec.ts @@ -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); } }`, }); @@ -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"); diff --git a/packages/wrangler/e2e/dev.test.ts b/packages/wrangler/e2e/dev.test.ts index 12387aef7d49..66a56a0e96d6 100644 --- a/packages/wrangler/e2e/dev.test.ts +++ b/packages/wrangler/e2e/dev.test.ts @@ -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 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 130bcc3e9b23..73b0068c9a62 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -946,8 +946,8 @@ importers: specifier: ^5.28.2 version: 5.28.3 workerd: - specifier: 1.20240223.1 - version: 1.20240223.1 + specifier: 1.20240304.0 + version: 1.20240304.0 ws: specifier: ^8.11.0 version: 8.14.2 @@ -4076,8 +4076,8 @@ packages: marked: 0.3.19 dev: false - /@cloudflare/workerd-darwin-64@1.20240223.1: - resolution: {integrity: sha512-GgHnvkazLFZ7bmR96+dTX0+WS13a+5CHOOP3qNUSR9oEnR4hHzpNIO75MuZsm9RPAXrvtT7nSJmYwiGCZXh6og==} + /@cloudflare/workerd-darwin-64@1.20240304.0: + resolution: {integrity: sha512-rfHlvsWzkqEEQNvm14AOE/BYHYzB9wxQHCaZZEgwOuTl5KpDcs9La0N0LaDTR78ESumIWOcifVmko2VTrZb7TQ==} engines: {node: '>=16'} cpu: [x64] os: [darwin] @@ -4085,8 +4085,8 @@ packages: dev: false optional: true - /@cloudflare/workerd-darwin-arm64@1.20240223.1: - resolution: {integrity: sha512-ZF98vUmVlC0EVEd3RRuhMq4HYWFcqmPtMIMPUN2+ivEHR92TE+6E/AvdeE6wcE7fKHQ+fk3dH+ZgB0GcfptfnA==} + /@cloudflare/workerd-darwin-arm64@1.20240304.0: + resolution: {integrity: sha512-IXGOxHsPdRYfAzcY6IroI1PDvx3hhXf18qFCloHp8Iw5bzLgq/PTjcp10Z/2xedZ2hVlfpHy1eEptsTmi9YeNw==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] @@ -4094,8 +4094,8 @@ packages: dev: false optional: true - /@cloudflare/workerd-linux-64@1.20240223.1: - resolution: {integrity: sha512-1kH41ewNTGMmAk2zUX0Xj9VSfidl26GQ0ZrWMdi5kwf6gAHd3oVWNigJN078Jx56SgQxNcqVGX1LunqF949asw==} + /@cloudflare/workerd-linux-64@1.20240304.0: + resolution: {integrity: sha512-G1BEzbw9TFIeMvc425F145IetC7fuH4KOkGhseLq9y/mt5PfDWkghwmXSK+q0BiMwm0XAobtzVlHcEr2u4WlRQ==} engines: {node: '>=16'} cpu: [x64] os: [linux] @@ -4103,8 +4103,8 @@ packages: dev: false optional: true - /@cloudflare/workerd-linux-arm64@1.20240223.1: - resolution: {integrity: sha512-Ro8Og5C4evh890JrRm0B8sHyumRtgL+mUqPeNcEsyG45jAQy5xHpapHnmJAMJV6ah+zDc1cZtQq+en39SojXvQ==} + /@cloudflare/workerd-linux-arm64@1.20240304.0: + resolution: {integrity: sha512-LLk/d/y77TRu6QOG3CJUI2cD3Ff2lSg0ts6G83bsm9ZK+WKObWFFSPBy9l81m3EnlKFh7RZCzxN4J10kuDaO8w==} engines: {node: '>=16'} cpu: [arm64] os: [linux] @@ -4112,8 +4112,8 @@ packages: dev: false optional: true - /@cloudflare/workerd-windows-64@1.20240223.1: - resolution: {integrity: sha512-eNP5sfaP6WL07DaoigYou5ASPF7jHsFiNzzD2vGOI7yFd5sPlb7sJ4SpIy+BCX0LdqFnjmlUo5Xr+/I6qJ2Nww==} + /@cloudflare/workerd-windows-64@1.20240304.0: + resolution: {integrity: sha512-I/j6nVpM+WDPg+bYUAiKLkwQsjrXFjpOGHvwYmcM44hnDjgODzk7AbVssEIXnhEO3oupBeuKvffr0lvX0Ngmpw==} engines: {node: '>=16'} cpu: [x64] os: [win32] @@ -20794,17 +20794,17 @@ packages: resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} dev: true - /workerd@1.20240223.1: - resolution: {integrity: sha512-Mo1fwdp6DLva4/fWdL09ZdYllkO45I4YpWG5PbF/YUGFlu2aMk24fmU6Pd6fo5/cWek4F+n3LmYEKKHfqjiJIA==} + /workerd@1.20240304.0: + resolution: {integrity: sha512-/tYxdypPh9NKQje9r7bgBB73vAQfCQZbEPjNlxE/ml7jNKMHnRZv/D+By4xO0IPAifa37D0sJFokvYOahz1Lqw==} engines: {node: '>=16'} hasBin: true requiresBuild: true optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20240223.1 - '@cloudflare/workerd-darwin-arm64': 1.20240223.1 - '@cloudflare/workerd-linux-64': 1.20240223.1 - '@cloudflare/workerd-linux-arm64': 1.20240223.1 - '@cloudflare/workerd-windows-64': 1.20240223.1 + '@cloudflare/workerd-darwin-64': 1.20240304.0 + '@cloudflare/workerd-darwin-arm64': 1.20240304.0 + '@cloudflare/workerd-linux-64': 1.20240304.0 + '@cloudflare/workerd-linux-arm64': 1.20240304.0 + '@cloudflare/workerd-windows-64': 1.20240304.0 dev: false /wrap-ansi@6.2.0: