Skip to content

Commit 5173c69

Browse files
Add builder method to add a configuration store. (#67)
1 parent 26c468b commit 5173c69

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eppo/js-client-sdk-common",
3-
"version": "3.0.7",
3+
"version": "3.0.8",
44
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)",
55
"main": "dist/index.js",
66
"files": [

src/client/eppo-client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export interface IEppoClient {
8787
configurationRequestParameters: FlagConfigurationRequestParameters,
8888
): void;
8989

90+
setConfigurationStore(configurationStore: IConfigurationStore<Flag | ObfuscatedFlag>): void;
91+
9092
fetchFlagConfigurations(): void;
9193

9294
stopPolling(): void;
@@ -140,6 +142,10 @@ export default class EppoClient implements IEppoClient {
140142
this.configurationRequestParameters = configurationRequestParameters;
141143
}
142144

145+
public setConfigurationStore(configurationStore: IConfigurationStore<Flag | ObfuscatedFlag>) {
146+
this.configurationStore = configurationStore;
147+
}
148+
143149
public async fetchFlagConfigurations() {
144150
if (!this.configurationRequestParameters) {
145151
throw new Error(

0 commit comments

Comments
 (0)