Skip to content

Conversation

@joker23
Copy link
Contributor

@joker23 joker23 commented Dec 18, 2025

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

SDK-1699

Describe the solution you've provided

  • Updated the @launchdarkly/js-client-sdk dependency from 0.7.0 to 0.11.0.
  • Refactored the SDK's initialization flow by replacing the initialize method with createClient, which now requires an initial context parameter.
  • Adjusted usage examples and documentation to reflect the new client creation and initialization process.

Additional context

  • Is this something we'd want to update? The version of browser sdk was fairly old before this PR.

Note

Replaces initialize with createClient (now requiring an LDContext and start flow) and updates the js-client-sdk dependency to 0.11.0.

  • Browser SDK API:
    • Replace initialize with createClient in packages/sdk/combined-browser/src/index.ts.
    • New signature requires LDContext and expects consumers to call client.start().
    • Update imports to use createClient and expose LDContext from @launchdarkly/js-client-sdk.
  • Docs/Examples:
    • Adjust JSDoc usage to reflect createClient(clientSideId, context, options) and start sequence.
  • Dependencies:
    • Bump @launchdarkly/js-client-sdk from 0.7.0 to 0.11.0 in packages/sdk/combined-browser/package.json.

Written by Cursor Bugbot for commit f993d3f. This will update automatically on new commits. Configure here.

…ient

- Updated the `@launchdarkly/js-client-sdk` dependency from 0.7.0 to 0.11.0.
- Refactored the SDK's initialization flow by replacing the `initialize` method with `createClient`, which now requires an initial context parameter.
- Adjusted usage examples and documentation to reflect the new client creation and initialization process.
@joker23 joker23 requested a review from a team as a code owner December 18, 2025 22:48
@github-actions
Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25394 bytes
Compressed size limit: 26000
Uncompressed size: 124693 bytes

@github-actions
Copy link
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 171051 bytes
Compressed size limit: 200000
Uncompressed size: 797504 bytes

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 23135 bytes
Compressed size limit: 25000
Uncompressed size: 80393 bytes

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 18527 bytes
Compressed size limit: 20000
Uncompressed size: 95226 bytes

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