Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core)!: Remove validSeverityLevels export #14765

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/migration/v8-to-v9.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ It will be removed in a future major version.

### `@sentry/core`

- The `getNumberOfUrlSegments` method has been removed. There are no replacements.
- The `getNumberOfUrlSegments` method has been removed. There is no replacement.
- The `validSeverityLevels` export has been removed. There is no replacement.

### `@sentry/nestjs`

Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/utils-hoist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ export type {
TransactionNamingScheme,
} from './requestdata';

// eslint-disable-next-line deprecation/deprecation
export { severityLevelFromString, validSeverityLevels } from './severity';
export { severityLevelFromString } from './severity';
export {
UNKNOWN_FUNCTION,
createStackParser,
Expand Down
5 changes: 0 additions & 5 deletions packages/core/src/utils-hoist/severity.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import type { SeverityLevel } from '../types-hoist';

/**
* @deprecated This variable has been deprecated and will be removed in the next major version.
*/
export const validSeverityLevels = ['fatal', 'error', 'warning', 'log', 'info', 'debug'];

/**
* Converts a string-based level into a `SeverityLevel`, normalizing it along the way.
*
Expand Down
5 changes: 0 additions & 5 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ import {
updateRateLimits as updateRateLimits_imported,
urlEncode as urlEncode_imported,
uuid4 as uuid4_imported,
validSeverityLevels as validSeverityLevels_imported,
vercelWaitUntil as vercelWaitUntil_imported,
watchdogTimer as watchdogTimer_imported,
winterCGHeadersToDict as winterCGHeadersToDict_imported,
Expand Down Expand Up @@ -340,10 +339,6 @@ export const winterCGRequestToRequestData = winterCGRequestToRequestData_importe
/** @deprecated Import from `@sentry/core` instead. */
export const severityLevelFromString = severityLevelFromString_imported;

/** @deprecated Import from `@sentry/core` instead. */
// eslint-disable-next-line deprecation/deprecation
export const validSeverityLevels = validSeverityLevels_imported;

/** @deprecated Import from `@sentry/core` instead. */
export const UNKNOWN_FUNCTION = UNKNOWN_FUNCTION_imported;

Expand Down
Loading