[2.0.0] - 2023-04-13
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."
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.
- A new context type can be created by providing an associative array to the
- A new reference type can be created by providing a string path to the
- For all SDK methods that took a user parameter, you can now pass the new context type instead.
- Removed the
LaunchDarklyUserfunction and all supporting user related functionality.
aliasmethod no longer exists because alias events are not needed in the new context model.
setAutoAliasingOptOutconfiguration functions no longer exists because they are not relevant in the new context model.
[1.3.0] - 2023-04-11
- New config method
setApplicationInfoValueallows setting application metadata that may be used in LaunchDarkly analytics or other product features. This does not affect feature flag evaluations.
- Added support for country as a top level property on the user object.
- Added support for inline user configuration option.
- Introduced a simplified version of the allFlagsState method.
- Event payload ID was not changing between successful payloads as expected.
- Updated event payloads to match expected schema.
[1.2.0] - 2021-07-23
- Added the
Aliasmethod. This can be used to associate two user objects for analytics purposes with an alias event.
DoubleVariationis now guaranteed to return a
Doublevalue rather than an integer or
Floattype, regardless of whether the value could be represented as an integer.
[1.1.1] - 2020-01-17
- The SDK now specifies a uniquely identifiable request header when sending events to LaunchDarkly to ensure that events are only processed once, even if the SDK sends them two times due to a failed initial attempt.
- The SDK will now retry event delivery on failure.