Skip to content

Commit f402652

Browse files
authored
feat(v8): Remove defaultIntegrations deprecated export (#10691)
ref #10100 Removes deprecated `defaultIntegrations` export everywhere.
1 parent 673f76a commit f402652

File tree

19 files changed

+64
-136
lines changed

19 files changed

+64
-136
lines changed

packages/astro/src/index.types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export declare const Integrations: typeof serverSdk.Integrations;
1919

2020
export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
2121

22-
export declare const defaultIntegrations: Integration[];
2322
export declare const getDefaultIntegrations: (options: Options) => Integration[];
2423
export declare const defaultStackParser: StackParser;
2524

packages/browser/src/exports.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ export {
9595
export { eventFromException, eventFromMessage, exceptionFromError } from './eventbuilder';
9696
export { createUserFeedbackEnvelope } from './userfeedback';
9797
export {
98-
// eslint-disable-next-line deprecation/deprecation
99-
defaultIntegrations,
10098
getDefaultIntegrations,
10199
forceLoad,
102100
init,

packages/browser/src/sdk.ts

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,17 @@ import { browserApiErrorsIntegration } from './integrations/trycatch';
2929
import { defaultStackParser } from './stack-parsers';
3030
import { makeFetchTransport, makeXHRTransport } from './transports';
3131

32-
/** @deprecated Use `getDefaultIntegrations(options)` instead. */
33-
export const defaultIntegrations = [
34-
inboundFiltersIntegration(),
35-
functionToStringIntegration(),
36-
browserApiErrorsIntegration(),
37-
breadcrumbsIntegration(),
38-
globalHandlersIntegration(),
39-
linkedErrorsIntegration(),
40-
dedupeIntegration(),
41-
httpContextIntegration(),
42-
];
43-
4432
/** Get the default integrations for the browser SDK. */
4533
export function getDefaultIntegrations(_options: Options): Integration[] {
46-
// We return a copy of the defaultIntegrations here to avoid mutating this
4734
return [
48-
// eslint-disable-next-line deprecation/deprecation
49-
...defaultIntegrations,
35+
inboundFiltersIntegration(),
36+
functionToStringIntegration(),
37+
browserApiErrorsIntegration(),
38+
breadcrumbsIntegration(),
39+
globalHandlersIntegration(),
40+
linkedErrorsIntegration(),
41+
dedupeIntegration(),
42+
httpContextIntegration(),
5043
];
5144
}
5245

packages/bun/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ export {
112112

113113
export { BunClient } from './client';
114114
export {
115-
// eslint-disable-next-line deprecation/deprecation
116-
defaultIntegrations,
117115
getDefaultIntegrations,
118116
init,
119117
} from './sdk';

packages/bun/src/sdk.ts

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,28 @@ import { bunServerIntegration } from './integrations/bunserver';
2121
import { makeFetchTransport } from './transports';
2222
import type { BunOptions } from './types';
2323

24-
/** @deprecated Use `getDefaultIntegrations(options)` instead. */
25-
export const defaultIntegrations = [
26-
// Common
27-
inboundFiltersIntegration(),
28-
functionToStringIntegration(),
29-
linkedErrorsIntegration(),
30-
requestDataIntegration(),
31-
// Native Wrappers
32-
consoleIntegration(),
33-
httpIntegration(),
34-
nativeNodeFetchintegration(),
35-
// Global Handlers # TODO (waiting for https://github.com/oven-sh/bun/issues/5091)
36-
// new NodeIntegrations.OnUncaughtException(),
37-
// new NodeIntegrations.OnUnhandledRejection(),
38-
// Event Info
39-
contextLinesIntegration(),
40-
nodeContextIntegration(),
41-
modulesIntegration(),
42-
// Bun Specific
43-
bunServerIntegration(),
44-
];
45-
4624
/** Get the default integrations for the Bun SDK. */
4725
export function getDefaultIntegrations(_options: Options): Integration[] {
4826
// We return a copy of the defaultIntegrations here to avoid mutating this
4927
return [
50-
// eslint-disable-next-line deprecation/deprecation
51-
...defaultIntegrations,
28+
// Common
29+
inboundFiltersIntegration(),
30+
functionToStringIntegration(),
31+
linkedErrorsIntegration(),
32+
requestDataIntegration(),
33+
// Native Wrappers
34+
consoleIntegration(),
35+
httpIntegration(),
36+
nativeNodeFetchintegration(),
37+
// Global Handlers # TODO (waiting for https://github.com/oven-sh/bun/issues/5091)
38+
// new NodeIntegrations.OnUncaughtException(),
39+
// new NodeIntegrations.OnUnhandledRejection(),
40+
// Event Info
41+
contextLinesIntegration(),
42+
nodeContextIntegration(),
43+
modulesIntegration(),
44+
// Bun Specific
45+
bunServerIntegration(),
5246
];
5347
}
5448

packages/deno/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ export type { SpanStatusType } from '@sentry/core';
8787
export { DenoClient } from './client';
8888

8989
export {
90-
// eslint-disable-next-line deprecation/deprecation
91-
defaultIntegrations,
9290
getDefaultIntegrations,
9391
init,
9492
} from './sdk';

packages/deno/src/sdk.ts

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,26 @@ import { normalizePathsIntegration } from './integrations/normalizepaths';
1313
import { makeFetchTransport } from './transports';
1414
import type { DenoOptions } from './types';
1515

16-
/** @deprecated Use `getDefaultIntegrations(options)` instead. */
17-
export const defaultIntegrations = [
18-
// Common
19-
inboundFiltersIntegration(),
20-
functionToStringIntegration(),
21-
linkedErrorsIntegration(),
22-
// From Browser
23-
dedupeIntegration(),
24-
breadcrumbsIntegration({
25-
dom: false,
26-
history: false,
27-
xhr: false,
28-
}),
29-
// Deno Specific
30-
denoContextIntegration(),
31-
contextLinesIntegration(),
32-
normalizePathsIntegration(),
33-
globalHandlersIntegration(),
34-
];
35-
3616
/** Get the default integrations for the Deno SDK. */
3717
export function getDefaultIntegrations(_options: Options): Integration[] {
3818
// We return a copy of the defaultIntegrations here to avoid mutating this
3919
return [
40-
// eslint-disable-next-line deprecation/deprecation
41-
...defaultIntegrations,
20+
// Common
21+
inboundFiltersIntegration(),
22+
functionToStringIntegration(),
23+
linkedErrorsIntegration(),
24+
// From Browser
25+
dedupeIntegration(),
26+
breadcrumbsIntegration({
27+
dom: false,
28+
history: false,
29+
xhr: false,
30+
}),
31+
// Deno Specific
32+
denoContextIntegration(),
33+
contextLinesIntegration(),
34+
normalizePathsIntegration(),
35+
globalHandlersIntegration(),
4236
];
4337
}
4438

packages/nextjs/src/index.types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export declare const Integrations: undefined; // TODO(v8): Remove this line. Can
2323

2424
export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
2525

26-
export declare const defaultIntegrations: Integration[];
2726
export declare const getDefaultIntegrations: (options: Options) => Integration[];
2827
export declare const defaultStackParser: StackParser;
2928

packages/node/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing';
9494
export { NodeClient } from './client';
9595
export { makeNodeTransport } from './transports';
9696
export {
97-
// eslint-disable-next-line deprecation/deprecation
98-
defaultIntegrations,
9997
getDefaultIntegrations,
10098
init,
10199
defaultStackParser,

packages/node/src/sdk.ts

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,30 @@ import { createGetModuleFromFilename } from './module';
3737
import { makeNodeTransport } from './transports';
3838
import type { NodeClientOptions, NodeOptions } from './types';
3939

40-
/** @deprecated Use `getDefaultIntegrations(options)` instead. */
41-
export const defaultIntegrations = [
42-
// Common
43-
inboundFiltersIntegration(),
44-
functionToStringIntegration(),
45-
linkedErrorsIntegration(),
46-
requestDataIntegration(),
47-
// Native Wrappers
48-
consoleIntegration(),
49-
httpIntegration(),
50-
nativeNodeFetchintegration(),
51-
// Global Handlers
52-
onUncaughtExceptionIntegration(),
53-
onUnhandledRejectionIntegration(),
54-
// Event Info
55-
contextLinesIntegration(),
56-
localVariablesIntegration(),
57-
nodeContextIntegration(),
58-
modulesIntegration(),
59-
];
60-
6140
/** Get the default integrations for the Node SDK. */
6241
export function getDefaultIntegrations(_options: Options): Integration[] {
6342
const carrier = getMainCarrier();
6443

6544
const autoloadedIntegrations = carrier.__SENTRY__?.integrations || [];
6645

6746
return [
68-
// eslint-disable-next-line deprecation/deprecation
69-
...defaultIntegrations,
47+
// Common
48+
inboundFiltersIntegration(),
49+
functionToStringIntegration(),
50+
linkedErrorsIntegration(),
51+
requestDataIntegration(),
52+
// Native Wrappers
53+
consoleIntegration(),
54+
httpIntegration(),
55+
nativeNodeFetchintegration(),
56+
// Global Handlers
57+
onUncaughtExceptionIntegration(),
58+
onUnhandledRejectionIntegration(),
59+
// Event Info
60+
contextLinesIntegration(),
61+
localVariablesIntegration(),
62+
nodeContextIntegration(),
63+
modulesIntegration(),
7064
...autoloadedIntegrations,
7165
];
7266
}

0 commit comments

Comments
 (0)