@featurevisor/types 0.49.0 → 0.51.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/.eslintcache +1 -1
- package/CHANGELOG.md +22 -0
- package/lib/index.d.ts +5 -12
- package/package.json +2 -2
- package/src/index.ts +5 -17
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts":"1"},{"size":
|
|
1
|
+
[{"/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts":"1"},{"size":8938,"mtime":1696523288972,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"wdwiro","/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts",[],[]]
|
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.51.0](https://github.com/featurevisor/featurevisor/compare/v0.50.0...v0.51.0) (2023-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* let variables have descriptions ([#165](https://github.com/featurevisor/featurevisor/issues/165)) ([2a1b73d](https://github.com/featurevisor/featurevisor/commit/2a1b73d274ae10184db024ca41aa73011b8e8532))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.50.0](https://github.com/featurevisor/featurevisor/compare/v0.49.0...v0.50.0) (2023-10-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* test specs improvements ([#160](https://github.com/featurevisor/featurevisor/issues/160)) ([fd8fa01](https://github.com/featurevisor/featurevisor/commit/fd8fa01f517bcfd5dfde80f311a9c546dd481ff1))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [0.49.0](https://github.com/featurevisor/featurevisor/compare/v0.48.0...v0.49.0) (2023-09-30)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @featurevisor/types
|
package/lib/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export interface VariableOverride {
|
|
|
70
70
|
export interface Variable {
|
|
71
71
|
key: VariableKey;
|
|
72
72
|
value: VariableValue;
|
|
73
|
+
description?: string;
|
|
73
74
|
overrides?: VariableOverride[];
|
|
74
75
|
}
|
|
75
76
|
export interface Variation {
|
|
@@ -228,6 +229,7 @@ export interface ExistingState {
|
|
|
228
229
|
*/
|
|
229
230
|
export interface FeatureAssertion {
|
|
230
231
|
description?: string;
|
|
232
|
+
environment: EnvironmentKey;
|
|
231
233
|
at: Weight;
|
|
232
234
|
context: Context;
|
|
233
235
|
expectedToBeEnabled: boolean;
|
|
@@ -237,7 +239,7 @@ export interface FeatureAssertion {
|
|
|
237
239
|
};
|
|
238
240
|
}
|
|
239
241
|
export interface TestFeature {
|
|
240
|
-
|
|
242
|
+
feature: FeatureKey;
|
|
241
243
|
assertions: FeatureAssertion[];
|
|
242
244
|
}
|
|
243
245
|
export interface SegmentAssertion {
|
|
@@ -246,19 +248,10 @@ export interface SegmentAssertion {
|
|
|
246
248
|
expectedToMatch: boolean;
|
|
247
249
|
}
|
|
248
250
|
export interface TestSegment {
|
|
249
|
-
|
|
251
|
+
segment: SegmentKey;
|
|
250
252
|
assertions: SegmentAssertion[];
|
|
251
253
|
}
|
|
252
|
-
export
|
|
253
|
-
description?: string;
|
|
254
|
-
tag?: string;
|
|
255
|
-
environment?: string;
|
|
256
|
-
features?: TestFeature[];
|
|
257
|
-
segments?: TestSegment[];
|
|
258
|
-
}
|
|
259
|
-
export interface Spec {
|
|
260
|
-
tests: Test[];
|
|
261
|
-
}
|
|
254
|
+
export type Test = TestSegment | TestFeature;
|
|
262
255
|
/**
|
|
263
256
|
* Site index and history
|
|
264
257
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "Common Typescript types for Featurevisor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"url": "https://github.com/featurevisor/featurevisor/issues"
|
|
45
45
|
},
|
|
46
46
|
"license": "MIT",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "6b1026df520761e2b7dd39e8414e222f0ab0f24d"
|
|
48
48
|
}
|
package/src/index.ts
CHANGED
|
@@ -149,6 +149,7 @@ export interface VariableOverride {
|
|
|
149
149
|
export interface Variable {
|
|
150
150
|
key: VariableKey;
|
|
151
151
|
value: VariableValue;
|
|
152
|
+
description?: string; // only available in YAML
|
|
152
153
|
overrides?: VariableOverride[];
|
|
153
154
|
}
|
|
154
155
|
|
|
@@ -351,6 +352,7 @@ export interface ExistingState {
|
|
|
351
352
|
*/
|
|
352
353
|
export interface FeatureAssertion {
|
|
353
354
|
description?: string;
|
|
355
|
+
environment: EnvironmentKey;
|
|
354
356
|
at: Weight; // bucket weight: 0 to 100
|
|
355
357
|
context: Context;
|
|
356
358
|
expectedToBeEnabled: boolean;
|
|
@@ -361,7 +363,7 @@ export interface FeatureAssertion {
|
|
|
361
363
|
}
|
|
362
364
|
|
|
363
365
|
export interface TestFeature {
|
|
364
|
-
|
|
366
|
+
feature: FeatureKey;
|
|
365
367
|
assertions: FeatureAssertion[];
|
|
366
368
|
}
|
|
367
369
|
|
|
@@ -372,25 +374,11 @@ export interface SegmentAssertion {
|
|
|
372
374
|
}
|
|
373
375
|
|
|
374
376
|
export interface TestSegment {
|
|
375
|
-
|
|
377
|
+
segment: SegmentKey;
|
|
376
378
|
assertions: SegmentAssertion[];
|
|
377
379
|
}
|
|
378
380
|
|
|
379
|
-
export
|
|
380
|
-
description?: string;
|
|
381
|
-
|
|
382
|
-
// needed for feature testing
|
|
383
|
-
tag?: string;
|
|
384
|
-
environment?: string;
|
|
385
|
-
features?: TestFeature[];
|
|
386
|
-
|
|
387
|
-
// needed for segment testing
|
|
388
|
-
segments?: TestSegment[];
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
export interface Spec {
|
|
392
|
-
tests: Test[];
|
|
393
|
-
}
|
|
381
|
+
export type Test = TestSegment | TestFeature;
|
|
394
382
|
|
|
395
383
|
/**
|
|
396
384
|
* Site index and history
|