Skip to content

Commit

Permalink
ref(nextjs): Remove last internal deprecations (#11019)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Mar 12, 2024
1 parent f870c93 commit 0be633a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 0 additions & 4 deletions packages/nextjs/src/edge/rewriteFramesIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ export const customRewriteFramesIntegration = ((options?: RewriteFramesOptions)

// Do nothing if we can't find a distDirName
return {
// eslint-disable-next-line deprecation/deprecation
name: 'RewriteFrames',
// eslint-disable-next-line @typescript-eslint/no-empty-function
setupOnce: () => {},
processEvent: event => event,
};
}) satisfies IntegrationFn;

Expand Down
4 changes: 0 additions & 4 deletions packages/nextjs/src/server/rewriteFramesIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ export const customRewriteFramesIntegration = ((options?: RewriteFramesOptions)

// Do nothing if we can't find a distDirName
return {
// eslint-disable-next-line deprecation/deprecation
name: 'RewriteFrames',
// eslint-disable-next-line @typescript-eslint/no-empty-function
setupOnce: () => {},
processEvent: event => event,
};
}) satisfies IntegrationFn;

Expand Down
7 changes: 3 additions & 4 deletions packages/nextjs/test/clientSdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ describe('Client init()', () => {
const transportSend = jest.spyOn(getClient()!.getTransport()!, 'send');

// Ensure we have no current span, so our next span is a transaction
// eslint-disable-next-line deprecation/deprecation
getCurrentScope().setSpan(undefined);

SentryReact.startInactiveSpan({ name: '/404' })?.end();
SentryReact.withActiveSpan(null, () => {
SentryReact.startInactiveSpan({ name: '/404' })?.end();
});

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

0 comments on commit 0be633a

Please sign in to comment.