-
Notifications
You must be signed in to change notification settings - Fork 31
feat: add initial SDK library boilerplate and basic svelte LD SDK #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hello @nosnibor89, Thank you for the contribution. Those contract tests aren't relevant to client-side SDKs, but they should all work correctly (and do run in CI and passed for your PR). When developing locally running I won't be able to review this deeply this week, but hopefully I can next week. Thank you, |
packages/sdk/svelte/__tests__/lib/client/SvelteLDClient.test.ts
Outdated
Show resolved
Hide resolved
intial refactor to use new "@launchdarkly/js-client-sdk"
…improve initialization logic
[refactor] Update SvelteLDClient to use proxy for flag variations. Allows to track flag evaluations
…js-core into feat/svelte-sdk
…ization with user context
…ents refactor: update SvelteLDClient to use compat SDK and improve initial…
|
Awesome @kinyoklion . Thanks for improving and merging this one. Next, we'll create PR for "example" project and improve documentation. |
**Requirements** - [x] I have added test coverage for new or changed functionality (no behavior change is mostly example project and docs) - [x] I have followed the repository's [pull request submission guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests) - [x] I have validated my changes against all supported platform versions **Related issues** No issue. **Describe the solution you've provided** This pull request introduces a new Svelte example project to demonstrate the usage of `@launchdarkly/svelte-client-sdk`. The README of the example project includes steps to run such application that internally uses the SDK to interact with a boolean flag. Also, this PR adds documentation for `@launchdarkly/svelte-client-sdk` itself with a "Getting Started" session along with more advanced use of the SDK's api. **Describe alternatives you've considered** I don't know what to write here. **Additional context** This is a follow up PR for #632. Where Svelte SDK was introduced. After this, follow up PR for technical debt(upgrade Svelte 5 and improving test coverage ) should be expected --------- Co-authored-by: Robinson Marquez <nosnibor1989@gmail.com> Co-authored-by: Robinson Marquez <robinsonmarquez@robinsonmarquezm4.local>
Requirements
yarn run contract-testsfailed for me even inmain)Related issues
No issue
Describe the solution you've provided
Introducing the new
@launchdarkly/svelte-client-sdkpackage. Some of the details included in this PR are2.1
LDProvidercomponent2.2
LDFlagcomponent2.3 Svelte-compatible LD instance (exposes API to work with feature flags)
Describe alternatives you've considered
I don't know what to write here.
Additional context
This is the first of a series of PRs. Some of the following PR should be about
@launchdarkly/svelte-client-sdk