Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Prepare for browser client releases. #612

Merged
merged 4 commits into from
Oct 9, 2024

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.

@@ -31,16 +31,19 @@ import BrowserPlatform from './platform/BrowserPlatform';
* Applications should configure the client at page load time and reuse the same instance.
*
* 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.

@@ -2,8 +2,6 @@
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.

2 participants