Skip to content

Commit

Permalink
redeprecate Severity and severityFromString
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Apr 13, 2022
1 parent e75f266 commit 779362a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/types/src/severity.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* TODO(v7): Remove this enum and replace with SeverityLevel
* @deprecated Please use a `SeverityLevel` string instead of the `Severity` enum. Acceptable values are 'fatal',
* 'critical', 'error', 'warning', 'log', 'info', and 'debug'.
*/
export enum Severity {
/** JSDoc */
Expand Down
4 changes: 3 additions & 1 deletion packages/utils/src/severity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import { Severity, SeverityLevel } from '@sentry/types';
export const validSeverityLevels = ['fatal', 'error', 'warning', 'log', 'info', 'debug', 'critical'];

/**
* Converts a string-based level into a member of the {@link Severity} enum.
* Converts a string-based level into a member of the deprecated {@link Severity} enum.
*
* @deprecated `severityFromString` is deprecated. Please use `severityLevelFromString` instead.
*
* @param level String representation of Severity
* @returns Severity
Expand Down

0 comments on commit 779362a

Please sign in to comment.