Skip to content

Commit 9030f37

Browse files
authored
feat(core)!: Remove deprecated Request type (#14858)
This is named misleadingly, instead use `RequestEventData`. Closes #14301
1 parent 888b05a commit 9030f37

File tree

10 files changed

+1
-24
lines changed

10 files changed

+1
-24
lines changed

docs/migration/v8-to-v9.md

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ Sentry.init({
131131
- The `flatten` export has been removed. There is no replacement.
132132
- The `urlEncode` method has been removed. There is no replacement.
133133
- The `getDomElement` method has been removed. There is no replacement.
134+
- The `Request` type has been removed. Use `RequestEventData` type instead.
134135

135136
### `@sentry/browser`
136137

packages/browser/src/exports.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
export type {
22
Breadcrumb,
33
BreadcrumbHint,
4-
// eslint-disable-next-line deprecation/deprecation
5-
Request,
64
RequestEventData,
75
SdkInfo,
86
Event,

packages/bun/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ export type {
22
Breadcrumb,
33
BreadcrumbHint,
44
PolymorphicRequest,
5-
// eslint-disable-next-line deprecation/deprecation
6-
Request,
75
RequestEventData,
86
SdkInfo,
97
Event,

packages/cloudflare/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ export type {
22
Breadcrumb,
33
BreadcrumbHint,
44
PolymorphicRequest,
5-
// eslint-disable-next-line deprecation/deprecation
6-
Request,
75
RequestEventData,
86
SdkInfo,
97
Event,

packages/core/src/types-hoist/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ export type {
9090
export type {
9191
QueryParams,
9292
RequestEventData,
93-
// eslint-disable-next-line deprecation/deprecation
94-
Request,
9593
SanitizedRequestData,
9694
} from './request';
9795
export type { Runtime } from './runtime';

packages/core/src/types-hoist/request.ts

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ export interface RequestEventData {
1111
headers?: { [key: string]: string };
1212
}
1313

14-
/**
15-
* Request data included in an event as sent to Sentry.
16-
* @deprecated: This type will be removed in v9. Use `RequestEventData` instead.
17-
*/
18-
export type Request = RequestEventData;
19-
2014
export type QueryParams = string | { [key: string]: string } | Array<[string, string]>;
2115

2216
/**

packages/deno/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ export type {
22
Breadcrumb,
33
BreadcrumbHint,
44
PolymorphicRequest,
5-
// eslint-disable-next-line deprecation/deprecation
6-
Request,
75
RequestEventData,
86
SdkInfo,
97
Event,

packages/node/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ export type {
138138
Breadcrumb,
139139
BreadcrumbHint,
140140
PolymorphicRequest,
141-
// eslint-disable-next-line deprecation/deprecation
142-
Request,
143141
RequestEventData,
144142
SdkInfo,
145143
Event,

packages/types/src/index.ts

-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ import type {
107107
ReplayEvent as ReplayEvent_imported,
108108
ReplayRecordingData as ReplayRecordingData_imported,
109109
ReplayRecordingMode as ReplayRecordingMode_imported,
110-
Request as Request_imported,
111110
RequestEventData as RequestEventData_imported,
112111
Runtime as Runtime_imported,
113112
SamplingContext as SamplingContext_imported,
@@ -379,9 +378,6 @@ export type QueryParams = QueryParams_imported;
379378
/** @deprecated This type has been moved to `@sentry/core`. */
380379
export type RequestEventData = RequestEventData_imported;
381380
/** @deprecated This type has been moved to `@sentry/core`. */
382-
// eslint-disable-next-line deprecation/deprecation
383-
export type Request = Request_imported;
384-
/** @deprecated This type has been moved to `@sentry/core`. */
385381
export type SanitizedRequestData = SanitizedRequestData_imported;
386382
/** @deprecated This type has been moved to `@sentry/core`. */
387383
export type Runtime = Runtime_imported;

packages/vercel-edge/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ export type {
22
Breadcrumb,
33
BreadcrumbHint,
44
PolymorphicRequest,
5-
// eslint-disable-next-line deprecation/deprecation
6-
Request,
75
RequestEventData,
86
SdkInfo,
97
Event,

0 commit comments

Comments
 (0)