@adobe/helix-rum-enhancer 2.43.0 → 2.44.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.44.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.43.0...v2.44.0) (2025-10-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * track js and html resources from external domains ([#503](https://github.com/adobe/helix-rum-enhancer/issues/503)) ([ff512bb](https://github.com/adobe/helix-rum-enhancer/commit/ff512bbb04fc51b442359301480073d9264d57a6))
7
+
1
8
  # [2.43.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.42.4...v2.43.0) (2025-10-22)
2
9
 
3
10
 
package/modules/index.js CHANGED
@@ -250,7 +250,16 @@ function addLoadResourceTracking() {
250
250
  entries
251
251
  .filter((e) => !e.responseStatus || e.responseStatus < 400)
252
252
  .filter((e) => window.location.hostname === new URL(e.name).hostname || fflags.has('allresources'))
253
- .filter((e) => new URL(e.name).pathname.match('.*(\\.plain\\.html$|\\.json|graphql|api)') || (fflags.has('allresources') && (new URL(e.name).pathname.includes('__dropins__/storefront-') || new URL(e.name).pathname.includes('scripts/dropins/storefront-'))))
253
+ .filter((e) => {
254
+ const { pathname, hostname } = new URL(e.name);
255
+ const extensionMatch = pathname.match(
256
+ hostname !== window.location.hostname
257
+ ? '.*(\\.html$|\\.json|\\.js|graphql|api)'
258
+ : '.*(\\.plain\\.html$|\\.json|graphql|api)',
259
+ );
260
+ const isDropIn = fflags.has('allresources') && (pathname.includes('__dropins__/storefront-') || pathname.includes('scripts/dropins/storefront-'));
261
+ return extensionMatch || isDropIn;
262
+ })
254
263
  .forEach((e) => {
255
264
  sampleRUM('loadresource', { source: e.name, target: Math.round(e.duration) });
256
265
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "2.43.0",
3
+ "version": "2.44.0",
4
4
  "description": "Helix RUM Enhancer",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -334,7 +334,15 @@
334
334
  const observer = new PerformanceObserver(list => {
335
335
  try {
336
336
  const entries = list.getEntries();
337
- entries.filter(e => !e.responseStatus || e.responseStatus < 400).filter(e => window.location.hostname === new URL(e.name).hostname || fflags.has('allresources')).filter(e => new URL(e.name).pathname.match('.*(\\.plain\\.html$|\\.json|graphql|api)') || fflags.has('allresources') && (new URL(e.name).pathname.includes('__dropins__/storefront-') || new URL(e.name).pathname.includes('scripts/dropins/storefront-'))).forEach(e => {
337
+ entries.filter(e => !e.responseStatus || e.responseStatus < 400).filter(e => window.location.hostname === new URL(e.name).hostname || fflags.has('allresources')).filter(e => {
338
+ const {
339
+ pathname,
340
+ hostname
341
+ } = new URL(e.name);
342
+ const extensionMatch = pathname.match(hostname !== window.location.hostname ? '.*(\\.html$|\\.json|\\.js|graphql|api)' : '.*(\\.plain\\.html$|\\.json|graphql|api)');
343
+ const isDropIn = fflags.has('allresources') && (pathname.includes('__dropins__/storefront-') || pathname.includes('scripts/dropins/storefront-'));
344
+ return extensionMatch || isDropIn;
345
+ }).forEach(e => {
338
346
  sampleRUM('loadresource', {
339
347
  source: e.name,
340
348
  target: Math.round(e.duration)
package/src/index.md5 CHANGED
@@ -1 +1 @@
1
- 7fff4d07aeb579ec049d5d061d2f7f81
1
+ 55b1128ec28268801a506ca3ba02e344
package/src/index.sri CHANGED
@@ -1 +1 @@
1
- sha384-xpEanSFpw/+Q+q8VSZptdQLRHuYSu/y5ebfVx6zriz35TsWMeGOOzJxgCFkZgE/E
1
+ sha384-VosLASRx7DNO3LKUFFVMgcqlBdUzQp8iYtO5V+vKLBOVwf2vWi2qOQYloBWc++NJ
@@ -1 +1 @@
1
- 214afb5bc6408240a88bae4d20224cf3
1
+ ac0a97e1c4b43a11eed0a7c4f50389cf
@@ -1 +1 @@
1
- 866b5825b7bdb273170fbab6fa8099bb
1
+ 5a20c1d914d19b130034e4df532b8b4d
@@ -1 +1 @@
1
- c00518b019647f564ce00dce9d07c74b
1
+ 4b5cf6c41be188be11c519f419592e7e
@@ -1 +1 @@
1
- b4b27fd1bc3bb7a309c377448c22529c
1
+ 907a29e9b683d52ab45c0fc02038916e
@@ -1 +1 @@
1
- 90fa0790108137f0cb4c44345d2e577f
1
+ 20d1f82b8a8c89e965f951484f200f35