@adobe/helix-shared-config 7.21.1 → 8.2.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 +878 -0
- package/package.json +28 -24
- package/src/BaseConfig.js +25 -9
- package/src/IgnoreConfig.js +43 -0
- package/src/IndexConfig.js +38 -0
- package/src/MountConfig.js +1 -0
- package/src/SchemaDerivedConfig.js +5 -3
- package/src/SitemapConfig.js +119 -0
- package/src/SitemapHandler.js +58 -0
- package/src/ValidationError.js +46 -0
- package/src/config-wrapper.d.ts +1 -0
- package/src/config-wrapper.js +0 -6
- package/src/fetchconfig/cache.js +2 -2
- package/src/fetchconfig/fetch.js +1 -1
- package/src/index.js +6 -10
- package/src/parsers/BaseParser.js +84 -0
- package/src/parsers/GlobfileParser.js +82 -0
- package/src/schemas/fstab.example.1.json +6 -1
- package/src/schemas/fstab.schema.json +12 -1
- package/src/schemas/index.schema.json +24 -3
- package/src/schemas/mountpoint.schema.json +4 -0
- package/src/schemas/sitemap-language.description.md +11 -0
- package/src/schemas/sitemap-language.schema.json +49 -0
- package/src/schemas/sitemap.description.md +3 -0
- package/src/schemas/sitemap.schema.json +52 -0
- package/src/schemas/{markup.schema.json → sitemapconfig.schema.json} +11 -7
- package/src/Condition.js +0 -573
- package/src/ConfigValidator.js +0 -103
- package/src/DynamicRedirect.js +0 -125
- package/src/HelixConfig.js +0 -138
- package/src/MarkupConfig.js +0 -35
- package/src/Origin.js +0 -159
- package/src/Performance.js +0 -80
- package/src/Redirect.js +0 -64
- package/src/RedirectConfig.js +0 -64
- package/src/RedirectRuleHandler.js +0 -46
- package/src/Static.js +0 -119
- package/src/Strain.js +0 -332
- package/src/Strains.js +0 -68
- package/src/schemas/conditions.schema.json +0 -140
- package/src/schemas/config.description.md +0 -7
- package/src/schemas/config.example.1.json +0 -26
- package/src/schemas/config.schema.json +0 -44
- package/src/schemas/giturl.schema.json +0 -62
- package/src/schemas/markupconfig.schema.json +0 -38
- package/src/schemas/markupmapping.description.md +0 -242
- package/src/schemas/markupmapping.schema.json +0 -122
- package/src/schemas/origin.description.md +0 -5
- package/src/schemas/origin.schema.json +0 -86
- package/src/schemas/performance.schema.json +0 -210
- package/src/schemas/proxystrain.description.md +0 -20
- package/src/schemas/proxystrain.schema.json +0 -87
- package/src/schemas/redirect.schema.json +0 -34
- package/src/schemas/redirectrule.schema.json +0 -46
- package/src/schemas/redirects.description.md +0 -1
- package/src/schemas/redirects.schema.json +0 -41
- package/src/schemas/runtimestrain.schema.json +0 -144
- package/src/schemas/staticgiturl.schema.json +0 -80
- package/src/schemas/strains.schema.json +0 -39
- package/src/schemas/vanity.schema.json +0 -38
- package/src/schemas/version-lock.description.md +0 -3
- package/src/schemas/version-lock.schema.json +0 -35
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2018 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
|
-
"$id": "https://ns.adobe.com/helix/shared/strains",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Strains",
|
|
16
|
-
"meta:status": "stabilizing",
|
|
17
|
-
"definitions": {
|
|
18
|
-
"anystrain": {
|
|
19
|
-
"oneOf": [
|
|
20
|
-
{
|
|
21
|
-
"$ref": "https://ns.adobe.com/helix/shared/proxystrain"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"$ref": "https://ns.adobe.com/helix/shared/runtimestrain"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"oneOf": [
|
|
30
|
-
{
|
|
31
|
-
"type": "array",
|
|
32
|
-
"minItems": 1,
|
|
33
|
-
"description": "A list of strains. Every strain name must be unique for a given config.",
|
|
34
|
-
"items": {
|
|
35
|
-
"$ref": "#/definitions/anystrain"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2020 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
|
-
"$id": "https://ns.adobe.com/helix/shared/vanity",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Vanity URL mapping",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"properties": {
|
|
18
|
-
"source": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": ["html", "markdown"],
|
|
21
|
-
"title": "Source",
|
|
22
|
-
"description": "The source representation to be used by the indexer to extract values"
|
|
23
|
-
},
|
|
24
|
-
"fetch": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"format": "uri-template",
|
|
27
|
-
"description": "The source document to retrieve values from. Known variables in the URI Template are: `repo`, `ref`, `owner`, `path`"
|
|
28
|
-
},
|
|
29
|
-
"select": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "A CSS selector expression that selects nodes in the HTML (DOM) or Markdown (MDAST) syntax tree"
|
|
32
|
-
},
|
|
33
|
-
"value": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "A ES6 template literal expression that extracts the value from the matching node(s) to be stored in the index"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
The `version-lock` property allows pinning of specific services to a particular version number.
|
|
2
|
-
|
|
3
|
-
Each property is the name of the service, the value is either the version number or (when starting with `v`) or the CI build number (when starting with `ci`) or any other version string.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2020 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
|
-
"$id": "https://ns.adobe.com/helix/shared/version-lock",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Version Lock",
|
|
16
|
-
"description": "",
|
|
17
|
-
"type": "object",
|
|
18
|
-
"additionalProperties": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "A version number string",
|
|
21
|
-
"title": "Service Version",
|
|
22
|
-
"examples": [
|
|
23
|
-
"1.0.0",
|
|
24
|
-
"v1.0",
|
|
25
|
-
"v1",
|
|
26
|
-
"ci999"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"examples":[
|
|
30
|
-
{
|
|
31
|
-
"helix-embed": "v3",
|
|
32
|
-
"helix-data-embed": "ci999"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|