Skip to content

Commit 1711436

Browse files
committed
feat(nextjs)!: Remove experimental_captureRequestError
1 parent 3778482 commit 1711436

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

packages/nextjs/src/common/captureRequestError.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,3 @@ export function captureRequestError(error: unknown, request: RequestInfo, errorC
4141
});
4242
});
4343
}
44-
45-
/**
46-
* Reports errors passed to the the Next.js `onRequestError` instrumentation hook.
47-
*
48-
* @deprecated Use `captureRequestError` instead.
49-
*/
50-
// TODO(v9): Remove this export
51-
export const experimental_captureRequestError = captureRequestError;

packages/nextjs/src/common/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ export { wrapMiddlewareWithSentry } from './wrapMiddlewareWithSentry';
1111
export { wrapPageComponentWithSentry } from './pages-router-instrumentation/wrapPageComponentWithSentry';
1212
export { wrapGenerationFunctionWithSentry } from './wrapGenerationFunctionWithSentry';
1313
export { withServerActionInstrumentation } from './withServerActionInstrumentation';
14-
// eslint-disable-next-line deprecation/deprecation
15-
export { experimental_captureRequestError, captureRequestError } from './captureRequestError';
14+
export { captureRequestError } from './captureRequestError';

packages/nextjs/src/index.types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,4 @@ export declare function wrapApiHandlerWithSentryVercelCrons<F extends (...args:
142142
*/
143143
export declare function wrapPageComponentWithSentry<C>(WrappingTarget: C): C;
144144

145-
// eslint-disable-next-line deprecation/deprecation
146-
export { experimental_captureRequestError, captureRequestError } from './common/captureRequestError';
145+
export { captureRequestError } from './common/captureRequestError';

0 commit comments

Comments
 (0)