@iodes/releasekit 0.1.7 → 0.2.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.
@@ -14,6 +14,14 @@
14
14
  "type": "string",
15
15
  "pattern": "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
16
16
  },
17
+ "viewChannel": {
18
+ "type": "string",
19
+ "pattern": "^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z][a-z0-9-]{0,62}$"
20
+ },
21
+ "currentChannel": {
22
+ "type": "string",
23
+ "pattern": "^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z][a-z0-9-]{0,62}$"
24
+ },
17
25
  "releases": {
18
26
  "type": "array",
19
27
  "items": {
@@ -23,16 +31,57 @@
23
31
  "type": "string",
24
32
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
25
33
  },
26
- "releasedAt": {
34
+ "channel": {
27
35
  "type": "string",
28
- "format": "date",
29
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
36
+ "pattern": "^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z][a-z0-9-]{0,62}$"
30
37
  },
31
- "previous": {
38
+ "releasedAt": {
32
39
  "anyOf": [
33
40
  {
34
41
  "type": "string",
35
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
42
+ "format": "date",
43
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
44
+ },
45
+ {
46
+ "type": "string",
47
+ "allOf": [
48
+ {
49
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
50
+ },
51
+ {
52
+ "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$"
53
+ }
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "previous": {
59
+ "anyOf": [
60
+ {
61
+ "anyOf": [
62
+ {
63
+ "type": "string",
64
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
65
+ },
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "channel": {
70
+ "type": "string",
71
+ "pattern": "^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z][a-z0-9-]{0,62}$"
72
+ },
73
+ "version": {
74
+ "type": "string",
75
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
76
+ }
77
+ },
78
+ "required": [
79
+ "channel",
80
+ "version"
81
+ ],
82
+ "additionalProperties": false
83
+ }
84
+ ]
36
85
  },
37
86
  {
38
87
  "type": "null"
@@ -25,11 +25,6 @@
25
25
  "history": {
26
26
  "type": "object",
27
27
  "properties": {
28
- "limit": {
29
- "type": "integer",
30
- "minimum": 1,
31
- "maximum": 100
32
- },
33
28
  "start": {
34
29
  "oneOf": [
35
30
  {
@@ -118,11 +113,133 @@
118
113
  ]
119
114
  }
120
115
  },
121
- "required": [
122
- "limit"
123
- ],
124
116
  "additionalProperties": false
125
117
  },
118
+ "channels": {
119
+ "anyOf": [
120
+ {
121
+ "type": "boolean",
122
+ "const": false
123
+ },
124
+ {
125
+ "type": "object",
126
+ "propertyNames": {
127
+ "type": "string",
128
+ "pattern": "^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z][a-z0-9-]{0,62}$"
129
+ },
130
+ "additionalProperties": {
131
+ "type": "object",
132
+ "properties": {
133
+ "include": {
134
+ "minItems": 1,
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string",
138
+ "pattern": "^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z][a-z0-9-]{0,62}$"
139
+ }
140
+ },
141
+ "history": {
142
+ "type": "object",
143
+ "properties": {
144
+ "start": {
145
+ "oneOf": [
146
+ {
147
+ "type": "object",
148
+ "properties": {
149
+ "ref": {
150
+ "type": "string",
151
+ "minLength": 1
152
+ },
153
+ "sha": {
154
+ "type": "string",
155
+ "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
156
+ },
157
+ "past": {
158
+ "type": "string",
159
+ "const": "summary"
160
+ },
161
+ "version": {
162
+ "type": "string",
163
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
164
+ }
165
+ },
166
+ "required": [
167
+ "ref",
168
+ "sha",
169
+ "past",
170
+ "version"
171
+ ],
172
+ "additionalProperties": false
173
+ },
174
+ {
175
+ "type": "object",
176
+ "properties": {
177
+ "ref": {
178
+ "type": "string",
179
+ "minLength": 1
180
+ },
181
+ "sha": {
182
+ "type": "string",
183
+ "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
184
+ },
185
+ "past": {
186
+ "type": "string",
187
+ "const": "history"
188
+ },
189
+ "version": {
190
+ "type": "string",
191
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
192
+ }
193
+ },
194
+ "required": [
195
+ "ref",
196
+ "sha",
197
+ "past",
198
+ "version"
199
+ ],
200
+ "additionalProperties": false
201
+ },
202
+ {
203
+ "type": "object",
204
+ "properties": {
205
+ "ref": {
206
+ "type": "string",
207
+ "minLength": 1
208
+ },
209
+ "sha": {
210
+ "type": "string",
211
+ "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
212
+ },
213
+ "past": {
214
+ "type": "string",
215
+ "const": "skip"
216
+ },
217
+ "version": {
218
+ "type": "null"
219
+ }
220
+ },
221
+ "required": [
222
+ "ref",
223
+ "sha",
224
+ "past",
225
+ "version"
226
+ ],
227
+ "additionalProperties": false
228
+ }
229
+ ]
230
+ }
231
+ },
232
+ "additionalProperties": false
233
+ }
234
+ },
235
+ "required": [
236
+ "include"
237
+ ],
238
+ "additionalProperties": false
239
+ }
240
+ }
241
+ ]
242
+ },
126
243
  "visuals": {
127
244
  "type": "object",
128
245
  "properties": {
@@ -269,7 +386,6 @@
269
386
  "product",
270
387
  "sourceLocale",
271
388
  "locales",
272
- "history",
273
389
  "visuals",
274
390
  "tools"
275
391
  ],
@@ -10,16 +10,57 @@
10
10
  "type": "string",
11
11
  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
12
12
  },
13
- "releasedAt": {
13
+ "channel": {
14
14
  "type": "string",
15
- "format": "date",
16
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
15
+ "pattern": "^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z][a-z0-9-]{0,62}$"
17
16
  },
18
- "previous": {
17
+ "releasedAt": {
19
18
  "anyOf": [
20
19
  {
21
20
  "type": "string",
22
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
21
+ "format": "date",
22
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
23
+ },
24
+ {
25
+ "type": "string",
26
+ "allOf": [
27
+ {
28
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
29
+ },
30
+ {
31
+ "pattern": "T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$"
32
+ }
33
+ ]
34
+ }
35
+ ]
36
+ },
37
+ "previous": {
38
+ "anyOf": [
39
+ {
40
+ "anyOf": [
41
+ {
42
+ "type": "string",
43
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
44
+ },
45
+ {
46
+ "type": "object",
47
+ "properties": {
48
+ "channel": {
49
+ "type": "string",
50
+ "pattern": "^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z][a-z0-9-]{0,62}$"
51
+ },
52
+ "version": {
53
+ "type": "string",
54
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,95}$"
55
+ }
56
+ },
57
+ "required": [
58
+ "channel",
59
+ "version"
60
+ ],
61
+ "additionalProperties": false
62
+ }
63
+ ]
23
64
  },
24
65
  {
25
66
  "type": "null"