browsertime 27.0.2 → 27.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 27.0.3 - 2026-05-04
|
|
5
|
+
### Fixed
|
|
6
|
+
* Fix so INP only is calculated on interactions with an id [#2456](https://github.com/sitespeedio/browsertime/pull/2456).
|
|
7
|
+
|
|
3
8
|
## 27.0.2 - 2026-05-02
|
|
4
9
|
|
|
5
10
|
### Fixed
|
|
@@ -106,6 +106,13 @@
|
|
|
106
106
|
const longestInteractionList = [];
|
|
107
107
|
const longestInteractionMap = {};
|
|
108
108
|
for (let entry of entries) {
|
|
109
|
+
// web-vitals only counts entries the browser tagged as part of a
|
|
110
|
+
// discrete interaction; bare events like a `pointerover` fired by
|
|
111
|
+
// a stationary OS cursor get interactionId === 0 and must be
|
|
112
|
+
// skipped. Without this guard automated runs report a synthetic
|
|
113
|
+
// INP whenever the cursor happens to be over content as it paints.
|
|
114
|
+
// See https://github.com/GoogleChrome/web-vitals/blob/main/src/lib/interactions.ts
|
|
115
|
+
if (!entry.interactionId) continue;
|
|
109
116
|
var minLongestInteraction =
|
|
110
117
|
longestInteractionList[longestInteractionList.length - 1];
|
|
111
118
|
var existingInteraction = longestInteractionMap[entry.interactionId];
|
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
const longestInteractionList = [];
|
|
10
10
|
const longestInteractionMap = {};
|
|
11
11
|
for (let entry of entries) {
|
|
12
|
+
// web-vitals only counts entries the browser tagged as part of a
|
|
13
|
+
// discrete interaction; bare events like a `pointerover` fired by
|
|
14
|
+
// a stationary OS cursor get interactionId === 0 and must be
|
|
15
|
+
// skipped. Without this guard automated runs report a synthetic
|
|
16
|
+
// INP whenever the cursor happens to be over content as it paints.
|
|
17
|
+
// See https://github.com/GoogleChrome/web-vitals/blob/main/src/lib/interactions.ts
|
|
18
|
+
if (!entry.interactionId) continue;
|
|
12
19
|
var minLongestInteraction =
|
|
13
20
|
longestInteractionList[longestInteractionList.length - 1];
|
|
14
21
|
var existingInteraction = longestInteractionMap[entry.interactionId];
|
package/package.json
CHANGED