@adobe/helix-config 5.4.4 → 5.4.6

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
+ ## [5.4.6](https://github.com/adobe/helix-config/compare/v5.4.5...v5.4.6) (2025-06-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * always include org user roles ([#287](https://github.com/adobe/helix-config/issues/287)) ([3c8f41c](https://github.com/adobe/helix-config/commit/3c8f41c7bf27f6388634d65376fc20ca90601550))
7
+
8
+ ## [5.4.5](https://github.com/adobe/helix-config/compare/v5.4.4...v5.4.5) (2025-06-03)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-shared-config to v11.1.7 ([#284](https://github.com/adobe/helix-config/issues/284)) ([faa93bc](https://github.com/adobe/helix-config/commit/faa93bc9365fb55c42cab3dcddee2423f29b59f2))
14
+
1
15
  ## [5.4.4](https://github.com/adobe/helix-config/compare/v5.4.3...v5.4.4) (2025-05-28)
2
16
 
3
17
 
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright 2025 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+ import { defineConfig, globalIgnores } from '@eslint/config-helpers';
13
+ import { recommended, source, test } from '@adobe/eslint-config-helix';
14
+
15
+ export default defineConfig([
16
+ globalIgnores([
17
+ '.vscode/*',
18
+ 'coverage/*',
19
+ ]),
20
+ {
21
+ rules: {
22
+ // see https://github.com/import-js/eslint-plugin-import/issues/1868
23
+ 'import/no-unresolved': ['error', { ignore: ['@adobe/helix-shared-config/modifiers'] }]
24
+ },
25
+ plugins: {
26
+ import: recommended.plugins.import,
27
+ },
28
+ extends: [recommended],
29
+ },
30
+ source,
31
+ test,
32
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "5.4.4",
3
+ "version": "5.4.6",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -35,16 +35,17 @@
35
35
  "reporter-options": "configFile=.mocha-multi.json"
36
36
  },
37
37
  "devDependencies": {
38
- "@adobe/eslint-config-helix": "2.0.9",
38
+ "@adobe/eslint-config-helix": "3.0.3",
39
+ "@eslint/config-helpers": "0.2.2",
39
40
  "@semantic-release/changelog": "6.0.3",
40
41
  "@semantic-release/git": "10.0.1",
41
42
  "@semantic-release/npm": "12.0.1",
42
43
  "c8": "10.1.3",
43
- "eslint": "8.57.1",
44
+ "eslint": "9.4.0",
44
45
  "husky": "9.1.7",
45
46
  "junit-report-builder": "5.1.1",
46
- "lint-staged": "16.0.0",
47
- "mocha": "11.5.0",
47
+ "lint-staged": "16.1.0",
48
+ "mocha": "11.6.0",
48
49
  "mocha-multi-reporters": "1.5.1",
49
50
  "mocha-suppress-logs": "0.5.1",
50
51
  "nock": "13.5.6",
@@ -56,7 +57,7 @@
56
57
  },
57
58
  "dependencies": {
58
59
  "@adobe/fetch": "4.2.2",
59
- "@adobe/helix-shared-config": "11.1.6",
60
+ "@adobe/helix-shared-config": "11.1.7",
60
61
  "@adobe/helix-shared-utils": "3.0.2"
61
62
  }
62
63
  }
@@ -497,23 +497,23 @@ export async function getConfigResponse(ctx, opts) {
497
497
  }
498
498
 
499
499
  const orgConfig = await loadOrgConfig(ctx, org);
500
- if (config.access || orgConfig?.access) {
501
- // normalize access config
502
- const { admin = {} } = config.access ?? {};
503
- config.access = {
504
- preview: await getAccessConfig(ctx, config, orgConfig, 'preview', rso),
505
- live: await getAccessConfig(ctx, config, orgConfig, 'live', rso),
506
- // access.require.repository ?
507
- };
508
- if (opts.scope === SCOPE_ADMIN || opts.scope === SCOPE_RAW) {
509
- // eslint-disable-next-line max-len
510
- config.access.admin = computeSiteAdminRoles(admin, orgConfig, config.groups);
511
- }
512
- prune(config.access);
513
- if (!Object.keys(config.access).length) {
514
- delete config.access;
515
- }
500
+
501
+ // normalize access config
502
+ const { admin = {} } = config.access ?? {};
503
+ config.access = {
504
+ preview: await getAccessConfig(ctx, config, orgConfig, 'preview', rso),
505
+ live: await getAccessConfig(ctx, config, orgConfig, 'live', rso),
506
+ // access.require.repository ?
507
+ };
508
+ if (opts.scope === SCOPE_ADMIN || opts.scope === SCOPE_RAW) {
509
+ // eslint-disable-next-line max-len
510
+ config.access.admin = computeSiteAdminRoles(admin, orgConfig, config.groups);
516
511
  }
512
+ prune(config.access);
513
+ if (!Object.keys(config.access).length) {
514
+ delete config.access;
515
+ }
516
+
517
517
  if (opts.scope === SCOPE_ADMIN || opts.scope === SCOPE_RAW) {
518
518
  const merged = { ...config.apiKeys, ...orgConfig?.apiKeys };
519
519
  if (Object.keys(merged).length) {
package/.eslintrc.cjs DELETED
@@ -1,16 +0,0 @@
1
- /*
2
- * Copyright 2021 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- module.exports = {
14
- root: true,
15
- extends: '@adobe/helix',
16
- };