@featurevisor/types 0.40.0 → 0.40.1
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 +8 -0
- package/lib/index.d.ts +7 -0
- package/package.json +2 -2
- package/src/index.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.40.1](https://github.com/fahad19/featurevisor/compare/v0.40.0...v0.40.1) (2023-07-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @featurevisor/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [0.40.0](https://github.com/fahad19/featurevisor/compare/v0.39.2...v0.40.0) (2023-07-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @featurevisor/types
|
package/lib/index.d.ts
CHANGED
|
@@ -130,8 +130,14 @@ export interface OrBucketBy {
|
|
|
130
130
|
or: AttributeKey[];
|
|
131
131
|
}
|
|
132
132
|
export type BucketBy = PlainBucketBy | AndBucketBy | OrBucketBy;
|
|
133
|
+
export interface RequiredWithVariation {
|
|
134
|
+
key: FeatureKey;
|
|
135
|
+
variation: VariationValue;
|
|
136
|
+
}
|
|
137
|
+
export type Required = FeatureKey | RequiredWithVariation;
|
|
133
138
|
export interface Feature {
|
|
134
139
|
key: FeatureKey;
|
|
140
|
+
required?: Required[];
|
|
135
141
|
variablesSchema?: VariableSchema[];
|
|
136
142
|
variations?: Variation[];
|
|
137
143
|
bucketBy: BucketBy;
|
|
@@ -183,6 +189,7 @@ export interface ParsedFeature {
|
|
|
183
189
|
archived: boolean;
|
|
184
190
|
description: string;
|
|
185
191
|
tags: string[];
|
|
192
|
+
required?: Required[];
|
|
186
193
|
bucketBy: BucketBy;
|
|
187
194
|
variablesSchema?: VariableSchema[];
|
|
188
195
|
variations?: Variation[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.1",
|
|
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": "cca4e461fff94ffa96c9b6657a054e7b9cf86092"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -227,9 +227,16 @@ export interface OrBucketBy {
|
|
|
227
227
|
}
|
|
228
228
|
export type BucketBy = PlainBucketBy | AndBucketBy | OrBucketBy;
|
|
229
229
|
|
|
230
|
+
export interface RequiredWithVariation {
|
|
231
|
+
key: FeatureKey;
|
|
232
|
+
variation: VariationValue;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export type Required = FeatureKey | RequiredWithVariation;
|
|
236
|
+
|
|
230
237
|
export interface Feature {
|
|
231
238
|
key: FeatureKey;
|
|
232
|
-
|
|
239
|
+
required?: Required[];
|
|
233
240
|
variablesSchema?: VariableSchema[];
|
|
234
241
|
variations?: Variation[];
|
|
235
242
|
bucketBy: BucketBy;
|
|
@@ -294,6 +301,8 @@ export interface ParsedFeature {
|
|
|
294
301
|
description: string;
|
|
295
302
|
tags: string[];
|
|
296
303
|
|
|
304
|
+
required?: Required[];
|
|
305
|
+
|
|
297
306
|
bucketBy: BucketBy;
|
|
298
307
|
|
|
299
308
|
variablesSchema?: VariableSchema[];
|