Skip to content

Commit c1e7ee1

Browse files
committed
Add example to migration docs.
1 parent 37a211a commit c1e7ee1

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
@@ -97,7 +97,7 @@ Sentry SDK requires the fetch API to be available in the environment.
9797

9898
## General API Changes
9999

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

121-
## Depreacted `BrowserTracing` integration
121+
## Deprecated `BrowserTracing` integration
122122

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

244244
## Deprecate `wrapRemixHandleError` in Remix SDK (since v7.100.0)
245245

246-
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`.
246+
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. It can be
247+
used as below:
248+
249+
````typescript
250+
// entry.server.ts
251+
252+
export const handleError = Sentry.wrapHandleErrorWithSentry(() => {
253+
// Custom handleError implementation
254+
});
255+
```
247256

248257
## Deprecate using `getClient()` to check if the SDK was initialized
249258

@@ -337,7 +346,7 @@ typescript:
337346

338347
```ts
339348
const replay = getClient().getIntegrationByName<Replay>('Replay');
340-
```
349+
````
341350

342351
## Deprecate `Hub`
343352

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

0 commit comments

Comments
 (0)