From 76247eccfc46e98412fc41a4a37e5586dd7fb4f3 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Tue, 15 Feb 2022 15:01:35 -0500 Subject: [PATCH 1/2] fix(types): Use Sentry event type instead of dom one https://github.com/getsentry/sentry-javascript/pull/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. --- packages/types/src/envelope.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/types/src/envelope.ts b/packages/types/src/envelope.ts index 0c981cb1557a..27921bc1a097 100644 --- a/packages/types/src/envelope.ts +++ b/packages/types/src/envelope.ts @@ -1,3 +1,4 @@ +import { Event } from './event'; import { SentryRequestType } from './request'; import { SdkInfo } from './sdkinfo'; import { Session, SessionAggregates } from './session'; From fe6c858c16625082b70ba82118f7734ccdff935d Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Tue, 15 Feb 2022 15:08:24 -0500 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6415fde4e478..abbc7c777676 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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))