This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Conversation
This file contains 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
…/remove-deprecated
…er-client-context
…ine-users (#2) remove inlineUsersInEvents
(#3) remove deprecated methods for 6.0
…-context (#4) simplify usage of ClientContext with component factories, remove BasicConfiguration
(#5) move component APIs to new subsystems package
…reaming-data use streaming JSON parsing for incoming LD data
make evaluator result object immutable and reuse instances
avoid creating List iterators during evaluations
minor test updates for java-sdk-internal API changes
fix packaging of com.launchdarkly.logging classes
# Conflicts: # build.gradle # packaging-test/Makefile
remove support for secondary meta-attribute in evaluations
* support passing LDUser instead of LDContext in all SDK methods * actually we should use default methods * rm unused * enable test capability for user type
…urce use okhttp-eventsource 3.0.0
…-changes include nested segment references in dependency update checks
…bad-context don't generate evaluation events for invalid context
louis-launchdarkly
approved these changes
Dec 7, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
[6.0.0] - 2022-12-07
The latest version of this SDK supports LaunchDarkly's new custom contexts feature. Contexts are an evolution of a previously-existing concept, "users." Contexts let you create targeting rules for feature flags based on a variety of different information, including attributes pertaining to users, organizations, devices, and more. You can even combine contexts to create "multi-contexts."
This feature is only available to members of LaunchDarkly's Early Access Program (EAP). If you're in the EAP, you can use contexts by updating your SDK to the latest version and, if applicable, updating your Relay Proxy. Outdated SDK versions do not support contexts, and will cause unpredictable flag evaluation behavior.
If you are not in the EAP, only use single contexts of kind "user", or continue to use the user type if available. If you try to create contexts, the context will be sent to LaunchDarkly, but any data not related to the user object will be ignored.
For detailed information about this version, please refer to the list below. For information on how to upgrade from the previous version, please read the migration guide.
Added:
com.launchDarkly.sdk
, the typesLDContext
andContextKind
define the new context model.LDUser
parameter, there is now an overload that takes anLDContext
. The SDK still supportsLDUser
for now, butLDContext
is the preferred model andLDUser
may be removed in a future version.TestData
flag builder methods have been extended to support now context-related options, such as matching a key for a specific context type other than "user".Changed (breaking changes from 6.x):
secondary
meta-attribute that affects percentage rollouts. If you set an attribute with that name in anLDContext
, it will simply be a custom attribute like any other.anonymous
attribute inLDUser
is now a simple boolean, with no distinction between a false state and a null state.DataStore
, which define the low-level interfaces of LaunchDarkly SDK components and allow implementation of custom components, have been moved out of theinterfaces
subpackage into a newsubsystems
subpackage. Some types have been removed by using generics: for instance, the interfaceDataSourceFactory
has been replaced byComponentConfigurer<DataSource>
. Application code normally does not refer to these types except possibly to hold a value for a configuration property such asLDConfig.Builder.dataStore()
, so this change is likely to only affect configuration-related logic.Changed (requirements/dependencies/build):
launchdarkly-java-server-sdk-redis-store
, etc.).Changed (behavioral changes):
System.err
as its default logging destination. See "requirements/dependencies/build" above.Removed:
secondary
meta-attribute inLDUser
andLDUser.Builder
.alias
method no longer exists because alias events are not needed in the new context model.inlineUsersInEvents
option no longer exists because it is not relevant in the new context model.