@datadog/openfeature-node-server 2.2.0 → 2.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.
Files changed (2) hide show
  1. package/index.d.ts +4 -4
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -448,6 +448,7 @@ declare enum OperatorType {
448
448
  SEMVER_GTE = "SEMVER_GTE"
449
449
  }
450
450
  type NumericOperator = OperatorType.GTE | OperatorType.GT | OperatorType.LTE | OperatorType.LT;
451
+ type SemVerOperator = OperatorType.SEMVER_EQ | OperatorType.SEMVER_NEQ | OperatorType.SEMVER_GTE | OperatorType.SEMVER_GT | OperatorType.SEMVER_LTE | OperatorType.SEMVER_LT;
451
452
  type MatchesCondition = {
452
453
  operator: OperatorType.MATCHES;
453
454
  attribute: string;
@@ -478,13 +479,12 @@ type NullCondition = {
478
479
  attribute: string;
479
480
  value: boolean;
480
481
  };
481
- type SemverOperator = OperatorType.SEMVER_EQ | OperatorType.SEMVER_NEQ | OperatorType.SEMVER_LT | OperatorType.SEMVER_LTE | OperatorType.SEMVER_GT | OperatorType.SEMVER_GTE;
482
- type SemverCondition = {
483
- operator: SemverOperator;
482
+ type SemVerCondition = {
483
+ operator: SemVerOperator;
484
484
  attribute: string;
485
485
  value: string;
486
486
  };
487
- type Condition = MatchesCondition | NotMatchesCondition | OneOfCondition | NotOneOfCondition | NumericCondition | NullCondition | SemverCondition;
487
+ type Condition = MatchesCondition | NotMatchesCondition | OneOfCondition | NotOneOfCondition | NumericCondition | NullCondition | SemVerCondition;
488
488
  interface Rule {
489
489
  conditions: Condition[];
490
490
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/openfeature-node-server",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Node.js server bindings for OpenFeature (wraps @datadog/flagging-core)",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/DataDog/openfeature-js-client#readme",
@@ -38,7 +38,7 @@
38
38
  "typecheck": "tsc --noEmit"
39
39
  },
40
40
  "dependencies": {
41
- "@datadog/flagging-core": "2.1.0"
41
+ "@datadog/flagging-core": "2.2.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@openfeature/core": "1.9.2",