@featurevisor/types 1.31.0 → 1.33.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 +22 -0
- package/lib/index.d.ts +11 -2
- package/package.json +2 -2
- package/src/index.ts +15 -2
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
|
+
# [1.33.0](https://github.com/featurevisor/featurevisor/compare/v1.32.0...v1.33.0) (2025-03-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* allow deprecating variables ([#345](https://github.com/featurevisor/featurevisor/issues/345)) ([cecbf5b](https://github.com/featurevisor/featurevisor/commit/cecbf5beb87d06d46c654c352910766f565e81b2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.32.0](https://github.com/featurevisor/featurevisor/compare/v1.31.0...v1.32.0) (2025-02-26)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* optionally have no environments ([#344](https://github.com/featurevisor/featurevisor/issues/344)) ([20b14e6](https://github.com/featurevisor/featurevisor/commit/20b14e6bf0fb1decbda90c7cd38d85e54815fcd6))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [1.31.0](https://github.com/featurevisor/featurevisor/compare/v1.30.1...v1.31.0) (2025-02-13)
|
|
7
29
|
|
|
8
30
|
|
package/lib/index.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export interface Variation {
|
|
|
81
81
|
variables?: Variable[];
|
|
82
82
|
}
|
|
83
83
|
export interface VariableSchema {
|
|
84
|
+
deprecated?: boolean;
|
|
84
85
|
key: VariableKey;
|
|
85
86
|
type: VariableType;
|
|
86
87
|
defaultValue: VariableValue;
|
|
@@ -198,8 +199,9 @@ export interface Rule {
|
|
|
198
199
|
};
|
|
199
200
|
}
|
|
200
201
|
export type Tag = string;
|
|
202
|
+
export type Expose = boolean | Tag[];
|
|
201
203
|
export interface Environment {
|
|
202
|
-
expose?:
|
|
204
|
+
expose?: Expose;
|
|
203
205
|
rules: Rule[];
|
|
204
206
|
force?: Force[];
|
|
205
207
|
}
|
|
@@ -213,9 +215,12 @@ export interface ParsedFeature {
|
|
|
213
215
|
bucketBy: BucketBy;
|
|
214
216
|
variablesSchema?: VariableSchema[];
|
|
215
217
|
variations?: Variation[];
|
|
216
|
-
environments
|
|
218
|
+
environments?: {
|
|
217
219
|
[key: EnvironmentKey]: Environment;
|
|
218
220
|
};
|
|
221
|
+
expose?: Expose;
|
|
222
|
+
rules?: Rule[];
|
|
223
|
+
force?: Force[];
|
|
219
224
|
}
|
|
220
225
|
/**
|
|
221
226
|
* For maintaining old allocations info,
|
|
@@ -321,6 +326,10 @@ export interface SearchIndex {
|
|
|
321
326
|
attribute: string;
|
|
322
327
|
commit: CommitHash;
|
|
323
328
|
};
|
|
329
|
+
projectConfig: {
|
|
330
|
+
tags: Tag[];
|
|
331
|
+
environments: EnvironmentKey[] | false;
|
|
332
|
+
};
|
|
324
333
|
entities: {
|
|
325
334
|
attributes: (Attribute & {
|
|
326
335
|
lastModified?: LastModified;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "Common Typescript types for Featurevisor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"url": "https://github.com/featurevisor/featurevisor/issues"
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "46a939abcc0158eee6cf1e845b068f7885798bcf"
|
|
44
44
|
}
|
package/src/index.ts
CHANGED
|
@@ -163,6 +163,7 @@ export interface Variation {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
export interface VariableSchema {
|
|
166
|
+
deprecated?: boolean;
|
|
166
167
|
key: VariableKey;
|
|
167
168
|
type: VariableType;
|
|
168
169
|
defaultValue: VariableValue;
|
|
@@ -311,8 +312,10 @@ export interface Rule {
|
|
|
311
312
|
|
|
312
313
|
export type Tag = string;
|
|
313
314
|
|
|
315
|
+
export type Expose = boolean | Tag[];
|
|
316
|
+
|
|
314
317
|
export interface Environment {
|
|
315
|
-
expose?:
|
|
318
|
+
expose?: Expose;
|
|
316
319
|
rules: Rule[];
|
|
317
320
|
force?: Force[];
|
|
318
321
|
}
|
|
@@ -333,9 +336,15 @@ export interface ParsedFeature {
|
|
|
333
336
|
variablesSchema?: VariableSchema[];
|
|
334
337
|
variations?: Variation[];
|
|
335
338
|
|
|
336
|
-
environments
|
|
339
|
+
// if using environments
|
|
340
|
+
environments?: {
|
|
337
341
|
[key: EnvironmentKey]: Environment;
|
|
338
342
|
};
|
|
343
|
+
|
|
344
|
+
// if not using environments
|
|
345
|
+
expose?: Expose;
|
|
346
|
+
rules?: Rule[];
|
|
347
|
+
force?: Force[];
|
|
339
348
|
}
|
|
340
349
|
|
|
341
350
|
/**
|
|
@@ -461,6 +470,10 @@ export interface SearchIndex {
|
|
|
461
470
|
attribute: string;
|
|
462
471
|
commit: CommitHash;
|
|
463
472
|
};
|
|
473
|
+
projectConfig: {
|
|
474
|
+
tags: Tag[];
|
|
475
|
+
environments: EnvironmentKey[] | false;
|
|
476
|
+
};
|
|
464
477
|
entities: {
|
|
465
478
|
attributes: (Attribute & {
|
|
466
479
|
lastModified?: LastModified;
|