Skip to content

Commit

Permalink
feat(core)!: Remove BAGGAGE_HEADER_NAME export (#14785)
Browse files Browse the repository at this point in the history
ref: #14268

Deprecation PR:
#14434

Removes `BAGGAGE_HEADER_NAME`. Use `"baggage"` string constant directly instead.
  • Loading branch information
AbhiPrasad authored Dec 18, 2024
1 parent 6245d22 commit 6d006bf
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
3 changes: 2 additions & 1 deletion docs/migration/v8-to-v9.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ It will be removed in a future major version.
- The `validSeverityLevels` export has been removed. There is no replacement.
- The `makeFifoCache` method 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.
- The `urlEncode` method has been removed. There is no replacement.

Expand Down Expand Up @@ -199,7 +200,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.
Expand Down
5 changes: 0 additions & 5 deletions packages/core/src/utils-hoist/baggage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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-/;
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/utils-hoist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,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,
Expand Down
5 changes: 0 additions & 5 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -618,10 +617,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;

Expand Down

0 comments on commit 6d006bf

Please sign in to comment.