unstale

pypi / launchdarkly-server-sdk

launchdarkly-server-sdk

What changed in launchdarkly-server-sdk 8 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

19 breaking3 deprecations25 new APIs and options1 performance4 behavior and defaults28 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

launchdarkly-server-sdk 968 changes

Breaking changes 11

  • The experimental AsyncHook class is removed; AsyncLDClient now uses Hook, whose stages must be synchronous and must not block the event loop.

    9.19.0release notes

  • AsyncPlugin.get_hooks now returns a list of Hook instances.

    9.19.0release notes

  • Requires certifi 2026.10.19 or newer.

    9.18.3release notes

  • The FDv2 goodbye event now follows the spec by containing only the reason.

    9.16.0release notes

  • ChangeSet now always requires a Selector.

    9.15.0release notes

  • Python 3.9 is no longer supported.

    9.15.0release notes

  • Methods that previously accepted a Context or a dict now accept only a Context.

    9.0.0release notes

  • The legacy user format for contexts is no longer supported.

    9.0.0release notes

  • Python 3.7 is no longer supported.

    9.0.0release notes

  • This previously deprecated config option has been removed.

    9.0.0release notes

  • The previously deprecated test data flag builder method has been removed.

    9.0.0release notes

Deprecations 3

  • The SDK warns that payload filtering has no effect with FDv2.

    9.18.0release notes

  • The copy_with_new_sdk_key method is marked as deprecated.

    9.15.0release notes

  • A warning is added when relying on Redis's max_connections parameter.

    9.14.0release notes

New APIs and options 23

  • Adds experimental support for overrides read from local JSON or YAML files or supplied by a custom override source.

    9.21.0release notes

  • Evaluations affected by a flag override are marked with overrideAffected in the evaluation reason and counted under separate summary counters.

    9.21.0release notes

  • The async client accepts synchronous Hook instances, whose stages run on the event loop and must not block.

    9.19.0release notes

  • Adds an asynchronous big segment store manager and async Redis adapter.

    9.17.0release notes

  • Adds an asynchronous DynamoDB persistent feature store.

    9.17.0release notes

  • Adds an asynchronous event processor for the SDK.

    9.17.0release notes

  • Adds an asynchronous FDv1 polling data source and feature requester.

    9.17.0release notes

  • Adds asynchronous FDv1 streaming and data source status tracking.

    9.17.0release notes

  • Adds asynchronous FDv2 data sources.

    9.17.0release notes

  • Adds an asynchronous FDv2 data system.

    9.17.0release notes

  • Adds asynchronous support for hooks, plugins, and the flag tracker.

    9.17.0release notes

  • Adds support for asynchronous migrations.

    9.17.0release notes

  • Adds an asynchronous persistent feature store foundation and Redis adapter.

    9.17.0release notes

  • Adds configuration for the asynchronous SDK client.

    9.17.0release notes

  • Adds an asynchronous SDK client with an FDv1 data system and public API.

    9.17.0release notes

  • Adds Config.with_wrapper_information.

    9.17.0release notes

  • Hooks can use environment IDs.

    9.17.0release notes

  • DataSystemConfig now accepts a list of synchronizers.

    9.15.0release notes

  • A data system option was added for creating a file data source initializer.

    9.14.0release notes

  • A file data source is available as an initializer.

    9.14.0release notes

  • Experimental Early Access Program support for the FDv2 data system is available.

    9.13.0release notes

  • A new LDClient method supports advanced migration use cases.

    9.0.0release notes

  • A new type provides an out-of-the-box configurable migration framework.

    9.0.0release notes

Behavior and default changes 3

  • In FDv1, the SDK retries indefinitely after a data source failure instead of stopping permanently.

    9.18.0release notes

  • The SDK warns when used in a forked process without postfork.

    9.18.0release notes

  • The persistent-store cache is dropped after FDv2 in-memory store initialization.

    9.16.0release notes

Fixes and other changes 28

  • Components that have already started are stopped when the client fails to start.

    9.21.0release notes

  • Polling continues after a network error.

    9.21.0release notes

  • Returns its value when targeting is off.

    9.21.0release notes

  • Objects with unrecognized kinds are now ignored.

    9.20.0release notes

  • After-evaluation hooks now run when an async evaluation is cancelled or raises.

    9.19.0release notes

  • Monotonic clocks are used for migration latency and FDv2 stream-init timing.

    9.18.4release notes

  • Stream-init durations and FDv2 state windows now use monotonic clocks.

    9.18.2release notes

  • Reuses an in-flight big segment status poll instead of querying twice.

    9.18.1release notes

  • The cached-data evaluation warning is logged only once per client.

    9.18.0release notes

  • The SDK reads all items when a collection is empty.

    9.18.0release notes

  • Invalid values produce a warning and use the documented default.

    9.18.0release notes

  • A slow callback no longer reduces the repeating task wait duration.

    9.18.0release notes

  • The async client reports a distinct User-Agent.

    9.18.0release notes

  • Returns empty prerequisites for a flag that fails to evaluate.

    9.17.0release notes

  • Attribute names reported in redactedAttributes are now escaped.

    9.17.0release notes

  • A persistent-store outage no longer throws during synchronous FDv2 evaluation.

    9.17.0release notes

  • Tombstones are now allowed to omit a key property.

    9.17.0release notes

  • Corrects data source error reporting.

    9.16.1release notes

  • The initializer phase now honors the server-directed FDv1 Fallback Directive.

    9.16.0release notes

  • The in operator now keeps booleans and numbers distinct.

    9.16.0release notes

  • Improves fallback behavior when using custom data system configuration.

    9.15.1release notes

  • fdv2 data source options can be modified independently of the main config.

    9.15.0release notes

  • Polling no longer starts immediately after a recoverable error.

    9.15.0release notes

  • The Redis store is considered initialized when the $inited key is written, and Redis writes the key when it is missing.

    9.15.0release notes

  • All synchronizers are removed in daemon mode.

    9.14.1release notes

  • Initializer behavior was modified to match the specification.

    9.14.0release notes

  • Fixed an overly generic type hint on the File data source.

    9.12.3release notes

  • Fixes the incorrect event count shown in failure messages.

    9.12.2release notes

launchdarkly-server-sdk 812 changes

Breaking changes 8

  • The alias method no longer exists because alias events are not needed in the new context model.

    8.0.0release notes

  • Analytics event data uses a new JSON schema to account for differences between contexts and the old user model.

    8.0.0release notes

  • The anonymous attribute is a boolean; undefined is treated the same as false, so rules matching anonymous is false now match when the attribute is undefined.

    8.0.0release notes

  • Context keys cannot be empty; using an empty key causes evaluations to fail and return the default value.

    8.0.0release notes

  • The inline_users_in_events option no longer exists because it is not relevant in the new context model.

    8.0.0release notes

  • The deprecated ldclient.flag module was removed; EvaluationDetail can now only be imported from ldclient.evaluation.

    8.0.0release notes

  • The minimum supported Python version is now 3.7.

    8.0.0release notes

  • The secondary meta-attribute no longer affects percentage rollouts; in a Context it is treated like any other custom attribute.

    8.0.0release notes

New APIs and options 2

  • The new Context type defines the context model and can be passed to SDK methods that previously took a user dict; dicts are still accepted and converted transparently.

    8.0.0release notes

  • TestData flag builder methods now support context-related options, including matching a key for a context type other than user.

    8.0.0release notes

Performance 1

  • Optimizations in flag evaluation improve performance; target lists are stored internally as sets for faster matching.

    8.0.0release notes

Behavior and default changes 1

  • The SDK can now evaluate segments whose rules reference other segments.

    8.0.0release notes