Repository navigation
v0.0.8
What's changed
⚠️ Behavior change
- Default PostHog host is now
https://us.posthog.com(previously the legacyhttps://app.posthog.com). If you're on EU Cloud, setPOSTHOG_API_BASE=https://eu.posthog.com; self-hosted users should set it to their own domain.POSTHOG_API_KEYmust be a personal API key with thefeature_flag:readandfeature_flag:writescopes.
Fixes
from feature_gate.adapters import PosthogAdapter, MemoryAdapternow works as documented in the README.MemoryAdapter.addno longer creates duplicate features when the same key is added twice.FeatureNotFoundmessages now include the feature key instead of the literal text{feature_key}.reload.pyreloads the correctposthog_api_clientmodule.
Compatibility
- Tested on Python 3.10 through 3.15.
- Minimum dependency versions raised to
structlog>=26.1.0andrequests>=2.34.2.
Development & packaging
- Replaced Poetry with uv. Python 3.15.1 and uv 0.13.5 are pinned in
.tool-versionsand installed with asdf. Builds use hatchling. bin/bootstrap,bin/update,bin/ciandbin/replnow useuv sync/uv runand work with asdf 0.16+.- The publish workflow now runs the test suite before
uv buildanduv publish.
Full changelog: v0.0.7...v0.0.8