Skip to content

Commit eea5ac4

Browse files
authored
prepare 3.0.9 release (#217)
## [3.0.9] - 2023-08-21 ### Fixed: - Types from the js client sdk are now re-exported in the react sdk there's no need to separately install the js sdk just for types.
2 parents b97e8e7 + b069d5d commit eea5ac4

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

examples/async-provider/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7179,9 +7179,9 @@ which@^2.0.1:
71797179
isexe "^2.0.0"
71807180

71817181
word-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

71867186
worker-farm@^1.7.0:
71877187
version "1.7.0"

examples/hoc/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7508,9 +7508,9 @@ widest-line@^2.0.0:
75087508
string-width "^2.1.1"
75097509

75107510
word-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

75157515
worker-farm@^1.7.0:
75167516
version "1.7.0"

examples/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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",

examples/typescript/src/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ import ReactDOM from 'react-dom/client';
33
import './index.css';
44
import App from './App';
55
import 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);

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,5 @@ export interface AllFlagsLDClient {
146146
export interface LDFlagKeyMap {
147147
[camelCasedKey: string]: string;
148148
}
149+
150+
export * from 'launchdarkly-js-client-sdk';

0 commit comments

Comments
 (0)