Skip to content

Commit 2dc9d87

Browse files
author
Luca Forstner
authored
feat!: Remove deprecated and unused code (#15077)
1 parent e7b7d08 commit 2dc9d87

File tree

17 files changed

+8
-126
lines changed

17 files changed

+8
-126
lines changed

dev-packages/e2e-tests/test-applications/create-remix-app-express-legacy/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ installGlobals();
1313

1414
const ABORT_DELAY = 5_000;
1515

16-
export const handleError = Sentry.wrapRemixHandleError;
16+
export const handleError = Sentry.sentryHandleError;
1717

1818
export default function handleRequest(
1919
request: Request,

dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ installGlobals();
1313

1414
const ABORT_DELAY = 5_000;
1515

16-
export const handleError = Sentry.wrapRemixHandleError;
16+
export const handleError = Sentry.sentryHandleError;
1717

1818
export default function handleRequest(
1919
request: Request,

dev-packages/e2e-tests/test-applications/create-remix-app-express/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ installGlobals();
1313

1414
const ABORT_DELAY = 5_000;
1515

16-
export const handleError = Sentry.wrapRemixHandleError;
16+
export const handleError = Sentry.sentryHandleError;
1717

1818
export default function handleRequest(
1919
request: Request,

packages/browser-utils/src/metrics/web-vitals/types/base.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,6 @@ export type MetricWithAttribution =
104104
*/
105105
export type MetricRatingThresholds = [number, number];
106106

107-
/**
108-
* @deprecated Use metric-specific function types instead, such as:
109-
* `(metric: LCPMetric) => void`. If a single callback type is needed for
110-
* multiple metrics, use `(metric: MetricType) => void`.
111-
*/
112-
export interface ReportCallback {
113-
(metric: MetricType): void;
114-
}
115-
116107
export interface ReportOpts {
117108
reportAllChanges?: boolean;
118109
durationThreshold?: number;

packages/browser/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ export {
3939
} from './tracing/browserTracingIntegration';
4040
export type { RequestInstrumentationOptions } from './tracing/request';
4141
export {
42-
// eslint-disable-next-line deprecation/deprecation
43-
addTracingExtensions,
4442
registerSpanErrorInstrumentation,
4543
getActiveSpan,
4644
getRootSpan,

packages/core/src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,11 +1111,13 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
11111111
/**
11121112
* @deprecated Use `Client` instead. This alias may be removed in a future major version.
11131113
*/
1114+
// TODO(v10): Remove
11141115
export type BaseClient = Client;
11151116

11161117
/**
11171118
* @deprecated Use `Client` instead. This alias may be removed in a future major version.
11181119
*/
1120+
// TODO(v10): Remove
11191121
export const BaseClient = Client;
11201122

11211123
/**

packages/core/src/fetch.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { Client } from './client';
2-
import type { Scope } from './scope';
31
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from './semanticAttributes';
42
import { SPAN_STATUS_ERROR, setHttpStatus, startInactiveSpan } from './tracing';
53
import { SentryNonRecordingSpan } from './tracing/sentryNonRecordingSpan';
@@ -201,27 +199,6 @@ function _addTracingHeadersToFetchRequest(
201199
}
202200
}
203201

204-
/**
205-
* Adds sentry-trace and baggage headers to the various forms of fetch headers.
206-
*
207-
* @deprecated This function will not be exported anymore in v9.
208-
*/
209-
export function addTracingHeadersToFetchRequest(
210-
request: string | unknown,
211-
_client: Client | undefined,
212-
_scope: Scope | undefined,
213-
fetchOptionsObj: {
214-
headers?:
215-
| {
216-
[key: string]: string[] | string | undefined;
217-
}
218-
| PolymorphicRequestHeaders;
219-
},
220-
span?: Span,
221-
): PolymorphicRequestHeaders | undefined {
222-
return _addTracingHeadersToFetchRequest(request as Request, fetchOptionsObj, span);
223-
}
224-
225202
function getFullURL(url: string): string | undefined {
226203
try {
227204
const parsed = new URL(url);

packages/core/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ export { rewriteFramesIntegration } from './integrations/rewriteframes';
110110
export { zodErrorsIntegration } from './integrations/zoderrors';
111111
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
112112
export { profiler } from './profiling';
113-
export {
114-
// eslint-disable-next-line deprecation/deprecation
115-
addTracingHeadersToFetchRequest,
116-
instrumentFetchRequest,
117-
} from './fetch';
113+
export { instrumentFetchRequest } from './fetch';
118114
export { trpcMiddleware } from './trpc';
119115
export { captureFeedback } from './feedback';
120116
export type { ReportDialogOptions } from './report-dialog';

packages/core/src/tracing/hubextensions.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/core/src/tracing/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
export { registerSpanErrorInstrumentation } from './errors';
22
export { setCapturedScopesOnSpan, getCapturedScopesOnSpan } from './utils';
3-
// eslint-disable-next-line deprecation/deprecation
4-
export { addTracingExtensions } from './hubextensions';
53
export { startIdleSpan, TRACING_DEFAULTS } from './idleSpan';
64
export { SentrySpan } from './sentrySpan';
75
export { SentryNonRecordingSpan } from './sentryNonRecordingSpan';

0 commit comments

Comments
 (0)