@adobe/helix-html-pipeline 6.27.6 → 6.27.8
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 +9 -9
- package/src/steps/extract-metadata.js +7 -3
- package/src/steps/utils.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.27.8](https://github.com/adobe/helix-html-pipeline/compare/v6.27.7...v6.27.8) (2025-11-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#969](https://github.com/adobe/helix-html-pipeline/issues/969)) ([ae4803b](https://github.com/adobe/helix-html-pipeline/commit/ae4803ba5ac2c20f936990db182ca83adc1eba35))
|
|
7
|
+
|
|
8
|
+
## [6.27.7](https://github.com/adobe/helix-html-pipeline/compare/v6.27.6...v6.27.7) (2025-10-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* catch invalid image urls in metadata ([#965](https://github.com/adobe/helix-html-pipeline/issues/965)) ([2b8f9b6](https://github.com/adobe/helix-html-pipeline/commit/2b8f9b64eeae8f7a446e3c0ea2b4d5a97d85ab0c))
|
|
14
|
+
|
|
1
15
|
## [6.27.6](https://github.com/adobe/helix-html-pipeline/compare/v6.27.5...v6.27.6) (2025-10-20)
|
|
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.8",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
"unist-util-remove-position": "5.0.0",
|
|
68
68
|
"unist-util-select": "5.1.0",
|
|
69
69
|
"unist-util-visit": "5.0.0",
|
|
70
|
-
"unist-util-visit-parents": "6.0.
|
|
70
|
+
"unist-util-visit-parents": "6.0.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
74
|
-
"@eslint/config-helpers": "0.4.
|
|
73
|
+
"@adobe/eslint-config-helix": "3.0.13",
|
|
74
|
+
"@eslint/config-helpers": "0.4.1",
|
|
75
75
|
"@markedjs/html-differ": "5.0.2",
|
|
76
76
|
"@semantic-release/changelog": "6.0.3",
|
|
77
77
|
"@semantic-release/git": "10.0.1",
|
|
78
|
-
"@semantic-release/npm": "13.
|
|
78
|
+
"@semantic-release/npm": "13.1.1",
|
|
79
79
|
"c8": "10.1.3",
|
|
80
80
|
"eslint": "9.4.0",
|
|
81
81
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
"esmock": "2.7.3",
|
|
85
85
|
"husky": "9.1.7",
|
|
86
86
|
"js-yaml": "4.1.0",
|
|
87
|
-
"jsdom": "27.0.
|
|
87
|
+
"jsdom": "27.0.1",
|
|
88
88
|
"junit-report-builder": "5.1.1",
|
|
89
|
-
"lint-staged": "16.2.
|
|
90
|
-
"mocha": "11.7.
|
|
89
|
+
"lint-staged": "16.2.5",
|
|
90
|
+
"mocha": "11.7.4",
|
|
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.1"
|
|
94
94
|
},
|
|
95
95
|
"lint-staged": {
|
|
96
96
|
"*.js": "eslint",
|
|
@@ -274,9 +274,13 @@ export default function extractMetaData(state, req) {
|
|
|
274
274
|
meta.image = content.image || '/default-meta-image.png';
|
|
275
275
|
}
|
|
276
276
|
if (meta.image) {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
try {
|
|
278
|
+
meta.image = rewriteUrl(state, meta.image);
|
|
279
|
+
meta.image = optimizeMetaImage(state.info.path, meta.image);
|
|
280
|
+
meta.image = getAbsoluteUrl(state, meta.image);
|
|
281
|
+
} catch (e) {
|
|
282
|
+
// ignore url errors
|
|
283
|
+
}
|
|
280
284
|
}
|
|
281
285
|
|
|
282
286
|
meta.imageAlt = meta['image-alt'] ?? content.imageAlt;
|
package/src/steps/utils.js
CHANGED
|
@@ -161,7 +161,11 @@ export function resolveUrl(from, to) {
|
|
|
161
161
|
const resolvedUrl = new URL(to, new URL(from, DUMMY_BASE));
|
|
162
162
|
if (resolvedUrl.origin === DUMMY_BASE) {
|
|
163
163
|
// `from` is a relative URL.
|
|
164
|
-
const {
|
|
164
|
+
const {
|
|
165
|
+
pathname,
|
|
166
|
+
search,
|
|
167
|
+
hash,
|
|
168
|
+
} = resolvedUrl;
|
|
165
169
|
return pathname + search + hash;
|
|
166
170
|
}
|
|
167
171
|
return resolvedUrl.toString();
|