@featurevisor/types 1.0.0 → 1.2.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 +11 -0
- package/lib/index.d.ts +5 -0
- package/package.json +2 -2
- package/src/index.ts +6 -0
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":9616,"mtime":1705426709027,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"sabtla","/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts",[],[]]
|
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
|
+
# [1.2.0](https://github.com/featurevisor/featurevisor/compare/v1.1.1...v1.2.0) (2024-01-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Matrix for test specs ([#244](https://github.com/featurevisor/featurevisor/issues/244)) ([bfcb9c2](https://github.com/featurevisor/featurevisor/commit/bfcb9c21703e182bf5cadd58f371935df4bef3d4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.69.0](https://github.com/featurevisor/featurevisor/compare/v0.68.0...v0.69.0) (2023-12-13)
|
|
7
18
|
|
|
8
19
|
|
package/lib/index.d.ts
CHANGED
|
@@ -229,7 +229,11 @@ export interface ExistingState {
|
|
|
229
229
|
/**
|
|
230
230
|
* Tests
|
|
231
231
|
*/
|
|
232
|
+
export interface AssertionMatrix {
|
|
233
|
+
[key: string]: AttributeValue[];
|
|
234
|
+
}
|
|
232
235
|
export interface FeatureAssertion {
|
|
236
|
+
matrix?: AssertionMatrix;
|
|
233
237
|
description?: string;
|
|
234
238
|
environment: EnvironmentKey;
|
|
235
239
|
at: Weight;
|
|
@@ -245,6 +249,7 @@ export interface TestFeature {
|
|
|
245
249
|
assertions: FeatureAssertion[];
|
|
246
250
|
}
|
|
247
251
|
export interface SegmentAssertion {
|
|
252
|
+
matrix?: AssertionMatrix;
|
|
248
253
|
description?: string;
|
|
249
254
|
context: Context;
|
|
250
255
|
expectedToMatch: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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": "e733c84d2fcdc6205df5ae75e5bbf73753141646"
|
|
48
48
|
}
|
package/src/index.ts
CHANGED
|
@@ -353,7 +353,12 @@ export interface ExistingState {
|
|
|
353
353
|
/**
|
|
354
354
|
* Tests
|
|
355
355
|
*/
|
|
356
|
+
export interface AssertionMatrix {
|
|
357
|
+
[key: string]: AttributeValue[];
|
|
358
|
+
}
|
|
359
|
+
|
|
356
360
|
export interface FeatureAssertion {
|
|
361
|
+
matrix?: AssertionMatrix;
|
|
357
362
|
description?: string;
|
|
358
363
|
environment: EnvironmentKey;
|
|
359
364
|
at: Weight; // bucket weight: 0 to 100
|
|
@@ -371,6 +376,7 @@ export interface TestFeature {
|
|
|
371
376
|
}
|
|
372
377
|
|
|
373
378
|
export interface SegmentAssertion {
|
|
379
|
+
matrix?: AssertionMatrix;
|
|
374
380
|
description?: string;
|
|
375
381
|
context: Context;
|
|
376
382
|
expectedToMatch: boolean;
|