File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @eppo/js-client-sdk" ,
3
- "version" : " 1.3 .0" ,
3
+ "version" : " 1.4 .0" ,
4
4
"description" : " Eppo SDK for client-side JavaScript applications" ,
5
5
"main" : " dist/index.js" ,
6
6
"files" : [
57
57
"xhr-mock" : " ^2.5.1"
58
58
},
59
59
"dependencies" : {
60
- "@eppo/js-client-sdk-common" : " ^1.6 .0" ,
60
+ "@eppo/js-client-sdk-common" : " ^1.7 .0" ,
61
61
"axios" : " ^0.27.2" ,
62
62
"md5" : " ^2.3.0"
63
63
}
Original file line number Diff line number Diff line change @@ -143,6 +143,11 @@ export async function init(config: IClientConfig): Promise<IEppoClient> {
143
143
sdkVersion,
144
144
} ) ;
145
145
EppoJSClient . instance . setLogger ( config . assignmentLogger ) ;
146
+
147
+ // default behavior is to use a non-expiring cache.
148
+ // this can be overridden after initialization.
149
+ EppoJSClient . instance . useNonExpiringAssignmentCache ( ) ;
150
+
146
151
const configurationRequestor = new ExperimentConfigurationRequestor ( localStorage , httpClient ) ;
147
152
await configurationRequestor . fetchAndStoreConfigurations ( ) ;
148
153
return EppoJSClient . instance ;
Original file line number Diff line number Diff line change 361
361
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
362
362
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==
363
363
364
- " @eppo/js-client-sdk-common@^1.6 .0 " :
365
- version "1.6 .0"
366
- resolved "https://registry.yarnpkg.com/@eppo/js-client-sdk-common/-/js-client-sdk-common-1.6 .0.tgz#f32ecd23296d1ec02532a2f4daa467f29f03a447 "
367
- integrity sha512-QzfFIEvgTWpFtTV3O/zoSpJY63y+XuREwlrK0ICUyU812a4tdEo40IfdxsM4s7NH1EGCL7wCMMJCyPCTMYq7UA ==
364
+ " @eppo/js-client-sdk-common@^1.7 .0 " :
365
+ version "1.7 .0"
366
+ resolved "https://registry.yarnpkg.com/@eppo/js-client-sdk-common/-/js-client-sdk-common-1.7 .0.tgz#13f563af6ae7d030f5be772bcee7a35ca07127c0 "
367
+ integrity sha512-2E8Okt2oRv5cPWhLzLAdoZkOFiDOUCy3pJw47XJWmfjw29AggEYH/OFjeC5/EU+XjGUA3CWBIrhBIHtkGKfqXg ==
368
368
dependencies :
369
369
axios "^0.27.2"
370
+ lru-cache "^10.0.1"
370
371
md5 "^2.3.0"
371
372
372
373
" @eslint/eslintrc@^1.3.0 " :
@@ -3432,6 +3433,11 @@ log-update@^4.0.0:
3432
3433
slice-ansi "^4.0.0"
3433
3434
wrap-ansi "^6.2.0"
3434
3435
3436
+ lru-cache@^10.0.1 :
3437
+ version "10.0.1"
3438
+ resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.0.1.tgz#0a3be479df549cca0e5d693ac402ff19537a6b7a"
3439
+ integrity sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==
3440
+
3435
3441
lru-cache@^6.0.0 :
3436
3442
version "6.0.0"
3437
3443
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
You can’t perform that action at this time.
0 commit comments