diff --git a/dev-packages/e2e-tests/test-applications/create-next-app/package.json b/dev-packages/e2e-tests/test-applications/create-next-app/package.json index fc8f48c822d6..e70e7ed4c797 100644 --- a/dev-packages/e2e-tests/test-applications/create-next-app/package.json +++ b/dev-packages/e2e-tests/test-applications/create-next-app/package.json @@ -19,7 +19,7 @@ "next": "14.0.0", "react": "18.2.0", "react-dom": "18.2.0", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/create-react-app/package.json b/dev-packages/e2e-tests/test-applications/create-react-app/package.json index ee98e1ec3f48..981123625b96 100644 --- a/dev-packages/e2e-tests/test-applications/create-react-app/package.json +++ b/dev-packages/e2e-tests/test-applications/create-react-app/package.json @@ -10,7 +10,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "react-scripts": "5.0.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "start": "react-scripts start", diff --git a/dev-packages/e2e-tests/test-applications/default-browser/package.json b/dev-packages/e2e-tests/test-applications/default-browser/package.json index 635a4bef1955..a147fa576d8a 100644 --- a/dev-packages/e2e-tests/test-applications/default-browser/package.json +++ b/dev-packages/e2e-tests/test-applications/default-browser/package.json @@ -5,7 +5,7 @@ "dependencies": { "@sentry/browser": "latest || *", "@types/node": "^18.19.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "start": "serve -s build", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-8/package.json b/dev-packages/e2e-tests/test-applications/nestjs-8/package.json index 15ae8cf64bc8..2c749afae8a4 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-8/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-8/package.json @@ -43,6 +43,6 @@ "supertest": "^6.3.3", "ts-loader": "^9.4.3", "tsconfig-paths": "^4.2.0", - "typescript": "^4.9.5" + "typescript": "~5.0.0" } } diff --git a/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json b/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json index 04c1cfc27fb7..dea9e11f1423 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json @@ -45,6 +45,6 @@ "supertest": "^6.3.3", "ts-loader": "^9.4.3", "tsconfig-paths": "^4.2.0", - "typescript": "^4.9.5" + "typescript": "~5.0.0" } } diff --git a/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json b/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json index b51f6e74d3bc..0de1aa1b3e6a 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json @@ -43,6 +43,6 @@ "supertest": "^6.3.3", "ts-loader": "^9.4.3", "tsconfig-paths": "^4.2.0", - "typescript": "^4.9.5" + "typescript": "~5.0.0" } } diff --git a/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json b/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json index 15392e604a75..7ea84e7afe05 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json @@ -42,6 +42,6 @@ "supertest": "^6.3.3", "ts-loader": "^9.4.3", "tsconfig-paths": "^4.2.0", - "typescript": "^4.9.5" + "typescript": "~5.0.0" } } diff --git a/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json b/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json index 640889424a87..d6e198cd7567 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json @@ -45,6 +45,6 @@ "supertest": "^6.3.3", "ts-loader": "^9.4.3", "tsconfig-paths": "^4.2.0", - "typescript": "^4.9.5" + "typescript": "~5.0.0" } } diff --git a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json index e1dd3d4b3030..34d6004ebd8e 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json @@ -41,6 +41,6 @@ "supertest": "^6.3.3", "ts-loader": "^9.4.3", "tsconfig-paths": "^4.2.0", - "typescript": "^4.9.5" + "typescript": "~5.0.0" } } diff --git a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json index 78e661aa7d4f..a54eb72275a8 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json @@ -41,6 +41,6 @@ "supertest": "^6.3.3", "ts-loader": "^9.4.3", "tsconfig-paths": "^4.2.0", - "typescript": "^4.9.5" + "typescript": "~5.0.0" } } diff --git a/dev-packages/e2e-tests/test-applications/nextjs-13/package.json b/dev-packages/e2e-tests/test-applications/nextjs-13/package.json index fa16079822b8..d81ca4fa6443 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-13/package.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-13/package.json @@ -20,7 +20,7 @@ "next": "13.5.7", "react": "18.2.0", "react-dom": "18.2.0", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/nextjs-14/package.json b/dev-packages/e2e-tests/test-applications/nextjs-14/package.json index 5e42830d0874..b041f71f7f7e 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-14/package.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-14/package.json @@ -20,7 +20,7 @@ "next": "14.1.3", "react": "18.2.0", "react-dom": "18.2.0", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/package.json b/dev-packages/e2e-tests/test-applications/nextjs-15/package.json index ace02f6a1924..9e99e182f4db 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/package.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/package.json @@ -21,7 +21,7 @@ "next": "15.0.0-canary.182", "react": "beta", "react-dom": "beta", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/nextjs-app-dir/package.json b/dev-packages/e2e-tests/test-applications/nextjs-app-dir/package.json index 81f576ef016b..492f8d94ef71 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-app-dir/package.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-app-dir/package.json @@ -22,7 +22,7 @@ "next": "14.0.2", "react": "18.2.0", "react-dom": "18.2.0", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/nextjs-turbo/package.json b/dev-packages/e2e-tests/test-applications/nextjs-turbo/package.json index 8fe05236a983..d0d1a3abe349 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-turbo/package.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-turbo/package.json @@ -20,7 +20,7 @@ "next": "15.0.0", "react": "rc", "react-dom": "rc", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/node-connect/package.json b/dev-packages/e2e-tests/test-applications/node-connect/package.json index ffd692a2175e..743b079c8af1 100644 --- a/dev-packages/e2e-tests/test-applications/node-connect/package.json +++ b/dev-packages/e2e-tests/test-applications/node-connect/package.json @@ -16,7 +16,7 @@ "@sentry/opentelemetry": "latest || *", "@types/node": "^18.19.1", "connect": "3.7.0", - "typescript": "4.9.5", + "typescript": "~5.0.0", "ts-node": "10.9.1" }, "devDependencies": { diff --git a/dev-packages/e2e-tests/test-applications/node-exports-test-app/package.json b/dev-packages/e2e-tests/test-applications/node-exports-test-app/package.json index 975553194815..adb4f189fe85 100644 --- a/dev-packages/e2e-tests/test-applications/node-exports-test-app/package.json +++ b/dev-packages/e2e-tests/test-applications/node-exports-test-app/package.json @@ -21,7 +21,7 @@ "@sentry/google-cloud-serverless": "latest || *", "@sentry/bun": "latest || *", "@types/node": "^18.19.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "volta": { "extends": "../../package.json" diff --git a/dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation/package.json b/dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation/package.json index 2931b2bea72f..b6daa54355f3 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation/package.json +++ b/dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation/package.json @@ -18,7 +18,7 @@ "@types/express": "4.17.17", "@types/node": "^18.19.1", "express": "4.20.0", - "typescript": "4.9.5", + "typescript": "~5.0.0", "zod": "~3.22.4" }, "devDependencies": { diff --git a/dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/package.json b/dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/package.json index 5e964bbdd8bd..5f3442eb3af9 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/package.json +++ b/dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/package.json @@ -16,7 +16,7 @@ "@types/express": "4.17.17", "@types/node": "^18.19.1", "express": "4.19.2", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1" diff --git a/dev-packages/e2e-tests/test-applications/node-express/package.json b/dev-packages/e2e-tests/test-applications/node-express/package.json index 684a6ae1a3da..e68ef2493ace 100644 --- a/dev-packages/e2e-tests/test-applications/node-express/package.json +++ b/dev-packages/e2e-tests/test-applications/node-express/package.json @@ -18,7 +18,7 @@ "@types/express": "4.17.17", "@types/node": "^18.19.1", "express": "4.20.0", - "typescript": "4.9.5", + "typescript": "~5.0.0", "zod": "~3.22.4" }, "devDependencies": { diff --git a/dev-packages/e2e-tests/test-applications/node-fastify/package.json b/dev-packages/e2e-tests/test-applications/node-fastify/package.json index 1a3847ef3b12..255238f0f74f 100644 --- a/dev-packages/e2e-tests/test-applications/node-fastify/package.json +++ b/dev-packages/e2e-tests/test-applications/node-fastify/package.json @@ -16,7 +16,7 @@ "@sentry/opentelemetry": "latest || *", "@types/node": "^18.19.1", "fastify": "4.23.2", - "typescript": "4.9.5", + "typescript": "~5.0.0", "ts-node": "10.9.1" }, "devDependencies": { diff --git a/dev-packages/e2e-tests/test-applications/node-koa/package.json b/dev-packages/e2e-tests/test-applications/node-koa/package.json index 7962f3153682..9bcb3cc8754b 100644 --- a/dev-packages/e2e-tests/test-applications/node-koa/package.json +++ b/dev-packages/e2e-tests/test-applications/node-koa/package.json @@ -15,7 +15,7 @@ "@sentry/node": "latest || *", "@types/node": "^18.19.1", "koa": "^2.15.2", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/package.json b/dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/package.json index c5ffdf039553..ff4017ca0f3c 100644 --- a/dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/package.json +++ b/dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/package.json @@ -18,7 +18,7 @@ "@types/express": "4.17.17", "@types/node": "^18.19.1", "express": "4.19.2", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/node-otel-sdk-node/package.json b/dev-packages/e2e-tests/test-applications/node-otel-sdk-node/package.json index 88c6f4c3eef9..1240dc5e9923 100644 --- a/dev-packages/e2e-tests/test-applications/node-otel-sdk-node/package.json +++ b/dev-packages/e2e-tests/test-applications/node-otel-sdk-node/package.json @@ -19,7 +19,7 @@ "@types/express": "4.17.17", "@types/node": "^18.19.1", "express": "4.19.2", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/node-otel-without-tracing/package.json b/dev-packages/e2e-tests/test-applications/node-otel-without-tracing/package.json index 905c94449732..a45eb3470c7d 100644 --- a/dev-packages/e2e-tests/test-applications/node-otel-without-tracing/package.json +++ b/dev-packages/e2e-tests/test-applications/node-otel-without-tracing/package.json @@ -22,7 +22,7 @@ "@types/express": "4.17.17", "@types/node": "^18.19.1", "express": "4.19.2", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "devDependencies": { "@playwright/test": "^1.44.1", diff --git a/dev-packages/e2e-tests/test-applications/react-17/package.json b/dev-packages/e2e-tests/test-applications/react-17/package.json index 9f6762325609..ab3022bb3c80 100644 --- a/dev-packages/e2e-tests/test-applications/react-17/package.json +++ b/dev-packages/e2e-tests/test-applications/react-17/package.json @@ -10,7 +10,7 @@ "react-dom": "17.0.2", "react-router-dom": "~6.3.0", "react-scripts": "5.0.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/dev-packages/e2e-tests/test-applications/react-19/package.json b/dev-packages/e2e-tests/test-applications/react-19/package.json index b5d3d25d5fb7..1abc74715831 100644 --- a/dev-packages/e2e-tests/test-applications/react-19/package.json +++ b/dev-packages/e2e-tests/test-applications/react-19/package.json @@ -12,7 +12,7 @@ "react": "19.0.0-rc-935180c7e0-20240524", "react-dom": "19.0.0-rc-935180c7e0-20240524", "react-scripts": "5.0.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/dev-packages/e2e-tests/test-applications/react-create-hash-router/package.json b/dev-packages/e2e-tests/test-applications/react-create-hash-router/package.json index bfe148db10a6..757b27c65b84 100644 --- a/dev-packages/e2e-tests/test-applications/react-create-hash-router/package.json +++ b/dev-packages/e2e-tests/test-applications/react-create-hash-router/package.json @@ -11,7 +11,7 @@ "react-dom": "18.2.0", "react-router-dom": "^6.4.1", "react-scripts": "5.0.1", - "typescript": "4.4.2" + "typescript": "~5.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/dev-packages/e2e-tests/test-applications/react-router-5/package.json b/dev-packages/e2e-tests/test-applications/react-router-5/package.json index b23643e8be31..16c7f16df16d 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-5/package.json +++ b/dev-packages/e2e-tests/test-applications/react-router-5/package.json @@ -15,7 +15,7 @@ "react-dom": "18.2.0", "react-router-dom": "5.3.4", "react-scripts": "5.0.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/package.json b/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/package.json index ec6d7b05fee3..3c3323d2c4cc 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/package.json +++ b/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/package.json @@ -11,7 +11,7 @@ "react-dom": "18.2.0", "react-router-dom": "^6.28.0", "react-scripts": "5.0.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/dev-packages/e2e-tests/test-applications/react-router-6-use-routes/package.json b/dev-packages/e2e-tests/test-applications/react-router-6-use-routes/package.json index ca78e6af7310..7f68ec2a7ec4 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6-use-routes/package.json +++ b/dev-packages/e2e-tests/test-applications/react-router-6-use-routes/package.json @@ -10,7 +10,7 @@ "react-dom": "18.2.0", "react-router-dom": "^6.4.1", "react-scripts": "5.0.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/dev-packages/e2e-tests/test-applications/react-router-6/package.json b/dev-packages/e2e-tests/test-applications/react-router-6/package.json index d086c765091c..575f417e2bc2 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6/package.json +++ b/dev-packages/e2e-tests/test-applications/react-router-6/package.json @@ -11,7 +11,7 @@ "react-dom": "18.2.0", "react-router-dom": "^6.4.1", "react-scripts": "5.0.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-spa/package.json b/dev-packages/e2e-tests/test-applications/react-router-7-spa/package.json index 1313fe2eed0e..4ddef2426846 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-spa/package.json +++ b/dev-packages/e2e-tests/test-applications/react-router-7-spa/package.json @@ -15,7 +15,7 @@ "@sentry-internal/test-utils": "link:../../../test-utils", "vite": "^6.0.1", "@vitejs/plugin-react": "^4.3.4", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "build": "vite build", diff --git a/dev-packages/e2e-tests/test-applications/react-send-to-sentry/package.json b/dev-packages/e2e-tests/test-applications/react-send-to-sentry/package.json index 9be121c97312..35b01833874a 100644 --- a/dev-packages/e2e-tests/test-applications/react-send-to-sentry/package.json +++ b/dev-packages/e2e-tests/test-applications/react-send-to-sentry/package.json @@ -11,7 +11,7 @@ "react-dom": "18.2.0", "react-router-dom": "6.4.1", "react-scripts": "5.0.1", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "build": "react-scripts build", diff --git a/docs/migration/v8-to-v9.md b/docs/migration/v8-to-v9.md index 025bdf4d9029..6206c60cbb1f 100644 --- a/docs/migration/v8-to-v9.md +++ b/docs/migration/v8-to-v9.md @@ -53,6 +53,8 @@ In preparation for the OpenTelemetry SDK v2, which will raise the minimum requir Additionally, like the OpenTelemetry SDK, the Sentry JavaScript SDK will follow [DefinitelyType's version support policy](https://github.com/DefinitelyTyped/DefinitelyTyped#support-window) which has a support time frame of 2 years for any released version of TypeScript. +Older Typescript versions _may_ still work, but we will not test them anymore and no more guarantees apply. + ## 2. Behavior Changes ### `@sentry/core` / All SDKs diff --git a/package.json b/package.json index c326f88d1347..4852953a427c 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "sucrase": "^3.35.0", "ts-jest": "^27.1.4", "ts-node": "10.9.1", - "typescript": "4.9.5", + "typescript": "~5.0.0", "vitest": "^1.6.0", "yalc": "^1.0.0-pre.53" }, diff --git a/packages/aws-serverless/package.json b/packages/aws-serverless/package.json index 716b1c3fa5f7..660a6d9b8c9e 100644 --- a/packages/aws-serverless/package.json +++ b/packages/aws-serverless/package.json @@ -54,7 +54,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/npm/types/index.d.ts": [ "build/npm/types-ts3.8/index.d.ts" ] diff --git a/packages/browser-utils/package.json b/packages/browser-utils/package.json index 57730a1032f2..b18c3e3dfa51 100644 --- a/packages/browser-utils/package.json +++ b/packages/browser-utils/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/browser/package.json b/packages/browser/package.json index bb659245699e..23563cf5e752 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/npm/types/index.d.ts": [ "build/npm/types-ts3.8/index.d.ts" ] diff --git a/packages/bun/package.json b/packages/bun/package.json index 753046173a9c..7f72b54d9894 100644 --- a/packages/bun/package.json +++ b/packages/bun/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/cloudflare/package.json b/packages/cloudflare/package.json index aa84ff96c596..2d114652b6ab 100644 --- a/packages/cloudflare/package.json +++ b/packages/cloudflare/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/core/package.json b/packages/core/package.json index c9079fcf5a14..62e3bceb2bfd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/core/test/utils-hoist/object.test.ts b/packages/core/test/utils-hoist/object.test.ts index 255c4ed428f5..6ccfd71f2218 100644 --- a/packages/core/test/utils-hoist/object.test.ts +++ b/packages/core/test/utils-hoist/object.test.ts @@ -426,7 +426,8 @@ describe('markFunctionWrapped', () => { const wrappedFunc = jest.fn(); markFunctionWrapped(wrappedFunc, originalFunc); - expect((wrappedFunc as WrappedFunction).__sentry_original__).toBe(originalFunc); + // cannot wrap because it is frozen, but we do not error! + expect((wrappedFunc as WrappedFunction).__sentry_original__).toBe(undefined); wrappedFunc(); diff --git a/packages/ember/tsconfig.json b/packages/ember/tsconfig.json index 584a13e19669..e472924f4d0f 100644 --- a/packages/ember/tsconfig.json +++ b/packages/ember/tsconfig.json @@ -7,7 +7,6 @@ "moduleResolution": "node", "allowSyntheticDefaultImports": true, "alwaysStrict": true, - "noImplicitUseStrict": false, "strictNullChecks": true, "strictPropertyInitialization": true, "noEmitOnError": false, diff --git a/packages/feedback/package.json b/packages/feedback/package.json index ec9451115a27..3aaa8c2838b8 100644 --- a/packages/feedback/package.json +++ b/packages/feedback/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/npm/types/index.d.ts": [ "build/npm/types-ts3.8/index.d.ts" ] diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 3fe9850166dd..460ee1cc1b51 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -35,7 +35,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/google-cloud-serverless/package.json b/packages/google-cloud-serverless/package.json index 236674dc37d3..8f0fd7cde687 100644 --- a/packages/google-cloud-serverless/package.json +++ b/packages/google-cloud-serverless/package.json @@ -38,7 +38,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/integration-shims/package.json b/packages/integration-shims/package.json index c5e3c3b4d3f8..f65568707e25 100644 --- a/packages/integration-shims/package.json +++ b/packages/integration-shims/package.json @@ -22,7 +22,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 1d0686747347..cc51b50f6fe1 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -66,7 +66,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/npm/types/index.d.ts": [ "build/npm/types-ts3.8/index.d.ts" ] diff --git a/packages/nitro-utils/package.json b/packages/nitro-utils/package.json index 2f7061aa1479..a55180baa4bf 100644 --- a/packages/nitro-utils/package.json +++ b/packages/nitro-utils/package.json @@ -30,7 +30,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/node/package.json b/packages/node/package.json index d41c5efaf67c..c3c1eba01968 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -55,7 +55,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/opentelemetry/package.json b/packages/opentelemetry/package.json index db008ad65f62..47cdb703bb96 100644 --- a/packages/opentelemetry/package.json +++ b/packages/opentelemetry/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/profiling-node/package.json b/packages/profiling-node/package.json index 80a35a718838..d7ae839796e8 100644 --- a/packages/profiling-node/package.json +++ b/packages/profiling-node/package.json @@ -22,7 +22,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "lib/types/index.d.ts": [ "lib/types-ts3.8/index.d.ts" ] diff --git a/packages/profiling-node/test/cpu_profiler.test.ts b/packages/profiling-node/test/cpu_profiler.test.ts index 1719b570e28e..d1dfd781e227 100644 --- a/packages/profiling-node/test/cpu_profiler.test.ts +++ b/packages/profiling-node/test/cpu_profiler.test.ts @@ -1,6 +1,7 @@ import type { ContinuousThreadCpuProfile, ThreadCpuProfile } from '@sentry/core'; import { CpuProfilerBindings, PrivateCpuProfilerBindings } from '../src/cpu_profiler'; import type { RawThreadCpuProfile } from '../src/types'; +import { ProfileFormat } from '../src/types'; // Required because we test a hypothetical long profile // and we cannot use advance timers as the c++ relies on @@ -19,10 +20,10 @@ const fibonacci = (n: number): number => { }; const wait = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); -const profiled = async (name: string, fn: () => void, format: 0 | 1 = 0) => { +const profiled = async (name: string, fn: () => void) => { CpuProfilerBindings.startProfiling(name); await fn(); - return CpuProfilerBindings.stopProfiling(name, format); + return CpuProfilerBindings.stopProfiling(name, ProfileFormat.THREAD); }; const assertValidSamplesAndStacks = ( @@ -216,15 +217,15 @@ describe('Profiler bindings', () => { }); it('chunk format type', async () => { - const profile = await profiled( - 'non nullable stack', - async () => { - await wait(1000); - fibonacci(36); - await wait(1000); - }, - 1, - ); + const fn = async () => { + await wait(1000); + fibonacci(36); + await wait(1000); + }; + + CpuProfilerBindings.startProfiling('non nullable stack'); + await fn(); + const profile = CpuProfilerBindings.stopProfiling('non nullable stack', ProfileFormat.CHUNK); if (!profile) fail('Profile is null'); diff --git a/packages/react/package.json b/packages/react/package.json index 81596144ae79..95cd0edadc32 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/remix/package.json b/packages/remix/package.json index 05d9c5ef157a..3b71804e5da7 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -42,7 +42,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/remix/test/integration/package.json b/packages/remix/test/integration/package.json index 82c46d519f63..13d66600bedd 100644 --- a/packages/remix/test/integration/package.json +++ b/packages/remix/test/integration/package.json @@ -20,7 +20,7 @@ "@types/react": "^17.0.47", "@types/react-dom": "^17.0.17", "nock": "^13.5.5", - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "resolutions": { "@sentry/browser": "file:../../../browser", diff --git a/packages/replay-canvas/package.json b/packages/replay-canvas/package.json index 3f0367c201e0..8e75f5764e91 100644 --- a/packages/replay-canvas/package.json +++ b/packages/replay-canvas/package.json @@ -19,7 +19,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/npm/types/index.d.ts": [ "build/npm/types-ts3.8/index.d.ts" ] diff --git a/packages/replay-internal/package.json b/packages/replay-internal/package.json index 9c24ba5f5511..895c2a316d5f 100644 --- a/packages/replay-internal/package.json +++ b/packages/replay-internal/package.json @@ -19,7 +19,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/npm/types/index.d.ts": [ "build/npm/types-ts3.8/index.d.ts" ] diff --git a/packages/replay-worker/package.json b/packages/replay-worker/package.json index 43ea5e9c0d1e..73f9e17dceaf 100644 --- a/packages/replay-worker/package.json +++ b/packages/replay-worker/package.json @@ -6,7 +6,7 @@ "module": "build/esm/index.js", "types": "build/types/index.d.ts", "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 887ae19b02da..f09d41642f2b 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/types/package.json b/packages/types/package.json index 5be24f954f1b..5f62f34c4f98 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/typescript/package.json b/packages/typescript/package.json index 9d11789736f3..0810e9c089b2 100644 --- a/packages/typescript/package.json +++ b/packages/typescript/package.json @@ -14,7 +14,7 @@ "tsconfig.json" ], "peerDependencies": { - "typescript": "4.9.5" + "typescript": "~5.0.0" }, "scripts": { "clean": "yarn rimraf sentry-internal-typescript-*.tgz", diff --git a/packages/typescript/tsconfig.json b/packages/typescript/tsconfig.json index 4281e8d08380..1f6d405fb00b 100644 --- a/packages/typescript/tsconfig.json +++ b/packages/typescript/tsconfig.json @@ -12,7 +12,6 @@ "noErrorTruncation": true, "noFallthroughCasesInSwitch": true, "noImplicitReturns": true, - "noImplicitUseStrict": true, "noUnusedLocals": false, "noUnusedParameters": false, "preserveWatchOutput": true, diff --git a/packages/utils/package.json b/packages/utils/package.json index c8e04a5dac75..0e89ee174e20 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/vercel-edge/package.json b/packages/vercel-edge/package.json index 90fc7cd39534..4bfa8bece91e 100644 --- a/packages/vercel-edge/package.json +++ b/packages/vercel-edge/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/vue/package.json b/packages/vue/package.json index bf2256e30e11..1bab4c86066e 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/types/index.d.ts": [ "build/types-ts3.8/index.d.ts" ] diff --git a/packages/wasm/package.json b/packages/wasm/package.json index ed871a604375..78c19b19c30b 100644 --- a/packages/wasm/package.json +++ b/packages/wasm/package.json @@ -29,7 +29,7 @@ } }, "typesVersions": { - "<4.9": { + "<5.0": { "build/npm/types/index.d.ts": [ "build/npm/types-ts3.8/index.d.ts" ] diff --git a/scripts/verify-packages-versions.js b/scripts/verify-packages-versions.js index 9c54cf2020c4..e6f0837cb38c 100644 --- a/scripts/verify-packages-versions.js +++ b/scripts/verify-packages-versions.js @@ -1,6 +1,6 @@ const pkg = require('../package.json'); -const TYPESCRIPT_VERSION = '4.9.5'; +const TYPESCRIPT_VERSION = '~5.0.0'; if (pkg.devDependencies.typescript !== TYPESCRIPT_VERSION) { console.error(` diff --git a/yarn.lock b/yarn.lock index 785f6629f7e0..637e3948d304 100644 --- a/yarn.lock +++ b/yarn.lock @@ -32607,31 +32607,26 @@ typescript@4.6.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== -typescript@4.9.5: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== - -"typescript@>=3 < 6": - version "5.1.6" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274" - integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== +"typescript@>=3 < 6", typescript@^5.0.4, typescript@^5.4.4: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== typescript@^3.9: version "3.9.10" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== -typescript@^5.0.4, typescript@^5.4.4: - version "5.4.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" - integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== - typescript@next: version "5.2.0-dev.20230530" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.0-dev.20230530.tgz#4251ade97a9d8a86850c4d5c3c4f3e1cb2ccf52c" integrity sha512-bIoMajCZWzLB+pWwncaba/hZc6dRnw7x8T/fenOnP9gYQB/gc4xdm48AXp5SH5I/PvvSeZ/dXkUMtc8s8BiDZw== +typescript@~5.0.0: + version "5.0.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" + integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== + typeson-registry@^1.0.0-alpha.20: version "1.0.0-alpha.39" resolved "https://registry.yarnpkg.com/typeson-registry/-/typeson-registry-1.0.0-alpha.39.tgz#9e0f5aabd5eebfcffd65a796487541196f4b1211"