Skip to content

Commit c8335e8

Browse files
author
Luca Forstner
committed
Remove changes in migration docs
1 parent 0838d0d commit c8335e8

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

MIGRATION.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -32,44 +32,6 @@ import {
3232
} from '@sentry/minimal';
3333
```
3434

35-
## Explicit Client Options
36-
37-
In v7, we've updated the `Client` to have options seperate from the options passed into `Sentry.init`. This means that constructing a client now requires 3 options: `integrations`, `transport` and `stackParser`. These can be customized as you see fit.
38-
39-
```ts
40-
import { BrowserClient, defaultStackParsers, defaultIntegrations, makeFetchTransport } from '@sentry/browser';
41-
import { stackParserFromOptions } from '@sentry/utils';
42-
43-
// New in v7:
44-
const client = new BrowserClient({
45-
transport: makeFetchTransport,
46-
stackParser: stackParserFromOptions(defaultStackParsers),
47-
integrations: [...defaultIntegrations],
48-
});
49-
50-
// Before:
51-
const client = new BrowserClient();
52-
```
53-
54-
Since you now explicitly pass in the dependencies of the client, you can also tree-shake out dependencies that you do not use this way. For example, you can tree-shake out the SDK's default integrations and only use the ones that you want like so:
55-
56-
```ts
57-
import { BrowserClient, defaultStackParsers, Integrations, makeFetchTransport } from '@sentry/browser';
58-
import { stackParserFromOptions } from '@sentry/utils';
59-
60-
// New in v7:
61-
const client = new BrowserClient({
62-
transport: makeFetchTransport,
63-
stackParser: stackParserFromOptions(defaultStackParsers),
64-
integrations: [
65-
new Integrations.Breadcrumbs(),
66-
new Integrations.GlobalHandlers(),
67-
new Integrations.LinkedErrors(),
68-
new Integrations.Dedupe(),
69-
],
70-
});
71-
```
72-
7335
## Removal Of Old Platform Integrations From `@sentry/integrations` Package
7436

7537
The following classes will be removed from the `@sentry/integrations` package and can no longer be used:

0 commit comments

Comments
 (0)