@adobe/helix-rum-enhancer 2.17.1 → 2.18.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.18.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.17.1...v2.18.0) (2024-08-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * **loadresource:** include API calls in `loadresouce` requests for content request counting ([45449c2](https://github.com/adobe/helix-rum-enhancer/commit/45449c2e6a1602d80321f4ffa8698cbd116f1383))
7
+
1
8
  ## [2.17.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.17.0...v2.17.1) (2024-08-02)
2
9
 
3
10
 
package/modules/index.js CHANGED
@@ -146,7 +146,7 @@ function addLoadResourceTracking() {
146
146
  list.getEntries()
147
147
  .filter((entry) => !entry.responseStatus || entry.responseStatus < 400)
148
148
  .filter((entry) => window.location.hostname === new URL(entry.name).hostname)
149
- .filter((entry) => new URL(entry.name).pathname.match('.*(\\.plain\\.html$|\\.json|graphql)'))
149
+ .filter((entry) => new URL(entry.name).pathname.match('.*(\\.plain\\.html$|\\.json|graphql|api)'))
150
150
  .forEach((entry) => {
151
151
  sampleRUM('loadresource', { source: entry.name, target: Math.round(entry.duration) });
152
152
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "2.17.1",
3
+ "version": "2.18.0",
4
4
  "description": "Helix RUM Enhancer",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -48,13 +48,13 @@
48
48
  "eslint": "8.57.0",
49
49
  "eslint-plugin-header": "3.1.1",
50
50
  "eslint-plugin-import": "2.29.1",
51
- "husky": "9.1.3",
51
+ "husky": "9.1.4",
52
52
  "jsdoc-to-markdown": "8.0.3",
53
- "junit-report-builder": "4.0.0",
54
- "lint-staged": "15.2.7",
53
+ "junit-report-builder": "4.0.1",
54
+ "lint-staged": "15.2.8",
55
55
  "mocha": "10.7.0",
56
56
  "mocha-multi-reporters": "1.5.1",
57
- "rollup": "4.19.1",
57
+ "rollup": "4.20.0",
58
58
  "rollup-plugin-cleanup": "3.2.1",
59
59
  "rollup-plugin-eslint-bundle": "9.0.0",
60
60
  "semantic-release": "24.0.0",
package/src/index.js CHANGED
@@ -245,7 +245,7 @@
245
245
  list.getEntries()
246
246
  .filter((entry) => !entry.responseStatus || entry.responseStatus < 400)
247
247
  .filter((entry) => window.location.hostname === new URL(entry.name).hostname)
248
- .filter((entry) => new URL(entry.name).pathname.match('.*(\\.plain\\.html$|\\.json|graphql)'))
248
+ .filter((entry) => new URL(entry.name).pathname.match('.*(\\.plain\\.html$|\\.json|graphql|api)'))
249
249
  .forEach((entry) => {
250
250
  sampleRUM('loadresource', { source: entry.name, target: Math.round(entry.duration) });
251
251
  });