From 006080e329017a2cf9df93146a436babd887339b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:52:34 +0000 Subject: [PATCH 1/4] chore(deps): bump the workerd-and-workers-types group across 1 directory with 2 updates Bumps the workerd-and-workers-types group with 2 updates in the / directory: [@cloudflare/workers-types](https://github.com/cloudflare/workerd) and [workerd](https://github.com/cloudflare/workerd). Updates `@cloudflare/workers-types` from 4.20240909.0 to 4.20240925.0 - [Release notes](https://github.com/cloudflare/workerd/releases) - [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md) - [Commits](https://github.com/cloudflare/workerd/commits) Updates `workerd` from 1.20240909.0 to 1.20240925.0 - [Release notes](https://github.com/cloudflare/workerd/releases) - [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md) - [Commits](https://github.com/cloudflare/workerd/compare/v1.20240909.0...v1.20240925.0) --- updated-dependencies: - dependency-name: "@cloudflare/workers-types" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: workerd-and-workers-types - dependency-name: workerd dependency-type: direct:production update-type: version-update:semver-minor dependency-group: workerd-and-workers-types ... Signed-off-by: dependabot[bot] --- fixtures/additional-modules/package.json | 2 +- fixtures/asset-config/package.json | 2 +- .../external-durable-objects-app/package.json | 2 +- .../package.json | 2 +- fixtures/get-platform-proxy/package.json | 2 +- fixtures/local-mode-tests/package.json | 2 +- fixtures/node-app-pages/package.json | 2 +- fixtures/nodejs-als-app/package.json | 2 +- fixtures/nodejs-hybrid-app/package.json | 2 +- .../pages-dev-proxy-with-script/package.json | 2 +- fixtures/pages-functions-app/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- fixtures/pages-simple-assets/package.json | 2 +- .../vitest-pool-workers-examples/package.json | 2 +- fixtures/worker-ts/package.json | 2 +- .../workers-with-assets-only/package.json | 2 +- fixtures/workers-with-assets/package.json | 2 +- package.json | 2 +- packages/create-cloudflare/package.json | 2 +- .../package.json | 2 +- packages/format-errors/package.json | 2 +- packages/kv-asset-handler/package.json | 2 +- packages/miniflare/package.json | 4 +- packages/pages-shared/package.json | 2 +- .../playground-preview-worker/package.json | 2 +- packages/prerelease-registry/package.json | 2 +- packages/quick-edit-extension/package.json | 2 +- packages/vitest-pool-workers/package.json | 2 +- packages/workers-shared/package.json | 2 +- packages/workers.new/package.json | 2 +- packages/wrangler/package.json | 6 +- pnpm-lock.yaml | 194 +++++++++--------- 33 files changed, 135 insertions(+), 129 deletions(-) diff --git a/fixtures/additional-modules/package.json b/fixtures/additional-modules/package.json index b2201fdb49c7..bb1d43ec63da 100644 --- a/fixtures/additional-modules/package.json +++ b/fixtures/additional-modules/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/fixtures/asset-config/package.json b/fixtures/asset-config/package.json index 7e97ab43d165..ff0cf84e59de 100644 --- a/fixtures/asset-config/package.json +++ b/fixtures/asset-config/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@cloudflare/vitest-pool-workers": "workspace:*", "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240821.1", + "@cloudflare/workers-types": "^4.20240925.0", "run-script-os": "^1.1.6", "undici": "^5.28.4", "vitest": "catalog:default", diff --git a/fixtures/external-durable-objects-app/package.json b/fixtures/external-durable-objects-app/package.json index 11567e9d847c..0f1ea3557ab8 100644 --- a/fixtures/external-durable-objects-app/package.json +++ b/fixtures/external-durable-objects-app/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/fixtures/external-service-bindings-app/package.json b/fixtures/external-service-bindings-app/package.json index 96a5b0bfc403..ce75e2b898ef 100644 --- a/fixtures/external-service-bindings-app/package.json +++ b/fixtures/external-service-bindings-app/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "concurrently": "^8.2.2", "undici": "^5.28.4", "wrangler": "workspace:*" diff --git a/fixtures/get-platform-proxy/package.json b/fixtures/get-platform-proxy/package.json index 31b34360c72f..4534cc9e6b33 100644 --- a/fixtures/get-platform-proxy/package.json +++ b/fixtures/get-platform-proxy/package.json @@ -9,7 +9,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/fixtures/local-mode-tests/package.json b/fixtures/local-mode-tests/package.json index 2e5c659fd0ca..8e218a9c0e99 100644 --- a/fixtures/local-mode-tests/package.json +++ b/fixtures/local-mode-tests/package.json @@ -14,7 +14,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/node": "20.8.3", "buffer": "^6.0.3", "wrangler": "workspace:*" diff --git a/fixtures/node-app-pages/package.json b/fixtures/node-app-pages/package.json index ce53365359e5..75c3969a824e 100644 --- a/fixtures/node-app-pages/package.json +++ b/fixtures/node-app-pages/package.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/fixtures/nodejs-als-app/package.json b/fixtures/nodejs-als-app/package.json index 3932fa74e2af..0bc73c2df8b2 100644 --- a/fixtures/nodejs-als-app/package.json +++ b/fixtures/nodejs-als-app/package.json @@ -9,7 +9,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" } diff --git a/fixtures/nodejs-hybrid-app/package.json b/fixtures/nodejs-hybrid-app/package.json index d141a9cd904e..f587346f4b47 100644 --- a/fixtures/nodejs-hybrid-app/package.json +++ b/fixtures/nodejs-hybrid-app/package.json @@ -9,7 +9,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/pg": "^8.11.2", "pg": "8.11.3", "pg-cloudflare": "^1.1.1", diff --git a/fixtures/pages-dev-proxy-with-script/package.json b/fixtures/pages-dev-proxy-with-script/package.json index fe3c96e2b803..a5d9df006046 100644 --- a/fixtures/pages-dev-proxy-with-script/package.json +++ b/fixtures/pages-dev-proxy-with-script/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/fixtures/pages-functions-app/package.json b/fixtures/pages-functions-app/package.json index 18be8ad9568b..34e2b8d18d48 100644 --- a/fixtures/pages-functions-app/package.json +++ b/fixtures/pages-functions-app/package.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "pages-plugin-example": "workspace:*", "undici": "^5.28.4", "wrangler": "workspace:*" diff --git a/fixtures/pages-functions-with-routes-app/package.json b/fixtures/pages-functions-with-routes-app/package.json index 2a1375c4d66e..451272338ea9 100644 --- a/fixtures/pages-functions-with-routes-app/package.json +++ b/fixtures/pages-functions-with-routes-app/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/fixtures/pages-plugin-mounted-on-root-app/package.json b/fixtures/pages-plugin-mounted-on-root-app/package.json index a0d8ee7acc88..ad17f6989eab 100644 --- a/fixtures/pages-plugin-mounted-on-root-app/package.json +++ b/fixtures/pages-plugin-mounted-on-root-app/package.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "pages-plugin-example": "workspace:*", "undici": "^5.28.4", "wrangler": "workspace:*" diff --git a/fixtures/pages-simple-assets/package.json b/fixtures/pages-simple-assets/package.json index 25d65bc7633e..0154572922f2 100644 --- a/fixtures/pages-simple-assets/package.json +++ b/fixtures/pages-simple-assets/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/fixtures/vitest-pool-workers-examples/package.json b/fixtures/vitest-pool-workers-examples/package.json index f83ceb482359..9025f50ca997 100644 --- a/fixtures/vitest-pool-workers-examples/package.json +++ b/fixtures/vitest-pool-workers-examples/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@cloudflare/vitest-pool-workers": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/node": "20.8.3", "ext-dep": "file:./internal-module-resolution/vendor/ext-dep", "jose": "^5.2.2", diff --git a/fixtures/worker-ts/package.json b/fixtures/worker-ts/package.json index 2c42c0e3cd26..749427453916 100644 --- a/fixtures/worker-ts/package.json +++ b/fixtures/worker-ts/package.json @@ -6,7 +6,7 @@ "start": "wrangler dev --x-dev-env" }, "devDependencies": { - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "wrangler": "workspace:*" }, "volta": { diff --git a/fixtures/workers-with-assets-only/package.json b/fixtures/workers-with-assets-only/package.json index 562ffdc70927..c4ed20b6c1c1 100644 --- a/fixtures/workers-with-assets-only/package.json +++ b/fixtures/workers-with-assets-only/package.json @@ -9,7 +9,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/fixtures/workers-with-assets/package.json b/fixtures/workers-with-assets/package.json index 8b28acf3d224..d132aec479d9 100644 --- a/fixtures/workers-with-assets/package.json +++ b/fixtures/workers-with-assets/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "undici": "^5.28.4", "wrangler": "workspace:*" }, diff --git a/package.json b/package.json index 3cc736d1ed6d..5a77410de7fa 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.1", "@changesets/parse": "^0.4.0", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@ianvs/prettier-plugin-sort-imports": "4.2.1", "@manypkg/cli": "^0.21.4", "@turbo/gen": "^1.10.13", diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index eef989085db4..78b5b22c62eb 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -49,7 +49,7 @@ "@cloudflare/cli": "workspace:*", "@cloudflare/eslint-config-worker": "workspace:*", "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@iarna/toml": "^3.0.0", "@types/command-exists": "^1.2.0", "@types/cross-spawn": "^6.0.2", diff --git a/packages/edge-preview-authenticated-proxy/package.json b/packages/edge-preview-authenticated-proxy/package.json index 57fe269479e6..5ad4c9e26c43 100644 --- a/packages/edge-preview-authenticated-proxy/package.json +++ b/packages/edge-preview-authenticated-proxy/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@cloudflare/eslint-config-worker": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/cookie": "^0.6.0", "cookie": "^0.6.0", "promjs": "^0.4.2", diff --git a/packages/format-errors/package.json b/packages/format-errors/package.json index 411475d32759..fcbeb8da072c 100644 --- a/packages/format-errors/package.json +++ b/packages/format-errors/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@cloudflare/eslint-config-worker": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "mustache": "^4.2.0", "promjs": "^0.4.2", "toucan-js": "^3.3.1", diff --git a/packages/kv-asset-handler/package.json b/packages/kv-asset-handler/package.json index ece0cf8d0af0..93e5bd086487 100644 --- a/packages/kv-asset-handler/package.json +++ b/packages/kv-asset-handler/package.json @@ -42,7 +42,7 @@ }, "devDependencies": { "@ava/typescript": "^4.1.0", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/mime": "^3.0.4", "@types/node": "20.8.3", "@types/service-worker-mock": "^2.0.1", diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index 39aefea30be3..50b2d3734d8a 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -50,7 +50,7 @@ "glob-to-regexp": "^0.4.1", "stoppable": "^1.1.0", "undici": "^5.28.4", - "workerd": "1.20240909.0", + "workerd": "1.20240925.0", "ws": "^8.17.1", "youch": "^3.2.2", "zod": "^3.22.3" @@ -59,7 +59,7 @@ "@ava/typescript": "^4.1.0", "@cloudflare/kv-asset-handler": "workspace:*", "@cloudflare/workers-shared": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@microsoft/api-extractor": "^7.47.0", "@types/debug": "^4.1.7", "@types/estree": "^1.0.0", diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index 4dcf827e9cbb..42e41dc887c9 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -23,7 +23,7 @@ }, "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@miniflare/cache": "^2.14.2", "@miniflare/core": "^2.14.2", "@miniflare/html-rewriter": "^2.14.2", diff --git a/packages/playground-preview-worker/package.json b/packages/playground-preview-worker/package.json index 8814c2082164..aebff4080b31 100644 --- a/packages/playground-preview-worker/package.json +++ b/packages/playground-preview-worker/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "@cloudflare/eslint-config-worker": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/cookie": "^0.6.0", "cookie": "^0.6.0", "itty-router": "^4.0.13", diff --git a/packages/prerelease-registry/package.json b/packages/prerelease-registry/package.json index 18656759731e..937650c4967b 100644 --- a/packages/prerelease-registry/package.json +++ b/packages/prerelease-registry/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@cloudflare/eslint-config-worker": "workspace:*", "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "wrangler": "workspace:*" }, "volta": { diff --git a/packages/quick-edit-extension/package.json b/packages/quick-edit-extension/package.json index b60de12c9193..985fc2313782 100644 --- a/packages/quick-edit-extension/package.json +++ b/packages/quick-edit-extension/package.json @@ -43,7 +43,7 @@ ], "devDependencies": { "@cloudflare/workers-tsconfig": "workspace:^", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "esbuild": "0.17.19", "esbuild-register": "^3.5.0" }, diff --git a/packages/vitest-pool-workers/package.json b/packages/vitest-pool-workers/package.json index 4030d8aa84f3..5fd9ea3efffc 100644 --- a/packages/vitest-pool-workers/package.json +++ b/packages/vitest-pool-workers/package.json @@ -64,7 +64,7 @@ "devDependencies": { "@cloudflare/eslint-config-worker": "workspace:*", "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/node": "20.8.3", "@types/semver": "^7.5.1", "@vitest/runner": "catalog:default", diff --git a/packages/workers-shared/package.json b/packages/workers-shared/package.json index d6f009e7c2cd..48b7133bae51 100644 --- a/packages/workers-shared/package.json +++ b/packages/workers-shared/package.json @@ -47,7 +47,7 @@ "devDependencies": { "@cloudflare/eslint-config-worker": "workspace:*", "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/mime": "^3.0.4", "concurrently": "^8.2.2", "esbuild": "0.17.19", diff --git a/packages/workers.new/package.json b/packages/workers.new/package.json index f25d21956a6c..464061ba9160 100644 --- a/packages/workers.new/package.json +++ b/packages/workers.new/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@cloudflare/vitest-pool-workers": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@types/node": "20.8.3", "miniflare": "workspace:*", "typescript": "^5.5.2", diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 7b2564dab1e1..02651a38f6e2 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -84,7 +84,7 @@ "selfsigned": "^2.0.1", "source-map": "^0.6.1", "unenv": "npm:unenv-nightly@2.0.0-20240919-125358-9a64854", - "workerd": "1.20240909.0", + "workerd": "1.20240925.0", "xxhash-wasm": "^1.0.1" }, "devDependencies": { @@ -93,7 +93,7 @@ "@cloudflare/pages-shared": "workspace:^", "@cloudflare/types": "^6.18.4", "@cloudflare/workers-tsconfig": "workspace:*", - "@cloudflare/workers-types": "^4.20240909.0", + "@cloudflare/workers-types": "^4.20240925.0", "@cspotcode/source-map-support": "0.8.1", "@iarna/toml": "^3.0.0", "@microsoft/api-extractor": "^7.47.0", @@ -176,7 +176,7 @@ "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz" }, "peerDependencies": { - "@cloudflare/workers-types": "^4.20240909.0" + "@cloudflare/workers-types": "^4.20240925.0" }, "peerDependenciesMeta": { "@cloudflare/workers-types": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c7c78755f541..2078de9f8b8d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,6 +6,12 @@ settings: catalogs: default: + '@vitest/runner': + specifier: ~2.1.1 + version: 2.1.1 + '@vitest/snapshot': + specifier: ~2.1.1 + version: 2.1.1 vitest: specifier: ~2.1.1 version: 2.1.1 @@ -52,8 +58,8 @@ importers: specifier: ^0.4.0 version: 0.4.0 '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@ianvs/prettier-plugin-sort-imports': specifier: 4.2.1 version: 4.2.1(@vue/compiler-sfc@3.3.4)(prettier@3.2.5) @@ -115,8 +121,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -145,8 +151,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240821.1 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 run-script-os: specifier: ^1.1.6 version: 1.1.6 @@ -199,8 +205,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -214,8 +220,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 concurrently: specifier: ^8.2.2 version: 8.2.2 @@ -232,8 +238,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -285,8 +291,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/node': specifier: 20.8.3 version: 20.8.3 @@ -316,8 +322,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -331,8 +337,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -346,8 +352,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/pg': specifier: ^8.11.2 version: 8.11.6 @@ -382,8 +388,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -401,8 +407,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 pages-plugin-example: specifier: workspace:* version: link:../pages-plugin-example @@ -443,8 +449,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -483,8 +489,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 pages-plugin-example: specifier: workspace:* version: link:../pages-plugin-example @@ -516,8 +522,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -673,8 +679,8 @@ importers: specifier: workspace:* version: link:../../packages/vitest-pool-workers '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/node': specifier: 20.8.3 version: 20.8.3 @@ -727,8 +733,8 @@ importers: fixtures/worker-ts: devDependencies: '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 wrangler: specifier: workspace:* version: link:../../packages/wrangler @@ -741,8 +747,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -756,8 +762,8 @@ importers: specifier: workspace:* version: link:../../packages/workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 undici: specifier: ^5.28.4 version: 5.28.4 @@ -819,8 +825,8 @@ importers: specifier: workspace:* version: link:../workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@iarna/toml': specifier: ^3.0.0 version: 3.0.0 @@ -948,8 +954,8 @@ importers: specifier: workspace:* version: link:../eslint-config-worker '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/cookie': specifier: ^0.6.0 version: 0.6.0 @@ -1003,8 +1009,8 @@ importers: specifier: workspace:* version: link:../eslint-config-worker '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 mustache: specifier: ^4.2.0 version: 4.2.0 @@ -1034,8 +1040,8 @@ importers: specifier: ^4.1.0 version: 4.1.0 '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/mime': specifier: ^3.0.4 version: 3.0.4 @@ -1079,8 +1085,8 @@ importers: specifier: ^5.28.4 version: 5.28.4 workerd: - specifier: 1.20240909.0 - version: 1.20240909.0 + specifier: 1.20240925.0 + version: 1.20240925.0 ws: specifier: ^8.17.1 version: 8.17.1 @@ -1101,8 +1107,8 @@ importers: specifier: workspace:* version: link:../workers-shared '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@microsoft/api-extractor': specifier: ^7.47.0 version: 7.47.0(@types/node@20.8.3) @@ -1210,8 +1216,8 @@ importers: specifier: workspace:* version: link:../workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@miniflare/cache': specifier: ^2.14.2 version: 2.14.2 @@ -1244,8 +1250,8 @@ importers: specifier: workspace:* version: link:../eslint-config-worker '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/cookie': specifier: ^0.6.0 version: 0.6.0 @@ -1281,8 +1287,8 @@ importers: specifier: workspace:* version: link:../workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 wrangler: specifier: workspace:* version: link:../wrangler @@ -1312,8 +1318,8 @@ importers: specifier: workspace:^ version: link:../workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 esbuild: specifier: 0.17.19 version: 0.17.19 @@ -1376,8 +1382,8 @@ importers: specifier: workspace:* version: link:../workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/node': specifier: 20.8.3 version: 20.8.3 @@ -1598,8 +1604,8 @@ importers: specifier: workspace:* version: link:../workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/mime': specifier: ^3.0.4 version: 3.0.4 @@ -1630,8 +1636,8 @@ importers: specifier: workspace:* version: link:../vitest-pool-workers '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@types/node': specifier: 20.8.3 version: 20.8.3 @@ -1696,8 +1702,8 @@ importers: specifier: npm:unenv-nightly@2.0.0-20240919-125358-9a64854 version: unenv-nightly@2.0.0-20240919-125358-9a64854 workerd: - specifier: 1.20240909.0 - version: 1.20240909.0 + specifier: 1.20240925.0 + version: 1.20240925.0 xxhash-wasm: specifier: ^1.0.1 version: 1.0.1 @@ -1722,8 +1728,8 @@ importers: specifier: workspace:* version: link:../workers-tsconfig '@cloudflare/workers-types': - specifier: ^4.20240909.0 - version: 4.20240909.0 + specifier: ^4.20240925.0 + version: 4.20240925.0 '@cspotcode/source-map-support': specifier: 0.8.1 version: 0.8.1 @@ -2528,38 +2534,38 @@ packages: '@cloudflare/util-markdown@1.2.15': resolution: {integrity: sha512-H8q/Msk+9Fga6iqqmff7i4mi+kraBCQWFbMEaKIRq3+HBNN5gkpizk05DSG6iIHVxCG1M3WR1FkN9CQ0ZtK4Cw==} - '@cloudflare/workerd-darwin-64@1.20240909.0': - resolution: {integrity: sha512-nJ8jm/6PR8DPzVb4QifNAfSdrFZXNblwIdOhLTU5FpSvFFocmzFX5WgzQagvtmcC9/ZAQyxuf7WynDNyBcoe0Q==} + '@cloudflare/workerd-darwin-64@1.20240925.0': + resolution: {integrity: sha512-KdLnSXuzB65CbqZPm+qYzk+zkQ1tUNPaaRGYVd/jPYAxwwtfTUQdQ+ahDPwVVs2tmQELKy7ZjQjf2apqSWUfjw==} engines: {node: '>=16'} cpu: [x64] os: [darwin] - '@cloudflare/workerd-darwin-arm64@1.20240909.0': - resolution: {integrity: sha512-gJqKa811oSsoxy9xuoQn7bS0Hr1sY+o3EUORTcEnulG6Kz9NQ6nd8QNdp2Hrk2jmmSqwrNkn+a6PZkWzk6Q0Gw==} + '@cloudflare/workerd-darwin-arm64@1.20240925.0': + resolution: {integrity: sha512-MiQ6uUmCXjsXgWNV+Ock2tp2/tYqNJGzjuaH6jFioeRF+//mz7Tv7J7EczOL4zq+TH8QFOh0/PUsLyazIWVGng==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] - '@cloudflare/workerd-linux-64@1.20240909.0': - resolution: {integrity: sha512-sJrmtccfMg73sZljiBpe4R+lhF58TqzqhF2pQG8HRjyxkzkM1sjpZqfEFaIkNUDqd3/Ibji49fklhPCGXljKSg==} + '@cloudflare/workerd-linux-64@1.20240925.0': + resolution: {integrity: sha512-Rjix8jsJMfsInmq3Hm3fmiRQ+rwzuWRPV1pg/OWhMSfNP7Qp2RCU+RGkhgeR9Z5eNAje0Sn2BMrFq4RvF9/yRA==} engines: {node: '>=16'} cpu: [x64] os: [linux] - '@cloudflare/workerd-linux-arm64@1.20240909.0': - resolution: {integrity: sha512-dTbSdceyRXPOSER+18AwYRbPQG0e/Dwl2trmfMMCETkfJhNLv1fU3FFMJPjfILijKnhTZHSnHCx0+xwHdon2fg==} + '@cloudflare/workerd-linux-arm64@1.20240925.0': + resolution: {integrity: sha512-VYIPeMHQRtbwQoIjUwS/zULlywPxyDvo46XkTpIW5MScEChfqHvAYviQ7TzYGx6Q+gmZmN+DUB2KOMx+MEpCxA==} engines: {node: '>=16'} cpu: [arm64] os: [linux] - '@cloudflare/workerd-windows-64@1.20240909.0': - resolution: {integrity: sha512-/d4BT0kcWFa7Qc0K4K9+cwVQ1qyPNKiO42JZUijlDlco+TYTPkLO3qGEohmwbfMq+BieK7JTMSgjO81ZHpA0HQ==} + '@cloudflare/workerd-windows-64@1.20240925.0': + resolution: {integrity: sha512-C8peGvaU5R51bIySi1VbyfRgwNSSRknqoFSnSbSBI3uTN3THTB3UnmRKy7GXJDmyjgXuT9Pcs1IgaWNubLtNtw==} engines: {node: '>=16'} cpu: [x64] os: [win32] - '@cloudflare/workers-types@4.20240909.0': - resolution: {integrity: sha512-4knwtX6efxIsIxawdmPyynU9+S8A78wntU8eUIEldStWP4gNgxGkeWcfCMXulTx8oxr3DU4aevHyld9HGV8VKQ==} + '@cloudflare/workers-types@4.20240925.0': + resolution: {integrity: sha512-KpqyRWvanEuXgBTKYFzRp4NsWOEcswxjsPRSre1zYQcODmc8PUrraVHQUmgvkJgv3FzB+vI9xm7J6oE4MmZHCA==} '@colors/colors@1.5.0': resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} @@ -8689,8 +8695,8 @@ packages: wordwrap@1.0.0: resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} - workerd@1.20240909.0: - resolution: {integrity: sha512-NwuYh/Fgr/MK0H+Ht687sHl/f8tumwT5CWzYR0MZMHri8m3CIYu2IaY4tBFWoKE/tOU1Z5XjEXECa9zXY4+lwg==} + workerd@1.20240925.0: + resolution: {integrity: sha512-/Jj6+yLwfieZGEt3Kx4+5MoufuC3g/8iFaIh4MPBNGJOGYmdSKXvgCqz09m2+tVCYnysRfbq2zcbVxJRBfOCqQ==} engines: {node: '>=16'} hasBin: true @@ -9688,22 +9694,22 @@ snapshots: lodash.memoize: 4.1.2 marked: 0.3.19 - '@cloudflare/workerd-darwin-64@1.20240909.0': + '@cloudflare/workerd-darwin-64@1.20240925.0': optional: true - '@cloudflare/workerd-darwin-arm64@1.20240909.0': + '@cloudflare/workerd-darwin-arm64@1.20240925.0': optional: true - '@cloudflare/workerd-linux-64@1.20240909.0': + '@cloudflare/workerd-linux-64@1.20240925.0': optional: true - '@cloudflare/workerd-linux-arm64@1.20240909.0': + '@cloudflare/workerd-linux-arm64@1.20240925.0': optional: true - '@cloudflare/workerd-windows-64@1.20240909.0': + '@cloudflare/workerd-windows-64@1.20240925.0': optional: true - '@cloudflare/workers-types@4.20240909.0': {} + '@cloudflare/workers-types@4.20240925.0': {} '@colors/colors@1.5.0': optional: true @@ -16439,13 +16445,13 @@ snapshots: wordwrap@1.0.0: {} - workerd@1.20240909.0: + workerd@1.20240925.0: optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20240909.0 - '@cloudflare/workerd-darwin-arm64': 1.20240909.0 - '@cloudflare/workerd-linux-64': 1.20240909.0 - '@cloudflare/workerd-linux-arm64': 1.20240909.0 - '@cloudflare/workerd-windows-64': 1.20240909.0 + '@cloudflare/workerd-darwin-64': 1.20240925.0 + '@cloudflare/workerd-darwin-arm64': 1.20240925.0 + '@cloudflare/workerd-linux-64': 1.20240925.0 + '@cloudflare/workerd-linux-arm64': 1.20240925.0 + '@cloudflare/workerd-windows-64': 1.20240925.0 wrap-ansi@6.2.0: dependencies: From 982e446548a281b882f7ef2e2d27f7b06a55cb20 Mon Sep 17 00:00:00 2001 From: Wrangler automated PR updater Date: Wed, 25 Sep 2024 17:53:20 +0000 Subject: [PATCH 2/4] chore: update dependencies of "miniflare" package The following dependency versions have been updated: | Dependency | From | To | | ------------------------- | ------------- | ------------- | | workerd | 1.20240909.0 | 1.20240925.0 | | @cloudflare/workers-types | ^4.20240909.0 | ^4.20240925.0 | --- .changeset/dependabot-update-6826.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .changeset/dependabot-update-6826.md diff --git a/.changeset/dependabot-update-6826.md b/.changeset/dependabot-update-6826.md new file mode 100644 index 000000000000..27b9417d1c39 --- /dev/null +++ b/.changeset/dependabot-update-6826.md @@ -0,0 +1,12 @@ +--- +"miniflare": patch +--- + +chore: update dependencies of "miniflare" package + +The following dependency versions have been updated: + +| Dependency | From | To | +| ------------------------- | ------------- | ------------- | +| workerd | 1.20240909.0 | 1.20240925.0 | +| @cloudflare/workers-types | ^4.20240909.0 | ^4.20240925.0 | From 55b4e4a4deca00cba9e3ec5b9b65ebb101c7267b Mon Sep 17 00:00:00 2001 From: Samuel Macleod Date: Wed, 25 Sep 2024 18:58:31 +0100 Subject: [PATCH 3/4] Use symbol to identify internal classes --- .../miniflare/src/workers/core/proxy.worker.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/miniflare/src/workers/core/proxy.worker.ts b/packages/miniflare/src/workers/core/proxy.worker.ts index 99c3e2db1cb1..8e5556aa3c18 100644 --- a/packages/miniflare/src/workers/core/proxy.worker.ts +++ b/packages/miniflare/src/workers/core/proxy.worker.ts @@ -91,14 +91,20 @@ function objectContainsFunctions( return false; } -function isObject(value: unknown) { - return value && typeof value === "object"; +function isObject( + value: unknown +): value is Record { + return !!value && typeof value === "object"; } function getType(value: unknown) { return Object.prototype.toString.call(value).slice(8, -1); // `[object ]` } +function isInternal(value: unknown) { + return isObject(value) && value[Symbol.for("cloudflare:internal-class")]; +} + type Env = Record & { [CoreBindings.DATA_PROXY_SECRET]: ArrayBuffer; }; @@ -119,7 +125,11 @@ export class ProxyServer implements DurableObject { // should only ever return `Object`, as none override `Symbol.toStringTag` // https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.prototype.tostring const type = getType(value); - if ((type === "Object" && !isPlainObject(value)) || type === "Promise") { + const isInternalClass = isInternal(value); + if ( + ((type === "Object" || isInternalClass) && !isPlainObject(value)) || + type === "Promise" + ) { const address = this.nextHeapAddress++; this.heap.set(address, value); assert(value !== null); From 4c65020554c49c431cfc53079465903fadf9e7be Mon Sep 17 00:00:00 2001 From: Samuel Macleod Date: Wed, 25 Sep 2024 19:14:19 +0100 Subject: [PATCH 4/4] remove intermediate variable --- packages/miniflare/src/workers/core/proxy.worker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/miniflare/src/workers/core/proxy.worker.ts b/packages/miniflare/src/workers/core/proxy.worker.ts index 8e5556aa3c18..c4ce29e39cbc 100644 --- a/packages/miniflare/src/workers/core/proxy.worker.ts +++ b/packages/miniflare/src/workers/core/proxy.worker.ts @@ -125,9 +125,8 @@ export class ProxyServer implements DurableObject { // should only ever return `Object`, as none override `Symbol.toStringTag` // https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.prototype.tostring const type = getType(value); - const isInternalClass = isInternal(value); if ( - ((type === "Object" || isInternalClass) && !isPlainObject(value)) || + ((type === "Object" || isInternal(value)) && !isPlainObject(value)) || type === "Promise" ) { const address = this.nextHeapAddress++;