@adobe/helix-config 5.0.0 → 5.1.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 +1 -1
- package/src/config-view.js +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [5.1.1](https://github.com/adobe/helix-config/compare/v5.1.0...v5.1.1) (2025-04-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* resolve groups correctly ([#258](https://github.com/adobe/helix-config/issues/258)) ([7971230](https://github.com/adobe/helix-config/commit/797123067f6028828657eececfc48fbf1d6ae484))
|
|
7
|
+
|
|
8
|
+
# [5.1.0](https://github.com/adobe/helix-config/compare/v5.0.0...v5.1.0) (2025-04-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* support group references w/o .json ([#257](https://github.com/adobe/helix-config/issues/257)) ([013cb2a](https://github.com/adobe/helix-config/commit/013cb2a6f11cf8881966f97470c2a8eaeee81eb4)), closes [#256](https://github.com/adobe/helix-config/issues/256)
|
|
14
|
+
|
|
1
15
|
# [5.0.0](https://github.com/adobe/helix-config/compare/v4.14.4...v5.0.0) (2025-04-03)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/config-view.js
CHANGED
|
@@ -406,15 +406,21 @@ function computeSiteAdminRoles(admin, orgConfig, configGroups = {}) {
|
|
|
406
406
|
for (const /* @type string */ entry of role) {
|
|
407
407
|
if (entry.indexOf('@') > 0) {
|
|
408
408
|
users.add(entry);
|
|
409
|
-
} else if (entry.startsWith('groups/')
|
|
409
|
+
} else if (entry.startsWith('groups/')) {
|
|
410
410
|
// keep entry in list so that admin can auto-migrate updates to the groups json
|
|
411
411
|
// TODO: remove after v4 EOL
|
|
412
412
|
users.add(entry);
|
|
413
|
-
|
|
413
|
+
const reference = entry.endsWith('.json')
|
|
414
|
+
? entry.substring(7, entry.length - 5)
|
|
415
|
+
: entry.substring(7);
|
|
416
|
+
for (const email of resolveGroup(configGroups, reference)) {
|
|
414
417
|
users.add(email);
|
|
415
418
|
}
|
|
416
419
|
} else if (entry.startsWith('/groups/')) {
|
|
417
|
-
|
|
420
|
+
const reference = entry.endsWith('.json')
|
|
421
|
+
? entry.substring(8, entry.length - 5)
|
|
422
|
+
: entry.substring(8);
|
|
423
|
+
for (const email of resolveGroup(orgGroups, reference)) {
|
|
418
424
|
users.add(email);
|
|
419
425
|
}
|
|
420
426
|
}
|