Skip to content

Commit 3c10a3f

Browse files
prepare 2.16.2 release (#21)
1 parent c4c2d5d commit 3c10a3f

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ All notable changes to the LaunchDarkly Client-side SDK for React will be docume
1818
### Deprecated:
1919
- The `samplingInterval` configuration property was deprecated in the code in the previous minor version release, and in the changelog, but the deprecation notice was accidentally omitted from the documentation comments. It is hereby deprecated again.
2020

21-
22-
2321
## [2.16.0] - 2019-12-16
2422
***This release was broken and has been removed.***
2523

src/initLDClient.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const ldClientInitialize = initialize as jest.Mock;
1515

1616
const clientSideID = 'deadbeef';
1717
const defaultUser: LDUser = { key: 'abcdef' };
18-
const options: LDOptions = { bootstrap: 'localStorage', wrapperName: 'React' };
18+
const options: LDOptions = { bootstrap: 'localStorage' };
1919
const flags = { 'test-flag': false, 'another-test-flag': true };
2020

2121
describe('initLDClient', () => {
@@ -41,7 +41,7 @@ describe('initLDClient', () => {
4141
const anonUser: LDUser = { anonymous: true };
4242
await initLDClient(clientSideID);
4343

44-
expect(ldClientInitialize.mock.calls[0]).toEqual([clientSideID, anonUser, { wrapperName: 'React' }]);
44+
expect(ldClientInitialize.mock.calls[0]).toEqual([clientSideID, anonUser, {}]);
4545
expect(mockLDClient.variation).toHaveBeenCalledTimes(0);
4646
});
4747

src/initLDClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const initLDClient = async (
2020
options?: LDOptions,
2121
targetFlags?: LDFlagSet,
2222
): Promise<AllFlagsLDClient> => {
23-
const allOptions = { wrapperName: 'React', ...options };
23+
const allOptions = { ...options };
2424
const ldClient = ldClientInitialize(clientSideID, user, allOptions);
2525

2626
return new Promise<AllFlagsLDClient>(resolve => {

0 commit comments

Comments
 (0)