Skip to content

Commit 1b0193c

Browse files
Merge pull request #8572 from getsentry/master
[Gitflow] Merge master into develop
2 parents 564af01 + 2344e56 commit 1b0193c

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,64 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
## 7.59.1
8+
9+
No changes. This release was published to fix a publishing issue with 7.59.0. Please see [7.59.0](#7590) for the changes in that release.
10+
11+
## 7.59.0
12+
13+
### Important Changes
14+
15+
- **- feat(remix): Add Remix v2 support (#8415)**
16+
17+
This release adds support for Remix v2 future flags, in particular for new error handling utilities of Remix v2. We heavily recommend you switch to using `v2_errorBoundary` future flag to get the best error handling experience with Sentry.
18+
19+
To capture errors from [v2 client-side ErrorBoundary](https://remix.run/docs/en/main/route/error-boundary-v2), you should define your own `ErrorBoundary` in `root.tsx` and use `Sentry.captureRemixErrorBoundaryError` helper to capture the error.
20+
21+
```typescript
22+
// root.tsx
23+
import { captureRemixErrorBoundaryError } from "@sentry/remix";
24+
25+
export const ErrorBoundary: V2_ErrorBoundaryComponent = () => {
26+
const error = useRouteError();
27+
28+
captureRemixErrorBoundaryError(error);
29+
30+
return <div> ... </div>;
31+
};
32+
```
33+
34+
For server-side errors, define a [`handleError`](https://remix.run/docs/en/main/file-conventions/entry.server#handleerror) function in your server entry point and use the `Sentry.captureRemixServerException` helper to capture the error.
35+
36+
```ts
37+
// entry.server.tsx
38+
export function handleError(
39+
error: unknown,
40+
{ request }: DataFunctionArgs
41+
): void {
42+
if (error instanceof Error) {
43+
Sentry.captureRemixServerException(error, "remix.server", request);
44+
} else {
45+
// Optionally capture non-Error objects
46+
Sentry.captureException(error);
47+
}
48+
}
49+
```
50+
51+
For more details, see the Sentry [Remix SDK](https://docs.sentry.io/platforms/javascript/guides/remix/) documentation.
52+
53+
### Other Changes
54+
55+
- feat(core): Add `ModuleMetadata` integration (#8475)
56+
- feat(core): Allow multiplexed transport to send to multiple releases (#8559)
57+
- feat(tracing): Add more network timings to http calls (#8540)
58+
- feat(tracing): Bring http timings out of experiment (#8563)
59+
- fix(nextjs): Avoid importing `SentryWebpackPlugin` in dev mode (#8557)
60+
- fix(otel): Use `HTTP_URL` attribute for client requests (#8539)
61+
- fix(replay): Better session storage check (#8547)
62+
- fix(replay): Handle errors in `beforeAddRecordingEvent` callback (#8548)
63+
- fix(tracing): Improve network.protocol.version (#8502)
64+
765
## 7.58.1
866

967
- fix(node): Set propagation context even when tracingOptions are not defined (#8517)

0 commit comments

Comments
 (0)