Skip to content

Commit 20739d8

Browse files
committed
chore: let openfeature provider accept posthog 7 and 8
1 parent c9ea2e3 commit 20739d8

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎.sampo/changesets/openfeature-provider-posthog-8.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
pypi/openfeature-provider-posthog: minor
33
---
44

5-
Requires posthog 8.0 or later. Upgrade both packages together.
5+
Supports posthog 8.x as well as 7.x.

‎docs/migration-7.x-to-8.0.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Two changes follow from this order:
120120
- `capture_ai_timeout`: default 30 seconds
121121
- `capture_ai_max_event_bytes`: default 8 MiB plus 64 KiB. You can only lower it.
122122
- `AsyncPosthog` has `capture_ai` and `capture_ai_immediate`.
123+
- `AsyncPosthog` accepts `privacy_mode` and `enable_full_ai_capture`, with the same meaning as on `Client`. An AI integration given an `AsyncPosthog` client used to always truncate and redact media.
123124

124125
## Batching and size limits
125126

@@ -130,5 +131,5 @@ Two changes follow from this order:
130131

131132
## OpenFeature provider
132133

133-
`openfeature-provider-posthog` 0.2.0 requires posthog 8.0 or later.
134-
Upgrade both packages together.
134+
`openfeature-provider-posthog` 0.2.0 works with posthog 7.x and 8.x.
135+
Older provider versions require posthog below 8.0, so upgrade the provider before or with posthog.

‎openfeature-provider/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies = [
2727
# single-call API. Pinned to the posthog major this provider is released and
2828
# tested against (both ship from this repo); bump the upper bound when moving
2929
# the provider to a new posthog major.
30-
"posthog>=8.0.0,<9.0.0",
30+
"posthog>=7.0.0,<9.0.0",
3131
"openfeature-sdk>=0.8.0",
3232
]
3333

0 commit comments

Comments
 (0)