@adobe/helix-html-pipeline 1.6.2 → 1.6.6

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,31 @@
1
+ ## [1.6.6](https://github.com/adobe/helix-html-pipeline/compare/v1.6.5...v1.6.6) (2022-07-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add metadata and head surrogate keys also on .plain ([#108](https://github.com/adobe/helix-html-pipeline/issues/108)) ([#109](https://github.com/adobe/helix-html-pipeline/issues/109)) ([a110999](https://github.com/adobe/helix-html-pipeline/commit/a110999cf0b0fe9f96adca62e418be2fcb9d8a35)), closes [#107](https://github.com/adobe/helix-html-pipeline/issues/107)
7
+
8
+ ## [1.6.5](https://github.com/adobe/helix-html-pipeline/compare/v1.6.4...v1.6.5) (2022-07-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-markdown-support to v3.1.7 ([ca077d2](https://github.com/adobe/helix-html-pipeline/commit/ca077d28a165e48d2bd966022b58fe97e9d27994))
14
+
15
+ ## [1.6.4](https://github.com/adobe/helix-html-pipeline/compare/v1.6.3...v1.6.4) (2022-07-09)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **deps:** update dependency mdast-util-to-hast to v12.1.2 ([7828fc7](https://github.com/adobe/helix-html-pipeline/commit/7828fc7d7e1170dc8a2da2894d9bb4b3e20155e9))
21
+
22
+ ## [1.6.3](https://github.com/adobe/helix-html-pipeline/compare/v1.6.2...v1.6.3) (2022-06-04)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **deps:** update dependency @adobe/helix-shared-utils to v2.0.11 ([1b31c47](https://github.com/adobe/helix-html-pipeline/commit/1b31c47636cce1c5ecf7d17b0507edec580db4ad))
28
+
1
29
  ## [1.6.2](https://github.com/adobe/helix-html-pipeline/compare/v1.6.1...v1.6.2) (2022-06-01)
2
30
 
3
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "1.6.2",
3
+ "version": "1.6.6",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -30,10 +30,10 @@
30
30
  "loader": "esmock"
31
31
  },
32
32
  "dependencies": {
33
- "@adobe/helix-markdown-support": "3.1.6",
34
- "@adobe/helix-shared-utils": "2.0.10",
33
+ "@adobe/helix-markdown-support": "3.1.7",
34
+ "@adobe/helix-shared-utils": "2.0.11",
35
35
  "github-slugger": "1.4.0",
36
- "hast-util-raw": "7.2.1",
36
+ "hast-util-raw": "7.2.2",
37
37
  "hast-util-select": "5.0.2",
38
38
  "hast-util-to-html": "8.0.3",
39
39
  "hast-util-to-string": "2.0.0",
@@ -42,7 +42,7 @@
42
42
  "mdast-util-gfm-strikethrough": "1.0.1",
43
43
  "mdast-util-gfm-table": "1.0.4",
44
44
  "mdast-util-gfm-task-list-item": "1.0.1",
45
- "mdast-util-to-hast": "12.1.1",
45
+ "mdast-util-to-hast": "12.1.2",
46
46
  "mdast-util-to-string": "3.1.0",
47
47
  "micromark-extension-gfm-footnote": "1.0.4",
48
48
  "micromark-extension-gfm-strikethrough": "1.0.4",
@@ -69,21 +69,21 @@
69
69
  "@semantic-release/changelog": "6.0.1",
70
70
  "@semantic-release/git": "10.0.1",
71
71
  "@semantic-release/npm": "9.0.1",
72
- "c8": "7.11.3",
73
- "eslint": "8.16.0",
72
+ "c8": "7.12.0",
73
+ "eslint": "8.20.0",
74
74
  "eslint-plugin-header": "3.1.1",
75
75
  "eslint-plugin-import": "2.26.0",
76
- "esmock": "1.7.5",
76
+ "esmock": "1.8.7",
77
77
  "husky": "8.0.1",
78
78
  "js-yaml": "4.1.0",
79
79
  "jsdoc-to-markdown": "7.1.1",
80
- "jsdom": "19.0.0",
81
- "junit-report-builder": "3.0.0",
82
- "lint-staged": "12.4.2",
80
+ "jsdom": "20.0.0",
81
+ "junit-report-builder": "3.0.1",
82
+ "lint-staged": "13.0.3",
83
83
  "mocha": "10.0.0",
84
84
  "mocha-multi-reporters": "1.5.1",
85
85
  "remark-gfm": "3.0.1",
86
- "semantic-release": "19.0.2"
86
+ "semantic-release": "19.0.3"
87
87
  },
88
88
  "lint-staged": {
89
89
  "*.js": "eslint",
@@ -20,16 +20,15 @@ import { computeSurrogateKey } from '@adobe/helix-shared-utils';
20
20
  */
21
21
  export default async function setXSurrogateKeyHeader(state, req, res) {
22
22
  const {
23
- content, contentBusId, info, owner, repo, ref,
23
+ content, contentBusId, owner, repo, ref,
24
24
  } = state;
25
25
 
26
26
  const keys = [];
27
27
  if (content.sourceLocation) {
28
28
  keys.push(await computeSurrogateKey(content.sourceLocation));
29
29
  }
30
- if (info.selector !== 'plain') {
31
- keys.push(`${contentBusId}_metadata`);
32
- keys.push(`${ref}--${repo}--${owner}_head`);
33
- }
30
+ keys.push(`${contentBusId}_metadata`);
31
+ keys.push(`${ref}--${repo}--${owner}_head`);
32
+
34
33
  res.headers.set('x-surrogate-key', keys.join(' '));
35
34
  }