fix: align README with env-var setup and restore missing client-side ID guard - #19
Draft
devin-ai-integration[bot] wants to merge 1 commit into
Draft
fix: align README with env-var setup and restore missing client-side ID guard#19devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
…ID guard Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
Author
|
@cursor review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Routine SDK audit of this example.
launchdarkly-node-client-sdkneeded no version change: the manifest declares>= 3.4.0, latest on npm is 3.4.3, and there is no committed lock file, sonpm installalready resolves to the latest 3.x. No deprecated SDK APIs are used (initialize,waitForInitialization(timeout),variation,on('change:...')are all current; no deprecation warnings on install or run).Two real defects found instead:
README was stale — it told users to edit
index.jsand set a variableenvironmentIdthat does not exist (the code readsLAUNCHDARKLY_CLIENT_SIDE_ID/LAUNCHDARKLY_FLAG_KEY), and quoted an output line the app no longer prints. Rewrote the build instructions in the same shape as hello-node-server.The "please set your client-side ID" guard was dead code:
Without the env var the example previously tried to initialize with the literal
your-client-side-idand failed with an opaque SDK error instead of the intended message.Titled
fix:rather thanchore:because it touches shipped example code.Validation
Limitations
Node console app, so no screenshots. Repo CI (
verify-hello-app) skips markdown-only changes but runs for theindex.jschange.Link to Devin session: https://app.devin.ai/sessions/a4f2f04fc40f4596aa5f7dd97ef1a223