@adobe/helix-html-pipeline 6.15.6 → 6.15.8
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 +14 -0
- package/package.json +4 -4
- package/src/html-pipe.js +1 -1
- package/src/steps/fetch-mapped-metadata.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.15.8](https://github.com/adobe/helix-html-pipeline/compare/v6.15.7...v6.15.8) (2024-11-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update adobe fixes ([#739](https://github.com/adobe/helix-html-pipeline/issues/739)) ([0bcded6](https://github.com/adobe/helix-html-pipeline/commit/0bcded6e49861d4a4489cee4d6689b6e0de67e76))
|
|
7
|
+
|
|
8
|
+
## [6.15.7](https://github.com/adobe/helix-html-pipeline/compare/v6.15.6...v6.15.7) (2024-11-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* respect last-modified from mapped metadata ([340b291](https://github.com/adobe/helix-html-pipeline/commit/340b291df39e265e42fbf4319e3206e4cdc8d49f)), closes [#737](https://github.com/adobe/helix-html-pipeline/issues/737)
|
|
14
|
+
|
|
1
15
|
## [6.15.6](https://github.com/adobe/helix-html-pipeline/compare/v6.15.5...v6.15.6) (2024-10-26)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.8",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@adobe/helix-markdown-support": "7.1.6",
|
|
46
46
|
"@adobe/helix-shared-utils": "3.0.2",
|
|
47
|
-
"@adobe/mdast-util-gridtables": "4.0.
|
|
48
|
-
"@adobe/remark-gridtables": "3.0.
|
|
47
|
+
"@adobe/mdast-util-gridtables": "4.0.8",
|
|
48
|
+
"@adobe/remark-gridtables": "3.0.8",
|
|
49
49
|
"github-slugger": "2.0.0",
|
|
50
50
|
"hast-util-raw": "9.0.4",
|
|
51
51
|
"hast-util-select": "6.0.3",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"jsdom": "25.0.1",
|
|
86
86
|
"junit-report-builder": "5.1.1",
|
|
87
87
|
"lint-staged": "15.2.10",
|
|
88
|
-
"mocha": "10.
|
|
88
|
+
"mocha": "10.8.2",
|
|
89
89
|
"mocha-multi-reporters": "1.5.1",
|
|
90
90
|
"mocha-suppress-logs": "0.5.1",
|
|
91
91
|
"semantic-release": "24.2.0"
|
package/src/html-pipe.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PipelineStatusError } from '../PipelineStatusError.js';
|
|
14
14
|
import { Modifiers } from '../utils/modifiers.js';
|
|
15
|
+
import { extractLastModified, updateLastModified } from '../utils/last-modified.js';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Loads metadata for a mapped path and puts it into `state.mappedMetadata`. If path is not
|
|
@@ -20,9 +21,10 @@ import { Modifiers } from '../utils/modifiers.js';
|
|
|
20
21
|
*
|
|
21
22
|
* @type PipelineStep
|
|
22
23
|
* @param {PipelineState} state
|
|
24
|
+
* @param {PipelineResponse} res
|
|
23
25
|
* @returns {Promise<void>}
|
|
24
26
|
*/
|
|
25
|
-
export default async function fetchMappedMetadata(state) {
|
|
27
|
+
export default async function fetchMappedMetadata(state, res) {
|
|
26
28
|
state.mappedMetadata = Modifiers.EMPTY;
|
|
27
29
|
if (!state.mapped) {
|
|
28
30
|
return;
|
|
@@ -51,6 +53,7 @@ export default async function fetchMappedMetadata(state) {
|
|
|
51
53
|
state.mappedMetadata = Modifiers.fromModifierSheet(
|
|
52
54
|
data,
|
|
53
55
|
);
|
|
56
|
+
updateLastModified(state, res, extractLastModified(ret.headers));
|
|
54
57
|
return;
|
|
55
58
|
}
|
|
56
59
|
if (ret.status !== 404) {
|