Skip to content

Latest commit

 

History

History
142 lines (99 loc) · 5.55 KB

CHANGELOG.md

File metadata and controls

142 lines (99 loc) · 5.55 KB

Change log

All notable changes to the LaunchDarkly Python SDK will be documented in this file. This project adheres to Semantic Versioning.

[5.0.3] - 2018-04-10

Fixed

  • Fixed a bug that, in Python 3.x, caused an error when using an integer user attribute to compute a rollout.
  • Fixed a bug that, in Python 3.x, made the all_flags method return a dictionary with byte-string keys instead of string keys when using the Redis feature store.

[5.0.2] - 2018-03-27

Fixed

  • In the Redis feature store, fixed a synchronization problem that could cause a feature flag update to be missed if several of them happened in rapid succession.

[5.0.1] - 2018-02-22

Added

  • Support for a new LaunchDarkly feature: reusable user segments.

Changed

  • The FeatureStore interface has been changed to support user segment data as well as feature flags. Existing code that uses InMemoryFeatureStore or RedisFeatureStore should work as before, but custom feature store implementations will need to be updated.

Removed

  • Twisted is no longer supported.

[5.0.0] - 2018-02-21

This release was broken and has been removed.

[4.3.0] - 2018-02-07

Changed

  • Percentage rollouts can now reference an attribute with an integer value, not just string attributes.

Fixed

  • Fixed a bug that caused unusually slow initialization times when there are large numbers of flags.
  • Fixed reporting of events for prerequisite checks.

[4.2.1] - 2018-01-31

Changed

  • Reduced WARN-level logging for a feature flag not being found to INFO level.

Fixed

  • Fixed a bug where a previously deleted feature flag might be considered still available.
  • The private attributes feature added in v4.1.0 was not available in Twisted mode; now it is.

[4.2.0] - 2018-01-12

Changed

  • Will use feature store if already initialized even if connection to service could not be established. This is useful when flags have been initialized in redis.

[4.1.0] - 2017-12-21

Added

  • Allow user to stop user attributes from being sent in analytics events back to LaunchDarkly. Set private_attribute_names on each request and/or on Config to a list of strings matching the names of the attributes you wish to exclude. Set all_attributes_private on the Config object to hide all attributes.

Changed

  • Stop reattempting connections when receiving a 401 (unauthorized) response from LaunchDarkly. This should only be caused by invalid SDK key so retrying is pointless.

Deprecated

  • events_enabled is deprecated and send_events should be used instead. events_enabled may be removed in a future minor revision.

[4.0.6] - 2017-06-09

Changed

  • Improved error handling when processing stream events
  • Replaced 3rd party rfc3339 library for license compliance
  • No longer caching get_one() responses

[4.0.5] - 2017-04-25

Fixed

  • #70 Regex matches targeting rules now include the user if a match is found anywhere in the attribute. Before fixing this bug, the beginning of the attribute needed to match the pattern.

Changed

  • #43 Started publishing code coverage metrics to Code Climate. Bear in mind that the Code Climate coverage report only shows the unit test coverage, while the bulk of our SDK test coverage comes from a separate integration test suite.

[4.0.4] - 2017-04-18

Fixed

  • #65 Ensure that no warning is logged about a missing SDK key when the ldclient package is imported.

[4.0.3] - 2017-03-14

Changed

  • Fixed missing python2.6-requirements.txt in manifest

[4.0.2] - 2017-03-13

Added

  • Support for Python 2.6.

[4.0.1] - 2017-01-10

Changed

  • RedisFeatureStore now returns default when Redis errors occur
  • Better detection of stream connection issues.

[4.0.0] - 2016-11-18

Changed

  • Changing the config and SDK key is now supported after initialization. The client will be restarted with the new configuration
  • Breaking api change: ldclient.sdk_key = <KEY> replaced with: ldclient.set_sdk_key('<KEY>')
  • Breaking api change: ldclient.config = config replaced with: ldclient.set_config(config)
  • No longer depend on sseclient library, instead include our own sse client

[3.0.3] - 2016-11-03

Changed

  • Add backoff when retrying stream connection.
  • More correct initialized state.

[3.0.2] - 2016-10-26

Changed

  • Better error handling when sending events.

[3.0.1] - 2016-10-21

Changed

  • Now using jsonpickle to serialize analytics events. Addresses launchdarkly#57
  • Better handling of indirect/put and indirect/patch messages in streaming connection.

[3.0.0] - 2016-08-22

Added

  • Twisted support for LDD mode only.

Changed

  • FeatureStore interface get() and all() methods now take an additional callback parameter.

[2.0.0] - 2016-08-10

Added

  • Support for multivariate feature flags. variation replaces toggle and can return a string, number, dict, or boolean value depending on how the flag is defined.
  • New all_flags method returns all flag values for a specified user.
  • New secure_mode_hash function computes a hash suitable for the new LaunchDarkly JavaScript client's secure mode feature.

Deprecated

  • The toggle call has been deprecated in favor of variation.

Removed

  • Twisted support has temporarily been removed.