Skip to content

Commit 0be633a

Browse files
author
Luca Forstner
authored
ref(nextjs): Remove last internal deprecations (#11019)
1 parent f870c93 commit 0be633a

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

packages/nextjs/src/edge/rewriteFramesIntegration.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ export const customRewriteFramesIntegration = ((options?: RewriteFramesOptions)
3737

3838
// Do nothing if we can't find a distDirName
3939
return {
40-
// eslint-disable-next-line deprecation/deprecation
4140
name: 'RewriteFrames',
42-
// eslint-disable-next-line @typescript-eslint/no-empty-function
43-
setupOnce: () => {},
44-
processEvent: event => event,
4541
};
4642
}) satisfies IntegrationFn;
4743

packages/nextjs/src/server/rewriteFramesIntegration.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ export const customRewriteFramesIntegration = ((options?: RewriteFramesOptions)
3737

3838
// Do nothing if we can't find a distDirName
3939
return {
40-
// eslint-disable-next-line deprecation/deprecation
4140
name: 'RewriteFrames',
42-
// eslint-disable-next-line @typescript-eslint/no-empty-function
43-
setupOnce: () => {},
44-
processEvent: event => event,
4541
};
4642
}) satisfies IntegrationFn;
4743

packages/nextjs/test/clientSdk.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,9 @@ describe('Client init()', () => {
9191
const transportSend = jest.spyOn(getClient()!.getTransport()!, 'send');
9292

9393
// Ensure we have no current span, so our next span is a transaction
94-
// eslint-disable-next-line deprecation/deprecation
95-
getCurrentScope().setSpan(undefined);
96-
97-
SentryReact.startInactiveSpan({ name: '/404' })?.end();
94+
SentryReact.withActiveSpan(null, () => {
95+
SentryReact.startInactiveSpan({ name: '/404' })?.end();
96+
});
9897

9998
expect(transportSend).not.toHaveBeenCalled();
10099
expect(captureEvent.mock.results[0].value).toBeUndefined();

0 commit comments

Comments
 (0)