Skip to content

Commit 373bed1

Browse files
committed
feat(core)!: Remove BAGGAGE_HEADER_NAME export
1 parent 2d4f8e9 commit 373bed1

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

docs/migration/v8-to-v9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ It will be removed in a future major version.
106106

107107
- The `getNumberOfUrlSegments` method has been removed. There is no replacement.
108108
- The `validSeverityLevels` export has been removed. There is no replacement.
109+
- The `BAGGAGE_HEADER_NAME` export has been removed. There is no replacement.
109110

110111
### `@sentry/nestjs`
111112

packages/core/src/utils-hoist/baggage.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ import { DEBUG_BUILD } from './debug-build';
44
import { isString } from './is';
55
import { logger } from './logger';
66

7-
/**
8-
* @deprecated Use a `"baggage"` string directly
9-
*/
10-
export const BAGGAGE_HEADER_NAME = 'baggage';
11-
127
export const SENTRY_BAGGAGE_KEY_PREFIX = 'sentry-';
138

149
export const SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ export {
151151
} from './ratelimit';
152152
export type { RateLimits } from './ratelimit';
153153
export {
154-
// eslint-disable-next-line deprecation/deprecation
155-
BAGGAGE_HEADER_NAME,
156154
MAX_BAGGAGE_STRING_LENGTH,
157155
SENTRY_BAGGAGE_KEY_PREFIX,
158156
SENTRY_BAGGAGE_KEY_PREFIX_REGEX,

packages/utils/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable max-lines */
22
import {
3-
BAGGAGE_HEADER_NAME as BAGGAGE_HEADER_NAME_imported,
43
CONSOLE_LEVELS as CONSOLE_LEVELS_imported,
54
DEFAULT_RETRY_AFTER as DEFAULT_RETRY_AFTER_imported,
65
DEFAULT_USER_INCLUDES as DEFAULT_USER_INCLUDES_imported,
@@ -634,10 +633,6 @@ export const extractRequestData = extractRequestData_imported;
634633
// eslint-disable-next-line deprecation/deprecation
635634
export const addRequestDataToEvent = addRequestDataToEvent_imported;
636635

637-
/** @deprecated Import from `@sentry/core` instead. */
638-
// eslint-disable-next-line deprecation/deprecation
639-
export const BAGGAGE_HEADER_NAME = BAGGAGE_HEADER_NAME_imported;
640-
641636
/** @deprecated Import from `@sentry/core` instead. */
642637
export const getSanitizedUrlString = getSanitizedUrlString_imported;
643638

0 commit comments

Comments
 (0)