Skip to content

Releases: PostHog/posthog-python

7.18.0

05 Jun 13:56
Immutable release. Only release title and notes can be modified.
98e9b71

Choose a tag to compare

Minor changes

  • a2ce51e feat(feature-flags): support the early_exit condition option in local evaluation. When a flag enables early exit, evaluation now stops and returns False as soon as a condition group's property filters match but the rollout percentage excludes the user, instead of falling through to later groups — matching the server-side evaluation behavior. — Thanks @gustavohstrassburger!

7.17.0

03 Jun 15:14
Immutable release. Only release title and notes can be modified.
4e917d8

Choose a tag to compare

Minor changes

  • 3aed638 Add a configurable $is_server event property (default true) so PostHog can identify server-side events. Set is_server=False when using posthog-python as a client/CLI so the device OS is attributed normally. — Thanks @turnipdabeets for your first contribution 🎉!

7.16.4

03 Jun 13:12
Immutable release. Only release title and notes can be modified.
73944fd

Choose a tag to compare

Patch changes

  • 44e6b14 Fix async streaming responses from the AI wrappers (OpenAI, Anthropic, Gemini) so they support async with as well as async for. Previously, consuming a stream via async with (e.g. with pydantic-ai) raised TypeError: 'async_generator' object does not support the asynchronous context manager protocol. — Thanks @turnipdabeets for your first contribution 🎉!

7.16.3

01 Jun 13:24
Immutable release. Only release title and notes can be modified.
d5cddca

Choose a tag to compare

Patch changes

  • 643a810 Return empty flag defaults from Client flag helpers when the flags API fails. — Thanks @marandaneto!

7.16.2

28 May 14:17
Immutable release. Only release title and notes can be modified.
50b9a81

Choose a tag to compare

Patch changes

7.16.1

27 May 18:46
Immutable release. Only release title and notes can be modified.
4d00801

Choose a tag to compare

Patch changes

  • 8f6d6c8 Include group context in the $feature_flag_called dedupe key so group-scoped flags fire a separate event for each group a user is evaluated under, instead of being dedup-ed against the first group context the same (distinct_id, flag, response) was seen under. — Thanks @gustavohstrassburger!

7.16.0

27 May 18:08
Immutable release. Only release title and notes can be modified.
f9c31e4

Choose a tag to compare

Minor changes

7.15.4

25 May 06:33
Immutable release. Only release title and notes can be modified.
5ff3c82

Choose a tag to compare

Patch changes

7.15.3

21 May 15:35
Immutable release. Only release title and notes can be modified.
cab9d1c

Choose a tag to compare

Patch changes

  • be9b78b Reject semver values with leading zeros in local flag evaluation. Per semver 2.0.0 §2, numeric identifiers must not include leading zeros — values like 1.07.3 are not valid semver and should not match targeting conditions. Both override values and flag values are now validated; invalid inputs raise InconclusiveMatchError so the condition does not match. — Thanks @dmarticus!

7.15.2

21 May 13:38
Immutable release. Only release title and notes can be modified.
7ca77bf

Choose a tag to compare

Patch changes