Skip to content

Conversation

@kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Oct 9, 2024

No description provided.

@@ -1,4 +1,4 @@
import { init, LDClient, LDLogger, LDOptions } from '@launchdarkly/js-client-sdk';
import { initialize, LDClient, LDLogger, LDOptions } from '@launchdarkly/js-client-sdk';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the name to match existing package.

It means client/server are not consistent, so we may want to add init to the client, or add initialize to the server, then mark as deprecated.

*
* For more information, see the [SDK Reference Guide](https://docs.launchdarkly.com/sdk/client-side/javascript).
*
* @ignore Implementation Note: We are not supporting dynamically setting the connection mode on the LDClient.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caused the entire type not to be in the docs. Moved these implementation notes.

import './style.css';
import TestHarnessWebSocket from './TestHarnessWebSocket';

// const client = init('618959580d89aa15579acf1d', AutoEnvAttributes.Enabled);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot this at some point. Ok though client-side IDs are not secret.

@kinyoklion kinyoklion marked this pull request as ready for review October 9, 2024 22:00
@kinyoklion kinyoklion requested a review from a team as a code owner October 9, 2024 22:00
@kinyoklion kinyoklion merged commit 8b967a5 into main Oct 9, 2024
20 checks passed
@kinyoklion kinyoklion deleted the rlamb/sdk-758/browser-sdk-release branch October 9, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants