@featurevisor/types 0.11.0 → 0.12.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.12.0](https://github.com/fahad19/featurevisor/compare/v0.11.0...v0.12.0) (2023-04-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * Allow overriding variation for specific rules ([#51](https://github.com/fahad19/featurevisor/issues/51)) ([e6447df](https://github.com/fahad19/featurevisor/commit/e6447df579d8b579aa67a44ba7a370b7cac9f320))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.11.0](https://github.com/fahad19/featurevisor/compare/v0.10.1...v0.11.0) (2023-04-17)
7
18
 
8
19
  **Note:** Version bump only for package @featurevisor/types
package/lib/index.d.ts CHANGED
@@ -108,6 +108,7 @@ export interface Traffic {
108
108
  key: RuleKey;
109
109
  segments: GroupSegment | GroupSegment[] | "*";
110
110
  percentage: Percentage;
111
+ variation?: VariationValue;
111
112
  variables?: {
112
113
  [key: string]: VariableValue;
113
114
  };
@@ -140,6 +141,7 @@ export interface Rule {
140
141
  key: RuleKey;
141
142
  segments: GroupSegment | GroupSegment[];
142
143
  percentage: Weight;
144
+ variation?: VariationValue;
143
145
  variables?: {
144
146
  [key: string]: VariableValue;
145
147
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "0.11.0",
3
+ "version": "0.12.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": "7461ad1157ec078306c9cd55995017922342a52c"
44
+ "gitHead": "2f78c4dc5bdfb8aaca5b01fb784481abf9412025"
45
45
  }
package/src/index.ts CHANGED
@@ -194,6 +194,7 @@ export interface Traffic {
194
194
  key: RuleKey;
195
195
  segments: GroupSegment | GroupSegment[] | "*";
196
196
  percentage: Percentage;
197
+ variation?: VariationValue;
197
198
  variables?: {
198
199
  [key: string]: VariableValue;
199
200
  };
@@ -234,6 +235,7 @@ export interface Rule {
234
235
  key: RuleKey;
235
236
  segments: GroupSegment | GroupSegment[];
236
237
  percentage: Weight;
238
+ variation?: VariationValue;
237
239
  variables?: {
238
240
  [key: string]: VariableValue;
239
241
  };