Skip to content

chore: node-client-sdk implement sdk client#1400

Closed
joker23 wants to merge 5 commits into
mainfrom
skz/sdk-2195/node-client-sdk-next-port-client
Closed

chore: node-client-sdk implement sdk client#1400
joker23 wants to merge 5 commits into
mainfrom
skz/sdk-2195/node-client-sdk-next-port-client

Conversation

@joker23
Copy link
Copy Markdown
Contributor

@joker23 joker23 commented May 29, 2026

Note

Medium Risk
Large new SDK surface touching identify/streaming, TLS, and persistent flag cache; behavior is heavily tested but mistakes could affect flag correctness or network/security defaults in production adopters.

Overview
Replaces the @launchdarkly/node-client-sdk placeholder with a full client-side SDK for Node: createClient, client.start(), typed LDClient, and re-exports from js-client-sdk-common.

NodeClient / NodeDataManager wire streaming, polling, and offline modes, bootstrap vs cache (bootstrap skips cache), serialized setConnectionMode with flush-before-offline and analytics toggling, and identify edge cases (post-close, offline mid-identify). NodeOptions now extends common LD options with initialConnectionMode, plugins, secure-mode hash, and existing TLS/cache settings; options.ts validates Node-specific fields.

Platform hardening: default HTTP timeout, response body cap, safer flag-cache read/write and singleton path warnings. Broad Jest coverage (bootstrap, data source, events, mocks). release-please no longer bumps version in index.ts.

Reviewed by Cursor Bugbot for commit 027ee32. Bugbot is set up for automated code reviews on this repo. Configure here.

@joker23
Copy link
Copy Markdown
Contributor Author

joker23 commented May 29, 2026

@cursor review

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 26389 bytes
Compressed size limit: 29000
Uncompressed size: 129320 bytes

@github-actions
Copy link
Copy Markdown
Contributor

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

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31922 bytes
Compressed size limit: 34000
Uncompressed size: 113733 bytes

@github-actions
Copy link
Copy Markdown
Contributor

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

cursor[bot]

This comment was marked as resolved.

Comment thread packages/sdk/node-client/__tests__/index.test.ts Outdated
Comment thread packages/sdk/node-client/src/LDClient.ts
highTimeoutThreshold: 15,
getImplementationHooks: (_environmentMetadata: LDPluginEnvironmentMetadata) =>
internal.safeGetHooks(logger, _environmentMetadata, validatedNodeOptions.plugins),
credentialType: 'clientSideId',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe also support taking in mobile key?

Comment thread packages/sdk/node-client/src/index.ts Outdated
@joker23
Copy link
Copy Markdown
Contributor Author

joker23 commented May 29, 2026

@cursor review

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 2767d76. Configure here.

@joker23 joker23 force-pushed the skz/sdk-2195/node-client-sdk-next-port-client branch from 2767d76 to 06524cd Compare May 29, 2026 21:16
@joker23 joker23 marked this pull request as ready for review May 29, 2026 21:27
@joker23 joker23 requested a review from a team as a code owner May 29, 2026 21:27
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 5 additional findings.

Open in Devin Review

@joker23 joker23 force-pushed the skz/sdk-2195/node-client-sdk-next-port-client branch from 06524cd to a445510 Compare June 1, 2026 13:47
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

cursor[bot]

This comment was marked as resolved.

@joker23
Copy link
Copy Markdown
Contributor Author

joker23 commented Jun 1, 2026

going to try to break this PR up a bit more

@joker23 joker23 closed this Jun 1, 2026
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.

1 participant