Skip to content

Conversation

@nosnibor89
Copy link
Contributor

@nosnibor89 nosnibor89 commented Oct 23, 2024

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines (TBH yarn run contract-tests failed for me even in main)
  • I have validated my changes against all supported platform versions

Related issues

No issue

Describe the solution you've provided

Introducing the new @launchdarkly/svelte-client-sdk package. Some of the details included in this PR are

  1. Svelte Library Boilerplate
  2. Basic Svelte SDK functionality:
    2.1 LDProvider component
    2.2 LDFlag component
    2.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

  1. Adding Documentation for @launchdarkly/svelte-client-sdk
  2. Adding Example project that uses @launchdarkly/svelte-client-sdk

@nosnibor89 nosnibor89 changed the title add initial SDK library boilerplate and basic svelte LD SDK feat: add initial SDK library boilerplate and basic svelte LD SDK Oct 23, 2024
@nosnibor89 nosnibor89 marked this pull request as ready for review October 23, 2024 21:50
@nosnibor89 nosnibor89 requested a review from a team as a code owner October 23, 2024 21:50
@kinyoklion
Copy link
Member

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 yarn build in the root of the repo should get everything into a functioning state. (Builds all packages, and everything in the workspace will use local packages.) The contract tests do run a go binary downloaded from github, so that could cause problems for some configurations.

I won't be able to review this deeply this week, but hopefully I can next week.

Thank you,
Ryan

@kinyoklion kinyoklion merged commit 897905b into launchdarkly:main Dec 19, 2024
22 checks passed
@nosnibor89
Copy link
Contributor Author

Awesome @kinyoklion . Thanks for improving and merging this one.

Next, we'll create PR for "example" project and improve documentation.

@nosnibor89 nosnibor89 deleted the feat/svelte-sdk branch December 19, 2024 21:24
abarker-launchdarkly pushed a commit that referenced this pull request May 14, 2025
**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 <[email protected]>
Co-authored-by: Robinson Marquez <[email protected]>
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.

4 participants