Skip to content

Releases: launchdarkly/python-server-sdk

8.1.6

06 Sep 17:51
Compare
Choose a tag to compare

[8.1.6] - 2023-09-06

Changed:

  • Recoverable errors are logged as a warning not an error. (Thanks, fritzdj!)

8.1.5

15 Aug 13:04
Compare
Choose a tag to compare

[8.1.5] - 2023-08-15

Changed:

  • Loosened the requirements on the semver package. (Thanks, hauntsaninja!)

8.1.4

01 Jun 19:38
Compare
Choose a tag to compare

[8.1.4] - 2023-06-01

Fixed:

  • Password will be redacted from redis URL prior to logging.

8.1.3

03 May 20:07
Compare
Choose a tag to compare

[8.1.3] - 2023-05-03

Fixed:

  • Updated usage of HTTPResponse.getheader to remove deprecation warning from upstream urllib3 package. (Thanks, mnito!)

8.1.2

01 May 16:54
Compare
Choose a tag to compare

[8.1.2] - 2023-05-01

Fixed:

  • Pinned urllib3 dependency to <2. (Thanks, prpnmac!)

8.1.1

10 Feb 20:59
Compare
Choose a tag to compare

[8.1.1] - 2023-02-10

Fixed:

  • Fixed indexing error raised by calling all_flags_state while using the TestData data source.

7.6.1

07 Feb 18:48
Compare
Choose a tag to compare

[7.6.1] - 2023-02-07

Fixed:

  • Fixed indexing error raised by calling all_flags_state while using the TestData data source.

8.1.0

31 Jan 17:36
Compare
Choose a tag to compare

[8.1.0] - 2023-01-31

Added:

  • Introduced support for an application config property which sets application metadata that may be used in LaunchDarkly analytics or other product features. This does not affect feature flag evaluations.

7.6.0

31 Jan 15:33
Compare
Choose a tag to compare

[7.6.0] - 2023-01-31

Added:

  • Introduced support for an application config property which sets application metadata that may be used in LaunchDarkly analytics or other product features. . This does not affect feature flag evaluations.

8.0.0

30 Dec 20:17
Compare
Choose a tag to compare

[8.0.0] - 2022-12-30

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:

  • In ldclient, the Context type defines the new context model.
  • For all SDK methods that took a user parameter in the form of a dict, you can now pass a Context instead. You can still pass a dict containing user properties, in which case the SDK will convert it to a Context transparently; however, Context is preferable if you value efficiency since there is some overhead to this conversion.
  • The 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 7.x):

  • It was previously allowable to set a user key to an empty string. In the new context model, the key is not allowed to be empty. Trying to use an empty key will cause evaluations to fail and return the default value.
  • There is no longer such a thing as a secondary meta-attribute that affects percentage rollouts. If you set an attribute with that name in a Context, it will simply be a custom attribute like any other.
  • The anonymous attribute is now a simple boolean, with no distinction between a false state and a null/undefined state. Previously, a flag rule like anonymous is false would not match if the attribute was undefined, but now undefined is treated the same as false.

Changed (requirements/dependencies/build):

  • The minimum Python version is now 3.7.

Changed (behavioral changes):

  • The SDK can now evaluate segments that have rules referencing other segments.
  • Analytics event data now uses a new JSON schema due to differences between the context model and the old user model.
  • Several optimizations within the flag evaluation logic have improved the performance of evaluations. For instance, target lists are now stored internally as sets for faster matching.

Removed:

  • Removed all types, properties, and methods that were deprecated as of the most recent 5.x release.
  • Removed the deprecated ldclient.flag module. This was previously an alternate way to import the EvaluationDetail type; now, you can only import that type from ldclient.evaluation.
  • The alias method no longer exists because alias events are not needed in the new context model.
  • The inline_users_in_events option no longer exists because it is not relevant in the new context model.