Skip to content

Commit d61d31f

Browse files
committed
wip using updated common library
1 parent 239b379 commit d61d31f

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

js-client-sdk.api.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { IEppoClient } from '@eppo/js-client-sdk-common';
1212

1313
// @public
1414
export class EppoJSClient extends EppoClient {
15-
// (undocumented)
15+
// @deprecated (undocumented)
1616
dumpStats(): any;
1717
// (undocumented)
1818
getAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): string | null;
@@ -27,14 +27,13 @@ export class EppoJSClient extends EppoClient {
2727
// (undocumented)
2828
getStringAssignment(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): string | null;
2929
// (undocumented)
30-
<<<<<<< HEAD
3130
static initialized: boolean;
32-
=======
33-
_getStringAssignmentWithReason(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): {
31+
32+
// @deprecated (undocumented)
33+
getStringAssignmentWithReason(subjectKey: string, flagKey: string, subjectAttributes?: Record<string, any>, assignmentHooks?: IAssignmentHooks): {
3434
assignment: string | null;
3535
reason: string | null;
3636
};
37-
>>>>>>> 9064661 (use commons 2.1.1-alpha.0)
3837
// (undocumented)
3938
static instance: EppoJSClient;
4039
}

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ export class EppoJSClient extends EppoClient {
8383
* @deprecated temporary method for debugging
8484
*/
8585
// eslint-disable-next-line @typescript-eslint/no-explicit-any
86-
public _dumpStats(): any {
86+
public dumpStats(): any {
8787
return {
8888
hasWindowLocalStorage: hasWindowLocalStorage(),
89-
pollerStats: EppoJSClient.instance?._pollerStats(),
89+
pollerStats: EppoJSClient.instance?.pollerStats(),
9090
};
9191
}
9292

@@ -104,14 +104,14 @@ export class EppoJSClient extends EppoClient {
104104
/**
105105
* @deprecated temporary method for debugging
106106
*/
107-
public _getStringAssignmentWithReason(
107+
public getStringAssignmentWithReason(
108108
subjectKey: string,
109109
flagKey: string,
110110
// eslint-disable-next-line @typescript-eslint/no-explicit-any
111111
subjectAttributes?: Record<string, any>,
112112
assignmentHooks?: IAssignmentHooks,
113113
): { assignment: string | null; reason: string | null } {
114-
return super._getStringAssignmentWithReason(
114+
return super.getStringAssignmentWithReason(
115115
subjectKey,
116116
flagKey,
117117
subjectAttributes,

yarn.lock

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,8 @@
380380
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
381381
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==
382382

383-
384-
version "2.1.1-alpha.0"
385-
resolved "https://registry.yarnpkg.com/@eppo/js-client-sdk-common/-/js-client-sdk-common-2.1.1-alpha.0.tgz#073c2cfd84c1f76a6457100e80591b70f68cacc6"
386-
integrity sha512-OJYl7wddzpxlwo+KDdUx1oTpRUsH53ww8aKQk2MIzp71hpHrekJLD0OLLycOamicyNDKd2ernn1pcM9LvGfF4A==
383+
"@eppo/js-client-sdk-common@file:../js-client-sdk-common":
384+
version "2.1.1-alpha.1"
387385
dependencies:
388386
axios "^1.6.0"
389387
lru-cache "^10.0.1"

0 commit comments

Comments
 (0)