@adobe/helix-rum-enhancer 1.11.1 → 1.13.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 +16 -0
- package/package.json +9 -9
- package/src/index.js +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [1.13.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.12.0...v1.13.0) (2024-03-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* track UTM query parameters ([0f4e8d7](https://github.com/adobe/helix-rum-enhancer/commit/0f4e8d79f9c1808e1c06ddd01ce50364ea32e787))
|
|
7
|
+
* track UTM query parameters ([a5c1620](https://github.com/adobe/helix-rum-enhancer/commit/a5c16201d5cfc30dfe33014d543f2bbfde103bd3))
|
|
8
|
+
* track UTM query parameters (backport) ([c988ee6](https://github.com/adobe/helix-rum-enhancer/commit/c988ee6c198cbd2009600c55504e89487ab3d821)), closes [#137](https://github.com/adobe/helix-rum-enhancer/issues/137)
|
|
9
|
+
|
|
10
|
+
# [1.12.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.11.1...v1.12.0) (2024-03-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **resources:** add missingresource checkpoint behind feature toggle ([204af90](https://github.com/adobe/helix-rum-enhancer/commit/204af900ddcd58fc68ecf57593a98dddec12f36d))
|
|
16
|
+
|
|
1
17
|
## [1.11.1](https://github.com/adobe/helix-rum-enhancer/compare/v1.11.0...v1.11.1) (2024-02-28)
|
|
2
18
|
|
|
3
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-rum-enhancer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Helix RUM Enhancer",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"@adobe/eslint-config-helix": "2.0.6",
|
|
33
33
|
"@semantic-release/changelog": "6.0.3",
|
|
34
34
|
"@semantic-release/git": "10.0.1",
|
|
35
|
-
"@semantic-release/npm": "
|
|
36
|
-
"c8": "9.
|
|
35
|
+
"@semantic-release/npm": "12.0.0",
|
|
36
|
+
"c8": "9.1.0",
|
|
37
37
|
"codecov": "3.8.3",
|
|
38
|
-
"eslint": "8.
|
|
38
|
+
"eslint": "8.57.0",
|
|
39
39
|
"eslint-plugin-header": "3.1.1",
|
|
40
40
|
"eslint-plugin-import": "2.29.1",
|
|
41
|
-
"husky": "
|
|
42
|
-
"jsdoc-to-markdown": "8.0.
|
|
43
|
-
"junit-report-builder": "3.1
|
|
44
|
-
"lint-staged": "15.2.
|
|
45
|
-
"mocha": "10.
|
|
41
|
+
"husky": "9.0.11",
|
|
42
|
+
"jsdoc-to-markdown": "8.0.1",
|
|
43
|
+
"junit-report-builder": "3.2.1",
|
|
44
|
+
"lint-staged": "15.2.2",
|
|
45
|
+
"mocha": "10.3.0",
|
|
46
46
|
"mocha-multi-reporters": "1.5.1",
|
|
47
47
|
"semantic-release": "22.0.12"
|
|
48
48
|
},
|
package/src/index.js
CHANGED
|
@@ -167,5 +167,21 @@ const observer = new PerformanceObserver((list) => {
|
|
|
167
167
|
.forEach((entry) => {
|
|
168
168
|
sampleRUM('loadresource', { source: entry.name, target: Math.round(entry.duration) });
|
|
169
169
|
});
|
|
170
|
+
if (window.origin === 'business.adobe.com') {
|
|
171
|
+
// feature flagged for now
|
|
172
|
+
list.getEntries()
|
|
173
|
+
.filter((entry) => entry.responseStatus === 404)
|
|
174
|
+
.forEach((entry) => {
|
|
175
|
+
sampleRUM('missingresource', { source: entry.name, target: entry.hostname });
|
|
176
|
+
});
|
|
177
|
+
}
|
|
170
178
|
});
|
|
171
179
|
observer.observe({ type: 'resource', buffered: true });
|
|
180
|
+
|
|
181
|
+
const usp = new URLSearchParams(window.location.search);
|
|
182
|
+
[...usp.entries()]
|
|
183
|
+
.filter(([key]) => key.startsWith('utm_'))
|
|
184
|
+
.filter(([key]) => key !== 'utm_id')
|
|
185
|
+
.forEach(([key, value]) => {
|
|
186
|
+
sampleRUM('utm', { source: key, target: value });
|
|
187
|
+
});
|