@adobe/helix-config-storage 2.9.0 → 2.10.1
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 +9 -9
- package/src/config-store.js +9 -0
- package/src/schemas/cdn.schema.json +2 -2
- package/src/schemas/org.schema.json +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.10.1](https://github.com/adobe/helix-config-storage/compare/v2.10.0...v2.10.1) (2025-11-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#198](https://github.com/adobe/helix-config-storage/issues/198)) ([d978454](https://github.com/adobe/helix-config-storage/commit/d97845436ef1dde9833956849ed34ae1e0860277))
|
|
7
|
+
|
|
8
|
+
# [2.10.0](https://github.com/adobe/helix-config-storage/compare/v2.9.0...v2.10.0) (2025-10-02)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add org registry property ([#181](https://github.com/adobe/helix-config-storage/issues/181)) ([a498ef9](https://github.com/adobe/helix-config-storage/commit/a498ef992b2cfc6281f84d7f60808104c65037b0))
|
|
14
|
+
|
|
1
15
|
# [2.9.0](https://github.com/adobe/helix-config-storage/compare/v2.8.5...v2.9.0) (2025-09-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-config-storage",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"description": "Helix Config Storage",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/adobe/helix-config-storage"
|
|
21
|
+
"url": "https://github.com/adobe/helix-config-storage.git"
|
|
22
22
|
},
|
|
23
23
|
"author": "",
|
|
24
24
|
"license": "Apache-2.0",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"reporter-options": "configFile=.mocha-multi.json"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
40
|
-
"@eslint/config-helpers": "0.
|
|
39
|
+
"@adobe/eslint-config-helix": "3.0.14",
|
|
40
|
+
"@eslint/config-helpers": "0.4.2",
|
|
41
41
|
"@semantic-release/changelog": "6.0.3",
|
|
42
42
|
"@semantic-release/git": "10.0.1",
|
|
43
|
-
"@semantic-release/npm": "
|
|
43
|
+
"@semantic-release/npm": "13.1.1",
|
|
44
44
|
"ajv-cli": "5.0.0",
|
|
45
45
|
"c8": "10.1.3",
|
|
46
46
|
"eslint": "9.4.0",
|
|
47
47
|
"husky": "9.1.7",
|
|
48
48
|
"json-schema-to-typescript": "15.0.4",
|
|
49
49
|
"junit-report-builder": "5.1.1",
|
|
50
|
-
"lint-staged": "16.
|
|
51
|
-
"mocha": "11.7.
|
|
50
|
+
"lint-staged": "16.2.6",
|
|
51
|
+
"mocha": "11.7.5",
|
|
52
52
|
"mocha-multi-reporters": "1.5.1",
|
|
53
53
|
"mocha-suppress-logs": "0.6.0",
|
|
54
54
|
"nock": "13.5.6",
|
|
55
|
-
"semantic-release": "
|
|
55
|
+
"semantic-release": "25.0.2",
|
|
56
56
|
"xml2js": "0.6.2"
|
|
57
57
|
},
|
|
58
58
|
"lint-staged": {
|
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"@adobe/helix-shared-utils": "^3.0.2",
|
|
70
70
|
"ajv": "8.17.1",
|
|
71
71
|
"ajv-formats": "3.0.1",
|
|
72
|
-
"jose": "6.1.
|
|
72
|
+
"jose": "6.1.1"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/src/config-store.js
CHANGED
|
@@ -523,6 +523,15 @@ export class ConfigStore {
|
|
|
523
523
|
throw new StatusCodeError(403, 'not allowed to modify limits');
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
+
|
|
527
|
+
// check for changed org registry
|
|
528
|
+
if (this.type === 'org') {
|
|
529
|
+
const oldRegistry = oldConfig?.registry ?? 'github';
|
|
530
|
+
const newRegistry = newConfig?.registry ?? 'github';
|
|
531
|
+
if (oldRegistry !== newRegistry) {
|
|
532
|
+
throw new StatusCodeError(403, 'not allowed to modify registry');
|
|
533
|
+
}
|
|
534
|
+
}
|
|
526
535
|
}
|
|
527
536
|
|
|
528
537
|
async create(ctx, data, relPath = '') {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"type": "object",
|
|
43
43
|
"properties": {
|
|
44
44
|
"host": {
|
|
45
|
-
"description": "Sidekick config to override the default
|
|
45
|
+
"description": "Sidekick config to override the default liveHost. it supports parameters $owner and $repo",
|
|
46
46
|
"examples": [
|
|
47
47
|
"main--$repo--page.example.com"
|
|
48
48
|
],
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"type": "object",
|
|
59
59
|
"properties": {
|
|
60
60
|
"host": {
|
|
61
|
-
"description": "Sidekick config to override the default
|
|
61
|
+
"description": "Sidekick config to override the default previewHost. it supports parameters $owner and $repo",
|
|
62
62
|
"examples": [
|
|
63
63
|
"main--$repo--live.example.com"
|
|
64
64
|
],
|