From 55b684d5a0edc968633ff447e209e6f49d01af03 Mon Sep 17 00:00:00 2001 From: Mauricio Robayo Date: Fri, 3 Apr 2026 10:35:56 -0500 Subject: [PATCH 1/2] fix: add missing name property on context variant closes #55 --- src/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.ts b/src/context.ts index c862b3d..2313a71 100644 --- a/src/context.ts +++ b/src/context.ts @@ -35,7 +35,7 @@ export type ExperimentData = { split: number[]; seedHi: number; seedLo: number; - variants: { config: null | string }[]; + variants: { config: null | string, name: string }[]; variables: Record; variant: number; overridden: boolean; From 6c546dca883caf2956f7154889133a52b08f89ca Mon Sep 17 00:00:00 2001 From: Mauricio Robayo Date: Fri, 3 Apr 2026 14:55:07 -0500 Subject: [PATCH 2/2] chore: make name optional to keep it backwards compatible --- src/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.ts b/src/context.ts index 2313a71..2ca4f42 100644 --- a/src/context.ts +++ b/src/context.ts @@ -35,7 +35,7 @@ export type ExperimentData = { split: number[]; seedHi: number; seedLo: number; - variants: { config: null | string, name: string }[]; + variants: { config: null | string; name?: string }[]; variables: Record; variant: number; overridden: boolean;