@sentry-internal/browser-utils
Advanced tools
Comparing version 8.30.0 to 8.31.0-beta.0
@@ -10,2 +10,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const utils = require('./utils.js'); | ||
const getActivationStart = require('./web-vitals/lib/getActivationStart.js'); | ||
const getNavigationEntry = require('./web-vitals/lib/getNavigationEntry.js'); | ||
@@ -326,2 +327,10 @@ const getVisibilityWatcher = require('./web-vitals/lib/getVisibilityWatcher.js'); | ||
// In prerendering scenarios, where a page might be prefetched and pre-rendered before the user clicks the link, | ||
// the navigation starts earlier than when the user clicks it. Web Vitals should always be based on the | ||
// user-perceived time, so they are not reported from the actual start of the navigation, but rather from the | ||
// time where the user actively started the navigation, for example by clicking a link. | ||
// This is user action is called "activation" and the time between navigation and activation is stored in | ||
// the `activationStart` attribute of the "navigation" PerformanceEntry. | ||
span.setAttribute('performance.activationStart', getActivationStart.getActivationStart()); | ||
_setWebVitalAttributes(span); | ||
@@ -328,0 +337,0 @@ } |
@@ -8,2 +8,3 @@ import { getActiveSpan, startInactiveSpan, spanToJSON, setMeasurement, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core'; | ||
import { getBrowserPerformanceAPI, msToSec, startAndEndSpan, isMeasurementValue } from './utils.js'; | ||
import { getActivationStart } from './web-vitals/lib/getActivationStart.js'; | ||
import { getNavigationEntry } from './web-vitals/lib/getNavigationEntry.js'; | ||
@@ -324,2 +325,10 @@ import { getVisibilityWatcher } from './web-vitals/lib/getVisibilityWatcher.js'; | ||
// In prerendering scenarios, where a page might be prefetched and pre-rendered before the user clicks the link, | ||
// the navigation starts earlier than when the user clicks it. Web Vitals should always be based on the | ||
// user-perceived time, so they are not reported from the actual start of the navigation, but rather from the | ||
// time where the user actively started the navigation, for example by clicking a link. | ||
// This is user action is called "activation" and the time between navigation and activation is stored in | ||
// the `activationStart` attribute of the "navigation" PerformanceEntry. | ||
span.setAttribute('performance.activationStart', getActivationStart()); | ||
_setWebVitalAttributes(span); | ||
@@ -326,0 +335,0 @@ } |
{ | ||
"name": "@sentry-internal/browser-utils", | ||
"version": "8.30.0", | ||
"version": "8.31.0-beta.0", | ||
"description": "Browser Utilities for all Sentry JavaScript SDKs", | ||
@@ -42,5 +42,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "8.30.0", | ||
"@sentry/types": "8.30.0", | ||
"@sentry/utils": "8.30.0" | ||
"@sentry/core": "8.31.0-beta.0", | ||
"@sentry/types": "8.31.0-beta.0", | ||
"@sentry/utils": "8.31.0-beta.0" | ||
}, | ||
@@ -47,0 +47,0 @@ "scripts": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
746719
7443
1
+ Added@sentry/core@8.31.0-beta.0(transitive)
+ Added@sentry/types@8.31.0-beta.0(transitive)
+ Added@sentry/utils@8.31.0-beta.0(transitive)
- Removed@sentry/core@8.30.0(transitive)
- Removed@sentry/types@8.30.0(transitive)
- Removed@sentry/utils@8.30.0(transitive)
Updated@sentry/core@8.31.0-beta.0
Updated@sentry/types@8.31.0-beta.0
Updated@sentry/utils@8.31.0-beta.0