Skip to content

Commit d8fb5ad

Browse files
authored
Bump version of common js client to take advantage of bandit assignment caching (#70)
* bump version of common SDK * default bandit assignment cache
1 parent bb2ea71 commit d8fb5ad

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eppo/node-server-sdk",
3-
"version": "3.2.2",
3+
"version": "3.3.0",
44
"description": "Eppo node server SDK",
55
"main": "dist/index.js",
66
"files": [
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/Eppo-exp/node-server-sdk#readme",
3131
"dependencies": {
32-
"@eppo/js-client-sdk-common": "4.0.2",
32+
"@eppo/js-client-sdk-common": "4.1.0",
3333
"lru-cache": "^10.0.1"
3434
},
3535
"devDependencies": {

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export async function init(config: IClientConfig): Promise<EppoClient> {
119119
// we estimate this will use no more than 10 MB of memory
120120
// and should be appropriate for most server-side use cases.
121121
clientInstance.useLRUInMemoryAssignmentCache(50_000);
122+
clientInstance.useLRUInMemoryBanditAssignmentCache(50_000);
122123

123124
// Fetch configurations (which will also start regular polling per requestConfiguration)
124125
await clientInstance.fetchFlagConfigurations();

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,10 @@
460460
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz"
461461
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
462462

463-
"@eppo/js-client-sdk-common@4.0.2":
464-
version "4.0.2"
465-
resolved "https://registry.yarnpkg.com/@eppo/js-client-sdk-common/-/js-client-sdk-common-4.0.2.tgz#fb99445ad57d6593d0f9bbc70a2e1327ea962b41"
466-
integrity sha512-S9RUxsrHJEl5ePMx9929aiw1uPlv3AxH82iJIJgsuSpLbi3w1EkEo17J/2B4505EI20G9XYLY3fWM0eOUR4WKw==
463+
"@eppo/js-client-sdk-common@4.1.0":
464+
version "4.1.0"
465+
resolved "https://registry.yarnpkg.com/@eppo/js-client-sdk-common/-/js-client-sdk-common-4.1.0.tgz#fc1b625ef2997a82cb65c6e8a43fb7894196b205"
466+
integrity sha512-bUA/k9HfhdGkSp7mnmKRg5VJAY+JORGoCV3eSU+Dn39gr0IQARw3VHJ3QIaKSciwoEe51n2Mk8K7/XdiIV6Qiw==
467467
dependencies:
468468
js-base64 "^3.7.7"
469469
md5 "^2.3.0"

0 commit comments

Comments
 (0)