Skip to content

Commit 7801cc6

Browse files
authored
Expose bandit logger types (#65)
* expose bandit logger types * fix linting error * bump bugfix version * use released updated common JS
1 parent c397ca4 commit 7801cc6

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

node-server-sdk.api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import { IAssignmentEvent } from '@eppo/js-client-sdk-common';
88
import { IAssignmentLogger } from '@eppo/js-client-sdk-common';
9+
import { IBanditEvent } from '@eppo/js-client-sdk-common';
910
import { IBanditLogger } from '@eppo/js-client-sdk-common';
1011
import { IEppoClient } from '@eppo/js-client-sdk-common';
1112

@@ -16,6 +17,10 @@ export { IAssignmentEvent }
1617

1718
export { IAssignmentLogger }
1819

20+
export { IBanditEvent }
21+
22+
export { IBanditLogger }
23+
1924
// @public
2025
export interface IClientConfig {
2126
apiKey: string;

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.1.0",
3+
"version": "3.1.1",
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": "3.5.0",
32+
"@eppo/js-client-sdk-common": "3.6.0",
3333
"lru-cache": "^10.0.1"
3434
},
3535
"devDependencies": {

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ export interface IClientConfig {
6868
pollAfterFailedInitialization?: boolean;
6969
}
7070

71-
export { IAssignmentEvent, IAssignmentLogger } from '@eppo/js-client-sdk-common';
71+
export {
72+
IAssignmentEvent,
73+
IAssignmentLogger,
74+
IBanditEvent,
75+
IBanditLogger,
76+
} from '@eppo/js-client-sdk-common';
7277

7378
let clientInstance: IEppoClient;
7479

test/testHelpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export function validateTestAssignments(
9797
// the expect works well for objects, but this comparison does not
9898
if (assignment !== subject.assignment) {
9999
throw new Error(
100-
`subject ${subject.subjectKey
100+
`subject ${
101+
subject.subjectKey
101102
} was assigned ${assignment?.toString()} when expected ${subject.assignment?.toString()} for flag ${flag}`,
102103
);
103104
}

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@3.5.0":
464-
version "3.5.0"
465-
resolved "https://registry.yarnpkg.com/@eppo/js-client-sdk-common/-/js-client-sdk-common-3.5.0.tgz#456616067a7044707828eea596cf6915d9c21c71"
466-
integrity sha512-uCzPXRq7Z7Ir8a9XDz0YU3TP5F1vKYtKqXSjRjqViDSBBfbdTkHBNh1zeA3hEdpppjQKZHExbV1Stl0rmNWznw==
463+
"@eppo/js-client-sdk-common@3.6.0":
464+
version "3.6.0"
465+
resolved "https://registry.yarnpkg.com/@eppo/js-client-sdk-common/-/js-client-sdk-common-3.6.0.tgz#b67cff89809f10df8a1b5619c4e6bec701f6d2c8"
466+
integrity sha512-9G43xdGUwLJPiwvO6OUTqwFuko6nvD6FgrsCUroRVPQbHrOnWbyylAE8h2vwbxIhSTlLwxS0xRqWO+WEYiWepA==
467467
dependencies:
468468
js-base64 "^3.7.7"
469469
md5 "^2.3.0"

0 commit comments

Comments
 (0)