1- import { init , LDClient , LDLogger , LDOptions } from '@launchdarkly/js-client-sdk' ;
1+ import { initialize , LDClient , LDLogger , LDOptions } from '@launchdarkly/js-client-sdk' ;
22
33import { CommandParams , CommandType , ValueType } from './CommandParams' ;
44import { CreateInstanceParams , SDKConfigParams } from './ConfigParams' ;
@@ -19,7 +19,6 @@ function makeSdkConfig(options: SDKConfigParams, tag: string) {
1919 withReasons : options . clientSide . evaluationReasons ,
2020 logger : makeLogger ( `${ tag } .sdk` ) ,
2121 // useReport: options.clientSide.useReport,
22- // sendEventsOnlyForVariation: true,
2322 } ;
2423
2524 if ( options . serviceEndpoints ) {
@@ -198,7 +197,7 @@ export async function newSdkClientEntity(options: CreateInstanceParams) {
198197 options . configuration . clientSide ?. initialUser ||
199198 options . configuration . clientSide ?. initialContext ||
200199 makeDefaultInitialContext ( ) ;
201- const client = init ( options . configuration . credential || 'unknown-env-id' , sdkConfig ) ;
200+ const client = initialize ( options . configuration . credential || 'unknown-env-id' , sdkConfig ) ;
202201 let failed = false ;
203202 try {
204203 await Promise . race ( [
0 commit comments