@adobe/helix-html-pipeline 6.12.2 → 6.12.4

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.12.4](https://github.com/adobe/helix-html-pipeline/compare/v6.12.3...v6.12.4) (2024-06-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * rewrite meta image link ([#615](https://github.com/adobe/helix-html-pipeline/issues/615)) ([#620](https://github.com/adobe/helix-html-pipeline/issues/620)) ([132e591](https://github.com/adobe/helix-html-pipeline/commit/132e591844cfe7d27bec2c28a87d83c754dd53c8)), closes [#604](https://github.com/adobe/helix-html-pipeline/issues/604)
7
+
8
+ ## [6.12.3](https://github.com/adobe/helix-html-pipeline/compare/v6.12.2...v6.12.3) (2024-06-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update adobe fixes ([143d361](https://github.com/adobe/helix-html-pipeline/commit/143d36121cfa50a6e71cb37544c5169be6b99a71))
14
+
1
15
  ## [6.12.2](https://github.com/adobe/helix-html-pipeline/compare/v6.12.1...v6.12.2) (2024-06-08)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.12.2",
3
+ "version": "6.12.4",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -43,10 +43,10 @@
43
43
  "node": ">=16.x"
44
44
  },
45
45
  "dependencies": {
46
- "@adobe/helix-markdown-support": "7.1.2",
46
+ "@adobe/helix-markdown-support": "7.1.3",
47
47
  "@adobe/helix-shared-utils": "3.0.2",
48
- "@adobe/mdast-util-gridtables": "4.0.5",
49
- "@adobe/remark-gridtables": "3.0.4",
48
+ "@adobe/mdast-util-gridtables": "4.0.6",
49
+ "@adobe/remark-gridtables": "3.0.6",
50
50
  "github-slugger": "2.0.0",
51
51
  "hast-util-raw": "9.0.3",
52
52
  "hast-util-select": "6.0.2",
@@ -14,7 +14,7 @@ import { toString } from 'hast-util-to-string';
14
14
  import { remove } from 'unist-util-remove';
15
15
  import { visit, EXIT, CONTINUE } from 'unist-util-visit';
16
16
  import {
17
- getAbsoluteUrl, makeCanonicalHtmlUrl, optimizeImageURL, resolveUrl,
17
+ getAbsoluteUrl, makeCanonicalHtmlUrl, optimizeImageURL, resolveUrl, rewriteUrl,
18
18
  } from './utils.js';
19
19
  import { toMetaName } from '../utils/modifiers.js';
20
20
  import { childNodes } from '../utils/hast-utils.js';
@@ -251,7 +251,9 @@ export default function extractMetaData(state, req) {
251
251
  meta.image = content.image || '/default-meta-image.png';
252
252
  }
253
253
  if (meta.image) {
254
- meta.image = getAbsoluteUrl(state, optimizeMetaImage(state.info.path, meta.image));
254
+ meta.image = rewriteUrl(state, meta.image);
255
+ meta.image = optimizeMetaImage(state.info.path, meta.image);
256
+ meta.image = getAbsoluteUrl(state, meta.image);
255
257
  }
256
258
 
257
259
  meta.imageAlt = meta['image-alt'] ?? content.imageAlt;