Skip to content

Commit ae5444b

Browse files
committed
migration entry
1 parent fc052ed commit ae5444b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

MIGRATION.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This will let you select which updates to run, and automatically update your cod
1010

1111
## Deprecate `Sentry.lastEventId()` and `hub.lastEventId()`
1212

13-
`Sentry.lastEventId()` sometimes causes race conditons, so we are deprecating it in favour of the `beforeSend` callback.
13+
`Sentry.lastEventId()` sometimes causes race conditions, so we are deprecating it in favour of the `beforeSend` callback.
1414

1515
```js
1616
// Before
@@ -37,6 +37,12 @@ Sentry.init({
3737
});
3838
```
3939

40+
## Deprecated fields on `Hub`
41+
42+
In v8, the Hub class will be removed. The following methods are therefore deprecated:
43+
44+
- `hub.shouldSendDefaultPii()`: Access Sentry client option via `Sentry.getClient().getOptions().sendDefaultPii` instead
45+
4046
## Deprecated fields on `Span` and `Transaction`
4147

4248
In v8, the Span class is heavily reworked. The following properties & methods are thus deprecated:

0 commit comments

Comments
 (0)