@adobe/helix-html-pipeline 6.29.1 → 6.29.3

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
+ ## [6.29.3](https://github.com/adobe/helix-html-pipeline/compare/v6.29.2...v6.29.3) (2026-05-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * preserve whitespace in section metadata text values ([#1091](https://github.com/adobe/helix-html-pipeline/issues/1091)) ([644e966](https://github.com/adobe/helix-html-pipeline/commit/644e9663bf1c1265d542ddb3381416a40adaa172))
7
+
8
+ ## [6.29.2](https://github.com/adobe/helix-html-pipeline/compare/v6.29.1...v6.29.2) (2026-05-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update robots.txt ([#1089](https://github.com/adobe/helix-html-pipeline/issues/1089)) ([888cbdf](https://github.com/adobe/helix-html-pipeline/commit/888cbdf0355ea1b8d0246da61c4353eaa014ce57))
14
+
1
15
  ## [6.29.1](https://github.com/adobe/helix-html-pipeline/compare/v6.29.0...v6.29.1) (2026-05-04)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.29.1",
3
+ "version": "6.29.3",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -70,7 +70,7 @@
70
70
  "unist-util-visit-parents": "6.0.2"
71
71
  },
72
72
  "devDependencies": {
73
- "@adobe/eslint-config-helix": "3.0.26",
73
+ "@adobe/eslint-config-helix": "3.0.27",
74
74
  "@eslint/config-helpers": "0.5.5",
75
75
  "@markedjs/html-differ": "5.0.5",
76
76
  "@semantic-release/changelog": "6.0.3",
@@ -81,10 +81,10 @@
81
81
  "eslint-import-resolver-exports": "1.0.0-beta.5",
82
82
  "eslint-plugin-header": "3.1.1",
83
83
  "eslint-plugin-import": "2.32.0",
84
- "esmock": "2.7.3",
84
+ "esmock": "2.7.4",
85
85
  "husky": "9.1.7",
86
86
  "js-yaml": "4.1.1",
87
- "jsdom": "29.0.2",
87
+ "jsdom": "29.1.1",
88
88
  "junit-report-builder": "5.1.2",
89
89
  "lint-staged": "16.4.0",
90
90
  "mocha": "11.7.5",
@@ -22,25 +22,27 @@ import initConfig from './steps/init-config.js';
22
22
  const DEFAULT_ROBOTS = `# AEM robots.txt FAQ
23
23
  #
24
24
  # Q: This looks like a default robots.txt, how can I provide my own?
25
- # A: Add the contents of your robots.txt to your site configuration:
26
- # https://labs.aem.live/tools/robots-edit/index.html
25
+ # A: Add the contents of your robots.txt to your site configuration,
26
+ # see: https://tools.aem.live/tools/robots-edit/index.html
27
27
  #
28
28
  # Q: Why am I seeing this robots.txt instead of the one I
29
- # configured?
29
+ # configured?
30
30
  # A: You are visiting from *.aem.page or *.aem.live - in order
31
- # to prevent these sites from showing up in search engines and
32
- # giving you a duplicate content penalty on your real site we
33
- # exclude all robots
31
+ # to prevent these sites from showing up in search engines and
32
+ # giving you a duplicate content penalty on your real site we
33
+ # exclude all robots
34
34
  #
35
- # Q: What do you mean with "real site"?
36
- # A: If you add a custom domain to this site (e.g.
37
- # example.com), then Franklin detects that you are ready for
38
- # production and serves your own robots.txt - but only on
39
- # example.com
35
+ # Q: But this is a production site, shouldn't I see a different
36
+ # robots.txt?
37
+ # A: Make sure that your production host is setup correctly,
38
+ # see: https://tools.aem.live/tools/cdn-setup/index.html and your
39
+ # CDN setup, specifically the x-forwarded-host header, is correct,
40
+ # see: https://www.aem.live/docs/byo-cdn-setup
40
41
  #
41
42
  # Q: This does not answer my questions at all. What can I do?
42
43
  # A: Head to your Teams or Slack channel, or ask us on Discord:
43
- # https://discord.gg/aem-live
44
+ # https://discord.gg/aem-live
45
+ #
44
46
  User-agent: *
45
47
  Disallow: /
46
48
  `;
@@ -31,7 +31,7 @@ function isSectionMetadataEnabled(config) {
31
31
 
32
32
  /**
33
33
  * Extracts a value from a HAST node by collecting image srcs, link hrefs,
34
- * and text tokens (split by comma/whitespace).
34
+ * and text tokens (split by comma only, preserving internal whitespace).
35
35
  * @param {PipelineState} state
36
36
  * @param {object} $value the HAST value node
37
37
  * @returns {string} the extracted value
@@ -50,7 +50,7 @@ function getValueFromNode(state, $value) {
50
50
  return SKIP;
51
51
  }
52
52
  if (node.type === 'text') {
53
- items.push(...node.value.trim().split(/[,\s]+/).filter(Boolean));
53
+ items.push(...node.value.split(',').map((s) => s.trim()).filter(Boolean));
54
54
  }
55
55
  return CONTINUE;
56
56
  });