Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions packages/react-router/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ export * from '@sentry/browser';
export { init } from './sdk';
export { reactRouterTracingIntegration } from './tracingIntegration';

export {
captureReactException,
reactErrorHandler,
Profiler,
withProfiler,
useProfiler,
ErrorBoundary,
withErrorBoundary,
} from '@sentry/react';
export { captureReactException, reactErrorHandler, Profiler, withProfiler, useProfiler } from '@sentry/react';

/**
* @deprecated ErrorBoundary is deprecated, use react router's error boundary instead.
* See https://docs.sentry.io/platforms/javascript/guides/react-router/#report-errors-from-error-boundaries
*/
export { ErrorBoundary, withErrorBoundary } from '@sentry/react';

/**
* @deprecated ErrorBoundaryProps and FallbackRender are deprecated, use react router's error boundary instead.
* See https://docs.sentry.io/platforms/javascript/guides/react-router/#report-errors-from-error-boundaries
*/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Deprecation Paradox: API Surface Expansion (Bugbot Rules)

This change introduces new public API exports for ErrorBoundaryProps and FallbackRender types that were not previously exported from this package. While marked as deprecated, adding new exports contradicts the PR's intention to deprecate ErrorBoundary functionality. If these types weren't needed before, exporting them now (even as deprecated) expands the public API surface unnecessarily.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They were exported before...

export type { ErrorBoundaryProps, FallbackRender } from '@sentry/react';
Loading