- 
                Notifications
    
You must be signed in to change notification settings  - Fork 48
 
prepare 5.0.0 release #168
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
          
     Merged
      
      
    
                
     Merged
            
            
          Conversation
  
    
      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
    
  
  
    
    remove lockfile
# Conflicts: # composer.lock
add DynamoDB integration
# Conflicts: # composer.lock
add Consul integration
simplify & move feature requester/event publisher code
add experimentation event overrides for rules and fallthrough
* add step to wait on Consul
# Conflicts: # Makefile # src/LaunchDarkly/LDClient.php
              
                    louis-launchdarkly
  
              
              approved these changes
              
                  
                    Jan 5, 2023 
                  
              
              
            
            
  
    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.
  
    
  
    
[5.0.0] - 2023-01-04
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:
LDContextdefines the new "context" model. "Contexts" are a replacement for the earlier concept of "users"; they can be populated with attributes in more or less the same way as before, but they also support new behaviors. To learn more, read the documentation.LDUserparameter, the parameter type can now be eitherLDUserorLDContext. The SDK still supportsLDUserfor now, butLDContextis the preferred model andLDUsermay be removed in a future version.Changed (breaking changes from 4.x):
secondarymeta-attribute that affects percentage rollouts. If you set an attribute with that name inLDContext, it will simply be a custom attribute like any other.EventPublisherandFeatureRequesterwhich applications are unlikely to reference directly (except when defining a custom component implementation) have been moved out of the main namespace into a new namespace,LaunchDarkly\Subsystems.Changed (requirements/dependencies/build):
Changed (behavioral changes):
Fixed:
Removed:
secondarymeta-attribute inLDUserandLDUserBuilder.aliasmethod no longer exists because alias events are not needed in the new context model.inline_users_in_eventsoption no longer exists because it is not relevant in the new context model.