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

fix(types): Use Sentry event type instead of dom one #4584

Merged
merged 2 commits into from
Feb 15, 2022

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Feb 15, 2022

#4527 introduced
Envelope types. In that patch, we included the Event DOM type, which
is not declared in all TS environments. This was done accidentally, we meant to
include Sentry's Event type.

This patch explicitly introduces Sentry's Event type by importing it in,
fixing the build errors that folks were having.

I would like to release after this, so I am going to update the changelog in this PR as well.

Fixes #4583

#4527 introduced
Envelope types. In that patch, we included the `Event` DOM type, which
is not declared in all TS environments accidentally - we meant to
include Sentry's `Event` type.

This patch explicitly introduces Sentry's Event type by importing it in,
fixing the build errors that folks were having.
@AbhiPrasad AbhiPrasad requested review from a team, Lms24 and lobsterkatie and removed request for a team February 15, 2022 20:04
@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2022

size-limit report

Path Base Size (4d77983) Current Size Change
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.69 KB 19.68 KB -0.01% 🔽
@sentry/browser - ES5 CDN Bundle (minified) 63.2 KB 63.2 KB 0%
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.35 KB 18.35 KB -0.02% 🔽
@sentry/browser - ES6 CDN Bundle (minified) 56.36 KB 56.36 KB 0%
@sentry/browser - Webpack (gzipped + minified) 22.13 KB 22.13 KB 0%
@sentry/browser - Webpack (minified) 76.07 KB 76.07 KB 0%
@sentry/react - Webpack (gzipped + minified) 22.17 KB 22.17 KB 0%
@sentry/nextjs Client - Webpack (gzipped + minified) 46.31 KB 46.31 KB 0%
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 27.14 KB 27.14 KB 0%

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) February 15, 2022 20:21
@AbhiPrasad AbhiPrasad merged commit c7416da into master Feb 15, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-event-envelope branch February 15, 2022 20:31
@@ -4,6 +4,11 @@

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

## 6.17.9

- fix(gatsby): Add missing React peer dependency ([#4576](https://github.com/getsentry/sentry-javascript/pull/4576))
Copy link
Contributor

Choose a reason for hiding this comment

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

@AbhiPrasad do we want to thank external contributor for this PR #4576

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah we should make the edit

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.

6.17.8 - Build is broken for TS projects
3 participants