@featurevisor/types 0.19.0 → 0.21.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 +25 -0
- package/package.json +2 -2
- package/src/index.ts +29 -0
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.21.0](https://github.com/fahad19/featurevisor/compare/v0.20.2...v0.21.0) (2023-05-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @featurevisor/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.20.0](https://github.com/fahad19/featurevisor/compare/v0.19.0...v0.20.0) (2023-05-13)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* SDK Instance from a single class ([#68](https://github.com/fahad19/featurevisor/issues/68)) ([1ab1d49](https://github.com/fahad19/featurevisor/commit/1ab1d49916fd4ccd14d5ec47d11e6bd863fd0af1))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [0.19.0](https://github.com/fahad19/featurevisor/compare/v0.18.0...v0.19.0) (2023-05-13)
|
|
7
26
|
|
|
8
27
|
|
package/lib/index.d.ts
CHANGED
|
@@ -209,6 +209,31 @@ export interface ExistingFeatures {
|
|
|
209
209
|
export interface ExistingState {
|
|
210
210
|
features: ExistingFeatures;
|
|
211
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* Tests
|
|
214
|
+
*/
|
|
215
|
+
export interface Assertion {
|
|
216
|
+
description?: string;
|
|
217
|
+
at: Weight;
|
|
218
|
+
attributes: Attributes;
|
|
219
|
+
expectedVariation?: VariationValue;
|
|
220
|
+
expectedVariables?: {
|
|
221
|
+
[key: VariableKey]: VariableValue;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
export interface TestFeature {
|
|
225
|
+
key: string;
|
|
226
|
+
assertions: Assertion[];
|
|
227
|
+
}
|
|
228
|
+
export interface Test {
|
|
229
|
+
description?: string;
|
|
230
|
+
tag: string;
|
|
231
|
+
environment: string;
|
|
232
|
+
features: TestFeature[];
|
|
233
|
+
}
|
|
234
|
+
export interface Spec {
|
|
235
|
+
tests: Test[];
|
|
236
|
+
}
|
|
212
237
|
/**
|
|
213
238
|
* Site index and history
|
|
214
239
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.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": "6de1db4b4eb559cb851daae8366d52577f9c3d96"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -324,6 +324,35 @@ export interface ExistingState {
|
|
|
324
324
|
features: ExistingFeatures;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Tests
|
|
329
|
+
*/
|
|
330
|
+
export interface Assertion {
|
|
331
|
+
description?: string;
|
|
332
|
+
at: Weight; // bucket weight: 0 to 100
|
|
333
|
+
attributes: Attributes;
|
|
334
|
+
expectedVariation?: VariationValue;
|
|
335
|
+
expectedVariables?: {
|
|
336
|
+
[key: VariableKey]: VariableValue;
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface TestFeature {
|
|
341
|
+
key: string;
|
|
342
|
+
assertions: Assertion[];
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export interface Test {
|
|
346
|
+
description?: string;
|
|
347
|
+
tag: string;
|
|
348
|
+
environment: string;
|
|
349
|
+
features: TestFeature[];
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export interface Spec {
|
|
353
|
+
tests: Test[];
|
|
354
|
+
}
|
|
355
|
+
|
|
327
356
|
/**
|
|
328
357
|
* Site index and history
|
|
329
358
|
*/
|