chore: adding vue client sdk wrapper#1435
Conversation
Additional changes: - modified tsconfig.json to match the rest of the monorepo
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/js-client-sdk size report |
|
@launchdarkly/js-client-sdk-common size report |
|
@launchdarkly/browser size report |
|
@cursor review |
There was a problem hiding this comment.
✅ 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 bc71f02. Configure here.
Additional changes:
Note
Low Risk
New package scaffolding and client wrapper with no changes to existing SDKs; behavior is covered by unit tests and mirrors the established React wrapper pattern.
Overview
Introduces the first real Vue client SDK surface by replacing the empty package export with a
createClientwrapper around@launchdarkly/js-client-sdk, following the same pattern as the React wrapper.The wrapper injects
vue-client-sdkwrapper metadata, tracks initialization state (initializing/ complete / failed), exposesisReady,getInitializationError, and subscription APIs for init status (with replay for late subscribers) and context changes after successfulstart()/identify(). Types forLDVueClient,LDVueInstance, andLDVueProviderOptionsare added ahead of provider/composables in a follow-up PR.Package/tooling: adds a workspace dependency on the JS client SDK, enables Jest without
passWithNoTests, and adds jsdom / Vue test utils.tsconfig.jsonis updated to ES2020 andmoduleResolution: bundlerto match other SDK packages. Unit tests cover wrapper metadata, init lifecycle, subscriber behavior, and identify error paths.Reviewed by Cursor Bugbot for commit bc71f02. Bugbot is set up for automated code reviews on this repo. Configure here.