Repository navigation
Conversation
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/js-client-sdk size report |
|
@launchdarkly/js-client-sdk-common size report |
| - Evaluating a flag with `variation`, which updates live once you switch the | ||
| connection mode to `streaming` or `polling` (the browser default, `one-shot`, | ||
| fetches once at page load and does not update afterward). |
There was a problem hiding this comment.
🔍 Documented live updates need handler registration
Switching to streaming or polling does not update the displayed flag until the user registers change handlers. The new instructions omit that step.
Was this helpful? React with 👍 or 👎 to provide feedback.
Generated-by: termag
9d48b38 to
65aaaef
Compare
Summary
Moves the browser SDK example apps into one
examples/directory, so the layout matches the other packages in this repository (react, vue, electron, node-client, server-ai, openfeature).New layout under
packages/sdk/browser/examples/:README.mdgetting-started/example/@launchdarkly/js-client-sdk-example-getting-startedfeatures/data-saving-mode/example-fdv2/@launchdarkly/js-client-sdk-example-data-saving-modefeatures/custom-eventsource/@launchdarkly/js-client-sdk-example-custom-eventsourceOther changes:
js-client-sdk-example-*naming, to match the react and vue examples (for example@launchdarkly/react-sdk-example-data-saving-mode).package.jsonworkspaces, thehomepagefields, and the custom EventSource README use the new paths and names.release-please-config.jsonextra-filesforpackages/sdk/browserpoint at the new examplepackage.jsonpaths, so the release PR continues to bump the@launchdarkly/js-client-sdkpin in each example.browser.ymlandbrowser-nightly.yamluse the new workspace names.After this merges, the next
chore: release mainPR must bump@launchdarkly/js-client-sdkin all three examplepackage.jsonfiles.Note
Overview
Consolidates the JavaScript Browser SDK sample apps under
packages/sdk/browser/examples/, aligning layout with other packages (react, vue, etc.). Formerexample/andexample-fdv2/becomegetting-started/andfeatures/data-saving-mode/; custom EventSource stays underfeatures/custom-eventsource/.Workspace packages are renamed to the
@launchdarkly/js-client-sdk-example-*pattern (getting-started,data-saving-mode,custom-eventsource). Rootpackage.jsonworkspaces,release-please-config.jsonextra-filespaths, andbrowser.yml/browser-nightly.yamlexample jobs are updated to match.Adds an
examples/README.mdindex and a dedicated data-saving-mode README (including EAP note); drops the old top-level example README and a “temporary app” comment in the FDv2 demo source.Reviewed by Cursor Bugbot for commit 65aaaef. Bugbot is set up for automated code reviews on this repo. Configure here.