@featurevisor/types 1.31.0 → 1.32.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 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.32.0](https://github.com/featurevisor/featurevisor/compare/v1.31.0...v1.32.0) (2025-02-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * optionally have no environments ([#344](https://github.com/featurevisor/featurevisor/issues/344)) ([20b14e6](https://github.com/featurevisor/featurevisor/commit/20b14e6bf0fb1decbda90c7cd38d85e54815fcd6))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.31.0](https://github.com/featurevisor/featurevisor/compare/v1.30.1...v1.31.0) (2025-02-13)
7
18
 
8
19
 
package/lib/index.d.ts CHANGED
@@ -198,8 +198,9 @@ export interface Rule {
198
198
  };
199
199
  }
200
200
  export type Tag = string;
201
+ export type Expose = boolean | Tag[];
201
202
  export interface Environment {
202
- expose?: boolean | Tag[];
203
+ expose?: Expose;
203
204
  rules: Rule[];
204
205
  force?: Force[];
205
206
  }
@@ -213,9 +214,12 @@ export interface ParsedFeature {
213
214
  bucketBy: BucketBy;
214
215
  variablesSchema?: VariableSchema[];
215
216
  variations?: Variation[];
216
- environments: {
217
+ environments?: {
217
218
  [key: EnvironmentKey]: Environment;
218
219
  };
220
+ expose?: Expose;
221
+ rules?: Rule[];
222
+ force?: Force[];
219
223
  }
220
224
  /**
221
225
  * For maintaining old allocations info,
@@ -321,6 +325,10 @@ export interface SearchIndex {
321
325
  attribute: string;
322
326
  commit: CommitHash;
323
327
  };
328
+ projectConfig: {
329
+ tags: Tag[];
330
+ environments: EnvironmentKey[] | false;
331
+ };
324
332
  entities: {
325
333
  attributes: (Attribute & {
326
334
  lastModified?: LastModified;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "1.31.0",
3
+ "version": "1.32.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": "fddbfd83a41ff252d0f67410a9208665b51d412f"
43
+ "gitHead": "c360fac0c91b586847633c2d41cf5e4d6922a9b8"
44
44
  }
package/src/index.ts CHANGED
@@ -311,8 +311,10 @@ export interface Rule {
311
311
 
312
312
  export type Tag = string;
313
313
 
314
+ export type Expose = boolean | Tag[];
315
+
314
316
  export interface Environment {
315
- expose?: boolean | Tag[];
317
+ expose?: Expose;
316
318
  rules: Rule[];
317
319
  force?: Force[];
318
320
  }
@@ -333,9 +335,15 @@ export interface ParsedFeature {
333
335
  variablesSchema?: VariableSchema[];
334
336
  variations?: Variation[];
335
337
 
336
- environments: {
338
+ // if using environments
339
+ environments?: {
337
340
  [key: EnvironmentKey]: Environment;
338
341
  };
342
+
343
+ // if not using environments
344
+ expose?: Expose;
345
+ rules?: Rule[];
346
+ force?: Force[];
339
347
  }
340
348
 
341
349
  /**
@@ -461,6 +469,10 @@ export interface SearchIndex {
461
469
  attribute: string;
462
470
  commit: CommitHash;
463
471
  };
472
+ projectConfig: {
473
+ tags: Tag[];
474
+ environments: EnvironmentKey[] | false;
475
+ };
464
476
  entities: {
465
477
  attributes: (Attribute & {
466
478
  lastModified?: LastModified;