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 initlaunchdarkly-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.
AsyncPlugin.get_hooks now returns a list of Hook instances.
Requires certifi 2026.10.19 or newer.
The FDv2 goodbye event now follows the spec by containing only the reason.
ChangeSet now always requires a Selector.
Python 3.9 is no longer supported.
Methods that previously accepted a Context or a dict now accept only a Context.
The legacy user format for contexts is no longer supported.
Python 3.7 is no longer supported.
This previously deprecated config option has been removed.
The previously deprecated test data flag builder method has been removed.
Deprecations 3
The SDK warns that payload filtering has no effect with FDv2.
The copy_with_new_sdk_key method is marked as deprecated.
A warning is added when relying on Redis's max_connections parameter.
New APIs and options 23
Adds experimental support for overrides read from local JSON or YAML files or supplied by a custom override source.
Evaluations affected by a flag override are marked with overrideAffected in the evaluation reason and counted under separate summary counters.
The async client accepts synchronous Hook instances, whose stages run on the event loop and must not block.
Adds an asynchronous big segment store manager and async Redis adapter.
Adds an asynchronous DynamoDB persistent feature store.
Adds an asynchronous event processor for the SDK.
Adds an asynchronous FDv1 polling data source and feature requester.
Adds asynchronous FDv1 streaming and data source status tracking.
Adds asynchronous FDv2 data sources.
Adds an asynchronous FDv2 data system.
Adds asynchronous support for hooks, plugins, and the flag tracker.
Adds support for asynchronous migrations.
Adds an asynchronous persistent feature store foundation and Redis adapter.
Adds configuration for the asynchronous SDK client.
Adds an asynchronous SDK client with an FDv1 data system and public API.
Adds Config.with_wrapper_information.
Hooks can use environment IDs.
DataSystemConfig now accepts a list of synchronizers.
A data system option was added for creating a file data source initializer.
A file data source is available as an initializer.
Experimental Early Access Program support for the FDv2 data system is available.
A new LDClient method supports advanced migration use cases.
A new type provides an out-of-the-box configurable migration framework.
Behavior and default changes 3
In FDv1, the SDK retries indefinitely after a data source failure instead of stopping permanently.
The SDK warns when used in a forked process without postfork.
The persistent-store cache is dropped after FDv2 in-memory store initialization.
Fixes and other changes 28
Components that have already started are stopped when the client fails to start.
Polling continues after a network error.
Returns its value when targeting is off.
Objects with unrecognized kinds are now ignored.
After-evaluation hooks now run when an async evaluation is cancelled or raises.
Monotonic clocks are used for migration latency and FDv2 stream-init timing.
Stream-init durations and FDv2 state windows now use monotonic clocks.
Reuses an in-flight big segment status poll instead of querying twice.
The cached-data evaluation warning is logged only once per client.
The SDK reads all items when a collection is empty.
Invalid values produce a warning and use the documented default.
A slow callback no longer reduces the repeating task wait duration.
The async client reports a distinct User-Agent.
Returns empty prerequisites for a flag that fails to evaluate.
Attribute names reported in redactedAttributes are now escaped.
A persistent-store outage no longer throws during synchronous FDv2 evaluation.
Tombstones are now allowed to omit a key property.
Corrects data source error reporting.
The initializer phase now honors the server-directed FDv1 Fallback Directive.
The in operator now keeps booleans and numbers distinct.
Improves fallback behavior when using custom data system configuration.
fdv2 data source options can be modified independently of the main config.
Polling no longer starts immediately after a recoverable error.
The Redis store is considered initialized when the $inited key is written, and Redis writes the key when it is missing.
All synchronizers are removed in daemon mode.
Initializer behavior was modified to match the specification.
Fixed an overly generic type hint on the File data source.
Fixes the incorrect event count shown in failure messages.
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.
Analytics event data uses a new JSON schema to account for differences between contexts and the old user model.
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.
Context keys cannot be empty; using an empty key causes evaluations to fail and return the default value.
The inline_users_in_events option no longer exists because it is not relevant in the new context model.
The deprecated ldclient.flag module was removed; EvaluationDetail can now only be imported from ldclient.evaluation.
The minimum supported Python version is now 3.7.
The secondary meta-attribute no longer affects percentage rollouts; in a Context it is treated like any other custom attribute.
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.
TestData flag builder methods now support context-related options, including matching a key for a context type other than user.
Performance 1
Optimizations in flag evaluation improve performance; target lists are stored internally as sets for faster matching.
Behavior and default changes 1
The SDK can now evaluate segments whose rules reference other segments.