Skip to content

Commit

Permalink
fix(types): Use Sentry event type instead of dom one (#4584)
Browse files Browse the repository at this point in the history
#4527 introduced Envelope types. In that patch, we included the `Event` DOM type, which is not declared in all TS environments - 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.

Also updates the changelog for `6.17.9`
  • Loading branch information
AbhiPrasad authored Feb 15, 2022
1 parent 314d117 commit c7416da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
- fix(types): Use Sentry event type instead of dom one ([#4584](https://github.com/getsentry/sentry-javascript/pull/4584))

## 6.17.8

- feat(types): Add Envelope types ([#4527](https://github.com/getsentry/sentry-javascript/pull/4527))
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/envelope.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Event } from './event';
import { SentryRequestType } from './request';
import { SdkInfo } from './sdkinfo';
import { Session, SessionAggregates } from './session';
Expand Down

0 comments on commit c7416da

Please sign in to comment.