@adobe/helix-html-pipeline 6.31.4 → 6.32.1

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.32.1](https://github.com/adobe/helix-html-pipeline/compare/v6.32.0...v6.32.1) (2026-09-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/helix-markdown-support to v7.1.26 ([#1139](https://github.com/adobe/helix-html-pipeline/issues/1139)) ([17fd496](https://github.com/adobe/helix-html-pipeline/commit/17fd49628507d9b96cab939a3759356d17c99f02))
7
+
8
+ # [6.32.0](https://github.com/adobe/helix-html-pipeline/compare/v6.31.4...v6.32.0) (2026-09-08)
9
+
10
+
11
+ ### Features
12
+
13
+ * **metadata:** support 'hreflang:' prefix ([#1136](https://github.com/adobe/helix-html-pipeline/issues/1136)) ([746dbb5](https://github.com/adobe/helix-html-pipeline/commit/746dbb53aac7f33d23a3815687f81424ea87960d))
14
+
1
15
  ## [6.31.4](https://github.com/adobe/helix-html-pipeline/compare/v6.31.3...v6.31.4) (2026-09-01)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.31.4",
3
+ "version": "6.32.1",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "node": ">=16.x"
43
43
  },
44
44
  "dependencies": {
45
- "@adobe/helix-markdown-support": "7.1.25",
45
+ "@adobe/helix-markdown-support": "7.1.26",
46
46
  "@adobe/helix-shared-utils": "3.0.2",
47
47
  "@adobe/mdast-util-gridtables": "4.0.19",
48
48
  "@adobe/remark-gridtables": "3.0.20",
@@ -83,10 +83,10 @@
83
83
  "eslint-plugin-import": "2.32.0",
84
84
  "esmock": "2.7.6",
85
85
  "husky": "9.1.7",
86
- "js-yaml": "5.3.0",
86
+ "js-yaml": "5.4.1",
87
87
  "jsdom": "30.0.1",
88
88
  "junit-report-builder": "5.1.2",
89
- "lint-staged": "17.3.0",
89
+ "lint-staged": "17.4.1",
90
90
  "mocha": "11.8.0",
91
91
  "mocha-multi-reporters": "1.5.1",
92
92
  "mocha-suppress-logs": "0.6.0",
@@ -82,7 +82,7 @@ export default async function render(state, req, res) {
82
82
  // eslint-disable-next-line no-continue
83
83
  continue;
84
84
  }
85
- if (name.startsWith('hreflang-')) {
85
+ if (name.startsWith('hreflang:')) {
86
86
  const lang = name.substring(9);
87
87
  if (lang) {
88
88
  appendElement(
@@ -16,9 +16,10 @@
16
16
  */
17
17
  export function toMetaName(text) {
18
18
  const name = text.replace(/[^0-9a-zA-Z:_-]/g, '-');
19
- // preserve case for hreflang language tags (BCP 47)
20
- if (name.toLowerCase().startsWith('hreflang-')) {
21
- return `hreflang-${name.substring(9)}`;
19
+ // preserve case for hreflang language tags (BCP 47) and normalize the prefix
20
+ const lower = name.toLowerCase();
21
+ if (lower.startsWith('hreflang-') || lower.startsWith('hreflang:')) {
22
+ return `hreflang:${name.substring(9)}`;
22
23
  }
23
24
  return name.toLowerCase();
24
25
  }