Skip to content

Commit 8aaf552

Browse files
Luca Forstnermydea
andauthored
Apply suggestions from code review
Co-authored-by: Francesco Novy <[email protected]>
1 parent 441dd5e commit 8aaf552

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

MIGRATION.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ If you are using the `Hub` right now, see the following table on how to migrate
285285
| endSession() | `Sentry.endSession()` |
286286
| shouldSendDefaultPii() | REMOVED - The closest equivalent is `Sentry.getClient().getOptions().sendDefaultPii` |
287287

288-
The `Hub` constructor is also gonna be deprecated and will be removed in the next major version. If you are creating
288+
The `Hub` constructor is also deprecated and will be removed in the next major version. If you are creating
289289
Hubs for multi-client use like so:
290290

291-
```
291+
```js
292292
// OLD
293293
const hub = new Hub();
294294
hub.bindClient(client);
@@ -297,7 +297,7 @@ makeMain(hub)
297297

298298
instead initialize the client as follows:
299299

300-
```
300+
```js
301301
// NEW
302302
Sentry.withIsolationScope(() => {
303303
Sentry.setCurrentClient(client);
@@ -307,7 +307,7 @@ Sentry.withIsolationScope(() => {
307307

308308
If you are using the Hub to capture events like so:
309309

310-
```
310+
```js
311311
// OLD
312312
const client = new Client();
313313
const hub = new Hub(client);
@@ -322,7 +322,6 @@ const client = new Client();
322322
const scope = new Scope();
323323
scope.setClient(client);
324324
scope.captureException();
325-
326325
## Deprecate `client.setupIntegrations()`
327326
328327
Instead, use the new `client.init()` method. You should probably not use this directly and instead use `Sentry.init()`,

0 commit comments

Comments
 (0)