@featurevisor/types 0.6.0 → 0.8.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 +22 -0
- package/lib/index.d.ts +41 -1
- package/package.json +2 -2
- package/src/index.ts +52 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.8.0](https://github.com/fahad19/featurevisor/compare/v0.7.0...v0.8.0) (2023-04-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Status site generator ([#31](https://github.com/fahad19/featurevisor/issues/31)) ([05749d4](https://github.com/fahad19/featurevisor/commit/05749d4ca2938a0ee7c7b52c7441b078d5f0dee9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.7.0](https://github.com/fahad19/featurevisor/compare/v0.6.0...v0.7.0) (2023-03-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* Introduce semver operators ([#30](https://github.com/fahad19/featurevisor/issues/30)) ([b2841c3](https://github.com/fahad19/featurevisor/commit/b2841c3473e9100f9a7f404c7ed15903037523a7))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [0.6.0](https://github.com/fahad19/featurevisor/compare/v0.5.3...v0.6.0) (2023-03-25)
|
|
7
29
|
|
|
8
30
|
|
package/lib/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Attribute {
|
|
|
9
9
|
type: AttributeValue;
|
|
10
10
|
capture?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export type Operator = "equals" | "notEquals" | "greaterThan" | "greaterThanOrEquals" | "lessThan" | "lessThanOrEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "in" | "notIn";
|
|
12
|
+
export type Operator = "equals" | "notEquals" | "greaterThan" | "greaterThanOrEquals" | "lessThan" | "lessThanOrEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "semverEquals" | "semverNotEquals" | "semverGreaterThan" | "semverGreaterThanOrEquals" | "semverLessThan" | "semverLessThanOrEquals" | "in" | "notIn";
|
|
13
13
|
export type ConditionValue = string | number | boolean | null | undefined | string[];
|
|
14
14
|
export interface PlainCondition {
|
|
15
15
|
attribute: AttributeKey;
|
|
@@ -184,3 +184,43 @@ export interface ExistingFeatures {
|
|
|
184
184
|
export interface ExistingState {
|
|
185
185
|
features: ExistingFeatures;
|
|
186
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Site index and history
|
|
189
|
+
*/
|
|
190
|
+
export interface HistoryEntity {
|
|
191
|
+
type: "attribute" | "segment" | "feature";
|
|
192
|
+
key: string;
|
|
193
|
+
}
|
|
194
|
+
export interface HistoryEntry {
|
|
195
|
+
commit: string;
|
|
196
|
+
author: string;
|
|
197
|
+
timestamp: string;
|
|
198
|
+
entities: HistoryEntity[];
|
|
199
|
+
}
|
|
200
|
+
export interface LastModified {
|
|
201
|
+
commit: string;
|
|
202
|
+
timestamp: string;
|
|
203
|
+
author: string;
|
|
204
|
+
}
|
|
205
|
+
export interface SearchIndex {
|
|
206
|
+
links?: {
|
|
207
|
+
feature: string;
|
|
208
|
+
segment: string;
|
|
209
|
+
attribute: string;
|
|
210
|
+
commit: string;
|
|
211
|
+
};
|
|
212
|
+
entities: {
|
|
213
|
+
attributes: (Attribute & {
|
|
214
|
+
lastModified?: LastModified;
|
|
215
|
+
usedInSegments: SegmentKey[];
|
|
216
|
+
usedInFeatures: FeatureKey[];
|
|
217
|
+
})[];
|
|
218
|
+
segments: (Segment & {
|
|
219
|
+
lastModified?: LastModified;
|
|
220
|
+
usedInFeatures: FeatureKey[];
|
|
221
|
+
})[];
|
|
222
|
+
features: (ParsedFeature & {
|
|
223
|
+
lastModified?: LastModified;
|
|
224
|
+
})[];
|
|
225
|
+
};
|
|
226
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Common Typescript types for Featurevisor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"url": "https://github.com/fahad19/featurevisor/issues"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "fe803f91b34ee7aa98a384769ba1fc181fb9c64e"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -29,6 +29,14 @@ export type Operator =
|
|
|
29
29
|
| "startsWith"
|
|
30
30
|
| "endsWith"
|
|
31
31
|
|
|
32
|
+
// semver (string)
|
|
33
|
+
| "semverEquals"
|
|
34
|
+
| "semverNotEquals"
|
|
35
|
+
| "semverGreaterThan"
|
|
36
|
+
| "semverGreaterThanOrEquals"
|
|
37
|
+
| "semverLessThan"
|
|
38
|
+
| "semverLessThanOrEquals"
|
|
39
|
+
|
|
32
40
|
// array of strings
|
|
33
41
|
| "in"
|
|
34
42
|
| "notIn";
|
|
@@ -281,3 +289,47 @@ export interface ExistingFeatures {
|
|
|
281
289
|
export interface ExistingState {
|
|
282
290
|
features: ExistingFeatures;
|
|
283
291
|
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Site index and history
|
|
295
|
+
*/
|
|
296
|
+
export interface HistoryEntity {
|
|
297
|
+
type: "attribute" | "segment" | "feature";
|
|
298
|
+
key: string;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export interface HistoryEntry {
|
|
302
|
+
commit: string;
|
|
303
|
+
author: string;
|
|
304
|
+
timestamp: string;
|
|
305
|
+
entities: HistoryEntity[];
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface LastModified {
|
|
309
|
+
commit: string;
|
|
310
|
+
timestamp: string;
|
|
311
|
+
author: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface SearchIndex {
|
|
315
|
+
links?: {
|
|
316
|
+
feature: string;
|
|
317
|
+
segment: string;
|
|
318
|
+
attribute: string;
|
|
319
|
+
commit: string;
|
|
320
|
+
};
|
|
321
|
+
entities: {
|
|
322
|
+
attributes: (Attribute & {
|
|
323
|
+
lastModified?: LastModified;
|
|
324
|
+
usedInSegments: SegmentKey[];
|
|
325
|
+
usedInFeatures: FeatureKey[];
|
|
326
|
+
})[];
|
|
327
|
+
segments: (Segment & {
|
|
328
|
+
lastModified?: LastModified;
|
|
329
|
+
usedInFeatures: FeatureKey[];
|
|
330
|
+
})[];
|
|
331
|
+
features: (ParsedFeature & {
|
|
332
|
+
lastModified?: LastModified;
|
|
333
|
+
})[];
|
|
334
|
+
};
|
|
335
|
+
}
|