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: Undeprecate Severity Enum #4412

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Conversation

AbhiPrasad
Copy link
Member

In #4280,
specifically in commit dd3aa70, we
deprecated the Severity enum in favour of using a string union type,
SeverityLevel. It's important to note that this change affected the
type signature of one of our public API methods, captureMessage.

The change to deprecate the Severity enum was done for bundle size
reasons.

After releasing the beta with these changes, it was found that
deprecating the Severity enum and replacing it with SeverityLevel
was quite the disruptive change, which would make upgrading to the minor
version a hassle for users. As a result, this patch undeprecates the
Severity enum. The Severity enum will be removed in the upcoming
major release instead, as a breaking change.

@AbhiPrasad AbhiPrasad requested a review from JonasBa January 17, 2022 13:23
Copy link
Member

@JonasBa JonasBa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for handling this @AbhiPrasad!

@AbhiPrasad AbhiPrasad force-pushed the abhi-add-back-severity-enum branch 2 times, most recently from 94b266a to cbfc5a8 Compare January 17, 2022 15:04
@github-actions
Copy link
Contributor

github-actions bot commented Jan 17, 2022

size-limit report

Path Base Size (09cc3af) Current Size Change
@sentry/browser - CDN Bundle (gzipped) 19.63 KB 19.64 KB +0.06% 🔺
@sentry/browser - CDN Bundle (minified) 62.5 KB 62.57 KB +0.11% 🔺
@sentry/browser - Webpack 22.16 KB 22.17 KB +0.05% 🔺
@sentry/browser - Webpack - gzip = false 75.66 KB 75.67 KB +0.02% 🔺
@sentry/react - Webpack 22.2 KB 22.21 KB +0.05% 🔺
@sentry/nextjs Client - Webpack 46.41 KB 46.39 KB -0.04% 🔽
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.35 KB 28.37 KB +0.07% 🔺

In #4280,
specifically in commit dd3aa70, we
deprecated the `Severity` enum in favour of using a string union type,
`SeverityLevel`. It's important to note that this change affected the
type signature of one of our public API methods, `captureMessage`.

The change to deprecate the `Severity` enum was done for bundle size
reasons.

After releasing the beta with these changes, it was found that
deprecating the `Severity` enum and replacing it with `SeverityLevel`
was quite the disruptive change, which would make upgrading to the minor
version a hassle for users. As a result, this patch undeprecates the
`Severity` enum. The `Severity` enum will be removed in the upcoming
major release instead, as a breaking change.
@AbhiPrasad AbhiPrasad force-pushed the abhi-add-back-severity-enum branch from cbfc5a8 to 5d95081 Compare January 17, 2022 15:30
@AbhiPrasad AbhiPrasad merged commit 2cf6f94 into master Jan 18, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-add-back-severity-enum branch January 18, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants