@adobe/helix-rum-enhancer 2.40.2 → 2.41.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.41.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.40.2...v2.41.0) (2025-10-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * tracking language/redirect checkpoint for all customers ([#484](https://github.com/adobe/helix-rum-enhancer/issues/484)) ([1577df7](https://github.com/adobe/helix-rum-enhancer/commit/1577df7e04da7c075f4d77464bbeb4544e45c2a8))
7
+
1
8
  ## [2.40.2](https://github.com/adobe/helix-rum-enhancer/compare/v2.40.1...v2.40.2) (2025-09-01)
2
9
 
3
10
 
package/modules/fflags.js CHANGED
@@ -16,9 +16,7 @@ export const fflags = {
16
16
  enabled: (f, c) => fflags.has(f) && c(),
17
17
  disabled: (f, c) => !fflags.has(f) && c(),
18
18
  eagercwv: [683],
19
- redirect: [620, 1139],
20
19
  example: [543, 770, 1136],
21
- language: [543, 959, 1139, 620],
22
20
  allresources: [543, 1139],
23
21
  a11y: [557, 781, 897, 955, 959],
24
22
  };
package/modules/index.js CHANGED
@@ -217,12 +217,10 @@ function addNavigationTracking() {
217
217
  } else {
218
218
  sampleRUM('enter', payload); // enter site
219
219
  }
220
- fflags.enabled('redirect', () => {
221
- const from = new URLSearchParams(window.location.search).get('redirect_from');
222
- if (redirectCount || from) {
223
- sampleRUM('redirect', { source: from, target: redirectCount || 1 });
224
- }
225
- });
220
+ const from = new URLSearchParams(window.location.search).get('redirect_from');
221
+ if (redirectCount || from) {
222
+ sampleRUM('redirect', { source: from, target: redirectCount || 1 });
223
+ }
226
224
  };
227
225
 
228
226
  const processed = new Set(); // avoid processing duplicate types
@@ -354,11 +352,9 @@ function addTrackingFromConfig() {
354
352
  // Tracking extensions
355
353
  loadPlugins();
356
354
 
357
- fflags.enabled('language', () => {
358
- const target = navigator.language;
359
- const source = document.documentElement.lang;
360
- sampleRUM('language', { source, target });
361
- });
355
+ const target = navigator.language;
356
+ const source = document.documentElement.lang;
357
+ sampleRUM('language', { source, target });
362
358
  }
363
359
 
364
360
  function initEnhancer() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "2.40.2",
3
+ "version": "2.41.0",
4
4
  "description": "Helix RUM Enhancer",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -33,10 +33,10 @@
33
33
  "reporter-options": "configFile=.mocha-multi.json"
34
34
  },
35
35
  "devDependencies": {
36
- "@adobe/eslint-config-helix": "3.0.9",
36
+ "@adobe/eslint-config-helix": "3.0.10",
37
37
  "@adobe/helix-rum-js": "2.12.2",
38
38
  "@adobe/rollup-plugin-checksum": "1.2.0",
39
- "@eslint/config-helpers": "0.3.1",
39
+ "@eslint/config-helpers": "0.4.0",
40
40
  "@esm-bundle/chai": "4.3.4-fix.0",
41
41
  "@rollup/plugin-babel": "6.0.4",
42
42
  "@semantic-release/changelog": "6.0.3",
@@ -53,16 +53,16 @@
53
53
  "eslint": "9.30.1",
54
54
  "eslint-plugin-header": "3.1.1",
55
55
  "eslint-plugin-import": "2.32.0",
56
- "globals": "16.3.0",
56
+ "globals": "16.4.0",
57
57
  "husky": "9.1.7",
58
58
  "jsdoc-to-markdown": "9.1.2",
59
59
  "junit-report-builder": "5.1.1",
60
- "lint-staged": "16.1.5",
61
- "mocha": "11.7.1",
60
+ "lint-staged": "16.2.0",
61
+ "mocha": "11.7.2",
62
62
  "mocha-multi-reporters": "1.5.1",
63
- "rollup": "4.50.0",
63
+ "rollup": "4.52.0",
64
64
  "rollup-plugin-eslint-bundle": "9.0.0",
65
- "semantic-release": "24.2.7",
65
+ "semantic-release": "24.2.9",
66
66
  "semantic-release-slack-bot": "^4.0.2",
67
67
  "web-vitals": "5.1.0"
68
68
  },
package/src/index.js CHANGED
@@ -18,9 +18,7 @@
18
18
  enabled: (f, c) => fflags.has(f) && c(),
19
19
  disabled: (f, c) => !fflags.has(f) && c(),
20
20
  eagercwv: [683],
21
- redirect: [620, 1139],
22
21
  example: [543, 770, 1136],
23
- language: [543, 959, 1139, 620],
24
22
  allresources: [543, 1139],
25
23
  a11y: [557, 781, 897, 955, 959]
26
24
  };
@@ -308,15 +306,13 @@
308
306
  } else {
309
307
  sampleRUM('enter', payload);
310
308
  }
311
- fflags.enabled('redirect', () => {
312
- const from = new URLSearchParams(window.location.search).get('redirect_from');
313
- if (redirectCount || from) {
314
- sampleRUM('redirect', {
315
- source: from,
316
- target: redirectCount || 1
317
- });
318
- }
319
- });
309
+ const from = new URLSearchParams(window.location.search).get('redirect_from');
310
+ if (redirectCount || from) {
311
+ sampleRUM('redirect', {
312
+ source: from,
313
+ target: redirectCount || 1
314
+ });
315
+ }
320
316
  };
321
317
  const processed = new Set();
322
318
  new PerformanceObserver(list => list.getEntries().filter(({
@@ -424,13 +420,11 @@
424
420
  addViewBlockTracking(document.body);
425
421
  addViewMediaTracking(document.body);
426
422
  loadPlugins();
427
- fflags.enabled('language', () => {
428
- const target = navigator.language;
429
- const source = document.documentElement.lang;
430
- sampleRUM('language', {
431
- source,
432
- target
433
- });
423
+ const target = navigator.language;
424
+ const source = document.documentElement.lang;
425
+ sampleRUM('language', {
426
+ source,
427
+ target
434
428
  });
435
429
  }
436
430
  function initEnhancer() {
package/src/index.md5 CHANGED
@@ -1 +1 @@
1
- 143b050b3e47dc13100a8c7f4b515750
1
+ cb37696dfeac0fbfaaa5df6fd45f35e6
package/src/index.sri CHANGED
@@ -1 +1 @@
1
- sha384-FqFNdqcSBruRisrm/Gv3AR5041QDSfvIl5UztBqsOUmGFceCiitKjP7sns4woGs8
1
+ sha384-ypbqCoXRZ7tp+5FmOXF6lim2OxTiSO4vEKbpGgEM5NM+XWXV7WCeVhF8KWjBCbHW
@@ -1 +1 @@
1
- ca3630c51ee48da2595696b4b11cb586
1
+ 411af2624f736f7385cfb1230be854c3
@@ -1 +1 @@
1
- 907a29e9b683d52ab45c0fc02038916e
1
+ b4b27fd1bc3bb7a309c377448c22529c
@@ -1 +1 @@
1
- 20d1f82b8a8c89e965f951484f200f35
1
+ 90fa0790108137f0cb4c44345d2e577f