Skip to content

Commit cf92bd3

Browse files
anonrigGrok
andcommitted
fix(remix, tanstackstart-react): re-export optional-browser-api for types
Mirror nextjs/gatsby so dual-typed framework entries keep the historical optional browser surface after @sentry/react stopped star-exporting it. Also re-export tanstackRouterBrowserTracingIntegration for tanstackstart-react. Co-Authored-By: Grok <noreply@x.ai>
1 parent c618b01 commit cf92bd3

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

packages/remix/src/client/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { debug } from '@sentry/core';
55
import { DEBUG_BUILD } from '../utils/debug-build';
66

77
export * from '@sentry/react';
8+
// Optional browser features are no longer star-exported through `@sentry/react`.
9+
// Re-export them so `import * as Sentry from '@sentry/remix'` keeps the historical surface.
10+
export * from '@sentry/react/optional-browser-api';
811

912
export { init } from './sdk';
1013
export { captureRemixErrorBoundaryError } from './errors';

packages/remix/src/cloudflare/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import {
88
} from '../server/instrumentServer';
99

1010
export * from '@sentry/react';
11+
// Optional browser features are no longer star-exported through `@sentry/react`.
12+
// Re-export them so the cloudflare entry keeps the historical surface.
13+
export * from '@sentry/react/optional-browser-api';
1114

1215
export { captureRemixErrorBoundaryError } from '../client/errors';
1316
export { withSentry } from '../client/performance';

packages/tanstackstart-react/src/client/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import type {
99
import type { CreateSentryTunnelRouteOptions } from '../server/tunnelRoute';
1010

1111
export * from '@sentry/react';
12+
// Optional browser features and router helpers are no longer star-exported through
13+
// `@sentry/react`. Re-export them so `import * as Sentry from '@sentry/tanstackstart-react'`
14+
// keeps the historical surface (including `tanstackRouterBrowserTracingIntegration`,
15+
// which is dual-declared against the client SDK in `index.types.ts`).
16+
export * from '@sentry/react/optional-browser-api';
17+
export { tanstackRouterBrowserTracingIntegration } from '@sentry/react/tanstackrouter';
1218

1319
export { init } from './sdk';
1420

0 commit comments

Comments
 (0)