Repository navigation
chore: Use the 2.x OpenFeature server provider - #20
Merged
Merged
Conversation
Co-Authored-By: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
keelerm84
approved these changes
Nov 6, 2026
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
The example pinned
launchdarkly-openfeature-serverproviderto[1.0.0, 2.0.0), so it stopped tracking the provider once 2.0.0 was released and kept demonstrating 1.2.1. This moves the range to[2.0.0, 3.0.0).The 2.0.0 breaking change (launchdarkly/openfeature-java-server#66) only adds a start wait option and changes initialization timing;
new Provider(sdkKey)andsetProviderAndWaitused byMainare unchanged, so no source changes are needed.Verified locally: resolves provider 2.0.0 with Java server SDK 7.17.5 and OpenFeature SDK 1.23.0, and the app prints
SDK successfully initialized!and the flag evaluation against a real environment.Link to Devin session: https://app.devin.ai/sessions/e62d0d55d8cc4419a92354d3af135cb9
Open in Devin Desktop: https://app.devin.ai/desktop/session/e62d0d55d8cc4419a92354d3af135cb9?variant=devin
SDK-3285
Note
Overview
Updates the example’s Gradle dependency so
launchdarkly-openfeature-serverproviderresolves[2.0.0, 3.0.0)instead of[1.0.0, 2.0.0), keeping the sample on the current 2.x provider after 2.0.0 shipped.No application code changes—
Mainstill usesnew Provider(sdkKey)andsetProviderAndWait, which remain compatible with provider 2.x per the upstream breaking-change notes.Reviewed by Cursor Bugbot for commit d8ac2b1. Bugbot is set up for automated code reviews on this repo. Configure here.