@adobe/helix-html-pipeline 1.1.0 → 1.1.1

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,11 @@
1
+ ## [1.1.1](https://github.com/adobe/helix-html-pipeline/compare/v1.1.0...v1.1.1) (2022-03-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * adapt to breaking change (computeSurrogateKey is async) ([9c8830d](https://github.com/adobe/helix-html-pipeline/commit/9c8830dc8db3007921dd85f27537c030d80c0cbf))
7
+ * **deps:** update dependency @adobe/helix-shared-utils to v2.0.4 ([b5cd927](https://github.com/adobe/helix-html-pipeline/commit/b5cd92783f03c47f7f26fbaa6c9438ea11c1e05b))
8
+
1
9
  # [1.1.0](https://github.com/adobe/helix-html-pipeline/compare/v1.0.5...v1.1.0) (2022-03-10)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@adobe/helix-markdown-support": "3.1.2",
36
- "@adobe/helix-shared-utils": "2.0.3",
36
+ "@adobe/helix-shared-utils": "2.0.4",
37
37
  "github-slugger": "1.4.0",
38
38
  "hast-util-to-html": "8.0.3",
39
39
  "jsdom": "19.0.0",
@@ -18,14 +18,14 @@ import { computeSurrogateKey } from '@adobe/helix-shared-utils';
18
18
  * @param {PipelineResponse} res
19
19
  * @returns {Promise<void>}
20
20
  */
21
- export default function setXSurrogateKeyHeader(state, req, res) {
21
+ export default async function setXSurrogateKeyHeader(state, req, res) {
22
22
  const {
23
23
  content, contentBusId, info, owner, repo, ref,
24
24
  } = state;
25
25
 
26
26
  const keys = [];
27
27
  if (content.sourceLocation) {
28
- keys.push(computeSurrogateKey(content.sourceLocation));
28
+ keys.push(await computeSurrogateKey(content.sourceLocation));
29
29
  }
30
30
  if (info.selector !== 'plain') {
31
31
  keys.push(`${contentBusId}_metadata`);