From 0dc5e03b76f04863544f1a95ebe84614d32969ae Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Thu, 18 Jun 2026 09:12:07 +0200 Subject: [PATCH 1/2] test(react-router): Pin react-router latest canaries to v7 react-router 8 requires React 19 (imports useOptimistic); the SDK does not support v8 yet. Both the react-router-7-framework (latest) and -instrumentation E2E canaries float to v8 against React 18 and fail the build. Pin them to the newest v7 release until v8 is supported. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../react-router-7-framework-instrumentation/package.json | 8 ++++---- .../react-router-7-framework/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/package.json b/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/package.json index 3e15f15b6633..0ce52dd6cca2 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/package.json +++ b/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/package.json @@ -4,18 +4,18 @@ "type": "module", "private": true, "dependencies": { - "@react-router/node": "latest", - "@react-router/serve": "latest", + "@react-router/node": "^7", + "@react-router/serve": "^7", "@sentry/react-router": "file:../../packed/sentry-react-router-packed.tgz", "ioredis": "^5.4.1", "isbot": "^5.1.17", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-router": "latest" + "react-router": "^7" }, "devDependencies": { "@playwright/test": "~1.56.0", - "@react-router/dev": "latest", + "@react-router/dev": "^7", "@sentry-internal/test-utils": "link:../../../test-utils", "@types/node": "^20", "@types/react": "18.3.1", diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-framework/package.json b/dev-packages/e2e-tests/test-applications/react-router-7-framework/package.json index d8de8f647b69..033fc63fec72 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-framework/package.json +++ b/dev-packages/e2e-tests/test-applications/react-router-7-framework/package.json @@ -25,7 +25,7 @@ }, "scripts": { "build": "react-router build", - "test:build-latest": "pnpm install && pnpm add react-router@latest && pnpm add @react-router/node@latest && pnpm add @react-router/serve@latest && pnpm build", + "test:build-latest": "pnpm install && pnpm add react-router@7 && pnpm add @react-router/node@7 && pnpm add @react-router/serve@7 && pnpm build", "dev": "NODE_OPTIONS='--import ./instrument.mjs' react-router dev", "start": "NODE_OPTIONS='--import ./instrument.mjs' react-router-serve ./build/server/index.js", "proxy": "node start-event-proxy.mjs", From 2d74c982647a2d6b657d62ab51c75a0cec3e2420 Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Thu, 18 Jun 2026 09:34:10 +0200 Subject: [PATCH 2/2] fix(node): Disable no-deprecated lint for vendored hapi ATTR_HTTP_METHOD #21604 enabled typescript/no-deprecated and added disable comments across the codebase but missed this vendored hapi usage, breaking lint on develop. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/node/src/integrations/tracing/hapi/vendored/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/node/src/integrations/tracing/hapi/vendored/utils.ts b/packages/node/src/integrations/tracing/hapi/vendored/utils.ts index f96a63b6ec1b..d28126fc4d5c 100644 --- a/packages/node/src/integrations/tracing/hapi/vendored/utils.ts +++ b/packages/node/src/integrations/tracing/hapi/vendored/utils.ts @@ -75,6 +75,7 @@ export const getRouteMetadata = ( } => { const attributes: Attributes = { [ATTR_HTTP_ROUTE]: route.path, + // eslint-disable-next-line typescript/no-deprecated [ATTR_HTTP_METHOD]: route.method, };