@adobe/helix-html-pipeline 1.6.3 → 1.6.7
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 +28 -0
- package/package.json +11 -11
- package/src/steps/set-x-surrogate-key-header.js +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [1.6.7](https://github.com/adobe/helix-html-pipeline/compare/v1.6.6...v1.6.7) (2022-07-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/helix-markdown-support to v3.1.8 ([1d8dd92](https://github.com/adobe/helix-html-pipeline/commit/1d8dd925db4be6fd9220925dcd5cdab9cabfd192))
|
|
7
|
+
|
|
8
|
+
## [1.6.6](https://github.com/adobe/helix-html-pipeline/compare/v1.6.5...v1.6.6) (2022-07-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 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)
|
|
14
|
+
|
|
15
|
+
## [1.6.5](https://github.com/adobe/helix-html-pipeline/compare/v1.6.4...v1.6.5) (2022-07-09)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **deps:** update dependency @adobe/helix-markdown-support to v3.1.7 ([ca077d2](https://github.com/adobe/helix-html-pipeline/commit/ca077d28a165e48d2bd966022b58fe97e9d27994))
|
|
21
|
+
|
|
22
|
+
## [1.6.4](https://github.com/adobe/helix-html-pipeline/compare/v1.6.3...v1.6.4) (2022-07-09)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **deps:** update dependency mdast-util-to-hast to v12.1.2 ([7828fc7](https://github.com/adobe/helix-html-pipeline/commit/7828fc7d7e1170dc8a2da2894d9bb4b3e20155e9))
|
|
28
|
+
|
|
1
29
|
## [1.6.3](https://github.com/adobe/helix-html-pipeline/compare/v1.6.2...v1.6.3) (2022-06-04)
|
|
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.
|
|
3
|
+
"version": "1.6.7",
|
|
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.
|
|
33
|
+
"@adobe/helix-markdown-support": "3.1.8",
|
|
34
34
|
"@adobe/helix-shared-utils": "2.0.11",
|
|
35
35
|
"github-slugger": "1.4.0",
|
|
36
|
-
"hast-util-raw": "7.2.
|
|
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.
|
|
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.
|
|
73
|
-
"eslint": "8.
|
|
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
|
|
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": "
|
|
81
|
-
"junit-report-builder": "3.0.
|
|
82
|
-
"lint-staged": "
|
|
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.
|
|
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,
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
}
|