@featurevisor/types 0.41.0 → 0.43.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
+ # [0.43.0](https://github.com/fahad19/featurevisor/compare/v0.42.1...v0.43.0) (2023-08-05)
7
+
8
+
9
+ ### Features
10
+
11
+ * Support deprecating features ([#117](https://github.com/fahad19/featurevisor/issues/117)) ([992740d](https://github.com/fahad19/featurevisor/commit/992740d5fbdda2bb15cf4a782147f0ed13d9288c))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.42.0](https://github.com/fahad19/featurevisor/compare/v0.41.0...v0.42.0) (2023-07-23)
18
+
19
+
20
+ ### Features
21
+
22
+ * segment testing assertion property updated ([#113](https://github.com/fahad19/featurevisor/issues/113)) ([cbf693e](https://github.com/fahad19/featurevisor/commit/cbf693eb864623f89a04a11220ebfa872097fbee))
23
+
24
+
25
+
26
+
27
+
6
28
  # [0.41.0](https://github.com/fahad19/featurevisor/compare/v0.40.1...v0.41.0) (2023-07-23)
7
29
 
8
30
  **Note:** Version bump only for package @featurevisor/types
package/lib/index.d.ts CHANGED
@@ -137,6 +137,7 @@ export interface RequiredWithVariation {
137
137
  export type Required = FeatureKey | RequiredWithVariation;
138
138
  export interface Feature {
139
139
  key: FeatureKey;
140
+ deprecated?: boolean;
140
141
  required?: Required[];
141
142
  variablesSchema?: VariableSchema[];
142
143
  variations?: Variation[];
@@ -186,7 +187,8 @@ export interface Environment {
186
187
  }
187
188
  export interface ParsedFeature {
188
189
  key: FeatureKey;
189
- archived: boolean;
190
+ archived?: boolean;
191
+ deprecated?: boolean;
190
192
  description: string;
191
193
  tags: string[];
192
194
  required?: Required[];
@@ -240,7 +242,7 @@ export interface TestFeature {
240
242
  export interface SegmentAssertion {
241
243
  description?: string;
242
244
  context: Context;
243
- expected: boolean;
245
+ expectedToMatch: boolean;
244
246
  }
245
247
  export interface TestSegment {
246
248
  key: SegmentKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "0.41.0",
3
+ "version": "0.43.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": "dbd8a71ac29bc910955110c6174e52cd32e5bd50"
44
+ "gitHead": "2f4487fdd0ab9cf88d0726e10e3d6b0a23b22fef"
45
45
  }
package/src/index.ts CHANGED
@@ -236,6 +236,7 @@ export type Required = FeatureKey | RequiredWithVariation;
236
236
 
237
237
  export interface Feature {
238
238
  key: FeatureKey;
239
+ deprecated?: boolean;
239
240
  required?: Required[];
240
241
  variablesSchema?: VariableSchema[];
241
242
  variations?: Variation[];
@@ -297,7 +298,9 @@ export interface Environment {
297
298
  export interface ParsedFeature {
298
299
  key: FeatureKey;
299
300
 
300
- archived: boolean;
301
+ archived?: boolean;
302
+ deprecated?: boolean;
303
+
301
304
  description: string;
302
305
  tags: string[];
303
306
 
@@ -363,7 +366,7 @@ export interface TestFeature {
363
366
  export interface SegmentAssertion {
364
367
  description?: string;
365
368
  context: Context;
366
- expected: boolean;
369
+ expectedToMatch: boolean;
367
370
  }
368
371
 
369
372
  export interface TestSegment {