@sentry/react
Advanced tools
Comparing version 8.0.0-beta.4 to 8.0.0-beta.5
@@ -166,5 +166,5 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
error: state.error, | ||
componentStack: state.componentStack, | ||
componentStack: state.componentStack , | ||
resetError: this.resetErrorBoundary, | ||
eventId: state.eventId, | ||
eventId: state.eventId , | ||
}); | ||
@@ -171,0 +171,0 @@ } else { |
@@ -147,5 +147,5 @@ import { getClient, showReportDialog, withScope, captureException } from '@sentry/browser'; | ||
error: state.error, | ||
componentStack: state.componentStack, | ||
componentStack: state.componentStack , | ||
resetError: this.resetErrorBoundary, | ||
eventId: state.eventId, | ||
eventId: state.eventId , | ||
}); | ||
@@ -152,0 +152,0 @@ } else { |
{ | ||
"name": "@sentry/react", | ||
"version": "8.0.0-beta.4", | ||
"version": "8.0.0-beta.5", | ||
"description": "Official Sentry SDK for React.js", | ||
@@ -45,6 +45,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "8.0.0-beta.4", | ||
"@sentry/core": "8.0.0-beta.4", | ||
"@sentry/types": "8.0.0-beta.4", | ||
"@sentry/utils": "8.0.0-beta.4", | ||
"@sentry/browser": "8.0.0-beta.5", | ||
"@sentry/core": "8.0.0-beta.5", | ||
"@sentry/types": "8.0.0-beta.5", | ||
"@sentry/utils": "8.0.0-beta.5", | ||
"hoist-non-react-statics": "^3.3.2" | ||
@@ -51,0 +51,0 @@ }, |
@@ -7,3 +7,3 @@ import { ReportDialogOptions } from '@sentry/browser'; | ||
export type FallbackRender = (errorData: { | ||
error: Error; | ||
error: unknown; | ||
componentStack: string; | ||
@@ -32,11 +32,11 @@ eventId: string; | ||
/** Called when the error boundary encounters an error */ | ||
onError?: ((error: Error, componentStack: string, eventId: string) => void) | undefined; | ||
onError?: ((error: unknown, componentStack: string, eventId: string) => void) | undefined; | ||
/** Called on componentDidMount() */ | ||
onMount?: (() => void) | undefined; | ||
/** Called if resetError() is called from the fallback render props function */ | ||
onReset?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined; | ||
onReset?: ((error: unknown, componentStack: string | null, eventId: string | null) => void) | undefined; | ||
/** Called on componentWillUnmount() */ | ||
onUnmount?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined; | ||
onUnmount?: ((error: unknown, componentStack: string | null, eventId: string | null) => void) | undefined; | ||
/** Called before the error is captured by Sentry, allows for you to add tags or context using the scope */ | ||
beforeCapture?: ((scope: Scope, error: Error | null, componentStack: string | null) => void) | undefined; | ||
beforeCapture?: ((scope: Scope, error: unknown, componentStack: string | undefined) => void) | undefined; | ||
}; | ||
@@ -49,3 +49,3 @@ type ErrorBoundaryState = { | ||
componentStack: React.ErrorInfo['componentStack']; | ||
error: Error; | ||
error: unknown; | ||
eventId: string; | ||
@@ -64,5 +64,3 @@ }; | ||
constructor(props: ErrorBoundaryProps); | ||
componentDidCatch(error: Error & { | ||
cause?: Error; | ||
}, { componentStack }: React.ErrorInfo): void; | ||
componentDidCatch(error: unknown, { componentStack }: React.ErrorInfo): void; | ||
componentDidMount(): void; | ||
@@ -69,0 +67,0 @@ componentWillUnmount(): void; |
@@ -7,3 +7,3 @@ import type { ReportDialogOptions } from '@sentry/browser'; | ||
export type FallbackRender = (errorData: { | ||
error: Error; | ||
error: unknown; | ||
componentStack: string; | ||
@@ -32,11 +32,11 @@ eventId: string; | ||
/** Called when the error boundary encounters an error */ | ||
onError?: ((error: Error, componentStack: string, eventId: string) => void) | undefined; | ||
onError?: ((error: unknown, componentStack: string, eventId: string) => void) | undefined; | ||
/** Called on componentDidMount() */ | ||
onMount?: (() => void) | undefined; | ||
/** Called if resetError() is called from the fallback render props function */ | ||
onReset?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined; | ||
onReset?: ((error: unknown, componentStack: string | null, eventId: string | null) => void) | undefined; | ||
/** Called on componentWillUnmount() */ | ||
onUnmount?: ((error: Error | null, componentStack: string | null, eventId: string | null) => void) | undefined; | ||
onUnmount?: ((error: unknown, componentStack: string | null, eventId: string | null) => void) | undefined; | ||
/** Called before the error is captured by Sentry, allows for you to add tags or context using the scope */ | ||
beforeCapture?: ((scope: Scope, error: Error | null, componentStack: string | null) => void) | undefined; | ||
beforeCapture?: ((scope: Scope, error: unknown, componentStack: string | undefined) => void) | undefined; | ||
}; | ||
@@ -49,3 +49,3 @@ type ErrorBoundaryState = { | ||
componentStack: React.ErrorInfo['componentStack']; | ||
error: Error; | ||
error: unknown; | ||
eventId: string; | ||
@@ -64,5 +64,3 @@ }; | ||
constructor(props: ErrorBoundaryProps); | ||
componentDidCatch(error: Error & { | ||
cause?: Error; | ||
}, { componentStack }: React.ErrorInfo): void; | ||
componentDidCatch(error: unknown, { componentStack }: React.ErrorInfo): void; | ||
componentDidMount(): void; | ||
@@ -69,0 +67,0 @@ componentWillUnmount(): void; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
308614
3128
+ Added@sentry-internal/browser-utils@8.0.0-beta.5(transitive)
+ Added@sentry-internal/feedback@8.0.0-beta.5(transitive)
+ Added@sentry-internal/replay@8.0.0-beta.5(transitive)
+ Added@sentry-internal/replay-canvas@8.0.0-beta.5(transitive)
+ Added@sentry/browser@8.0.0-beta.5(transitive)
+ Added@sentry/core@8.0.0-beta.5(transitive)
+ Added@sentry/types@8.0.0-beta.5(transitive)
+ Added@sentry/utils@8.0.0-beta.5(transitive)
- Removed@sentry-internal/browser-utils@8.0.0-beta.4(transitive)
- Removed@sentry-internal/feedback@8.0.0-beta.4(transitive)
- Removed@sentry-internal/replay@8.0.0-beta.4(transitive)
- Removed@sentry-internal/replay-canvas@8.0.0-beta.4(transitive)
- Removed@sentry/browser@8.0.0-beta.4(transitive)
- Removed@sentry/core@8.0.0-beta.4(transitive)
- Removed@sentry/types@8.0.0-beta.4(transitive)
- Removed@sentry/utils@8.0.0-beta.4(transitive)
- Removedpreact@10.24.2(transitive)
Updated@sentry/browser@8.0.0-beta.5
Updated@sentry/core@8.0.0-beta.5
Updated@sentry/types@8.0.0-beta.5
Updated@sentry/utils@8.0.0-beta.5