Title: `Severity.fromString` was removed in `@sentry/types@6.17.0` · Issue #4903 · getsentry/sentry-javascript · GitHub
Open Graph Title: `Severity.fromString` was removed in `@sentry/types@6.17.0` · Issue #4903 · getsentry/sentry-javascript
X Title: `Severity.fromString` was removed in `@sentry/types@6.17.0` · Issue #4903 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4903
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Severity.fromString` was removed in `@sentry/types@6.17.0`","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSelf-hosted/on-premise\n\n### Which package are you using?\n\n@sentry/browser\n\n### SDK Version\n\n6.19.6\n\n### Framework Version\n\n6.19.6\n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\n1. Install `@sentry/types@6.16.0`.\r\n2. Run the following code:\r\n ```js\r\n import {Severity} from '@sentry/types'\r\n console.log(Severity.fromString('warn'))\r\n ```\r\n3. Install `@sentry/types@6.17.0`.\r\n4. Run the same code.\n\n### Expected Result\n\nOn both versions, the console should print `warning`.\n\n### Actual Result\n\nThe `Severity.fromString` API was removed in 6.17.0, so the code crashes in that version and onwards.\r\n\r\nI understand that you plan to remove the `Severity` enum entirely in v7 (a major release), but removing `Severity.fromString` in the meantime is a breaking change to a public API in a minor release.\r\n\r\nThere was discussion about this in https://github.com/getsentry/sentry-javascript/pull/4280#issuecomment-993705362 where the consensus was to make this into an internal API, but it seems like that should have waited until v7, since in v6 the API is public. Could this API please be restored until then? Thanks!","author":{"url":"https://github.com/billyjanitsch","@type":"Person","name":"billyjanitsch"},"datePublished":"2022-04-08T15:35:08Z","url":"https://github.com/getsentry/sentry-javascript/issues/4903"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c2fd7825-4bf8-af1c-e2dd-cc8bd7a57a8b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8276:3AACE0:66D0DA:8D93F4:6B047827 |
| html-safe-nonce | 2e1f123967361ff5fdf0cebe3fa176ea03453ee905bdf2bcd525a5a4737d814e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mjc2OjNBQUNFMDo2NkQwREE6OEQ5M0Y0OjZCMDQ3ODI3IiwidmlzaXRvcl9pZCI6IjcwMjE3OTE3MTMxNjgyNDEwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b55f6f590823c8e1e1a5f01761feaf3b475a799ef77d46e3b227c2ce7d3424a |
| hovercard-subject-tag | issue:1197476910 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/4903/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a89038feb8264379afb34c2543ee0af17b619d966ac473cf1a5b67066f72f5fd/getsentry/sentry-javascript/issues/4903 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a89038feb8264379afb34c2543ee0af17b619d966ac473cf1a5b67066f72f5fd/getsentry/sentry-javascript/issues/4903 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | billyjanitsch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width