Skip to content

Commit 69e8966

Browse files
committed
Add example to migration docs.
1 parent d99c481 commit 69e8966

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

MIGRATION.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ to access and mutate the current scope.
8888

8989
## General API Changes
9090

91-
- The minumum supported Node version for all the SDK packages is Node 14 (#10527)
91+
- The minimum supported Node version for all the SDK packages is Node 14 (#10527)
9292
- Remove `spanStatusfromHttpCode` in favour of `getSpanStatusFromHttpCode` (#10361)
9393
- Remove deprecated `deepReadDirSync` export from `@sentry/node` (#10564)
9494
- Remove `_eventFromIncompleteOnError` usage (#10553)
@@ -109,7 +109,7 @@ npx @sentry/migr8@latest
109109
This will let you select which updates to run, and automatically update your code. Make sure to still review all code
110110
changes!
111111

112-
## Depreacted `BrowserTracing` integration
112+
## Deprecated `BrowserTracing` integration
113113

114114
The `BrowserTracing` integration, together with the custom routing instrumentations passed to it, are deprecated in v8.
115115
Instead, you should use `Sentry.browserTracingIntegration()`.
@@ -234,7 +234,16 @@ only be set later during the span lifecycle (and thus not be available during sa
234234

235235
## Deprecate `wrapRemixHandleError` in Remix SDK (since v7.100.0)
236236

237-
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`.
237+
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. It can be
238+
used as below:
239+
240+
````typescript
241+
// entry.server.ts
242+
243+
export const handleError = Sentry.wrapHandleErrorWithSentry(() => {
244+
// Custom handleError implementation
245+
});
246+
```
238247

239248
## Deprecate using `getClient()` to check if the SDK was initialized
240249

@@ -328,7 +337,7 @@ typescript:
328337

329338
```ts
330339
const replay = getClient().getIntegrationByName<Replay>('Replay');
331-
```
340+
````
332341

333342
## Deprecate `Hub`
334343

@@ -1130,8 +1139,8 @@ version.
11301139
### Import Changes
11311140
11321141
Due to the compiler change, our NPM package structure changed as well as it now conforms to the
1133-
[**Angular** Package Format v10](https://docs.google.com/document/d/1uh2D6XqaGh2yjjXwfF4SrJqWl1MBhMPntlNBBsk6rbw/edit).
1134-
In case you're importing from specific paths other than `@sentry/angular` you will have to adjust these paths. As an
1142+
[Angular Package Format v10](https://docs.google.com/document/d/1uh2D6XqaGh2yjjXwfF4SrJqWl1MBhMPntlNBBsk6rbw/edit). In
1143+
case you're importing from specific paths other than `@sentry/angular` you will have to adjust these paths. As an
11351144
example, `import ... from '@sentry/angular/esm/injex.js'` should be changed to
11361145
`import ... from '@sentry/angular/esm2015/index.js'`. Generally, we strongly recommend only importing from
11371146
`@sentry/angular`.

0 commit comments

Comments
 (0)