@adobe/helix-rum-enhancer 2.45.0 → 2.46.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,17 @@
1
+ # [2.46.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.45.1...v2.46.0) (2026-02-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * add image tracking for allresources flag ([#536](https://github.com/adobe/helix-rum-enhancer/issues/536)) ([01df2a4](https://github.com/adobe/helix-rum-enhancer/commit/01df2a4a944277bd991f3e8da313f17e19d98d13))
7
+
8
+ ## [2.45.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.45.0...v2.45.1) (2026-02-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * remove blackbar-only TrustArc detection ([#532](https://github.com/adobe/helix-rum-enhancer/issues/532)) ([7fe4efc](https://github.com/adobe/helix-rum-enhancer/commit/7fe4efc196afd189b6dca73ea7e9eb8307f5936f))
14
+
1
15
  # [2.45.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.44.2...v2.45.0) (2026-01-21)
2
16
 
3
17
 
package/modules/fflags.js CHANGED
@@ -17,6 +17,6 @@ export const fflags = {
17
17
  disabled: (f, c) => !fflags.has(f) && c(),
18
18
  eagercwv: [683],
19
19
  example: [543, 770, 1136],
20
- allresources: [543, 1139],
20
+ allresources: [543, 1139, 397],
21
21
  a11y: [557, 781, 897, 955, 959],
22
22
  };
package/modules/index.js CHANGED
@@ -39,7 +39,7 @@ const CONSENT_PROVIDERS = [
39
39
  },
40
40
  {
41
41
  name: 'trustarc',
42
- detect: () => ['notice_gdpr_prefs', 'notice_preferences'].some(hasCookieKey) || document.querySelector('#truste-consent-track, #consent_blackbar'),
42
+ detect: () => ['notice_gdpr_prefs', 'notice_preferences'].some(hasCookieKey) || document.querySelector('#truste-consent-track'),
43
43
  },
44
44
  {
45
45
  name: 'usercentrics',
@@ -257,7 +257,8 @@ function addLoadResourceTracking() {
257
257
  : '.*(\\.plain\\.html$|\\.json|graphql|api)',
258
258
  );
259
259
  const isDropIn = fflags.has('allresources') && (pathname.includes('__dropins__/storefront-') || pathname.includes('scripts/dropins/storefront-'));
260
- return extensionMatch || isDropIn;
260
+ const isImage = fflags.has('allresources') && pathname.match(/\.(png|jpe?g|svg)$/i);
261
+ return extensionMatch || isDropIn || isImage;
261
262
  })
262
263
  .forEach((e) => {
263
264
  sampleRUM('loadresource', { source: e.name, target: Math.round(e.duration) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "2.45.0",
3
+ "version": "2.46.0",
4
4
  "description": "Helix RUM Enhancer",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "@adobe/eslint-config-helix": "3.0.13",
37
37
  "@adobe/helix-rum-js": "2.13.6",
38
38
  "@adobe/rollup-plugin-checksum": "1.2.0",
39
- "@eslint/config-helpers": "0.5.0",
39
+ "@eslint/config-helpers": "0.5.2",
40
40
  "@esm-bundle/chai": "4.3.4-fix.0",
41
41
  "@rollup/plugin-babel": "6.1.0",
42
42
  "@semantic-release/changelog": "6.0.3",
@@ -60,9 +60,9 @@
60
60
  "lint-staged": "16.2.7",
61
61
  "mocha": "11.7.5",
62
62
  "mocha-multi-reporters": "1.5.1",
63
- "rollup": "4.55.1",
63
+ "rollup": "4.57.1",
64
64
  "rollup-plugin-eslint-bundle": "9.0.0",
65
- "semantic-release": "25.0.2",
65
+ "semantic-release": "25.0.3",
66
66
  "semantic-release-slack-bot": "^4.0.2",
67
67
  "web-vitals": "5.1.0"
68
68
  },
package/src/index.js CHANGED
@@ -19,7 +19,7 @@
19
19
  disabled: (f, c) => !fflags.has(f) && c(),
20
20
  eagercwv: [683],
21
21
  example: [543, 770, 1136],
22
- allresources: [543, 1139],
22
+ allresources: [543, 1139, 397],
23
23
  a11y: [557, 781, 897, 955, 959]
24
24
  };
25
25
 
@@ -131,7 +131,7 @@
131
131
  detect: () => hasCookieKey('OptanonAlertBoxClosed') || document.querySelector('#onetrust-banner-sdk, #onetrust-pc-sdk')
132
132
  }, {
133
133
  name: 'trustarc',
134
- detect: () => ['notice_gdpr_prefs', 'notice_preferences'].some(hasCookieKey) || document.querySelector('#truste-consent-track, #consent_blackbar')
134
+ detect: () => ['notice_gdpr_prefs', 'notice_preferences'].some(hasCookieKey) || document.querySelector('#truste-consent-track')
135
135
  }, {
136
136
  name: 'usercentrics',
137
137
  detect: () => window.localStorage.getItem('uc_gcm') || document.querySelector('#usercentrics-root')
@@ -340,7 +340,8 @@
340
340
  } = new URL(e.name);
341
341
  const extensionMatch = pathname.match(hostname !== window.location.hostname ? '.*(\\.html$|\\.json|\\.js|graphql|api)' : '.*(\\.plain\\.html$|\\.json|graphql|api)');
342
342
  const isDropIn = fflags.has('allresources') && (pathname.includes('__dropins__/storefront-') || pathname.includes('scripts/dropins/storefront-'));
343
- return extensionMatch || isDropIn;
343
+ const isImage = fflags.has('allresources') && pathname.match(/\.(png|jpe?g|svg)$/i);
344
+ return extensionMatch || isDropIn || isImage;
344
345
  }).forEach(e => {
345
346
  sampleRUM('loadresource', {
346
347
  source: e.name,
package/src/index.md5 CHANGED
@@ -1 +1 @@
1
- a50ddb985eff3e6efe9d073e5f047da4
1
+ b9c650a69e3248bc8666c1268570f5a9
package/src/index.sri CHANGED
@@ -1 +1 @@
1
- sha384-/ZrdSEVuJfpAKMwewMHl+Z/eTu+o2Rb7zAXpQO714IjAooUHFAQ/2VugFVhcsnXU
1
+ sha384-8K8JzOS/Wn/gjv5NjyMAnGcI97s6ynBGgps6vWt7B01KqJyQko6jK0q9KW1fe5Yk
@@ -1 +1 @@
1
- 83098edb2dc04573f9aac3987a7f1bae
1
+ 4d477d96ade6db3644031c8335095934
@@ -1 +1 @@
1
- ac0a97e1c4b43a11eed0a7c4f50389cf
1
+ 214afb5bc6408240a88bae4d20224cf3
@@ -1 +1 @@
1
- d241929d3af96465ac32a4158c0e0fe8
1
+ ebe320b3bc258db22786d472559793c1
@@ -1 +1 @@
1
- 20d1f82b8a8c89e965f951484f200f35
1
+ 90fa0790108137f0cb4c44345d2e577f