Skip to content

feat: Undeprecate Severity Enum - #4412

Merged
AbhiPrasad merged 1 commit into
masterfrom
abhi-add-back-severity-enum
Jan 18, 2022
Merged

feat: Undeprecate Severity Enum#4412
AbhiPrasad merged 1 commit into
masterfrom
abhi-add-back-severity-enum

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Contributor

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.

@JonasBaJonasBa left a comment

Copy link
Copy Markdown
Contributor

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
AbhiPrasadforce-pushed the abhi-add-back-severity-enum branch 2 times, most recently from 94b266a to cbfc5a8CompareJanuary 17, 2022 15:04
@github-actions

github-actionsBot commented Jan 17, 2022

Copy link
Copy Markdown
Contributor

size-limit report

PathBase Size (09cc3af)Current SizeChange
@sentry/browser - CDN Bundle (gzipped)19.63 KB19.64 KB+0.06% 🔺
@sentry/browser - CDN Bundle (minified)62.5 KB62.57 KB+0.11% 🔺
@sentry/browser - Webpack22.16 KB22.17 KB+0.05% 🔺
@sentry/browser - Webpack - gzip = false75.66 KB75.67 KB+0.02% 🔺
@sentry/react - Webpack22.2 KB22.21 KB+0.05% 🔺
@sentry/nextjs Client - Webpack46.41 KB46.39 KB-0.04% 🔽
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped)28.35 KB28.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
AbhiPrasadforce-pushed the abhi-add-back-severity-enum branch from cbfc5a8 to 5d95081CompareJanuary 17, 2022 15:30
@AbhiPrasad
AbhiPrasad merged commit 2cf6f94 into masterJan 18, 2022
@AbhiPrasad
AbhiPrasad deleted the abhi-add-back-severity-enum branch January 18, 2022 13:52
Sign up for freeto 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

@AbhiPrasad@JonasBa