@adobe/helix-html-pipeline 6.27.25 → 6.27.27
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 +6 -6
- package/src/steps/render.js +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.27.27](https://github.com/adobe/helix-html-pipeline/compare/v6.27.26...v6.27.27) (2026-03-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* hreflang attribute values not spec-compliant ([#1049](https://github.com/adobe/helix-html-pipeline/issues/1049)) ([5299eae](https://github.com/adobe/helix-html-pipeline/commit/5299eaef0a5ee4d6653765651d8e9c33db37a77d))
|
|
7
|
+
|
|
8
|
+
## [6.27.26](https://github.com/adobe/helix-html-pipeline/compare/v6.27.25...v6.27.26) (2026-03-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency @adobe/mdast-util-gridtables to v4.0.18 ([#1052](https://github.com/adobe/helix-html-pipeline/issues/1052)) ([9c79963](https://github.com/adobe/helix-html-pipeline/commit/9c7996303af9640ccf7f07eb6e37192536f635fc))
|
|
14
|
+
|
|
1
15
|
## [6.27.25](https://github.com/adobe/helix-html-pipeline/compare/v6.27.24...v6.27.25) (2026-03-10)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "6.27.
|
|
3
|
+
"version": "6.27.27",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@adobe/helix-markdown-support": "7.1.18",
|
|
46
46
|
"@adobe/helix-shared-utils": "3.0.2",
|
|
47
|
-
"@adobe/mdast-util-gridtables": "4.0.
|
|
47
|
+
"@adobe/mdast-util-gridtables": "4.0.18",
|
|
48
48
|
"@adobe/remark-gridtables": "3.0.18",
|
|
49
49
|
"github-slugger": "2.0.0",
|
|
50
50
|
"hast-util-raw": "9.1.0",
|
|
@@ -70,13 +70,13 @@
|
|
|
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.22",
|
|
74
74
|
"@eslint/config-helpers": "0.5.2",
|
|
75
75
|
"@markedjs/html-differ": "5.0.4",
|
|
76
76
|
"@semantic-release/changelog": "6.0.3",
|
|
77
77
|
"@semantic-release/git": "10.0.1",
|
|
78
|
-
"@semantic-release/npm": "13.1.
|
|
79
|
-
"c8": "
|
|
78
|
+
"@semantic-release/npm": "13.1.5",
|
|
79
|
+
"c8": "11.0.0",
|
|
80
80
|
"eslint": "9.4.0",
|
|
81
81
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
|
82
82
|
"eslint-plugin-header": "3.1.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"js-yaml": "4.1.1",
|
|
87
87
|
"jsdom": "28.1.0",
|
|
88
88
|
"junit-report-builder": "5.1.1",
|
|
89
|
-
"lint-staged": "16.2
|
|
89
|
+
"lint-staged": "16.3.2",
|
|
90
90
|
"mocha": "11.7.5",
|
|
91
91
|
"mocha-multi-reporters": "1.5.1",
|
|
92
92
|
"mocha-suppress-logs": "0.6.0",
|
package/src/steps/render.js
CHANGED
|
@@ -17,12 +17,6 @@ import rehypeParse from 'rehype-parse';
|
|
|
17
17
|
import { cleanupHeaderValue } from '@adobe/helix-shared-utils';
|
|
18
18
|
import { contentSecurityPolicyOnAST } from './csp.js';
|
|
19
19
|
|
|
20
|
-
function formatLang(lang) {
|
|
21
|
-
return lang
|
|
22
|
-
.replaceAll('_', '-')
|
|
23
|
-
.toLowerCase();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
20
|
function appendElement($parent, $el) {
|
|
27
21
|
if ($el) {
|
|
28
22
|
$parent.children.push($el);
|
|
@@ -83,7 +77,7 @@ export default async function render(state, req, res) {
|
|
|
83
77
|
}
|
|
84
78
|
if (name.toLowerCase() === 'html-lang') {
|
|
85
79
|
if (value) {
|
|
86
|
-
htmlLang =
|
|
80
|
+
htmlLang = value;
|
|
87
81
|
}
|
|
88
82
|
// eslint-disable-next-line no-continue
|
|
89
83
|
continue;
|
|
@@ -93,7 +87,7 @@ export default async function render(state, req, res) {
|
|
|
93
87
|
if (lang) {
|
|
94
88
|
appendElement(
|
|
95
89
|
$head,
|
|
96
|
-
createElement('link', 'rel', 'alternate', 'hreflang',
|
|
90
|
+
createElement('link', 'rel', 'alternate', 'hreflang', lang, 'href', value),
|
|
97
91
|
);
|
|
98
92
|
}
|
|
99
93
|
// eslint-disable-next-line no-continue
|