@featurevisor/types 0.6.0 → 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 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.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
+
6
17
  # [0.6.0](https://github.com/fahad19/featurevisor/compare/v0.5.3...v0.6.0) (2023-03-25)
7
18
 
8
19
 
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "0.6.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": "03d4c4e37ac7491f306f5858c98bf65ac8f62fdf"
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";