@adobe/helix-html-pipeline 1.6.4 → 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,17 @@
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
+
1
15
  ## [1.6.4](https://github.com/adobe/helix-html-pipeline/compare/v1.6.3...v1.6.4) (2022-07-09)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "1.6.4",
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",
33
+ "@adobe/helix-markdown-support": "3.1.7",
34
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",
@@ -69,16 +69,16 @@
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.19.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
80
  "jsdom": "20.0.0",
81
- "junit-report-builder": "3.0.0",
81
+ "junit-report-builder": "3.0.1",
82
82
  "lint-staged": "13.0.3",
83
83
  "mocha": "10.0.0",
84
84
  "mocha-multi-reporters": "1.5.1",
@@ -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
  }