@adobe/helix-html-pipeline 5.13.21 → 5.14.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 +14 -0
- package/package.json +6 -6
- package/src/steps/fetch-config.js +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [5.14.0](https://github.com/adobe/helix-html-pipeline/compare/v5.13.22...v5.14.0) (2025-02-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* reject projects created after 14.2.2025 ([#808](https://github.com/adobe/helix-html-pipeline/issues/808)) ([cc1bd92](https://github.com/adobe/helix-html-pipeline/commit/cc1bd9245461299105e7d2143b2d8feb6a15df7e))
|
|
7
|
+
|
|
8
|
+
## [5.13.22](https://github.com/adobe/helix-html-pipeline/compare/v5.13.21...v5.13.22) (2025-01-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#803](https://github.com/adobe/helix-html-pipeline/issues/803)) ([3b456ee](https://github.com/adobe/helix-html-pipeline/commit/3b456ee9abf6a929ff7aa7336e3d234dd6443599))
|
|
14
|
+
|
|
1
15
|
## [5.13.21](https://github.com/adobe/helix-html-pipeline/compare/v5.13.20...v5.13.21) (2025-01-26)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.0",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"lodash.escape": "4.0.1",
|
|
59
59
|
"mdast-util-to-hast": "13.2.0",
|
|
60
60
|
"mdast-util-to-string": "4.0.0",
|
|
61
|
-
"micromark-util-subtokenize": "2.0.
|
|
61
|
+
"micromark-util-subtokenize": "2.0.4",
|
|
62
62
|
"mime": "4.0.6",
|
|
63
63
|
"rehype-format": "5.0.1",
|
|
64
64
|
"rehype-parse": "9.0.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"unist-util-visit-parents": "6.0.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@adobe/eslint-config-helix": "2.0.
|
|
76
|
+
"@adobe/eslint-config-helix": "2.0.9",
|
|
77
77
|
"@markedjs/html-differ": "5.0.1",
|
|
78
78
|
"@semantic-release/changelog": "6.0.3",
|
|
79
79
|
"@semantic-release/git": "10.0.1",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
|
84
84
|
"eslint-plugin-header": "3.1.1",
|
|
85
85
|
"eslint-plugin-import": "2.31.0",
|
|
86
|
-
"esmock": "2.
|
|
86
|
+
"esmock": "2.7.0",
|
|
87
87
|
"husky": "9.1.7",
|
|
88
88
|
"js-yaml": "4.1.0",
|
|
89
89
|
"jsdom": "26.0.0",
|
|
90
90
|
"junit-report-builder": "5.1.1",
|
|
91
|
-
"lint-staged": "15.4.
|
|
92
|
-
"mocha": "11.0
|
|
91
|
+
"lint-staged": "15.4.3",
|
|
92
|
+
"mocha": "11.1.0",
|
|
93
93
|
"mocha-multi-reporters": "1.5.1",
|
|
94
94
|
"mocha-suppress-logs": "0.5.1",
|
|
95
95
|
"semantic-release": "24.2.1"
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
import { extractLastModified, recordLastModified } from '../utils/last-modified.js';
|
|
13
13
|
import { PipelineStatusError } from '../PipelineStatusError.js';
|
|
14
14
|
|
|
15
|
+
// cut-off date for *.hlx.page projects
|
|
16
|
+
const HELIX5_ENFORCE_DATE = new Date('2025-02-14T00:00:00Z').valueOf();
|
|
17
|
+
|
|
15
18
|
/**
|
|
16
19
|
* Fetches the helix-config.json from the code-bus and stores it in `state.helixConfig`
|
|
17
20
|
* @type PipelineStep
|
|
@@ -47,6 +50,12 @@ export default async function fetchConfig(state, req, res) {
|
|
|
47
50
|
});
|
|
48
51
|
}
|
|
49
52
|
|
|
53
|
+
// reject new projects
|
|
54
|
+
const created = new Date(ret.headers.get('x-amz-meta-x-created-date') || '1970-01-01T00:00:00Z');
|
|
55
|
+
if (created.valueOf() > HELIX5_ENFORCE_DATE) {
|
|
56
|
+
throw new PipelineStatusError(404, '*.hlx.page projects are not supported after 2025-02-14');
|
|
57
|
+
}
|
|
58
|
+
|
|
50
59
|
// set contentbusid from header if missing in config
|
|
51
60
|
const cbid = ret.headers.get('x-amz-meta-x-contentbus-id');
|
|
52
61
|
if (!config.content && cbid) {
|