Skip to content

Commit 0457289

Browse files
authored
fix: Update MIGRATION for SeverityLevel (#5225)
1 parent 7309b5d commit 0457289

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

MIGRATION.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,9 @@ const status = SpanStatus.fromHttpCode(403);
478478

479479
We deprecated the `Severity` enum in `@sentry/types` and it will be removed in the next major release. We recommend using string literals (typed as `SeverityLevel`) to save on bundle size.
480480

481-
`SeverityLevel` and `SeverityLevels` will continue to exist in v7, but they will live in `@sentry/utils` rather than `@sentry/types`. Currently, they live in both, for ease of migration. (`SeverityLevels` isn't included in the examples below because it is only useful internally.)
482-
483481
```js
484482
// New in 6.17.5:
485-
import { SeverityLevel } from '@sentry/utils';
483+
import { SeverityLevel } from '@sentry/types';
486484

487485
const levelA = "error" as SeverityLevel;
488486

0 commit comments

Comments
 (0)