@featurevisor/types 0.4.0 → 0.5.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 +22 -0
- package/lib/index.d.ts +7 -0
- package/package.json +2 -2
- package/src/index.ts +7 -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.5.3](https://github.com/fahad19/featurevisor/compare/v0.5.2...v0.5.3) (2023-03-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* linting fixes ([#27](https://github.com/fahad19/featurevisor/issues/27)) ([8f16194](https://github.com/fahad19/featurevisor/commit/8f161943332a617a5e25f811c985e1a33a9559fa))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.5.0](https://github.com/fahad19/featurevisor/compare/v0.4.0...v0.5.0) (2023-03-22)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* Variable overrides at rule level ([#23](https://github.com/fahad19/featurevisor/issues/23)) ([c4792a0](https://github.com/fahad19/featurevisor/commit/c4792a0beaf33370a3afaafa665491a59e876412))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [0.4.0](https://github.com/fahad19/featurevisor/compare/v0.3.0...v0.4.0) (2023-03-19)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @featurevisor/types
|
package/lib/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export interface Variable {
|
|
|
74
74
|
overrides?: VariableOverride[];
|
|
75
75
|
}
|
|
76
76
|
export interface Variation {
|
|
77
|
+
description?: string;
|
|
77
78
|
type: VariationType;
|
|
78
79
|
value: VariationValue;
|
|
79
80
|
weight?: Weight;
|
|
@@ -107,6 +108,9 @@ export interface Traffic {
|
|
|
107
108
|
key: RuleKey;
|
|
108
109
|
segments: GroupSegment | GroupSegment[] | "*";
|
|
109
110
|
percentage: Percentage;
|
|
111
|
+
variables?: {
|
|
112
|
+
[key: string]: VariableValue;
|
|
113
|
+
};
|
|
110
114
|
allocation: Allocation[];
|
|
111
115
|
}
|
|
112
116
|
export type BucketBy = AttributeKey | AttributeKey[];
|
|
@@ -136,6 +140,9 @@ export interface Rule {
|
|
|
136
140
|
key: RuleKey;
|
|
137
141
|
segments: GroupSegment | GroupSegment[];
|
|
138
142
|
percentage: Weight;
|
|
143
|
+
variables?: {
|
|
144
|
+
[key: string]: VariableValue;
|
|
145
|
+
};
|
|
139
146
|
}
|
|
140
147
|
export interface Environment {
|
|
141
148
|
expose?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.3",
|
|
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": "66ed55a4be820cb16ecb5bfee7c4df1e06be912f"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -135,6 +135,7 @@ export interface Variable {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
export interface Variation {
|
|
138
|
+
description?: string; // only available in YAML
|
|
138
139
|
type: VariationType;
|
|
139
140
|
value: VariationValue;
|
|
140
141
|
weight?: Weight; // 0 to 100 (available from parsed YAML, but not in datafile)
|
|
@@ -178,6 +179,9 @@ export interface Traffic {
|
|
|
178
179
|
key: RuleKey;
|
|
179
180
|
segments: GroupSegment | GroupSegment[] | "*";
|
|
180
181
|
percentage: Percentage;
|
|
182
|
+
variables?: {
|
|
183
|
+
[key: string]: VariableValue;
|
|
184
|
+
};
|
|
181
185
|
allocation: Allocation[];
|
|
182
186
|
}
|
|
183
187
|
|
|
@@ -215,6 +219,9 @@ export interface Rule {
|
|
|
215
219
|
key: RuleKey;
|
|
216
220
|
segments: GroupSegment | GroupSegment[];
|
|
217
221
|
percentage: Weight;
|
|
222
|
+
variables?: {
|
|
223
|
+
[key: string]: VariableValue;
|
|
224
|
+
};
|
|
218
225
|
}
|
|
219
226
|
|
|
220
227
|
export interface Environment {
|