@featurevisor/types 0.20.0 → 0.22.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 +19 -0
- package/lib/index.d.ts +3 -2
- package/package.json +2 -2
- package/src/index.ts +3 -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
|
+
# [0.22.0](https://github.com/fahad19/featurevisor/compare/v0.21.0...v0.22.0) (2023-05-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* state files are now per environment ([#72](https://github.com/fahad19/featurevisor/issues/72)) ([925f4cf](https://github.com/fahad19/featurevisor/commit/925f4cf980134db60c40c2e27259a3d6142f16aa))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.21.0](https://github.com/fahad19/featurevisor/compare/v0.20.2...v0.21.0) (2023-05-14)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @featurevisor/types
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [0.20.0](https://github.com/fahad19/featurevisor/compare/v0.19.0...v0.20.0) (2023-05-13)
|
|
7
26
|
|
|
8
27
|
|
package/lib/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface Attributes {
|
|
|
6
6
|
export interface Attribute {
|
|
7
7
|
archived?: boolean;
|
|
8
8
|
key: AttributeKey;
|
|
9
|
-
type:
|
|
9
|
+
type: string;
|
|
10
10
|
capture?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export type Operator = "equals" | "notEquals" | "greaterThan" | "greaterThanOrEquals" | "lessThan" | "lessThanOrEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "semverEquals" | "semverNotEquals" | "semverGreaterThan" | "semverGreaterThanOrEquals" | "semverLessThan" | "semverLessThanOrEquals" | "before" | "after" | "in" | "notIn";
|
|
@@ -192,6 +192,7 @@ export interface ParsedFeature {
|
|
|
192
192
|
* with consistent bucketing
|
|
193
193
|
*/
|
|
194
194
|
export interface ExistingFeature {
|
|
195
|
+
revision: string;
|
|
195
196
|
variations: {
|
|
196
197
|
value: VariationValue;
|
|
197
198
|
weight: Weight;
|
|
@@ -222,7 +223,7 @@ export interface Assertion {
|
|
|
222
223
|
};
|
|
223
224
|
}
|
|
224
225
|
export interface TestFeature {
|
|
225
|
-
key:
|
|
226
|
+
key: FeatureKey;
|
|
226
227
|
assertions: Assertion[];
|
|
227
228
|
}
|
|
228
229
|
export interface Test {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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": "12fc3bcebc2afcbcf885619cfeacb36acb2c9706"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Attributes {
|
|
|
9
9
|
export interface Attribute {
|
|
10
10
|
archived?: boolean; // only available in YAML
|
|
11
11
|
key: AttributeKey;
|
|
12
|
-
type:
|
|
12
|
+
type: string;
|
|
13
13
|
capture?: boolean;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -302,6 +302,7 @@ export interface ParsedFeature {
|
|
|
302
302
|
* with consistent bucketing
|
|
303
303
|
*/
|
|
304
304
|
export interface ExistingFeature {
|
|
305
|
+
revision: string;
|
|
305
306
|
variations: {
|
|
306
307
|
// @TODO: use Exclude with Variation?
|
|
307
308
|
value: VariationValue;
|
|
@@ -338,7 +339,7 @@ export interface Assertion {
|
|
|
338
339
|
}
|
|
339
340
|
|
|
340
341
|
export interface TestFeature {
|
|
341
|
-
key:
|
|
342
|
+
key: FeatureKey;
|
|
342
343
|
assertions: Assertion[];
|
|
343
344
|
}
|
|
344
345
|
|