@sentry/react
Advanced tools
Comparing version 8.48.0 to 8.49.0
@@ -70,3 +70,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const eventId = error.captureReactException(error$1, errorInfo, { mechanism: { handled: !!this.props.fallback } }); | ||
const handled = this.props.handled != null ? this.props.handled : !!this.props.fallback; | ||
const eventId = error.captureReactException(error$1, errorInfo, { mechanism: { handled } }); | ||
@@ -73,0 +74,0 @@ if (onError) { |
@@ -51,3 +51,4 @@ import { getClient, showReportDialog, withScope } from '@sentry/browser'; | ||
const eventId = captureReactException(error, errorInfo, { mechanism: { handled: !!this.props.fallback } }); | ||
const handled = this.props.handled != null ? this.props.handled : !!this.props.fallback; | ||
const eventId = captureReactException(error, errorInfo, { mechanism: { handled } }); | ||
@@ -54,0 +55,0 @@ if (onError) { |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"8.48.0","sideEffects":false} | ||
{"type":"module","version":"8.49.0","sideEffects":false} |
@@ -29,2 +29,8 @@ import { ReportDialogOptions } from '@sentry/browser'; | ||
fallback?: React.ReactElement | FallbackRender | undefined; | ||
/** | ||
* If set to `true` or `false`, the error `handled` property will be set to the given value. | ||
* If unset, the default behaviour is to rely on the presence of the `fallback` prop to determine | ||
* if the error was handled or not. | ||
*/ | ||
handled?: boolean | undefined; | ||
/** Called when the error boundary encounters an error */ | ||
@@ -31,0 +37,0 @@ onError?: ((error: unknown, componentStack: string | undefined, eventId: string) => void) | undefined; |
@@ -29,2 +29,8 @@ import type { ReportDialogOptions } from '@sentry/browser'; | ||
fallback?: React.ReactElement | FallbackRender | undefined; | ||
/** | ||
* If set to `true` or `false`, the error `handled` property will be set to the given value. | ||
* If unset, the default behaviour is to rely on the presence of the `fallback` prop to determine | ||
* if the error was handled or not. | ||
*/ | ||
handled?: boolean | undefined; | ||
/** Called when the error boundary encounters an error */ | ||
@@ -31,0 +37,0 @@ onError?: ((error: unknown, componentStack: string | undefined, eventId: string) => void) | undefined; |
{ | ||
"name": "@sentry/react", | ||
"version": "8.48.0", | ||
"version": "8.49.0", | ||
"description": "Official Sentry SDK for React.js", | ||
@@ -42,4 +42,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "8.48.0", | ||
"@sentry/core": "8.48.0", | ||
"@sentry/browser": "8.49.0", | ||
"@sentry/core": "8.49.0", | ||
"hoist-non-react-statics": "^3.3.2" | ||
@@ -46,0 +46,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
421440
4316
+ Added@sentry-internal/browser-utils@8.49.0(transitive)
+ Added@sentry-internal/feedback@8.49.0(transitive)
+ Added@sentry-internal/replay@8.49.0(transitive)
+ Added@sentry-internal/replay-canvas@8.49.0(transitive)
+ Added@sentry/browser@8.49.0(transitive)
+ Added@sentry/core@8.49.0(transitive)
- Removed@sentry-internal/browser-utils@8.48.0(transitive)
- Removed@sentry-internal/feedback@8.48.0(transitive)
- Removed@sentry-internal/replay@8.48.0(transitive)
- Removed@sentry-internal/replay-canvas@8.48.0(transitive)
- Removed@sentry/browser@8.48.0(transitive)
- Removed@sentry/core@8.48.0(transitive)
Updated@sentry/browser@8.49.0
Updated@sentry/core@8.49.0