diff --git a/docs/migration/v8-to-v9.md b/docs/migration/v8-to-v9.md index 930234f1256b..c18131900393 100644 --- a/docs/migration/v8-to-v9.md +++ b/docs/migration/v8-to-v9.md @@ -131,6 +131,7 @@ Sentry.init({ - The `flatten` export has been removed. There is no replacement. - The `urlEncode` method has been removed. There is no replacement. - The `getDomElement` method has been removed. There is no replacement. +- The `Request` type has been removed. Use `RequestEventData` type instead. ### `@sentry/browser` diff --git a/packages/browser/src/exports.ts b/packages/browser/src/exports.ts index f34bad9c5aa7..0eed33b48349 100644 --- a/packages/browser/src/exports.ts +++ b/packages/browser/src/exports.ts @@ -1,8 +1,6 @@ export type { Breadcrumb, BreadcrumbHint, - // eslint-disable-next-line deprecation/deprecation - Request, RequestEventData, SdkInfo, Event, diff --git a/packages/bun/src/index.ts b/packages/bun/src/index.ts index 0d476efd910b..27ad993bc2fc 100644 --- a/packages/bun/src/index.ts +++ b/packages/bun/src/index.ts @@ -2,8 +2,6 @@ export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, - // eslint-disable-next-line deprecation/deprecation - Request, RequestEventData, SdkInfo, Event, diff --git a/packages/cloudflare/src/index.ts b/packages/cloudflare/src/index.ts index 8dd5ba50a623..d8c450eb4844 100644 --- a/packages/cloudflare/src/index.ts +++ b/packages/cloudflare/src/index.ts @@ -2,8 +2,6 @@ export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, - // eslint-disable-next-line deprecation/deprecation - Request, RequestEventData, SdkInfo, Event, diff --git a/packages/core/src/types-hoist/index.ts b/packages/core/src/types-hoist/index.ts index e74eca7ae927..d5973a246d81 100644 --- a/packages/core/src/types-hoist/index.ts +++ b/packages/core/src/types-hoist/index.ts @@ -90,8 +90,6 @@ export type { export type { QueryParams, RequestEventData, - // eslint-disable-next-line deprecation/deprecation - Request, SanitizedRequestData, } from './request'; export type { Runtime } from './runtime'; diff --git a/packages/core/src/types-hoist/request.ts b/packages/core/src/types-hoist/request.ts index 4db44c190a9e..834249cdd24e 100644 --- a/packages/core/src/types-hoist/request.ts +++ b/packages/core/src/types-hoist/request.ts @@ -11,12 +11,6 @@ export interface RequestEventData { headers?: { [key: string]: string }; } -/** - * Request data included in an event as sent to Sentry. - * @deprecated: This type will be removed in v9. Use `RequestEventData` instead. - */ -export type Request = RequestEventData; - export type QueryParams = string | { [key: string]: string } | Array<[string, string]>; /** diff --git a/packages/deno/src/index.ts b/packages/deno/src/index.ts index 40f43bb0d5c2..d3b9363f8164 100644 --- a/packages/deno/src/index.ts +++ b/packages/deno/src/index.ts @@ -2,8 +2,6 @@ export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, - // eslint-disable-next-line deprecation/deprecation - Request, RequestEventData, SdkInfo, Event, diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts index 86f33017fe4c..92d7a367ad3f 100644 --- a/packages/node/src/index.ts +++ b/packages/node/src/index.ts @@ -138,8 +138,6 @@ export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, - // eslint-disable-next-line deprecation/deprecation - Request, RequestEventData, SdkInfo, Event, diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 1470e508bbba..36906721ad73 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -107,7 +107,6 @@ import type { ReplayEvent as ReplayEvent_imported, ReplayRecordingData as ReplayRecordingData_imported, ReplayRecordingMode as ReplayRecordingMode_imported, - Request as Request_imported, RequestEventData as RequestEventData_imported, Runtime as Runtime_imported, SamplingContext as SamplingContext_imported, @@ -379,9 +378,6 @@ export type QueryParams = QueryParams_imported; /** @deprecated This type has been moved to `@sentry/core`. */ export type RequestEventData = RequestEventData_imported; /** @deprecated This type has been moved to `@sentry/core`. */ -// eslint-disable-next-line deprecation/deprecation -export type Request = Request_imported; -/** @deprecated This type has been moved to `@sentry/core`. */ export type SanitizedRequestData = SanitizedRequestData_imported; /** @deprecated This type has been moved to `@sentry/core`. */ export type Runtime = Runtime_imported; diff --git a/packages/vercel-edge/src/index.ts b/packages/vercel-edge/src/index.ts index 0820a4590c70..5ba7fd61ed96 100644 --- a/packages/vercel-edge/src/index.ts +++ b/packages/vercel-edge/src/index.ts @@ -2,8 +2,6 @@ export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, - // eslint-disable-next-line deprecation/deprecation - Request, RequestEventData, SdkInfo, Event,