@flipt-io/flipt-client-js 0.1.0 → 0.2.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.
@@ -21,7 +21,7 @@ export declare abstract class BaseFliptClient {
21
21
  evaluateVariant({ flagKey, entityId, context }: {
22
22
  flagKey: string;
23
23
  entityId: string;
24
- context: Record<string, unknown>;
24
+ context: Record<string, string>;
25
25
  }): VariantEvaluationResponse;
26
26
  /**
27
27
  * Evaluate a boolean flag
@@ -29,7 +29,7 @@ export declare abstract class BaseFliptClient {
29
29
  evaluateBoolean({ flagKey, entityId, context }: {
30
30
  flagKey: string;
31
31
  entityId: string;
32
- context: Record<string, unknown>;
32
+ context: Record<string, string>;
33
33
  }): BooleanEvaluationResponse;
34
34
  /**
35
35
  * Evaluate a batch of flag requests
@@ -150,7 +150,7 @@ export interface EvaluationRequest {
150
150
  * }
151
151
  * ```
152
152
  */
153
- context: object;
153
+ context: Record<string, string>;
154
154
  }
155
155
  /**
156
156
  * Represents a feature flag in the system.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipt-io/flipt-client-js",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Flipt Client Evaluation SDK for Web and Node.js",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.cjs",
@@ -83,7 +83,7 @@
83
83
  "@rollup/plugin-typescript": "^12.1.0",
84
84
  "@rollup/plugin-wasm": "^6.2.2",
85
85
  "@types/jest": "^29.5.12",
86
- "@types/node": "^22.13.14",
86
+ "@types/node": "^24.0.3",
87
87
  "@types/node-fetch": "^2.6.11",
88
88
  "@typescript-eslint/eslint-plugin": "^8.33.1",
89
89
  "@typescript-eslint/parser": "^8.33.1",