@featurevisor/types 0.2.0 → 0.3.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 +11 -0
- package/lib/index.d.ts +5 -2
- package/package.json +2 -2
- package/src/index.ts +12 -2
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.3.0](https://github.com/fahad19/featurevisor/compare/v0.2.0...v0.3.0) (2023-03-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* support objects as variables ([#18](https://github.com/fahad19/featurevisor/issues/18)) ([c1b6160](https://github.com/fahad19/featurevisor/commit/c1b61609d299bbf2e46c644c4f09336cdd94e128))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.2.0](https://github.com/fahad19/featurevisor/compare/v0.1.0...v0.2.0) (2023-03-16)
|
|
7
18
|
|
|
8
19
|
|
package/lib/index.d.ts
CHANGED
|
@@ -48,8 +48,11 @@ 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";
|
|
52
|
-
export
|
|
51
|
+
export type VariableType = "boolean" | "string" | "integer" | "double" | "array" | "object";
|
|
52
|
+
export interface VariableObjectValue {
|
|
53
|
+
[key: string]: VariableValue;
|
|
54
|
+
}
|
|
55
|
+
export type VariableValue = boolean | string | number | string[] | VariableObjectValue | null | undefined;
|
|
53
56
|
export interface VariableOverrideSegments {
|
|
54
57
|
segments: GroupSegment | GroupSegment[];
|
|
55
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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": "fae6cbf61f8b2f7e89b4faf660f63b37676bab29"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -88,8 +88,18 @@ 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 = "boolean" | "string" | "integer" | "double" | "array";
|
|
92
|
-
export
|
|
91
|
+
export type VariableType = "boolean" | "string" | "integer" | "double" | "array" | "object";
|
|
92
|
+
export interface VariableObjectValue {
|
|
93
|
+
[key: string]: VariableValue;
|
|
94
|
+
}
|
|
95
|
+
export type VariableValue =
|
|
96
|
+
| boolean
|
|
97
|
+
| string
|
|
98
|
+
| number
|
|
99
|
+
| string[]
|
|
100
|
+
| VariableObjectValue
|
|
101
|
+
| null
|
|
102
|
+
| undefined;
|
|
93
103
|
|
|
94
104
|
export interface VariableOverrideSegments {
|
|
95
105
|
segments: GroupSegment | GroupSegment[];
|