@adobe/helix-rum-enhancer 1.22.0 → 1.23.1
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 +22 -0
- package/package.json +8 -8
- package/src/index.js +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [1.23.1](https://github.com/adobe/helix-rum-enhancer/compare/v1.23.0...v1.23.1) (2024-08-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* trigger release ([94170ea](https://github.com/adobe/helix-rum-enhancer/commit/94170ea88b802549fb8d2d74c1fab743468dd594))
|
|
7
|
+
|
|
8
|
+
# [1.23.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.22.0...v1.23.0) (2024-08-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* source can be null ([#220](https://github.com/adobe/helix-rum-enhancer/issues/220)) ([4fe7ec4](https://github.com/adobe/helix-rum-enhancer/commit/4fe7ec4e0dae6f226bb2cc349dcf8aee59511d10))
|
|
14
|
+
* trigger semantic release ([2756bd2](https://github.com/adobe/helix-rum-enhancer/commit/2756bd28c68e51c072cbb89ec9e7114c538c387f))
|
|
15
|
+
* trigger semantic release ([ce6306e](https://github.com/adobe/helix-rum-enhancer/commit/ce6306e509fd60b376505a82966e1750e4652109))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **email:** rollout for all customers 1.x ([#221](https://github.com/adobe/helix-rum-enhancer/issues/221)) ([a8f7402](https://github.com/adobe/helix-rum-enhancer/commit/a8f74020ac01b17352021a64a8a8a3f3ef54673c))
|
|
21
|
+
* **paid:** roll out the paid checkpoint for all customers ([#214](https://github.com/adobe/helix-rum-enhancer/issues/214)) ([86cabf3](https://github.com/adobe/helix-rum-enhancer/commit/86cabf322c5c1b98b33327d0afe7bbe8025aab29))
|
|
22
|
+
|
|
1
23
|
# [1.22.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.21.1...v1.22.0) (2024-06-10)
|
|
2
24
|
|
|
3
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-rum-enhancer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.1",
|
|
4
4
|
"description": "Helix RUM Enhancer",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"@semantic-release/git": "10.0.1",
|
|
39
39
|
"@semantic-release/npm": "12.0.1",
|
|
40
40
|
"@web/test-runner": "0.18.2",
|
|
41
|
-
"@web/test-runner-core": "0.13.
|
|
41
|
+
"@web/test-runner-core": "0.13.3",
|
|
42
42
|
"@web/test-runner-mocha": "0.9.0",
|
|
43
43
|
"@web/test-runner-playwright": "0.11.0",
|
|
44
|
-
"c8": "
|
|
44
|
+
"c8": "10.1.2",
|
|
45
45
|
"codecov": "3.8.3",
|
|
46
46
|
"eslint": "8.57.0",
|
|
47
47
|
"eslint-plugin-header": "3.1.1",
|
|
48
48
|
"eslint-plugin-import": "2.29.1",
|
|
49
|
-
"husky": "9.
|
|
50
|
-
"jsdoc-to-markdown": "8.0.
|
|
51
|
-
"junit-report-builder": "
|
|
52
|
-
"lint-staged": "15.2.
|
|
53
|
-
"mocha": "10.
|
|
49
|
+
"husky": "9.1.3",
|
|
50
|
+
"jsdoc-to-markdown": "8.0.3",
|
|
51
|
+
"junit-report-builder": "4.0.0",
|
|
52
|
+
"lint-staged": "15.2.7",
|
|
53
|
+
"mocha": "10.7.0",
|
|
54
54
|
"mocha-multi-reporters": "1.5.1",
|
|
55
55
|
"semantic-release": "24.0.0"
|
|
56
56
|
},
|
package/src/index.js
CHANGED
|
@@ -18,8 +18,6 @@ const fflags = {
|
|
|
18
18
|
enabled: (flag, callback) => fflags.has(flag) && callback(),
|
|
19
19
|
disabled: (flag, callback) => !fflags.has(flag) && callback(),
|
|
20
20
|
onetrust: [543, 770, 1136],
|
|
21
|
-
ads: [1139, 543, 770, 984],
|
|
22
|
-
email: [1139, 543, 770, 984],
|
|
23
21
|
};
|
|
24
22
|
|
|
25
23
|
sampleRUM.baseURL = sampleRUM.baseURL || new URL('https://rum.hlx.page');
|
|
@@ -111,8 +109,8 @@ sampleRUM.drain('cwv', (() => {
|
|
|
111
109
|
|
|
112
110
|
if (measurement.name === 'LCP' && measurement.entries.length > 0) {
|
|
113
111
|
const { element: el } = measurement.entries.pop();
|
|
114
|
-
data.target = sampleRUM.targetselector(el);
|
|
115
|
-
data.source = sampleRUM.sourceselector(el) || (el && el.outerHTML.slice(0, 30));
|
|
112
|
+
data.target = sampleRUM.targetselector(el) || '';
|
|
113
|
+
data.source = sampleRUM.sourceselector(el) || (el && el.outerHTML.slice(0, 30)) || '';
|
|
116
114
|
}
|
|
117
115
|
|
|
118
116
|
sampleRUM('cwv', data);
|
|
@@ -241,7 +239,8 @@ fflags.enabled('onetrust', () => {
|
|
|
241
239
|
}
|
|
242
240
|
});
|
|
243
241
|
|
|
244
|
-
|
|
242
|
+
// paid checkpoint
|
|
243
|
+
(() => {
|
|
245
244
|
const networks = {
|
|
246
245
|
google: /gclid|gclsrc|wbraid|gbraid/,
|
|
247
246
|
doubleclick: /dclid/,
|
|
@@ -256,9 +255,10 @@ fflags.enabled('ads', () => {
|
|
|
256
255
|
Object.entries(networks).forEach(([network, regex]) => {
|
|
257
256
|
params.filter((param) => regex.test(param)).forEach((param) => sampleRUM('paid', { source: network, target: param }));
|
|
258
257
|
});
|
|
259
|
-
});
|
|
258
|
+
})();
|
|
260
259
|
|
|
261
|
-
|
|
260
|
+
// email checkpoint
|
|
261
|
+
(() => {
|
|
262
262
|
const networks = {
|
|
263
263
|
mailchimp: /mc_(c|e)id/,
|
|
264
264
|
marketo: /mkt_tok/,
|
|
@@ -268,4 +268,4 @@ fflags.enabled('email', () => {
|
|
|
268
268
|
Object.entries(networks).forEach(([network, regex]) => {
|
|
269
269
|
params.filter((param) => regex.test(param)).forEach((param) => sampleRUM('email', { source: network, target: param }));
|
|
270
270
|
});
|
|
271
|
-
});
|
|
271
|
+
})();
|