File tree Expand file tree Collapse file tree 5 files changed +16
-8
lines changed
Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -7179,9 +7179,9 @@ which@^2.0.1:
71797179 isexe "^2.0.0"
71807180
71817181word-wrap@~1.2.3 :
7182- version "1.2.3 "
7183- resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3 .tgz#610636f6b1f703891bd34771ccb17fb93b47079c "
7184- integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ ==
7182+ version "1.2.4 "
7183+ resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.4 .tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f "
7184+ integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA ==
71857185
71867186worker-farm@^1.7.0 :
71877187 version "1.7.0"
Original file line number Diff line number Diff line change @@ -7508,9 +7508,9 @@ widest-line@^2.0.0:
75087508 string-width "^2.1.1"
75097509
75107510word-wrap@~1.2.3 :
7511- version "1.2.3 "
7512- resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3 .tgz#610636f6b1f703891bd34771ccb17fb93b47079c "
7513- integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ ==
7511+ version "1.2.4 "
7512+ resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.4 .tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f "
7513+ integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA ==
75147514
75157515worker-farm@^1.7.0 :
75167516 version "1.7.0"
Original file line number Diff line number Diff line change 1010 "@types/node" : " ^16.18.18" ,
1111 "@types/react" : " ^18.0.28" ,
1212 "@types/react-dom" : " ^18.0.11" ,
13- "launchdarkly-react-client-sdk" : " ^3.0.4 " ,
13+ "launchdarkly-react-client-sdk" : " ^3.0.8 " ,
1414 "react" : " ^18.2.0" ,
1515 "react-dom" : " ^18.2.0" ,
1616 "react-scripts" : " 5.0.1" ,
Original file line number Diff line number Diff line change @@ -3,13 +3,19 @@ import ReactDOM from 'react-dom/client';
33import './index.css' ;
44import App from './App' ;
55import reportWebVitals from './reportWebVitals' ;
6- import { asyncWithLDProvider } from 'launchdarkly-react-client-sdk' ;
6+ import { asyncWithLDProvider , LDContext } from 'launchdarkly-react-client-sdk' ;
77
88( async ( ) => {
99 // Set clientSideID to your own Client-side ID. You can find this in
1010 // your LaunchDarkly portal under Account settings / Projects
11+ const context : LDContext = {
12+ kind : 'user' ,
13+ key : 'test-user-1' ,
14+ } ;
15+
1116 const LDProvider = await asyncWithLDProvider ( {
1217 clientSideID : process . env . REACT_APP_LD_CLIENT_SIDE_ID ?? '' ,
18+ context,
1319 } ) ;
1420
1521 const root = ReactDOM . createRoot ( document . getElementById ( 'root' ) as HTMLElement ) ;
Original file line number Diff line number Diff line change @@ -146,3 +146,5 @@ export interface AllFlagsLDClient {
146146export interface LDFlagKeyMap {
147147 [ camelCasedKey : string ] : string ;
148148}
149+
150+ export * from 'launchdarkly-js-client-sdk' ;
You can’t perform that action at this time.
0 commit comments