@adobe/helix-config-storage 1.8.5 → 1.9.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
+ # [1.9.0](https://github.com/adobe/helix-config-storage/compare/v1.8.6...v1.9.0) (2024-10-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * add github events to config ([#53](https://github.com/adobe/helix-config-storage/issues/53)) ([7add957](https://github.com/adobe/helix-config-storage/commit/7add957b78abf64f63af73568715c02086f15207))
7
+
8
+ ## [1.8.6](https://github.com/adobe/helix-config-storage/compare/v1.8.5...v1.8.6) (2024-10-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * allow crud of deep public objects ([#50](https://github.com/adobe/helix-config-storage/issues/50)) ([6dbfd8e](https://github.com/adobe/helix-config-storage/commit/6dbfd8efedb793f966f17882a8a7c2f4aafa1cab))
14
+
1
15
  ## [1.8.5](https://github.com/adobe/helix-config-storage/compare/v1.8.4...v1.8.5) (2024-10-19)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config-storage",
3
- "version": "1.8.5",
3
+ "version": "1.9.0",
4
4
  "description": "Helix Config Storage",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -70,8 +70,11 @@ const FRAGMENTS_COMMON = {
70
70
  members: 'object',
71
71
  },
72
72
  },
73
- public: 'object',
73
+ public: '*',
74
74
  robots: 'object',
75
+ events: {
76
+ github: 'object',
77
+ },
75
78
  };
76
79
 
77
80
  const FRAGMENTS = {
@@ -120,6 +123,10 @@ export function getFragmentInfo(type, relPath) {
120
123
  };
121
124
  for (const part of parts) {
122
125
  let next = fragment[part];
126
+ if (next === '*') {
127
+ fragment = '*';
128
+ break;
129
+ }
123
130
  if (!next) {
124
131
  next = fragment['.param'];
125
132
  if (!next) {
@@ -25,6 +25,7 @@ import cdnProdCloudfrontSchema from './schemas/cdn-prod-cloudfront.schema.cjs';
25
25
  import commonSchema from './schemas/common.schema.cjs';
26
26
  import codeSchema from './schemas/code.schema.cjs';
27
27
  import contentSchema from './schemas/content.schema.cjs';
28
+ import eventsSchema from './schemas/events.schema.cjs';
28
29
  import foldersSchema from './schemas/folders.schema.cjs';
29
30
  import groupsSchema from './schemas/groups.schema.cjs';
30
31
  import googleSchema from './schemas/content-source-google.schema.cjs';
@@ -53,6 +54,7 @@ export const SCHEMAS = [
53
54
  commonSchema,
54
55
  contentSchema,
55
56
  codeSchema,
57
+ eventsSchema,
56
58
  foldersSchema,
57
59
  googleSchema,
58
60
  groupsSchema,
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright 2024 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
+ module.exports = require('./events.schema.json');
@@ -0,0 +1,26 @@
1
+ {
2
+ "$comment": "https://github.com/adobe/helix-config/blob/main/LICENSE.txt",
3
+ "$id": "https://ns.adobe.com/helix/config/events",
4
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
5
+ "title": "Events Config",
6
+ "type": "object",
7
+ "properties": {
8
+ "github": {
9
+ "type": "object",
10
+ "properties": {
11
+ "target": {
12
+ "type": "string",
13
+ "pattern": "^[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+$"
14
+ }
15
+ },
16
+ "required": [
17
+ "target"
18
+ ],
19
+ "additionalProperties": false
20
+ }
21
+ },
22
+ "required": [
23
+ "github"
24
+ ],
25
+ "additionalProperties": false
26
+ }
@@ -49,6 +49,9 @@
49
49
  },
50
50
  "public": {
51
51
  "$ref": "https://ns.adobe.com/helix/config/public"
52
+ },
53
+ "events": {
54
+ "$ref": "https://ns.adobe.com/helix/config/events"
52
55
  }
53
56
  },
54
57
  "required": [
@@ -56,6 +56,9 @@
56
56
  "public": {
57
57
  "$ref": "https://ns.adobe.com/helix/config/public"
58
58
  },
59
+ "events": {
60
+ "$ref": "https://ns.adobe.com/helix/config/events"
61
+ },
59
62
  "extends": {
60
63
  "type": "object",
61
64
  "properties": {
@@ -15,6 +15,7 @@ npx ajv-cli --spec=draft2019 -c ajv-formats compile \
15
15
  -s src/schemas/content-source-markup.schema.json \
16
16
  -s src/schemas/content-source-onedrive.schema.json \
17
17
  -s src/schemas/content.schema.json \
18
+ -s src/schemas/events.schema.json \
18
19
  -s src/schemas/folders.schema.json \
19
20
  -s src/schemas/groups.schema.json \
20
21
  -s src/schemas/headers.schema.json \