@featurevisor/types 0.62.0 → 0.63.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/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts":"1"},{"size":9356,"mtime":1700413419239,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1fqckjn","/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts",[],[]]
1
+ [{"/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts":"1"},{"size":9457,"mtime":1701279439222,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1fqckjn","/home/runner/work/featurevisor/featurevisor/packages/types/src/index.ts",[],[]]
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.63.0](https://github.com/featurevisor/featurevisor/compare/v0.62.2...v0.63.0) (2023-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * attribute type for semver ([#221](https://github.com/featurevisor/featurevisor/issues/221)) ([278e366](https://github.com/featurevisor/featurevisor/commit/278e366d76b3f6ed5b6aae1b96f8ca1149276574))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.62.0](https://github.com/featurevisor/featurevisor/compare/v0.61.0...v0.62.0) (2023-11-19)
7
18
 
8
19
 
package/lib/index.d.ts CHANGED
@@ -3,10 +3,11 @@ export type AttributeValue = string | number | boolean | Date | null | undefined
3
3
  export interface Context {
4
4
  [key: AttributeKey]: AttributeValue;
5
5
  }
6
+ export type AttributeType = "boolean" | "string" | "integer" | "double" | "date" | "semver";
6
7
  export interface Attribute {
7
8
  archived?: boolean;
8
9
  key: AttributeKey;
9
- type: string;
10
+ type: AttributeType;
10
11
  capture?: boolean;
11
12
  }
12
13
  export type Operator = "equals" | "notEquals" | "greaterThan" | "greaterThanOrEquals" | "lessThan" | "lessThanOrEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "semverEquals" | "semverNotEquals" | "semverGreaterThan" | "semverGreaterThanOrEquals" | "semverLessThan" | "semverLessThanOrEquals" | "before" | "after" | "in" | "notIn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/types",
3
- "version": "0.62.0",
3
+ "version": "0.63.0",
4
4
  "description": "Common Typescript types for Featurevisor",
5
5
  "main": "dist/index.js",
6
6
  "module": "lib/index.js",
@@ -44,5 +44,5 @@
44
44
  "url": "https://github.com/featurevisor/featurevisor/issues"
45
45
  },
46
46
  "license": "MIT",
47
- "gitHead": "64ff2edd5bbc0deedfc69aa2ada36b36e5e0c13a"
47
+ "gitHead": "a2eb0aa80dfdc617430d4e05db6734ab28ffd481"
48
48
  }
package/src/index.ts CHANGED
@@ -6,10 +6,12 @@ export interface Context {
6
6
  [key: AttributeKey]: AttributeValue;
7
7
  }
8
8
 
9
+ export type AttributeType = "boolean" | "string" | "integer" | "double" | "date" | "semver";
10
+
9
11
  export interface Attribute {
10
12
  archived?: boolean; // only available in YAML
11
13
  key: AttributeKey;
12
- type: string;
14
+ type: AttributeType;
13
15
  capture?: boolean;
14
16
  }
15
17