@featurevisor/types 0.4.0 → 0.5.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
+ # [0.5.0](https://github.com/fahad19/featurevisor/compare/v0.4.0...v0.5.0) (2023-03-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * Variable overrides at rule level ([#23](https://github.com/fahad19/featurevisor/issues/23)) ([c4792a0](https://github.com/fahad19/featurevisor/commit/c4792a0beaf33370a3afaafa665491a59e876412))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.4.0](https://github.com/fahad19/featurevisor/compare/v0.3.0...v0.4.0) (2023-03-19)
7
18
 
8
19
  **Note:** Version bump only for package @featurevisor/types
package/lib/index.d.ts CHANGED
@@ -107,6 +107,9 @@ export interface Traffic {
107
107
  key: RuleKey;
108
108
  segments: GroupSegment | GroupSegment[] | "*";
109
109
  percentage: Percentage;
110
+ variables?: {
111
+ [key: string]: VariableValue;
112
+ };
110
113
  allocation: Allocation[];
111
114
  }
112
115
  export type BucketBy = AttributeKey | AttributeKey[];
@@ -136,6 +139,9 @@ export interface Rule {
136
139
  key: RuleKey;
137
140
  segments: GroupSegment | GroupSegment[];
138
141
  percentage: Weight;
142
+ variables?: {
143
+ [key: string]: VariableValue;
144
+ };
139
145
  }
140
146
  export interface Environment {
141
147
  expose?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
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": "ee0a42f0f544e3bfc209e85f110d04d95c53a8c1"
44
+ "gitHead": "15345171bbdf0cf83cfb45e49d3987488bb1e4ce"
45
45
  }
package/src/index.ts CHANGED
@@ -178,6 +178,9 @@ export interface Traffic {
178
178
  key: RuleKey;
179
179
  segments: GroupSegment | GroupSegment[] | "*";
180
180
  percentage: Percentage;
181
+ variables?: {
182
+ [key: string]: VariableValue;
183
+ };
181
184
  allocation: Allocation[];
182
185
  }
183
186
 
@@ -215,6 +218,9 @@ export interface Rule {
215
218
  key: RuleKey;
216
219
  segments: GroupSegment | GroupSegment[];
217
220
  percentage: Weight;
221
+ variables?: {
222
+ [key: string]: VariableValue;
223
+ };
218
224
  }
219
225
 
220
226
  export interface Environment {