@adobe/helix-html-pipeline 5.5.2 → 5.6.0
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,10 @@
|
|
|
1
|
+
# [5.6.0](https://github.com/adobe/helix-html-pipeline/compare/v5.5.2...v5.6.0) (2024-01-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* remove source-location surrogate key ([188b3d3](https://github.com/adobe/helix-html-pipeline/commit/188b3d39ced9dc0ea00b230726fb3a236f4c530c))
|
|
7
|
+
|
|
1
8
|
## [5.5.2](https://github.com/adobe/helix-html-pipeline/compare/v5.5.1...v5.5.2) (2024-01-25)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -42,19 +42,16 @@ export async function getPathKey(state) {
|
|
|
42
42
|
*/
|
|
43
43
|
export default async function setXSurrogateKeyHeader(state, req, res) {
|
|
44
44
|
const {
|
|
45
|
-
|
|
45
|
+
contentBusId, owner, repo, ref,
|
|
46
46
|
} = state;
|
|
47
|
-
|
|
48
|
-
const keys = [];
|
|
49
|
-
if (content.sourceLocation) {
|
|
50
|
-
keys.push(await computeSurrogateKey(content.sourceLocation));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
47
|
const hash = await getPathKey(state);
|
|
54
|
-
keys
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
const keys = [
|
|
49
|
+
hash,
|
|
50
|
+
`${contentBusId}_metadata`,
|
|
51
|
+
`${ref}--${repo}--${owner}_head`,
|
|
52
|
+
];
|
|
57
53
|
|
|
54
|
+
// for folder-mapped resources, we also need to include the surrogate key of the mapped metadata
|
|
58
55
|
if (state.mapped) {
|
|
59
56
|
keys.push(`${hash}_metadata`);
|
|
60
57
|
}
|