@adobe/helix-html-pipeline 6.31.3 → 6.32.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 +14 -0
- package/package.json +5 -5
- package/src/steps/render.js +1 -1
- package/src/utils/modifiers.js +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.32.0](https://github.com/adobe/helix-html-pipeline/compare/v6.31.4...v6.32.0) (2026-09-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **metadata:** support 'hreflang:' prefix ([#1136](https://github.com/adobe/helix-html-pipeline/issues/1136)) ([746dbb5](https://github.com/adobe/helix-html-pipeline/commit/746dbb53aac7f33d23a3815687f81424ea87960d))
|
|
7
|
+
|
|
8
|
+
## [6.31.4](https://github.com/adobe/helix-html-pipeline/compare/v6.31.3...v6.31.4) (2026-09-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update adobe fixes ([#1133](https://github.com/adobe/helix-html-pipeline/issues/1133)) ([e086fbb](https://github.com/adobe/helix-html-pipeline/commit/e086fbbccc55af80525b6e7c2d5dfa387f134383))
|
|
14
|
+
|
|
1
15
|
## [6.31.3](https://github.com/adobe/helix-html-pipeline/compare/v6.31.2...v6.31.3) (2026-08-27)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.32.0",
|
|
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.
|
|
45
|
+
"@adobe/helix-markdown-support": "7.1.25",
|
|
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",
|
|
@@ -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.
|
|
73
|
+
"@adobe/eslint-config-helix": "3.0.31",
|
|
74
74
|
"@eslint/config-helpers": "0.7.0",
|
|
75
75
|
"@markedjs/html-differ": "5.0.5",
|
|
76
76
|
"@semantic-release/changelog": "7.0.0",
|
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
"eslint-plugin-import": "2.32.0",
|
|
84
84
|
"esmock": "2.7.6",
|
|
85
85
|
"husky": "9.1.7",
|
|
86
|
-
"js-yaml": "5.
|
|
86
|
+
"js-yaml": "5.3.0",
|
|
87
87
|
"jsdom": "30.0.1",
|
|
88
88
|
"junit-report-builder": "5.1.2",
|
|
89
89
|
"lint-staged": "17.3.0",
|
|
90
90
|
"mocha": "11.8.0",
|
|
91
91
|
"mocha-multi-reporters": "1.5.1",
|
|
92
92
|
"mocha-suppress-logs": "0.6.0",
|
|
93
|
-
"semantic-release": "25.0.
|
|
93
|
+
"semantic-release": "25.0.9"
|
|
94
94
|
},
|
|
95
95
|
"lint-staged": {
|
|
96
96
|
"*.js": "eslint",
|
package/src/steps/render.js
CHANGED
|
@@ -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(
|
package/src/utils/modifiers.js
CHANGED
|
@@ -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
|
-
|
|
21
|
-
|
|
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
|
}
|