@featurevisor/types 0.26.0 → 0.28.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 +19 -0
- package/lib/index.d.ts +6 -1
- package/package.json +2 -2
- package/src/index.ts +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.28.0](https://github.com/fahad19/featurevisor/compare/v0.27.1...v0.28.0) (2023-06-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* make bucketing key configurable ([#79](https://github.com/fahad19/featurevisor/issues/79)) ([c05f0da](https://github.com/fahad19/featurevisor/commit/c05f0dae9e6e1d4ee68f2c457a49137bbd6727d9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.27.0](https://github.com/fahad19/featurevisor/compare/v0.26.0...v0.27.0) (2023-05-24)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @featurevisor/types
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [0.26.0](https://github.com/fahad19/featurevisor/compare/v0.25.0...v0.26.0) (2023-05-24)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @featurevisor/types
|
package/lib/index.d.ts
CHANGED
|
@@ -129,7 +129,12 @@ export interface Traffic {
|
|
|
129
129
|
};
|
|
130
130
|
allocation: Allocation[];
|
|
131
131
|
}
|
|
132
|
-
export type
|
|
132
|
+
export type PlainBucketBy = AttributeKey;
|
|
133
|
+
export type AndBucketBy = AttributeKey[];
|
|
134
|
+
export interface OrBucketBy {
|
|
135
|
+
or: AttributeKey[];
|
|
136
|
+
}
|
|
137
|
+
export type BucketBy = PlainBucketBy | AndBucketBy | OrBucketBy;
|
|
133
138
|
export interface Feature {
|
|
134
139
|
key: FeatureKey;
|
|
135
140
|
defaultVariation: VariationValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.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": "
|
|
44
|
+
"gitHead": "349f2c213ee65025a4ee4cd6697fa45b8b5fd9eb"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -226,7 +226,13 @@ export interface Traffic {
|
|
|
226
226
|
allocation: Allocation[];
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
export type
|
|
229
|
+
export type PlainBucketBy = AttributeKey;
|
|
230
|
+
export type AndBucketBy = AttributeKey[];
|
|
231
|
+
export interface OrBucketBy {
|
|
232
|
+
or: AttributeKey[];
|
|
233
|
+
}
|
|
234
|
+
export type BucketBy = PlainBucketBy | AndBucketBy | OrBucketBy;
|
|
235
|
+
|
|
230
236
|
export interface Feature {
|
|
231
237
|
key: FeatureKey;
|
|
232
238
|
// @TODO: introduce new `parent` key?
|