diff --git a/src/integrations/core/IntegrationLoader.ts b/src/integrations/core/IntegrationLoader.ts index 519948b7..68aa84ba 100644 --- a/src/integrations/core/IntegrationLoader.ts +++ b/src/integrations/core/IntegrationLoader.ts @@ -83,6 +83,10 @@ export function detectEnvironment(): RuntimeEnvironment { Deno?: unknown Bun?: unknown HTMLRewriter?: unknown + // `caches` (Cloudflare Workers / ServiceWorker global) is no longer in `lib` + // now that DOM is dropped (8.0 is Node/Bun/Deno-only) — declare it locally so + // the edge-runtime probe below still type-checks. + caches?: unknown } // Deno diff --git a/tsconfig.json b/tsconfig.json index 6900d649..b1293663 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2023", "module": "NodeNext", "moduleResolution": "NodeNext", "esModuleInterop": true, @@ -10,16 +10,13 @@ "outDir": "./dist", "rootDir": "./src", "lib": [ - "DOM", - "ESNext", - "DOM.Asynciterable" + "ES2023" ], "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "noEmit": false, "preserveConstEnums": true, "sourceMap": true, - "downlevelIteration": true, "isolatedModules": true, "noImplicitOverride": true },