diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a3170c236..a8578d133 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,7 +17,7 @@ importers: devDependencies: '@cloudflare/workers-types': specifier: ^5.20260804.1 - version: 5.20260804.1 + version: 5.20260809.1 '@napi-rs/canvas': specifier: ^1.0.3 version: 1.0.5 @@ -41,7 +41,7 @@ importers: version: 4.1.10(@types/node@26.2.0)(vite@8.2.1(@types/node@26.2.0)(esbuild@0.28.2)(tsx@4.23.11)) wrangler: specifier: ^4.93.0 - version: 4.120.0(@cloudflare/workers-types@5.20260804.1) + version: 4.120.0(@cloudflare/workers-types@5.20260809.1) packages: @@ -88,8 +88,8 @@ packages: cpu: [x64] os: [win32] - '@cloudflare/workers-types@5.20260804.1': - resolution: {integrity: sha512-B1dwxpN6e5RZXZkE5zpZj+ooNeNZ1mwavLIyHDYe10ojhlGTwDfe8sAl7R1mMXc1cyIsbr+jKVdvmMEyVcdTdg==} + '@cloudflare/workers-types@5.20260809.1': + resolution: {integrity: sha512-sBM+0I5lCY9LgTnorn/N2UyrA6KVbUzj9tncxwH8v6sH8tVeAyJj+i0z3xXWY4l4fd1oDcwt8CGf50vGwVISYQ==} '@cspotcode/source-map-support@0.8.1': resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} @@ -1325,7 +1325,7 @@ snapshots: '@cloudflare/workerd-windows-64@1.20260801.1': optional: true - '@cloudflare/workers-types@5.20260804.1': {} + '@cloudflare/workers-types@5.20260809.1': {} '@cspotcode/source-map-support@0.8.1': dependencies: @@ -2176,7 +2176,7 @@ snapshots: '@cloudflare/workerd-linux-arm64': 1.20260801.1 '@cloudflare/workerd-windows-64': 1.20260801.1 - wrangler@4.120.0(@cloudflare/workers-types@5.20260804.1): + wrangler@4.120.0(@cloudflare/workers-types@5.20260809.1): dependencies: '@cloudflare/kv-asset-handler': 0.5.0 '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260801.1) @@ -2187,7 +2187,7 @@ snapshots: unenv: 2.0.0-rc.24 workerd: 1.20260801.1 optionalDependencies: - '@cloudflare/workers-types': 5.20260804.1 + '@cloudflare/workers-types': 5.20260809.1 fsevents: 2.3.3 transitivePeerDependencies: - bufferutil diff --git a/src/worker.ts b/src/worker.ts index 6c95bf94a..d50f937c6 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -11,6 +11,7 @@ * Config lives in wrangler.toml. */ +import type { ExecutionContext } from '@cloudflare/workers-types'; import { createProxy, type ProxyConfig } from './core/proxy.js'; import type { TransformOptions } from './core/transform.js'; import { toTrackEvent, JsonLogTracker, noopTracker, type Tracker } from './core/tracker.js'; diff --git a/tsconfig.json b/tsconfig.json index de853e654..5a8eaaa9d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "lib": ["ES2022", "WebWorker"], "module": "ESNext", "moduleResolution": "Bundler", - "types": ["@cloudflare/workers-types", "node"], + "types": ["node"], "strict": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true,