diff --git a/docs/migration/v8-to-v9.md b/docs/migration/v8-to-v9.md index c91a1486fb2e..0ee920fed2c9 100644 --- a/docs/migration/v8-to-v9.md +++ b/docs/migration/v8-to-v9.md @@ -142,6 +142,7 @@ Sentry.init({ - 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. +- The `TransactionNamingScheme` type has been removed. There is no replacement. - The `memoBuilder` method has been removed. There is no replacement. ### `@sentry/browser` diff --git a/packages/core/src/utils-hoist/index.ts b/packages/core/src/utils-hoist/index.ts index ad79a303548b..fcba59fea799 100644 --- a/packages/core/src/utils-hoist/index.ts +++ b/packages/core/src/utils-hoist/index.ts @@ -80,11 +80,7 @@ export { extractQueryParamsFromUrl, headersToDict, } from './requestdata'; -export type { - AddRequestDataToEventOptions, - // eslint-disable-next-line deprecation/deprecation - TransactionNamingScheme, -} from './requestdata'; +export type { AddRequestDataToEventOptions } from './requestdata'; export { severityLevelFromString } from './severity'; export { diff --git a/packages/core/src/utils-hoist/requestdata.ts b/packages/core/src/utils-hoist/requestdata.ts index 582a8954d4c6..91fe5361fd01 100644 --- a/packages/core/src/utils-hoist/requestdata.ts +++ b/packages/core/src/utils-hoist/requestdata.ts @@ -37,7 +37,7 @@ export type AddRequestDataToEventOptions = { request?: boolean | Array<(typeof DEFAULT_REQUEST_INCLUDES)[number]>; /** @deprecated This option will be removed in v9. It does not do anything anymore, the `transcation` is set in other places. */ // eslint-disable-next-line deprecation/deprecation - transaction?: boolean | TransactionNamingScheme; + transaction?: boolean | 'path' | 'methodPath' | 'handler'; user?: boolean | Array<(typeof DEFAULT_USER_INCLUDES)[number]>; }; @@ -54,11 +54,6 @@ export type AddRequestDataToEventOptions = { }; }; -/** - * @deprecated This type will be removed in v9. It is not in use anymore. - */ -export type TransactionNamingScheme = 'path' | 'methodPath' | 'handler'; - /** * Extracts a complete and parameterized path from the request object and uses it to construct transaction name. * If the parameterized transaction name cannot be extracted, we fall back to the raw URL.