@adobe/helix-config 3.2.12 → 3.2.14
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 +5 -5
- package/src/schemas/code.schema.json +2 -2
- package/src/schemas/common.schema.json +1 -13
- package/src/schemas/content.schema.json +2 -2
- package/src/schemas/headers.schema.cjs +12 -0
- package/src/schemas/headers.schema.json +26 -0
- package/src/schemas/org.schema.json +2 -2
- package/src/schemas/profile.schema.json +3 -3
- package/src/schemas/sidekick.schema.json +2 -2
- package/src/schemas/site.schema.json +3 -3
- package/src/storage/config-validator.js +2 -0
- package/types/org-config.d.ts +9 -0
- package/types/profile-config.d.ts +7 -7
- package/types/site-config.d.ts +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.2.14](https://github.com/adobe/helix-config/compare/v3.2.13...v3.2.14) (2024-06-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* separate headers config ([#108](https://github.com/adobe/helix-config/issues/108)) ([cef56df](https://github.com/adobe/helix-config/commit/cef56df1245960f271b17c842ae379dd8ed660bb))
|
|
7
|
+
|
|
8
|
+
## [3.2.13](https://github.com/adobe/helix-config/compare/v3.2.12...v3.2.13) (2024-06-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update adobe fixes ([df5fb5c](https://github.com/adobe/helix-config/commit/df5fb5c1351958e9a8e0f13326ac23e7fef2aeb0))
|
|
14
|
+
|
|
1
15
|
## [3.2.12](https://github.com/adobe/helix-config/compare/v3.2.11...v3.2.12) (2024-06-11)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-config",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.14",
|
|
4
4
|
"description": "Helix Config",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@semantic-release/changelog": "6.0.3",
|
|
42
42
|
"@semantic-release/git": "10.0.1",
|
|
43
43
|
"@semantic-release/npm": "12.0.1",
|
|
44
|
-
"c8": "10.
|
|
44
|
+
"c8": "10.1.2",
|
|
45
45
|
"eslint": "8.57.0",
|
|
46
46
|
"husky": "9.0.11",
|
|
47
47
|
"json-schema-to-typescript": "14.0.5",
|
|
48
48
|
"junit-report-builder": "3.2.1",
|
|
49
|
-
"lint-staged": "15.2.
|
|
49
|
+
"lint-staged": "15.2.7",
|
|
50
50
|
"mocha": "10.4.0",
|
|
51
51
|
"mocha-multi-reporters": "1.5.1",
|
|
52
52
|
"mocha-suppress-logs": "0.5.1",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@adobe/fetch": "4.1.8",
|
|
62
|
-
"@adobe/helix-shared-config": "10.5.
|
|
63
|
-
"@adobe/helix-shared-git": "3.0.
|
|
62
|
+
"@adobe/helix-shared-config": "10.5.3",
|
|
63
|
+
"@adobe/helix-shared-git": "3.0.12",
|
|
64
64
|
"@adobe/helix-shared-storage": "1.0.2",
|
|
65
65
|
"@adobe/helix-shared-utils": "3.0.2",
|
|
66
66
|
"ajv": "8.16.0",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"type": "object",
|
|
17
17
|
"description": "Defines the code bus location and source.",
|
|
18
18
|
"properties": {
|
|
19
|
-
"title": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
20
|
-
"description": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
19
|
+
"title": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/title" },
|
|
20
|
+
"description": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/description" },
|
|
21
21
|
"owner": {
|
|
22
22
|
"$comment": "Note, that owner/repo are no longer part of the hostname and can therefor have more allowed characters than in helix4",
|
|
23
23
|
"type": "string",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
14
|
"$id": "https://ns.adobe.com/helix/config/common",
|
|
15
|
-
"
|
|
15
|
+
"definitions": {
|
|
16
16
|
"title": {
|
|
17
17
|
"type": "string",
|
|
18
18
|
"description": "human readable title. has no influence on the configuration."
|
|
@@ -32,18 +32,6 @@
|
|
|
32
32
|
"value"
|
|
33
33
|
],
|
|
34
34
|
"additionalProperties": false
|
|
35
|
-
},
|
|
36
|
-
"modifier-map": {
|
|
37
|
-
"type": "object",
|
|
38
|
-
"patternProperties": {
|
|
39
|
-
"^/[a-zA-Z0-9-/.]*\\*{0,2}$": {
|
|
40
|
-
"type": "array",
|
|
41
|
-
"items": [
|
|
42
|
-
{ "$ref": "#/$defs/keyValuePair" }
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"additionalProperties": false
|
|
47
35
|
}
|
|
48
36
|
}
|
|
49
37
|
}
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"title": "Content Bus",
|
|
17
17
|
"description": "Defines the content bus location and source.",
|
|
18
18
|
"properties": {
|
|
19
|
-
"title": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
20
|
-
"description": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
19
|
+
"title": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/title" },
|
|
20
|
+
"description": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/description" },
|
|
21
21
|
"contentBusId": {"type": "string" },
|
|
22
22
|
"source": {
|
|
23
23
|
"oneOf": [
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
module.exports = require('./headers.schema.json');
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta:license": [
|
|
3
|
+
"Copyright 2024 Adobe. All rights reserved.",
|
|
4
|
+
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
+
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
+
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
+
"",
|
|
8
|
+
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
+
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
+
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
+
"governing permissions and limitations under the License."
|
|
12
|
+
],
|
|
13
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
|
+
"$id": "https://ns.adobe.com/helix/config/headers",
|
|
15
|
+
"type": "object",
|
|
16
|
+
"title": "Helix Headers Config",
|
|
17
|
+
"patternProperties": {
|
|
18
|
+
"^/[a-zA-Z0-9-/.]*\\*{0,2}$": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": [
|
|
21
|
+
{ "$ref": "https://ns.adobe.com/helix/config/common#/definitions/keyValuePair" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"enum": [1],
|
|
21
21
|
"default": 1
|
|
22
22
|
},
|
|
23
|
-
"title": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
24
|
-
"description": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
23
|
+
"title": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/title" },
|
|
24
|
+
"description": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/description" },
|
|
25
25
|
"tokens": {
|
|
26
26
|
"$ref": "https://ns.adobe.com/helix/config/tokens"
|
|
27
27
|
},
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"enum": [1],
|
|
21
21
|
"default": 1
|
|
22
22
|
},
|
|
23
|
-
"title": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
24
|
-
"description": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
23
|
+
"title": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/title" },
|
|
24
|
+
"description": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/description" },
|
|
25
25
|
|
|
26
26
|
"content": {
|
|
27
27
|
"$ref": "https://ns.adobe.com/helix/config/content"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"$ref": "https://ns.adobe.com/helix/config/folders"
|
|
34
34
|
},
|
|
35
35
|
"headers": {
|
|
36
|
-
"$ref": "https://ns.adobe.com/helix/config/
|
|
36
|
+
"$ref": "https://ns.adobe.com/helix/config/headers"
|
|
37
37
|
},
|
|
38
38
|
"cdn": {
|
|
39
39
|
"$ref": "https://ns.adobe.com/helix/config/cdn"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"$id": "https://ns.adobe.com/helix/config/sidekick",
|
|
14
14
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"
|
|
15
|
+
"definitions": {
|
|
16
16
|
"sidekickPlugin": {
|
|
17
17
|
"type": "object",
|
|
18
18
|
"properties": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"plugins": {
|
|
40
40
|
"type": "array",
|
|
41
41
|
"items": {
|
|
42
|
-
"$ref": "
|
|
42
|
+
"$ref": "#/definitions/sidekickPlugin"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"description": "Site name; part of the hostname",
|
|
26
26
|
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
27
27
|
},
|
|
28
|
-
"title": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
29
|
-
"description": { "$ref": "https://ns.adobe.com/helix/config/common
|
|
28
|
+
"title": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/title" },
|
|
29
|
+
"description": { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/description" },
|
|
30
30
|
|
|
31
31
|
"content": {
|
|
32
32
|
"$ref": "https://ns.adobe.com/helix/config/content"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"$ref": "https://ns.adobe.com/helix/config/folders"
|
|
39
39
|
},
|
|
40
40
|
"headers": {
|
|
41
|
-
"$ref": "https://ns.adobe.com/helix/config/
|
|
41
|
+
"$ref": "https://ns.adobe.com/helix/config/headers"
|
|
42
42
|
},
|
|
43
43
|
"cdn": {
|
|
44
44
|
"$ref": "https://ns.adobe.com/helix/config/cdn"
|
|
@@ -22,6 +22,7 @@ import codeSchema from '../schemas/code.schema.cjs';
|
|
|
22
22
|
import contentSchema from '../schemas/content.schema.cjs';
|
|
23
23
|
import foldersSchema from '../schemas/folders.schema.cjs';
|
|
24
24
|
import googleSchema from '../schemas/content-source-google.schema.cjs';
|
|
25
|
+
import headersSchema from '../schemas/headers.schema.cjs';
|
|
25
26
|
import markupSchema from '../schemas/content-source-markup.schema.cjs';
|
|
26
27
|
import metadataSchema from '../schemas/metadata-source.schema.cjs';
|
|
27
28
|
import orgSchema from '../schemas/org.schema.cjs';
|
|
@@ -45,6 +46,7 @@ export const SCHEMAS = [
|
|
|
45
46
|
codeSchema,
|
|
46
47
|
foldersSchema,
|
|
47
48
|
googleSchema,
|
|
49
|
+
headersSchema,
|
|
48
50
|
markupSchema,
|
|
49
51
|
metadataSchema,
|
|
50
52
|
orgSchema,
|
package/types/org-config.d.ts
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
// NOTE: this file is autogenerated via 'npm run docs:types'
|
|
14
14
|
|
|
15
|
+
export type Users = HttpsNsAdobeComHelixConfigUser[];
|
|
16
|
+
|
|
15
17
|
export interface HelixOrgConfig {
|
|
16
18
|
version: 1;
|
|
17
19
|
/**
|
|
@@ -23,6 +25,7 @@ export interface HelixOrgConfig {
|
|
|
23
25
|
*/
|
|
24
26
|
description?: string;
|
|
25
27
|
tokens?: Tokens;
|
|
28
|
+
users?: Users;
|
|
26
29
|
}
|
|
27
30
|
export interface Tokens {
|
|
28
31
|
/**
|
|
@@ -35,3 +38,9 @@ export interface Tokens {
|
|
|
35
38
|
created?: string;
|
|
36
39
|
};
|
|
37
40
|
}
|
|
41
|
+
export interface HttpsNsAdobeComHelixConfigUser {
|
|
42
|
+
id: string;
|
|
43
|
+
email: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
roles: ('admin' | 'author' | 'publish' | 'config')[];
|
|
46
|
+
}
|
|
@@ -25,7 +25,7 @@ export interface HelixProfileConfig {
|
|
|
25
25
|
content?: ContentBus;
|
|
26
26
|
code?: CodeBus;
|
|
27
27
|
folders?: Folders;
|
|
28
|
-
headers?:
|
|
28
|
+
headers?: HelixHeadersConfig;
|
|
29
29
|
cdn?: CDNConfig;
|
|
30
30
|
access?: Access;
|
|
31
31
|
sidekick?: SidekickConfig;
|
|
@@ -93,13 +93,13 @@ export interface CodeBus {
|
|
|
93
93
|
export interface Folders {
|
|
94
94
|
/**
|
|
95
95
|
* This interface was referenced by `Folders`'s JSON-Schema definition
|
|
96
|
-
* via the `patternProperty` "^/[a-zA-Z0-9-/.]
|
|
96
|
+
* via the `patternProperty` "^/[a-zA-Z0-9-/.]*$".
|
|
97
97
|
*/
|
|
98
|
-
[k: string]:
|
|
98
|
+
[k: string]: string;
|
|
99
99
|
}
|
|
100
|
-
export interface
|
|
100
|
+
export interface HelixHeadersConfig {
|
|
101
101
|
/**
|
|
102
|
-
* This interface was referenced by `
|
|
102
|
+
* This interface was referenced by `HelixHeadersConfig`'s JSON-Schema definition
|
|
103
103
|
* via the `patternProperty` "^/[a-zA-Z0-9-/.]*\*{0,2}$".
|
|
104
104
|
*/
|
|
105
105
|
[k: string]: [] | [KeyValuePair];
|
|
@@ -232,7 +232,7 @@ export interface SiteAccessConfig {
|
|
|
232
232
|
clientCertDN?: string[];
|
|
233
233
|
}
|
|
234
234
|
export interface SidekickConfig {
|
|
235
|
-
plugins?: []
|
|
235
|
+
plugins?: SidekickPlugin[];
|
|
236
236
|
[k: string]: unknown;
|
|
237
237
|
}
|
|
238
238
|
export interface SidekickPlugin {
|
|
@@ -242,7 +242,7 @@ export interface SidekickPlugin {
|
|
|
242
242
|
[k: string]: unknown;
|
|
243
243
|
}
|
|
244
244
|
export interface Metadata {
|
|
245
|
-
source?: []
|
|
245
|
+
source?: string[];
|
|
246
246
|
}
|
|
247
247
|
export interface Robots {
|
|
248
248
|
txt?: string;
|
package/types/site-config.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface HelixSiteConfig {
|
|
|
29
29
|
content: ContentBus;
|
|
30
30
|
code: CodeBus;
|
|
31
31
|
folders?: Folders;
|
|
32
|
-
headers?:
|
|
32
|
+
headers?: HelixHeadersConfig;
|
|
33
33
|
cdn?: CDNConfig;
|
|
34
34
|
access?: Access;
|
|
35
35
|
sidekick?: SidekickConfig;
|
|
@@ -37,7 +37,7 @@ export interface HelixSiteConfig {
|
|
|
37
37
|
robots?: Robots;
|
|
38
38
|
public?: Public;
|
|
39
39
|
extends?: {
|
|
40
|
-
|
|
40
|
+
profile?: string;
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
@@ -100,13 +100,13 @@ export interface CodeBus {
|
|
|
100
100
|
export interface Folders {
|
|
101
101
|
/**
|
|
102
102
|
* This interface was referenced by `Folders`'s JSON-Schema definition
|
|
103
|
-
* via the `patternProperty` "^/[a-zA-Z0-9-/.]
|
|
103
|
+
* via the `patternProperty` "^/[a-zA-Z0-9-/.]*$".
|
|
104
104
|
*/
|
|
105
|
-
[k: string]:
|
|
105
|
+
[k: string]: string;
|
|
106
106
|
}
|
|
107
|
-
export interface
|
|
107
|
+
export interface HelixHeadersConfig {
|
|
108
108
|
/**
|
|
109
|
-
* This interface was referenced by `
|
|
109
|
+
* This interface was referenced by `HelixHeadersConfig`'s JSON-Schema definition
|
|
110
110
|
* via the `patternProperty` "^/[a-zA-Z0-9-/.]*\*{0,2}$".
|
|
111
111
|
*/
|
|
112
112
|
[k: string]: [] | [KeyValuePair];
|
|
@@ -239,7 +239,7 @@ export interface SiteAccessConfig {
|
|
|
239
239
|
clientCertDN?: string[];
|
|
240
240
|
}
|
|
241
241
|
export interface SidekickConfig {
|
|
242
|
-
plugins?: []
|
|
242
|
+
plugins?: SidekickPlugin[];
|
|
243
243
|
[k: string]: unknown;
|
|
244
244
|
}
|
|
245
245
|
export interface SidekickPlugin {
|
|
@@ -249,7 +249,7 @@ export interface SidekickPlugin {
|
|
|
249
249
|
[k: string]: unknown;
|
|
250
250
|
}
|
|
251
251
|
export interface Metadata {
|
|
252
|
-
source?: []
|
|
252
|
+
source?: string[];
|
|
253
253
|
}
|
|
254
254
|
export interface Robots {
|
|
255
255
|
txt?: string;
|