@adobe/helix-rum-enhancer
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -0,1 +1,9 @@ | ||
# [1.7.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.6.0...v1.7.0) (2023-10-31) | ||
### Features | ||
* **checkpoint:** new loadresource checkpoint ([d818efc](https://github.com/adobe/helix-rum-enhancer/commit/d818efc854241119979300387b3dcd4d59c6c8f5)) | ||
* **checkpoint:** introduce new resource checkpoint ([2845a20](https://github.com/adobe/helix-rum-enhancer/commit/2845a202281c09f1c75b4e8a52de000663410b1c)) | ||
# [1.6.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.5.0...v1.6.0) (2023-10-18) | ||
@@ -2,0 +10,0 @@ |
{ | ||
"name": "@adobe/helix-rum-enhancer", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Helix RUM Enhancer", | ||
@@ -31,3 +31,3 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"@adobe/eslint-config-helix": "2.0.3", | ||
"@adobe/eslint-config-helix": "2.0.4", | ||
"@semantic-release/changelog": "6.0.3", | ||
@@ -38,9 +38,9 @@ "@semantic-release/git": "10.0.1", | ||
"codecov": "3.8.3", | ||
"eslint": "8.51.0", | ||
"eslint": "8.52.0", | ||
"eslint-plugin-header": "3.1.1", | ||
"eslint-plugin-import": "2.28.1", | ||
"eslint-plugin-import": "2.29.0", | ||
"husky": "8.0.3", | ||
"jsdoc-to-markdown": "8.0.0", | ||
"junit-report-builder": "3.1.0", | ||
"lint-staged": "15.0.1", | ||
"lint-staged": "15.0.2", | ||
"mocha": "10.2.0", | ||
@@ -47,0 +47,0 @@ "mocha-multi-reporters": "1.5.1", |
@@ -137,1 +137,13 @@ /* | ||
window.addEventListener('pagehide', ((event) => sampleRUM.leave(event))); | ||
if (window.location.hostname === 'blog.adobe.com') { | ||
const observer = new PerformanceObserver((list) => { | ||
list.getEntries() | ||
.filter((entry) => !entry.responseStatus || entry.responseStatus < 400) | ||
.filter((entry) => new URL(entry.name).pathname.match('.*(\\.plain\\.html|\\.json)$')) | ||
.forEach((entry) => { | ||
sampleRUM('loadresource', { source: entry.name, target: Math.round(entry.duration) }); | ||
}); | ||
}); | ||
observer.observe({ type: 'resource', buffered: true }); | ||
} |
35924
195