@featurevisor/types 0.5.0 → 0.6.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 +2 -1
- package/package.json +2 -2
- package/src/index.ts +9 -1
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
|
+
# [0.6.0](https://github.com/fahad19/featurevisor/compare/v0.5.3...v0.6.0) (2023-03-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Introduce new JSON type for variables ([#28](https://github.com/fahad19/featurevisor/issues/28)) ([49ff4cb](https://github.com/fahad19/featurevisor/commit/49ff4cb99f840f29e9ac8fcacfee9a9a961ff776))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.5.3](https://github.com/fahad19/featurevisor/compare/v0.5.2...v0.5.3) (2023-03-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* linting fixes ([#27](https://github.com/fahad19/featurevisor/issues/27)) ([8f16194](https://github.com/fahad19/featurevisor/commit/8f161943332a617a5e25f811c985e1a33a9559fa))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [0.5.0](https://github.com/fahad19/featurevisor/compare/v0.4.0...v0.5.0) (2023-03-22)
|
|
7
29
|
|
|
8
30
|
|
package/lib/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export type GroupSegment = PlainGroupSegment | AndOrNotGroupSegment;
|
|
|
48
48
|
export type VariationType = "boolean" | "string" | "integer" | "double";
|
|
49
49
|
export type VariationValue = boolean | string | number | null | undefined;
|
|
50
50
|
export type VariableKey = string;
|
|
51
|
-
export type VariableType = "boolean" | "string" | "integer" | "double" | "array" | "object";
|
|
51
|
+
export type VariableType = "boolean" | "string" | "integer" | "double" | "array" | "object" | "json";
|
|
52
52
|
export interface VariableObjectValue {
|
|
53
53
|
[key: string]: VariableValue;
|
|
54
54
|
}
|
|
@@ -74,6 +74,7 @@ export interface Variable {
|
|
|
74
74
|
overrides?: VariableOverride[];
|
|
75
75
|
}
|
|
76
76
|
export interface Variation {
|
|
77
|
+
description?: string;
|
|
77
78
|
type: VariationType;
|
|
78
79
|
value: VariationValue;
|
|
79
80
|
weight?: Weight;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.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": "03d4c4e37ac7491f306f5858c98bf65ac8f62fdf"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -88,7 +88,14 @@ export type VariationType = "boolean" | "string" | "integer" | "double";
|
|
|
88
88
|
export type VariationValue = boolean | string | number | null | undefined;
|
|
89
89
|
|
|
90
90
|
export type VariableKey = string;
|
|
91
|
-
export type VariableType =
|
|
91
|
+
export type VariableType =
|
|
92
|
+
| "boolean"
|
|
93
|
+
| "string"
|
|
94
|
+
| "integer"
|
|
95
|
+
| "double"
|
|
96
|
+
| "array"
|
|
97
|
+
| "object"
|
|
98
|
+
| "json";
|
|
92
99
|
export interface VariableObjectValue {
|
|
93
100
|
[key: string]: VariableValue;
|
|
94
101
|
}
|
|
@@ -135,6 +142,7 @@ export interface Variable {
|
|
|
135
142
|
}
|
|
136
143
|
|
|
137
144
|
export interface Variation {
|
|
145
|
+
description?: string; // only available in YAML
|
|
138
146
|
type: VariationType;
|
|
139
147
|
value: VariationValue;
|
|
140
148
|
weight?: Weight; // 0 to 100 (available from parsed YAML, but not in datafile)
|