Skip to content

Commit 8b43434

Browse files
dependabot[bot]matthewelwellclaude
authored
chore(deps): bump vite, @vitest/coverage-v8 and vitest (#261)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthew Elwell <matthew.elwell@flagsmith.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a7682af commit 8b43434

15 files changed

Lines changed: 1038 additions & 1675 deletions

flagsmith-engine/evaluation/evaluationContext/evaluationContext.types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ export type Enabled = boolean;
100100
* A default environment value for the feature. If the feature is multivariate, this will be the control value.
101101
*/
102102
export type Value2 = string | number | boolean | null;
103+
/**
104+
* A stable, human-readable identifier for the variant. Omitted when the variant has no key set.
105+
*/
106+
export type Key4 = string;
103107
/**
104108
* The value of the feature.
105109
*/
@@ -222,6 +226,7 @@ export interface FeatureContext {
222226
* Represents a multivariate value for a feature flag.
223227
*/
224228
export interface FeatureValue {
229+
key?: Key4;
225230
value: Value3;
226231
weight: Weight;
227232
priority: VariantPriority;

flagsmith-engine/evaluation/evaluationResult/evaluationResult.types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export type Value = string | number | boolean | null;
2121
* Reason for the feature flag evaluation.
2222
*/
2323
export type Reason = string;
24+
/**
25+
* A stable identifier of the multivariate variant the identity was bucketed into: the variant's key, "control" for the control bucket, or null when no multivariate split applied (a standard feature, an unkeyed variant, or evaluation without an identity).
26+
*/
27+
export type Variant = string | null;
2428
/**
2529
* Segment name.
2630
*/
@@ -49,6 +53,7 @@ export interface FlagResult {
4953
enabled: Enabled;
5054
value: Value;
5155
reason: Reason;
56+
variant: Variant;
5257
metadata?: FeatureMetadata;
5358
[k: string]: unknown;
5459
}

0 commit comments

Comments
 (0)