@featurevisor/types 0.21.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 CHANGED
@@ -3,6 +3,17 @@
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
+
6
17
  # [0.21.0](https://github.com/fahad19/featurevisor/compare/v0.20.2...v0.21.0) (2023-05-14)
7
18
 
8
19
  **Note:** Version bump only for package @featurevisor/types
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: AttributeValue;
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: string;
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.21.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": "6de1db4b4eb559cb851daae8366d52577f9c3d96"
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: AttributeValue;
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: string;
342
+ key: FeatureKey;
342
343
  assertions: Assertion[];
343
344
  }
344
345