@adobe/helix-rum-enhancer
Advanced tools
Comparing version 1.13.2 to 1.14.0
@@ -0,1 +1,13 @@ | ||
# [1.14.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.13.2...v1.14.0) (2024-04-16) | ||
### Bug Fixes | ||
* pr reviews ([8c1a9ae](https://github.com/adobe/helix-rum-enhancer/commit/8c1a9ae8af07baf9d230a428d612f6e9693ca692)) | ||
### Features | ||
* report source and target along with lcp event ([5846b71](https://github.com/adobe/helix-rum-enhancer/commit/5846b7110d0acda3789274ddf6b5d3ac43d196eb)) | ||
## [1.13.2](https://github.com/adobe/helix-rum-enhancer/compare/v1.13.1...v1.13.2) (2024-03-27) | ||
@@ -2,0 +14,0 @@ |
{ | ||
"name": "@adobe/helix-rum-enhancer", | ||
"version": "1.13.2", | ||
"version": "1.14.0", | ||
"description": "Helix RUM Enhancer", | ||
@@ -45,3 +45,3 @@ "main": "src/index.js", | ||
"lint-staged": "15.2.2", | ||
"mocha": "10.3.0", | ||
"mocha": "10.4.0", | ||
"mocha-multi-reporters": "1.5.1", | ||
@@ -48,0 +48,0 @@ "semantic-release": "22.0.12" |
@@ -92,2 +92,9 @@ /* | ||
data.cwv[measurement.name] = measurement.value; | ||
if (measurement.name === 'LCP' && measurement.entries.length > 0) { | ||
const { element } = measurement.entries.pop(); | ||
data.target = sampleRUM.targetselector(element); | ||
data.source = sampleRUM.sourceselector(element) || element.outerHTML.slice(0, 30); | ||
} | ||
sampleRUM('cwv', data); | ||
@@ -94,0 +101,0 @@ }; |
41744
233