Skip to content

ref(browser): Unify BrowserTransportOptions #5058

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

Merged
merged 2 commits into from
May 10, 2022

Conversation

AbhiPrasad
Copy link
Member

Enforce browser transport types by unifying fetch and xhr types into
a single BrowserTransportOptions interface. This is used as a generic
for ClientOptions<BrowserTransportOptions>.

This cleans up the transport typing, and enables the transportOptions to
be typed correctly in init.

Resolves https://getsentry.atlassian.net/browse/WEB-915

Enforce browser transport types by unifying fetch and xhr types into
a single `BrowserTransportOptions` interface. This is used as a generic
for `ClientOptions<BrowserTransportOptions>`.

This cleans up the transport typing, and enables the transportOptions to
be typed correctly in init.
@AbhiPrasad AbhiPrasad requested review from lforst and Lms24 May 9, 2022 19:12
@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 18.76 KB (-6.86% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 58.59 KB (-9.32% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 17.55 KB (-6.96% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 52.77 KB (-8.97% 🔽)
@sentry/browser - Webpack (gzipped + minified) 19.21 KB (-17.33% 🔽)
@sentry/browser - Webpack (minified) 62.13 KB (-23.97% 🔽)
@sentry/react - Webpack (gzipped + minified) 19.23 KB (-17.37% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 42.76 KB (-11.03% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 24.42 KB (-6.33% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 23 KB (-6.07% 🔽)

@AbhiPrasad AbhiPrasad merged commit 52af0b1 into 7.x May 10, 2022
@AbhiPrasad AbhiPrasad deleted the v7-abhi-browser-transport-options branch May 10, 2022 15:02
@AbhiPrasad AbhiPrasad added this to the 7.0.0 milestone May 12, 2022
AbhiPrasad added a commit that referenced this pull request May 30, 2022
Enforce browser transport types by unifying fetch and xhr types into
a single `BrowserTransportOptions` interface. This is used as a generic
for `ClientOptions<BrowserTransportOptions>`.

This cleans up the transport typing, and enables the transportOptions to
be typed correctly in init.
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