@featurevisor/types 1.32.0 → 1.35.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
@@ -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
+ # [1.35.0](https://github.com/featurevisor/featurevisor/compare/v1.34.2...v1.35.0) (2025-03-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * list entities from CLI ([#349](https://github.com/featurevisor/featurevisor/issues/349)) ([160e151](https://github.com/featurevisor/featurevisor/commit/160e15103860be8a81a145d515e0ceb69a3cad79))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.33.0](https://github.com/featurevisor/featurevisor/compare/v1.32.0...v1.33.0) (2025-03-08)
18
+
19
+
20
+ ### Features
21
+
22
+ * allow deprecating variables ([#345](https://github.com/featurevisor/featurevisor/issues/345)) ([cecbf5b](https://github.com/featurevisor/featurevisor/commit/cecbf5beb87d06d46c654c352910766f565e81b2))
23
+
24
+
25
+
26
+
27
+
6
28
  # [1.32.0](https://github.com/featurevisor/featurevisor/compare/v1.31.0...v1.32.0) (2025-02-26)
7
29
 
8
30
 
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 {
@@ -81,9 +83,11 @@ export interface Variation {
81
83
  variables?: Variable[];
82
84
  }
83
85
  export interface VariableSchema {
86
+ deprecated?: boolean;
84
87
  key: VariableKey;
85
88
  type: VariableType;
86
89
  defaultValue: VariableValue;
90
+ description?: string;
87
91
  }
88
92
  export type FeatureKey = string;
89
93
  export interface Force {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "1.32.0",
3
+ "version": "1.35.0",
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": "c360fac0c91b586847633c2d41cf5e4d6922a9b8"
43
+ "gitHead": "6c9ecabb7e39f77fc89e64395fedfc9570324fb7"
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;
@@ -163,9 +165,11 @@ export interface Variation {
163
165
  }
164
166
 
165
167
  export interface VariableSchema {
168
+ deprecated?: boolean;
166
169
  key: VariableKey;
167
170
  type: VariableType;
168
171
  defaultValue: VariableValue;
172
+ description?: string; // only available in YAML files
169
173
  }
170
174
 
171
175
  export type FeatureKey = string;