@adobe/helix-config-storage 2.3.0 → 2.5.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.5.0](https://github.com/adobe/helix-config-storage/compare/v2.4.0...v2.5.0) (2025-07-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * add envId to managed prod cdn config ([#151](https://github.com/adobe/helix-config-storage/issues/151)) ([0c52522](https://github.com/adobe/helix-config-storage/commit/0c52522a083d70e5cb1c3559463f3b13cf6640e8))
7
+
8
+ # [2.4.0](https://github.com/adobe/helix-config-storage/compare/v2.3.0...v2.4.0) (2025-07-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * improve user creation during org creation ([11559e3](https://github.com/adobe/helix-config-storage/commit/11559e3cda9b186a0b810efb3c1b91bf1d5596e1))
14
+
1
15
  # [2.3.0](https://github.com/adobe/helix-config-storage/compare/v2.2.13...v2.3.0) (2025-06-24)
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.0",
3
+ "version": "2.5.0",
4
4
  "description": "Helix Config Storage",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -36,11 +36,11 @@
36
36
  "reporter-options": "configFile=.mocha-multi.json"
37
37
  },
38
38
  "devDependencies": {
39
- "@adobe/eslint-config-helix": "3.0.5",
40
- "@eslint/config-helpers": "0.2.3",
39
+ "@adobe/eslint-config-helix": "3.0.8",
40
+ "@eslint/config-helpers": "0.3.0",
41
41
  "@semantic-release/changelog": "6.0.3",
42
42
  "@semantic-release/git": "10.0.1",
43
- "@semantic-release/npm": "12.0.1",
43
+ "@semantic-release/npm": "12.0.2",
44
44
  "ajv-cli": "5.0.0",
45
45
  "c8": "10.1.3",
46
46
  "eslint": "9.4.0",
@@ -48,11 +48,11 @@
48
48
  "json-schema-to-typescript": "15.0.4",
49
49
  "junit-report-builder": "5.1.1",
50
50
  "lint-staged": "16.1.2",
51
- "mocha": "11.7.0",
51
+ "mocha": "11.7.1",
52
52
  "mocha-multi-reporters": "1.5.1",
53
- "mocha-suppress-logs": "0.5.1",
53
+ "mocha-suppress-logs": "0.6.0",
54
54
  "nock": "13.5.6",
55
- "semantic-release": "24.2.5",
55
+ "semantic-release": "24.2.6",
56
56
  "xml2js": "0.6.2"
57
57
  },
58
58
  "lint-staged": {
@@ -533,8 +533,18 @@ export class ConfigStore {
533
533
  throw new StatusCodeError(400, 'creating config with secrets not supported yet.');
534
534
  }
535
535
  if (this.type === 'org' && data.users) {
536
- throw new StatusCodeError(400, 'creating org config with users is not supported yet.');
536
+ const users = [];
537
+ for (const userData of data.users) {
538
+ validateUniqueEmail(userData.email, users);
539
+ users.push(Object.assign(
540
+ Object.create(null),
541
+ createUser(),
542
+ userData,
543
+ ));
544
+ }
545
+ data.users = users;
537
546
  }
547
+
538
548
  if (this.type !== 'org') {
539
549
  updateContentSource(ctx, data.content);
540
550
  updateCodeSource(ctx, data.code);
@@ -698,21 +708,22 @@ export class ConfigStore {
698
708
  const users = [...old.users];
699
709
  for (const userData of data) {
700
710
  validateUniqueEmail(userData.email, users);
701
- users.push({
702
- ...createUser(),
703
- ...userData,
704
- });
711
+ users.push(Object.assign(
712
+ Object.create(null),
713
+ createUser(),
714
+ userData,
715
+ ));
705
716
  }
706
717
  data = users;
707
718
  } else {
708
- const user = createUser();
709
- data = {
710
- ...data,
711
- ...user,
712
- };
719
+ data = Object.assign(
720
+ Object.create(null),
721
+ createUser(),
722
+ data,
723
+ );
713
724
  validateUniqueEmail(data.email, old.users);
714
- frag.name = user.id;
715
- frag.relPath.push(user.id);
725
+ frag.name = data.id;
726
+ frag.relPath.push(data.id);
716
727
  frag.type = 'user';
717
728
  }
718
729
  } else if (frag.type === 'user') {
@@ -13,6 +13,10 @@
13
13
  "description": "production host",
14
14
  "type": "string"
15
15
  },
16
+ "envId": {
17
+ "description": "environment id",
18
+ "type": "string"
19
+ },
16
20
  "route": {
17
21
  "description": "Routes on the CDN that are rendered with Franklin",
18
22
  "type": "array",
@@ -208,6 +208,10 @@ export interface ManagedCDNConfig {
208
208
  * production host
209
209
  */
210
210
  host: string;
211
+ /**
212
+ * environment id
213
+ */
214
+ envId?: string;
211
215
  /**
212
216
  * Routes on the CDN that are rendered with Franklin
213
217
  */
@@ -216,6 +216,10 @@ export interface ManagedCDNConfig {
216
216
  * production host
217
217
  */
218
218
  host: string;
219
+ /**
220
+ * environment id
221
+ */
222
+ envId?: string;
219
223
  /**
220
224
  * Routes on the CDN that are rendered with Franklin
221
225
  */