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

ref(types): deprecate outcome enum #4315

Merged
merged 3 commits into from
Dec 16, 2021

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Dec 16, 2021

No description provided.

@JonasBa JonasBa added this to the Treeshaking / Bundle Size milestone Dec 16, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Dec 16, 2021

size-limit report

Path Base Size (b8dc945) Current Size Change
@sentry/browser - CDN Bundle (gzipped) 21.01 KB 20.61 KB -1.92% 🔽
@sentry/browser - CDN Bundle (minified) 66.97 KB 65.87 KB -1.64% 🔽
@sentry/browser - Webpack 22.79 KB 22.59 KB -0.9% 🔽
@sentry/browser - Webpack - gzip = false 78.2 KB 77.45 KB -0.97% 🔽
@sentry/react - Webpack 22.82 KB 22.62 KB -0.9% 🔽
@sentry/nextjs Client - Webpack 47.34 KB 46.72 KB -1.32% 🔽
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.35 KB 28.75 KB -2.04% 🔽

@JonasBa JonasBa force-pushed the jb/bundle/drop-transaction-enum branch from 8782ffe to 9d9cccb Compare December 16, 2021 11:00
@JonasBa JonasBa force-pushed the jb/bundle/drop-outcome-enum branch from f4aef26 to 21bc65d Compare December 16, 2021 11:01
* @deprecated Use string literals - if you require type casting, cast to Outcome type
*/
export enum Outcome {
BeforeSend = 'before_send',
Copy link
Member

Choose a reason for hiding this comment

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

We can remove this - nobody should be consuming this enum, it’s undocumented.

@JonasBa JonasBa force-pushed the jb/bundle/drop-transaction-enum branch from 9d9cccb to afc1649 Compare December 16, 2021 13:36
@JonasBa JonasBa force-pushed the jb/bundle/drop-outcome-enum branch from 21bc65d to 6f9069e Compare December 16, 2021 13:38
* ref(types): deprecate request status

* ref(types): deprecate session status

* ref(types): remove unused logLevel (#4317) (#4320)
@JonasBa JonasBa merged commit e8b0fb9 into jb/bundle/drop-transaction-enum Dec 16, 2021
@JonasBa JonasBa deleted the jb/bundle/drop-outcome-enum branch December 16, 2021 13:58
JonasBa added a commit that referenced this pull request Dec 16, 2021
* ref(types): deprecate transactionmethod enum

* fix(types): drop transactionsamplingmethod

* ref(types): deprecate outcome enum (#4315)

* ref(types): deprecate outcome enum

* fix(types): drop transportoutcome

* ref(types): deprecate request status enum (#4316)

* ref(types): deprecate request status

* ref(types): deprecate session status

* ref(types): remove unused logLevel (#4317) (#4320)
JonasBa added a commit that referenced this pull request Dec 16, 2021
* ref(span): deprecate span status enum

* ts(span): widen type

* ref(span): avoid reexporting the enum

* ref(types): fix all imports

* fix(test): remove extra space

* fix(test): import extension methods

* ref(types): deprecate transactionmethod enum (#4314)

* ref(types): deprecate transactionmethod enum

* fix(types): drop transactionsamplingmethod

* ref(types): deprecate outcome enum (#4315)

* ref(types): deprecate outcome enum

* fix(types): drop transportoutcome

* ref(types): deprecate request status enum (#4316)

* ref(types): deprecate request status

* ref(types): deprecate session status

* ref(types): remove unused logLevel (#4317) (#4320)
JonasBa added a commit that referenced this pull request Dec 16, 2021
* ref(types): deprecate enum and export type

* ref(types): fix fromHttpCode usage to statusFromHttpCode

* ref(types): remove enum usage

* fix(types): fix mistake on span

* fix: fmt

* ref(types): do not export the status enum

* ref(types): fix all imports

* ref(utils): consistent naming

* ref(types): deprecate span status enum (#4299)

* ref(span): deprecate span status enum

* ts(span): widen type

* ref(span): avoid reexporting the enum

* ref(types): fix all imports

* fix(test): remove extra space

* fix(test): import extension methods

* ref(types): deprecate transactionmethod enum (#4314)

* ref(types): deprecate transactionmethod enum

* fix(types): drop transactionsamplingmethod

* ref(types): deprecate outcome enum (#4315)

* ref(types): deprecate outcome enum

* fix(types): drop transportoutcome

* ref(types): deprecate request status enum (#4316)

* ref(types): deprecate request status

* ref(types): deprecate session status

* ref(types): remove unused logLevel (#4317) (#4320)

Co-authored-by: Armin Ronacher <[email protected]>
JonasBa added a commit that referenced this pull request Dec 16, 2021
* fix(types): use SeverityLevel

* fix(types): remove other references to the enum

* fix(types): disable deprecation warning

* fix(types): move fromString to utils

* packages(types): fix exports

* fix(rebase): fix conflicts

* ref(types): deprecate status enum (#4298)

* ref(types): deprecate enum and export type

* ref(types): fix fromHttpCode usage to statusFromHttpCode

* ref(types): remove enum usage

* fix(types): fix mistake on span

* fix: fmt

* ref(types): do not export the status enum

* ref(types): fix all imports

* ref(utils): consistent naming

* ref(types): deprecate span status enum (#4299)

* ref(span): deprecate span status enum

* ts(span): widen type

* ref(span): avoid reexporting the enum

* ref(types): fix all imports

* fix(test): remove extra space

* fix(test): import extension methods

* ref(types): deprecate transactionmethod enum (#4314)

* ref(types): deprecate transactionmethod enum

* fix(types): drop transactionsamplingmethod

* ref(types): deprecate outcome enum (#4315)

* ref(types): deprecate outcome enum

* fix(types): drop transportoutcome

* ref(types): deprecate request status enum (#4316)

* ref(types): deprecate request status

* ref(types): deprecate session status

* ref(types): remove unused logLevel (#4317) (#4320)

Co-authored-by: Armin Ronacher <[email protected]>

Co-authored-by: Armin Ronacher <[email protected]>
onurtemizkan pushed a commit that referenced this pull request Dec 19, 2021
* fix(types): use SeverityLevel

* fix(types): remove other references to the enum

* fix(types): disable deprecation warning

* fix(types): move fromString to utils

* packages(types): fix exports

* fix(rebase): fix conflicts

* ref(types): deprecate status enum (#4298)

* ref(types): deprecate enum and export type

* ref(types): fix fromHttpCode usage to statusFromHttpCode

* ref(types): remove enum usage

* fix(types): fix mistake on span

* fix: fmt

* ref(types): do not export the status enum

* ref(types): fix all imports

* ref(utils): consistent naming

* ref(types): deprecate span status enum (#4299)

* ref(span): deprecate span status enum

* ts(span): widen type

* ref(span): avoid reexporting the enum

* ref(types): fix all imports

* fix(test): remove extra space

* fix(test): import extension methods

* ref(types): deprecate transactionmethod enum (#4314)

* ref(types): deprecate transactionmethod enum

* fix(types): drop transactionsamplingmethod

* ref(types): deprecate outcome enum (#4315)

* ref(types): deprecate outcome enum

* fix(types): drop transportoutcome

* ref(types): deprecate request status enum (#4316)

* ref(types): deprecate request status

* ref(types): deprecate session status

* ref(types): remove unused logLevel (#4317) (#4320)

Co-authored-by: Armin Ronacher <[email protected]>

Co-authored-by: Armin Ronacher <[email protected]>
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