@adobe/helix-rum-enhancer 1.16.0 → 1.17.0
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.17.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.16.0...v1.17.0) (2024-05-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* enable reportAll for all projects ([0e295ff](https://github.com/adobe/helix-rum-enhancer/commit/0e295ffd65fa72962b397b85b0355fd066163086))
|
|
7
|
+
|
|
1
8
|
# [1.16.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.15.3...v1.16.0) (2024-05-06)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -107,7 +107,6 @@ sampleRUM.drain('cwv', (() => {
|
|
|
107
107
|
sampleRUM('cwv', data);
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
const featureToggle = () => ['blog.adobe.com', 'www.revolt.tv'].includes(window.location.hostname);
|
|
111
110
|
const isEager = (metric) => ['CLS', 'LCP'].includes(metric);
|
|
112
111
|
|
|
113
112
|
// When loading `web-vitals` using a classic script, all the public
|
|
@@ -115,7 +114,7 @@ sampleRUM.drain('cwv', (() => {
|
|
|
115
114
|
['FID', 'INP', 'TTFB', 'CLS', 'LCP'].forEach((metric) => {
|
|
116
115
|
const metricFn = window.webVitals[`on${metric}`];
|
|
117
116
|
if (typeof metricFn === 'function') {
|
|
118
|
-
const opts = isEager(metric) ? { reportAllChanges:
|
|
117
|
+
const opts = isEager(metric) ? { reportAllChanges: true } : undefined;
|
|
119
118
|
metricFn(storeCWV, opts);
|
|
120
119
|
}
|
|
121
120
|
});
|