diff --git a/docs/migration/v8-to-v9.md b/docs/migration/v8-to-v9.md index 20c29bbffac3..99646e9e1d80 100644 --- a/docs/migration/v8-to-v9.md +++ b/docs/migration/v8-to-v9.md @@ -107,6 +107,7 @@ It will be removed in a future major version. - The `getNumberOfUrlSegments` method has been removed. There is no replacement. - The `validSeverityLevels` export has been removed. There is no replacement. - The `arrayify` export has been removed. There is no replacement. +- The `BAGGAGE_HEADER_NAME` export has been removed. Use `"baggage"` string constant directly instead. - The `flatten` export has been removed. There is no replacement. ### `@sentry/nestjs` @@ -197,7 +198,7 @@ The Sentry metrics beta has ended and the metrics API has been removed from the - Deprecated `arrayify`. No replacements. - Deprecated `memoBuilder`. No replacements. - Deprecated `getNumberOfUrlSegments`. No replacements. -- Deprecated `BAGGAGE_HEADER_NAME`. No replacements. +- Deprecated `BAGGAGE_HEADER_NAME`. Use `"baggage"` string constant directly instead. - Deprecated `makeFifoCache`. No replacements. - Deprecated `dynamicRequire`. No replacements. - Deprecated `flatten`. No replacements. diff --git a/packages/core/src/utils-hoist/baggage.ts b/packages/core/src/utils-hoist/baggage.ts index 5fb60af8a203..075dbf4389df 100644 --- a/packages/core/src/utils-hoist/baggage.ts +++ b/packages/core/src/utils-hoist/baggage.ts @@ -4,11 +4,6 @@ import { DEBUG_BUILD } from './debug-build'; import { isString } from './is'; import { logger } from './logger'; -/** - * @deprecated Use a `"baggage"` string directly - */ -export const BAGGAGE_HEADER_NAME = 'baggage'; - export const SENTRY_BAGGAGE_KEY_PREFIX = 'sentry-'; export const SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/; diff --git a/packages/core/src/utils-hoist/index.ts b/packages/core/src/utils-hoist/index.ts index e8cc031f84f7..ecfa286e4d84 100644 --- a/packages/core/src/utils-hoist/index.ts +++ b/packages/core/src/utils-hoist/index.ts @@ -147,8 +147,6 @@ export { } from './ratelimit'; export type { RateLimits } from './ratelimit'; export { - // eslint-disable-next-line deprecation/deprecation - BAGGAGE_HEADER_NAME, MAX_BAGGAGE_STRING_LENGTH, SENTRY_BAGGAGE_KEY_PREFIX, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index 80dfd17ab72c..ce51fdc8806c 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,6 +1,5 @@ /* eslint-disable max-lines */ import { - BAGGAGE_HEADER_NAME as BAGGAGE_HEADER_NAME_imported, CONSOLE_LEVELS as CONSOLE_LEVELS_imported, DEFAULT_RETRY_AFTER as DEFAULT_RETRY_AFTER_imported, DEFAULT_USER_INCLUDES as DEFAULT_USER_INCLUDES_imported, @@ -624,10 +623,6 @@ export const extractRequestData = extractRequestData_imported; // eslint-disable-next-line deprecation/deprecation export const addRequestDataToEvent = addRequestDataToEvent_imported; -/** @deprecated Import from `@sentry/core` instead. */ -// eslint-disable-next-line deprecation/deprecation -export const BAGGAGE_HEADER_NAME = BAGGAGE_HEADER_NAME_imported; - /** @deprecated Import from `@sentry/core` instead. */ export const getSanitizedUrlString = getSanitizedUrlString_imported;