@adobe/helix-shared-config 1.7.21 → 2.0.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 +39 -0
- package/package.json +12 -9
- package/src/config-wrapper.js +0 -6
- package/src/index.js +0 -12
- package/src/Condition.js +0 -573
- package/src/ConfigValidator.js +0 -95
- package/src/DataEmbedValidator.js +0 -51
- package/src/DynamicRedirect.js +0 -125
- package/src/HelixConfig.js +0 -133
- 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/data-embed-response.schema.json +0 -40
- package/src/schemas/giturl.schema.json +0 -62
- package/src/schemas/markup.schema.json +0 -22
- 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/row.schema.json +0 -23
- package/src/schemas/runtimestrain.schema.json +0 -144
- package/src/schemas/sheet.schema.json +0 -57
- 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
- package/src/schemas/workbook.schema.json +0 -49
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.0.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config@1.7.23...@adobe/helix-shared-config@2.0.0) (2022-04-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency yaml to v2 and remove unused configs ([e2fd978](https://github.com/adobe/helix-shared/commit/e2fd978130076292c9049822b14718b8b6fa3269))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **deps:** redirects, markup and helix-config removed
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.7.23](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config@1.7.22...@adobe/helix-shared-config@1.7.23) (2022-04-10)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **deps:** update dependency @adobe/helix-fetch to v3.0.9 ([#670](https://github.com/adobe/helix-shared/issues/670)) ([768d02f](https://github.com/adobe/helix-shared/commit/768d02fbfdcab02a24eec568989efc34759b8af3))
|
|
28
|
+
* **deps:** update external fixes ([#669](https://github.com/adobe/helix-shared/issues/669)) ([abf4a21](https://github.com/adobe/helix-shared/commit/abf4a21a686361ee387fd272fe0ee769c1acfb71))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [1.7.22](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config@1.7.21...@adobe/helix-shared-config@1.7.22) (2022-04-05)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* **deps:** update external fixes ([#668](https://github.com/adobe/helix-shared/issues/668)) ([d32918b](https://github.com/adobe/helix-shared/commit/d32918b2885cabee8792f9d3ef1b65199668b9ad))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
6
45
|
## [1.7.21](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config@1.7.20...@adobe/helix-shared-config@1.7.21) (2022-04-02)
|
|
7
46
|
|
|
8
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-shared-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Shared modules of the Helix Project - config",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -22,29 +22,32 @@
|
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
|
+
"mocha": {
|
|
26
|
+
"require": "test/setup-env.js"
|
|
27
|
+
},
|
|
25
28
|
"dependencies": {
|
|
26
29
|
"@adobe/helix-fetch": "^3.0.3",
|
|
27
|
-
"@adobe/helix-shared-git": "^
|
|
30
|
+
"@adobe/helix-shared-git": "^2.0.0",
|
|
28
31
|
"@adobe/helix-shared-prune": "^1.0.4",
|
|
29
|
-
"@adobe/helix-shared-utils": "^2.0.
|
|
32
|
+
"@adobe/helix-shared-utils": "^2.0.7",
|
|
30
33
|
"ajv": "8.11.0",
|
|
31
34
|
"ajv-formats": "2.1.1",
|
|
32
35
|
"cookie": "0.4.2",
|
|
33
36
|
"fs-extra": "10.0.1",
|
|
34
37
|
"ignore": "5.2.0",
|
|
35
|
-
"lru-cache": "7.
|
|
38
|
+
"lru-cache": "7.8.1",
|
|
36
39
|
"object-hash": "3.0.0",
|
|
37
40
|
"uri-js": "4.4.1",
|
|
38
|
-
"yaml": "
|
|
41
|
+
"yaml": "2.0.0"
|
|
39
42
|
},
|
|
40
43
|
"devDependencies": {
|
|
41
44
|
"@adobe/helix-shared-wrap": "^1.0.4",
|
|
42
45
|
"@adobe/helix-testutils": "0.4.12",
|
|
43
|
-
"@pollyjs/adapter-node-http": "6.0.
|
|
44
|
-
"@pollyjs/core": "6.0.
|
|
45
|
-
"@pollyjs/persister-fs": "6.0.
|
|
46
|
+
"@pollyjs/adapter-node-http": "6.0.5",
|
|
47
|
+
"@pollyjs/core": "6.0.5",
|
|
48
|
+
"@pollyjs/persister-fs": "6.0.5",
|
|
46
49
|
"mocha": "9.2.2",
|
|
47
50
|
"nock": "13.2.4"
|
|
48
51
|
},
|
|
49
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "3ddd48e715d4794dd159fcba317881d03ffc7cf8"
|
|
50
53
|
}
|
package/src/config-wrapper.js
CHANGED
|
@@ -11,18 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
const { Request, Response } = require('@adobe/helix-fetch');
|
|
13
13
|
const { cleanupHeaderValue } = require('@adobe/helix-shared-utils');
|
|
14
|
-
const redirect = require('./RedirectConfig');
|
|
15
|
-
const helix = require('./HelixConfig');
|
|
16
14
|
const fstab = require('./MountConfig');
|
|
17
15
|
const index = require('./IndexConfig');
|
|
18
|
-
const markup = require('./MarkupConfig');
|
|
19
16
|
|
|
20
17
|
const loaders = {
|
|
21
|
-
redirect,
|
|
22
|
-
helix,
|
|
23
18
|
fstab,
|
|
24
19
|
index,
|
|
25
|
-
markup,
|
|
26
20
|
};
|
|
27
21
|
|
|
28
22
|
/**
|
package/src/index.js
CHANGED
|
@@ -9,31 +9,19 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
const HelixConfig = require('./HelixConfig.js');
|
|
13
12
|
const IndexConfig = require('./IndexConfig');
|
|
14
13
|
const MountConfig = require('./MountConfig');
|
|
15
|
-
const RedirectConfig = require('./RedirectConfig');
|
|
16
|
-
const Strain = require('./Strain.js');
|
|
17
|
-
const MarkupConfig = require('./MarkupConfig');
|
|
18
|
-
const Condition = require('./Condition.js');
|
|
19
14
|
const { optionalConfig, requiredConfig } = require('./config-wrapper');
|
|
20
|
-
const DataEmbedValidator = require('./DataEmbedValidator.js');
|
|
21
15
|
const ValidationError = require('./ValidationError.js');
|
|
22
16
|
const IgnoreConfig = require('./IgnoreConfig.js');
|
|
23
17
|
const SitemapConfig = require('./SitemapConfig.js');
|
|
24
18
|
|
|
25
19
|
module.exports = {
|
|
26
|
-
HelixConfig,
|
|
27
20
|
IndexConfig,
|
|
28
21
|
MountConfig,
|
|
29
|
-
RedirectConfig,
|
|
30
|
-
Strain,
|
|
31
|
-
MarkupConfig,
|
|
32
22
|
IgnoreConfig,
|
|
33
23
|
SitemapConfig,
|
|
34
|
-
Condition,
|
|
35
24
|
optionalConfig,
|
|
36
25
|
requiredConfig,
|
|
37
|
-
DataEmbedValidator,
|
|
38
26
|
ValidationError,
|
|
39
27
|
};
|