@featurevisor/types 1.33.0 → 1.35.3
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 +19 -0
- package/lib/index.d.ts +3 -0
- package/package.json +2 -2
- package/src/index.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [1.35.3](https://github.com/featurevisor/featurevisor/compare/v1.35.2...v1.35.3) (2025-04-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @featurevisor/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.35.0](https://github.com/featurevisor/featurevisor/compare/v1.34.2...v1.35.0) (2025-03-13)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* list entities from CLI ([#349](https://github.com/featurevisor/featurevisor/issues/349)) ([160e151](https://github.com/featurevisor/featurevisor/commit/160e15103860be8a81a145d515e0ceb69a3cad79))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [1.33.0](https://github.com/featurevisor/featurevisor/compare/v1.32.0...v1.33.0) (2025-03-08)
|
|
7
26
|
|
|
8
27
|
|
package/lib/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface Attribute {
|
|
|
9
9
|
key: AttributeKey;
|
|
10
10
|
type: AttributeType;
|
|
11
11
|
capture?: boolean;
|
|
12
|
+
description?: string;
|
|
12
13
|
}
|
|
13
14
|
export type Operator = "equals" | "notEquals" | "greaterThan" | "greaterThanOrEquals" | "lessThan" | "lessThanOrEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "semverEquals" | "semverNotEquals" | "semverGreaterThan" | "semverGreaterThanOrEquals" | "semverLessThan" | "semverLessThanOrEquals" | "before" | "after" | "in" | "notIn";
|
|
14
15
|
export type ConditionValue = string | number | boolean | Date | null | undefined | string[];
|
|
@@ -33,6 +34,7 @@ export interface Segment {
|
|
|
33
34
|
archived?: boolean;
|
|
34
35
|
key: SegmentKey;
|
|
35
36
|
conditions: Condition | Condition[] | string;
|
|
37
|
+
description?: string;
|
|
36
38
|
}
|
|
37
39
|
export type PlainGroupSegment = SegmentKey;
|
|
38
40
|
export interface AndGroupSegment {
|
|
@@ -85,6 +87,7 @@ export interface VariableSchema {
|
|
|
85
87
|
key: VariableKey;
|
|
86
88
|
type: VariableType;
|
|
87
89
|
defaultValue: VariableValue;
|
|
90
|
+
description?: string;
|
|
88
91
|
}
|
|
89
92
|
export type FeatureKey = string;
|
|
90
93
|
export interface Force {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.3",
|
|
4
4
|
"description": "Common Typescript types for Featurevisor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"url": "https://github.com/featurevisor/featurevisor/issues"
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "253ff5dade7c9ee953f6a57cda097a6c9ed93aa2"
|
|
44
44
|
}
|
package/src/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface Attribute {
|
|
|
13
13
|
key: AttributeKey;
|
|
14
14
|
type: AttributeType;
|
|
15
15
|
capture?: boolean;
|
|
16
|
+
description?: string; // only available in YAML files
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export type Operator =
|
|
@@ -77,6 +78,7 @@ export interface Segment {
|
|
|
77
78
|
archived?: boolean; // only available in YAML files
|
|
78
79
|
key: SegmentKey;
|
|
79
80
|
conditions: Condition | Condition[] | string; // string only when stringified for datafile
|
|
81
|
+
description?: string; // only available in YAML files
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
export type PlainGroupSegment = SegmentKey;
|
|
@@ -167,6 +169,7 @@ export interface VariableSchema {
|
|
|
167
169
|
key: VariableKey;
|
|
168
170
|
type: VariableType;
|
|
169
171
|
defaultValue: VariableValue;
|
|
172
|
+
description?: string; // only available in YAML files
|
|
170
173
|
}
|
|
171
174
|
|
|
172
175
|
export type FeatureKey = string;
|
|
@@ -221,7 +224,7 @@ export interface Traffic {
|
|
|
221
224
|
[key: string]: VariableValue;
|
|
222
225
|
};
|
|
223
226
|
|
|
224
|
-
allocation: Allocation[];
|
|
227
|
+
allocation: Allocation[]; // @TODO: in v2, make it optional
|
|
225
228
|
}
|
|
226
229
|
|
|
227
230
|
export type PlainBucketBy = AttributeKey;
|
|
@@ -362,7 +365,7 @@ export interface ExistingFeature {
|
|
|
362
365
|
// @TODO: use Exclude with Traffic?
|
|
363
366
|
key: RuleKey;
|
|
364
367
|
percentage: Percentage;
|
|
365
|
-
allocation: Allocation[];
|
|
368
|
+
allocation: Allocation[]; // @TODO: in v2, make it optional
|
|
366
369
|
}[];
|
|
367
370
|
ranges?: Range[]; // if in a Group (mutex), these are the available slot ranges
|
|
368
371
|
}
|