@adobe/helix-config-storage 2.8.5 → 2.10.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
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [2.10.0](https://github.com/adobe/helix-config-storage/compare/v2.9.0...v2.10.0) (2025-10-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add org registry property ([#181](https://github.com/adobe/helix-config-storage/issues/181)) ([a498ef9](https://github.com/adobe/helix-config-storage/commit/a498ef992b2cfc6281f84d7f60808104c65037b0))
|
|
7
|
+
|
|
8
|
+
# [2.9.0](https://github.com/adobe/helix-config-storage/compare/v2.8.5...v2.9.0) (2025-09-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* include version user ([#178](https://github.com/adobe/helix-config-storage/issues/178)) ([dfcd102](https://github.com/adobe/helix-config-storage/commit/dfcd102ad9043b6b039fdbc5e19d2e3eb9725c74))
|
|
14
|
+
|
|
1
15
|
## [2.8.5](https://github.com/adobe/helix-config-storage/compare/v2.8.4...v2.8.5) (2025-09-08)
|
|
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.0",
|
|
4
4
|
"description": "Helix Config Storage",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"reporter-options": "configFile=.mocha-multi.json"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
39
|
+
"@adobe/eslint-config-helix": "3.0.10",
|
|
40
40
|
"@eslint/config-helpers": "0.3.1",
|
|
41
41
|
"@semantic-release/changelog": "6.0.3",
|
|
42
42
|
"@semantic-release/git": "10.0.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
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": "24.2.
|
|
55
|
+
"semantic-release": "24.2.8",
|
|
56
56
|
"xml2js": "0.6.2"
|
|
57
57
|
},
|
|
58
58
|
"lint-staged": {
|
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 = '') {
|
package/src/config-versioning.js
CHANGED
|
@@ -79,6 +79,11 @@ export class ConfigVersioning {
|
|
|
79
79
|
versionMetadata.name = name;
|
|
80
80
|
meta['x-version-name'] = name;
|
|
81
81
|
}
|
|
82
|
+
const user = ctx.attributes?.authInfo?.resolveEmail();
|
|
83
|
+
if (user) {
|
|
84
|
+
versionMetadata.user = user;
|
|
85
|
+
meta['x-created-by'] = user;
|
|
86
|
+
}
|
|
82
87
|
|
|
83
88
|
// Store the versioned config
|
|
84
89
|
await storage.put(`${this.prefix}/${nextVersion}.json`, JSON.stringify(config, null, 2), 'application/json', meta, true);
|
|
@@ -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
|
],
|