@@ -94,7 +94,9 @@ export {
94
94
export { ChromeStorageAsyncStore } from './chrome.configuration-store' ;
95
95
96
96
// Instantiate the configuration store with memory-only implementation.
97
- const configurationStore = configurationStorageFactory ( { forceMemoryOnly : true } ) ;
97
+ const configurationStore = configurationStorageFactory ( {
98
+ forceMemoryOnly : true ,
99
+ } ) ;
98
100
99
101
/**
100
102
* Client for assigning experiment variations.
@@ -117,14 +119,26 @@ export class EppoJSClient extends EppoClient {
117
119
return super . getStringAssignment ( flagKey , subjectKey , subjectAttributes , defaultValue ) ;
118
120
}
119
121
122
+ /**
123
+ * @deprecated Use getBooleanAssignment instead
124
+ */
120
125
public getBoolAssignment (
121
126
flagKey : string ,
122
127
subjectKey : string ,
123
128
subjectAttributes : Record < string , any > ,
124
129
defaultValue : boolean ,
130
+ ) : boolean {
131
+ return this . getBooleanAssignment ( flagKey , subjectKey , subjectAttributes , defaultValue ) ;
132
+ }
133
+
134
+ public getBooleanAssignment (
135
+ flagKey : string ,
136
+ subjectKey : string ,
137
+ subjectAttributes : Record < string , any > ,
138
+ defaultValue : boolean ,
125
139
) : boolean {
126
140
EppoJSClient . getAssignmentInitializationCheck ( ) ;
127
- return super . getBoolAssignment ( flagKey , subjectKey , subjectAttributes , defaultValue ) ;
141
+ return super . getBooleanAssignment ( flagKey , subjectKey , subjectAttributes , defaultValue ) ;
128
142
}
129
143
130
144
public getIntegerAssignment (
@@ -179,7 +193,7 @@ export async function init(config: IClientConfig): Promise<IEppoClient> {
179
193
}
180
194
181
195
// Set the configuration store to the desired persistent store, if provided.
182
- // Otherwise the factory method will detect the current environment and instantiate the correct store.
196
+ // Otherwise, the factory method will detect the current environment and instantiate the correct store.
183
197
const configurationStore = configurationStorageFactory (
184
198
{
185
199
persistentStore : config . persistentStore ,
0 commit comments