Skip to content

Commit 8b775cb

Browse files
authored
feat(v8/vercel-edge): Remove vercel-edge sdk deprecations (#10974)
Only keep around async local storage strategy code - tbd on what happens with that.
1 parent 85ac26f commit 8b775cb

File tree

2 files changed

+2
-43
lines changed

2 files changed

+2
-43
lines changed

packages/vercel-edge/src/index.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export type { AddRequestDataToEventOptions } from '@sentry/utils';
2121
export type { VercelEdgeOptions } from './types';
2222

2323
export {
24-
// eslint-disable-next-line deprecation/deprecation
25-
addGlobalEventProcessor,
2624
addEventProcessor,
2725
addBreadcrumb,
2826
addIntegration,
@@ -32,22 +30,14 @@ export {
3230
close,
3331
createTransport,
3432
flush,
35-
// eslint-disable-next-line deprecation/deprecation
36-
getActiveTransaction,
37-
// eslint-disable-next-line deprecation/deprecation
38-
getCurrentHub,
3933
getClient,
4034
isInitialized,
4135
getCurrentScope,
4236
getGlobalScope,
4337
getIsolationScope,
4438
Hub,
45-
// eslint-disable-next-line deprecation/deprecation
46-
makeMain,
4739
setCurrentClient,
4840
Scope,
49-
// eslint-disable-next-line deprecation/deprecation
50-
startTransaction,
5141
SDK_VERSION,
5242
setContext,
5343
setExtra,
@@ -86,13 +76,4 @@ export {
8676
init,
8777
} from './sdk';
8878

89-
import { RequestData } from '@sentry/core';
90-
91-
import { WinterCGFetch } from './integrations/wintercg-fetch';
9279
export { winterCGFetchIntegration } from './integrations/wintercg-fetch';
93-
94-
/** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */
95-
export const Integrations = {
96-
WinterCGFetch,
97-
RequestData,
98-
};

packages/vercel-edge/src/integrations/wintercg-fetch.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
import {
2-
addBreadcrumb,
3-
convertIntegrationFnToClass,
4-
defineIntegration,
5-
getClient,
6-
instrumentFetchRequest,
7-
isSentryRequestUrl,
8-
} from '@sentry/core';
1+
import { addBreadcrumb, defineIntegration, getClient, instrumentFetchRequest, isSentryRequestUrl } from '@sentry/core';
92
import type {
103
Client,
114
FetchBreadcrumbData,
125
FetchBreadcrumbHint,
136
HandlerDataFetch,
14-
Integration,
15-
IntegrationClass,
167
IntegrationFn,
178
Span,
189
} from '@sentry/types';
@@ -117,23 +108,10 @@ const _winterCGFetch = ((options: Partial<Options> = {}) => {
117108
};
118109
}) satisfies IntegrationFn;
119110

120-
export const winterCGFetchIntegration = defineIntegration(_winterCGFetch);
121-
122111
/**
123112
* Creates spans and attaches tracing headers to fetch requests on WinterCG runtimes.
124-
*
125-
* @deprecated Use `winterCGFetchIntegration()` instead.
126113
*/
127-
// eslint-disable-next-line deprecation/deprecation
128-
export const WinterCGFetch = convertIntegrationFnToClass(
129-
INTEGRATION_NAME,
130-
winterCGFetchIntegration,
131-
) as IntegrationClass<Integration & { setupOnce: () => void }> & {
132-
new (options?: Partial<Options>): Integration;
133-
};
134-
135-
// eslint-disable-next-line deprecation/deprecation
136-
export type WinterCGFetch = typeof WinterCGFetch;
114+
export const winterCGFetchIntegration = defineIntegration(_winterCGFetch);
137115

138116
function createBreadcrumb(handlerData: HandlerDataFetch): void {
139117
const { startTimestamp, endTimestamp } = handlerData;

0 commit comments

Comments
 (0)