@adobe/helix-rum-enhancer 2.32.0 → 2.34.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 +14 -0
- package/modules/dom.js +4 -1
- package/modules/fflags.js +1 -1
- package/package.json +5 -5
- package/src/index.js +5 -2
- package/src/index.md5 +1 -1
- package/src/plugins/cwv.md5 +1 -1
- package/src/plugins/form.md5 +1 -1
- package/src/plugins/martech.md5 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [2.34.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.33.0...v2.34.0) (2025-04-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add class in source selector ([#398](https://github.com/adobe/helix-rum-enhancer/issues/398)) ([c72aa0d](https://github.com/adobe/helix-rum-enhancer/commit/c72aa0d66074a66b2ebeed4a625989c040112eee))
|
|
7
|
+
|
|
8
|
+
# [2.33.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.32.0...v2.33.0) (2025-03-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* track all resources loaded on ups.com ([285a495](https://github.com/adobe/helix-rum-enhancer/commit/285a49565b0b96d182cb19923b8e6b93b53c9b00))
|
|
14
|
+
|
|
1
15
|
# [2.32.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.31.1...v2.32.0) (2025-03-11)
|
|
2
16
|
|
|
3
17
|
|
package/modules/dom.js
CHANGED
|
@@ -61,7 +61,10 @@ function getSourceContext(el) {
|
|
|
61
61
|
const formEl = el.closest('form');
|
|
62
62
|
if (formEl) {
|
|
63
63
|
const id = formEl.getAttribute('id');
|
|
64
|
-
|
|
64
|
+
if (id) {
|
|
65
|
+
return `form#${id}`;
|
|
66
|
+
}
|
|
67
|
+
return `form${formEl.classList.length > 0 ? `.${formEl.classList[0]}` : ''}`;
|
|
65
68
|
}
|
|
66
69
|
const block = el.closest('.block[data-block-name]');
|
|
67
70
|
return ((block && `.${block.getAttribute('data-block-name')}`)
|
package/modules/fflags.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-rum-enhancer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.34.0",
|
|
4
4
|
"description": "Helix RUM Enhancer",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@adobe/eslint-config-helix": "2.0.9",
|
|
37
|
-
"@adobe/helix-rum-js": "2.10.
|
|
37
|
+
"@adobe/helix-rum-js": "2.10.5",
|
|
38
38
|
"@esm-bundle/chai": "4.3.4-fix.0",
|
|
39
39
|
"@rollup/plugin-babel": "6.0.4",
|
|
40
40
|
"@semantic-release/changelog": "6.0.3",
|
|
41
41
|
"@semantic-release/git": "10.0.1",
|
|
42
42
|
"@semantic-release/npm": "12.0.1",
|
|
43
|
-
"@web/test-runner": "0.20.
|
|
43
|
+
"@web/test-runner": "0.20.1",
|
|
44
44
|
"@web/test-runner-commands": "0.9.0",
|
|
45
45
|
"@web/test-runner-junit-reporter": "0.8.0",
|
|
46
46
|
"@web/test-runner-mocha": "0.9.0",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"husky": "9.1.7",
|
|
54
54
|
"jsdoc-to-markdown": "9.1.1",
|
|
55
55
|
"junit-report-builder": "5.1.1",
|
|
56
|
-
"lint-staged": "15.
|
|
56
|
+
"lint-staged": "15.5.1",
|
|
57
57
|
"mocha": "11.1.0",
|
|
58
58
|
"mocha-multi-reporters": "1.5.1",
|
|
59
|
-
"rollup": "4.
|
|
59
|
+
"rollup": "4.40.0",
|
|
60
60
|
"rollup-plugin-checksum": "1.0.1",
|
|
61
61
|
"rollup-plugin-eslint-bundle": "9.0.0",
|
|
62
62
|
"semantic-release": "24.2.3",
|
package/src/index.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
redirect: [620, 1139],
|
|
22
22
|
example: [543, 770, 1136],
|
|
23
23
|
language: [543, 959, 1139, 620],
|
|
24
|
-
allresources: [1139]
|
|
24
|
+
allresources: [1139, 457]
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
const KNOWN_PROPERTIES = ['weight', 'id', 'referer', 'checkpoint', 't', 'source', 'target', 'cwv', 'CLS', 'FID', 'LCP', 'INP', 'TTFB'];
|
|
@@ -80,7 +80,10 @@
|
|
|
80
80
|
const formEl = el.closest('form');
|
|
81
81
|
if (formEl) {
|
|
82
82
|
const id = formEl.getAttribute('id');
|
|
83
|
-
|
|
83
|
+
if (id) {
|
|
84
|
+
return `form#${id}`;
|
|
85
|
+
}
|
|
86
|
+
return `form${formEl.classList.length > 0 ? `.${formEl.classList[0]}` : ''}`;
|
|
84
87
|
}
|
|
85
88
|
const block = el.closest('.block[data-block-name]');
|
|
86
89
|
return block && `.${block.getAttribute('data-block-name')}` || walk(el, isDialog) && 'dialog' || ['nav', 'header', 'footer', 'aside'].find(t => el.closest(t)) || walk(el, e => e.id && `#${e.id}`);
|
package/src/index.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ec0f8d360b4b5a3f5b5b84ff90cd98cc
|
package/src/plugins/cwv.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3e1ad711cd0bf058bbf7b6186f2e465f
|
package/src/plugins/form.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c485339de82fa4da1de092c51bd5230a
|
package/src/plugins/martech.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
65c04c4661e32005cec85954ff308008
|