Skip to content

Commit d713fd1

Browse files
committed
fix: mark setConnectionMode as @internal with not-ready warning
1 parent ed1030c commit d713fd1

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/sdk/browser/example-fdv2/src/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,14 @@ const main = async () => {
284284
];
285285
connectionModes.forEach((mode) => {
286286
document.getElementById(`btn-mode-${mode}`)!.addEventListener('click', () => {
287+
// @ts-ignore setConnectionMode is @internal — experimental FDv2 opt-in
287288
client.setConnectionMode(mode);
288289
updateModeStatus(mode);
289290
log(`setConnectionMode('${mode}')`);
290291
});
291292
});
292293
document.getElementById('btn-mode-clear')!.addEventListener('click', () => {
294+
// @ts-ignore setConnectionMode is @internal — experimental FDv2 opt-in
293295
client.setConnectionMode(undefined);
294296
updateModeStatus(undefined);
295297
log('setConnectionMode(undefined)');

packages/sdk/browser/src/LDClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export type LDClient = Omit<CommonClient, 'getConnectionMode' | 'getOffline' | '
4141
* from the interface.
4242
*/
4343
/**
44+
* @internal
45+
*
46+
* WARNING: This method is not ready for use and may change or be removed
47+
* without notice.
48+
*
4449
* Sets the connection mode for the SDK's data system.
4550
*
4651
* When set, this mode is used exclusively, overriding all automatic mode

0 commit comments

Comments
 (0)