Skip to content

Commit 998a54a

Browse files
committed
chore(changeset): enhance changeset and comments
1 parent ece2a48 commit 998a54a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.changeset/happy-days-hang.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@commercetools-frontend/sentry': patch
33
---
44

5-
Update @sentry/react to v8
5+
Update @sentry/react to v8 for React 19 compatibility. Migrate deprecated `configureScope` API to `getCurrentScope()` and update type signatures to satisfy v8 requirements.

packages/sentry/src/sentry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ export const boot = () => {
108108
// we can implement the `tracesSampler` function.
109109
// https://docs.sentry.io/platforms/javascript/guides/react/configuration/sampling/#sampling-transaction-events
110110
tracesSampleRate: 0.05,
111-
// Add hint parameter to match v8 signature, even though we don't use it yet
111+
// v8 requires the hint parameter which provides additional error context.
112+
// We only redact PII from event fields, so hint is unused for now.
112113
beforeSend(event, _hint) {
113114
return redactUnsafeEventFields(event) as SentryErrorEvent;
114115
},

0 commit comments

Comments
 (0)