@sentry/react
Advanced tools
Comparing version 8.52.1 to 8.53.0
@@ -58,4 +58,5 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
castRouterInstance.subscribe('onBeforeNavigate', onBeforeNavigateArgs => { | ||
const fromLocationState = onBeforeNavigateArgs.fromLocation && onBeforeNavigateArgs.fromLocation.state; | ||
// onBeforeNavigate is called during pageloads. We can avoid creating navigation spans by comparing the states of the to and from arguments. | ||
if (onBeforeNavigateArgs.toLocation.state === onBeforeNavigateArgs.fromLocation.state) { | ||
if (onBeforeNavigateArgs.toLocation.state === fromLocationState) { | ||
return; | ||
@@ -62,0 +63,0 @@ } |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"8.52.1","sideEffects":false} | ||
{"type":"module","version":"8.53.0","sideEffects":false} |
@@ -56,4 +56,5 @@ import { browserTracingIntegration, WINDOW, startBrowserTracingPageLoadSpan, startBrowserTracingNavigationSpan } from '@sentry/browser'; | ||
castRouterInstance.subscribe('onBeforeNavigate', onBeforeNavigateArgs => { | ||
const fromLocationState = onBeforeNavigateArgs.fromLocation && onBeforeNavigateArgs.fromLocation.state; | ||
// onBeforeNavigate is called during pageloads. We can avoid creating navigation spans by comparing the states of the to and from arguments. | ||
if (onBeforeNavigateArgs.toLocation.state === onBeforeNavigateArgs.fromLocation.state) { | ||
if (onBeforeNavigateArgs.toLocation.state === fromLocationState) { | ||
return; | ||
@@ -60,0 +61,0 @@ } |
@@ -13,3 +13,3 @@ export interface VendoredTanstackRouter { | ||
toLocation: VendoredTanstackRouterLocation; | ||
fromLocation: VendoredTanstackRouterLocation; | ||
fromLocation?: VendoredTanstackRouterLocation; | ||
}) => void): () => void; | ||
@@ -16,0 +16,0 @@ } |
@@ -13,3 +13,3 @@ export interface VendoredTanstackRouter { | ||
toLocation: VendoredTanstackRouterLocation; | ||
fromLocation: VendoredTanstackRouterLocation; | ||
fromLocation?: VendoredTanstackRouterLocation; | ||
}) => void): () => void; | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "@sentry/react", | ||
"version": "8.52.1", | ||
"version": "8.53.0", | ||
"description": "Official Sentry SDK for React.js", | ||
@@ -42,4 +42,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "8.52.1", | ||
"@sentry/core": "8.52.1", | ||
"@sentry/browser": "8.53.0", | ||
"@sentry/core": "8.53.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
Sorry, the diff of this file is not supported yet
443156
4507
+ Added@sentry-internal/browser-utils@8.53.0(transitive)
+ Added@sentry-internal/feedback@8.53.0(transitive)
+ Added@sentry-internal/replay@8.53.0(transitive)
+ Added@sentry-internal/replay-canvas@8.53.0(transitive)
+ Added@sentry/browser@8.53.0(transitive)
+ Added@sentry/core@8.53.0(transitive)
- Removed@sentry-internal/browser-utils@8.52.1(transitive)
- Removed@sentry-internal/feedback@8.52.1(transitive)
- Removed@sentry-internal/replay@8.52.1(transitive)
- Removed@sentry-internal/replay-canvas@8.52.1(transitive)
- Removed@sentry/browser@8.52.1(transitive)
- Removed@sentry/core@8.52.1(transitive)
Updated@sentry/browser@8.53.0
Updated@sentry/core@8.53.0