@featurevisor/types 0.5.3 → 0.7.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 -2
- package/package.json +2 -2
- package/src/index.ts +16 -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.7.0](https://github.com/fahad19/featurevisor/compare/v0.6.0...v0.7.0) (2023-03-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Introduce semver operators ([#30](https://github.com/fahad19/featurevisor/issues/30)) ([b2841c3](https://github.com/fahad19/featurevisor/commit/b2841c3473e9100f9a7f404c7ed15903037523a7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.6.0](https://github.com/fahad19/featurevisor/compare/v0.5.3...v0.6.0) (2023-03-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* Introduce new JSON type for variables ([#28](https://github.com/fahad19/featurevisor/issues/28)) ([49ff4cb](https://github.com/fahad19/featurevisor/commit/49ff4cb99f840f29e9ac8fcacfee9a9a961ff776))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [0.5.3](https://github.com/fahad19/featurevisor/compare/v0.5.2...v0.5.3) (2023-03-25)
|
|
7
29
|
|
|
8
30
|
|
package/lib/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Attribute {
|
|
|
9
9
|
type: AttributeValue;
|
|
10
10
|
capture?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export type Operator = "equals" | "notEquals" | "greaterThan" | "greaterThanOrEquals" | "lessThan" | "lessThanOrEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "in" | "notIn";
|
|
12
|
+
export type Operator = "equals" | "notEquals" | "greaterThan" | "greaterThanOrEquals" | "lessThan" | "lessThanOrEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "semverEquals" | "semverNotEquals" | "semverGreaterThan" | "semverGreaterThanOrEquals" | "semverLessThan" | "semverLessThanOrEquals" | "in" | "notIn";
|
|
13
13
|
export type ConditionValue = string | number | boolean | null | undefined | string[];
|
|
14
14
|
export interface PlainCondition {
|
|
15
15
|
attribute: AttributeKey;
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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": "d06517f562f831dc61eebc531b85fabccc06ec2e"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -29,6 +29,14 @@ export type Operator =
|
|
|
29
29
|
| "startsWith"
|
|
30
30
|
| "endsWith"
|
|
31
31
|
|
|
32
|
+
// semver (string)
|
|
33
|
+
| "semverEquals"
|
|
34
|
+
| "semverNotEquals"
|
|
35
|
+
| "semverGreaterThan"
|
|
36
|
+
| "semverGreaterThanOrEquals"
|
|
37
|
+
| "semverLessThan"
|
|
38
|
+
| "semverLessThanOrEquals"
|
|
39
|
+
|
|
32
40
|
// array of strings
|
|
33
41
|
| "in"
|
|
34
42
|
| "notIn";
|
|
@@ -88,7 +96,14 @@ export type VariationType = "boolean" | "string" | "integer" | "double";
|
|
|
88
96
|
export type VariationValue = boolean | string | number | null | undefined;
|
|
89
97
|
|
|
90
98
|
export type VariableKey = string;
|
|
91
|
-
export type VariableType =
|
|
99
|
+
export type VariableType =
|
|
100
|
+
| "boolean"
|
|
101
|
+
| "string"
|
|
102
|
+
| "integer"
|
|
103
|
+
| "double"
|
|
104
|
+
| "array"
|
|
105
|
+
| "object"
|
|
106
|
+
| "json";
|
|
92
107
|
export interface VariableObjectValue {
|
|
93
108
|
[key: string]: VariableValue;
|
|
94
109
|
}
|