-
Notifications
You must be signed in to change notification settings - Fork 52
Comparing changes
Open a pull request
base repository: PostHog/posthog-python
base: v7.0.1
head repository: PostHog/posthog-python
compare: v7.3.1
- 9 commits
- 21 files changed
- 7 contributors
Commits on Nov 15, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 494c786 - Browse repository at this point
Copy the full SHA 494c786View commit details
Commits on Nov 25, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 7c7f529 - Browse repository at this point
Copy the full SHA 7c7f529View commit details
Commits on Nov 27, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 2855977 - Browse repository at this point
Copy the full SHA 2855977View commit details
Commits on Dec 2, 2025
-
feat(flags): included
evaluated_atproperties in `$feature_flag_cal……led` events (#374) * format * update tests * bump version
Configuration menu - View commit details
-
Copy full SHA for c253e41 - Browse repository at this point
Copy the full SHA c253e41View commit details -
feat(flags): Add ETag support for local evaluation polling (#381)
* Add ETag support for local evaluation polling Add support for HTTP conditional requests using ETags to reduce bandwidth when polling for feature flag definitions. When flag definitions haven't changed, the server returns 304 Not Modified and the SDK skips processing. - Add GetResponse dataclass to encapsulate response data, ETag, and status - Update get() to send If-None-Match header and handle 304 responses - Store ETag in client and pass it on subsequent polling requests - Skip flag processing when 304 Not Modified is received * Use _session rather than requests Benefits: 1. Reuses TCP connections via keep-alive 2. 2 retries on connect/read errors 3. Faster handshakes * Add unit tests for get() function Test HTTP-level behavior including: - ETag extraction from response headers - If-None-Match header sent when etag provided - 304 Not Modified response handling - Fallback when 304 has no ETag header - Error response handling (APIError) - Authorization and User-Agent headers - Timeout and URL construction * Add defensive null check for response.data Guard against unexpected None data in non-304 responses to prevent TypeError when accessing dictionary keys. * Clear stored ETag when server stops sending one If the server stops including ETag headers in responses, clear the stored ETag so we don't keep sending a stale If-None-Match header. * Mask API tokens in log messages Keep first 10 chars visible for identification while hiding the rest. Addresses CodeQL security warning about logging sensitive data. * Ran ruff format
Configuration menu - View commit details
-
Copy full SHA for fff9992 - Browse repository at this point
Copy the full SHA fff9992View commit details
Commits on Dec 4, 2025
-
fix: capture enriches with local eval when enabled (#380)
Captured events now use local evaluation results when `send_feature_flags` is `True` and local evaluation is enabled.
Configuration menu - View commit details
-
Copy full SHA for 103a7ad - Browse repository at this point
Copy the full SHA 103a7adView commit details
Commits on Dec 5, 2025
-
* feat: mask values * feat: wip * fix: ruff * feat: wip * feat: wip * fix: ruff * fix: ruff * feat: wip * feat: wip * feat: version bump
Configuration menu - View commit details
-
Copy full SHA for ce38fb2 - Browse repository at this point
Copy the full SHA ce38fb2View commit details
Commits on Dec 9, 2025
-
feat: Allow customization of socket options (#385)
* feat: Allow customization of socket options This allows clients to configure (e.g.) socket keep alive probes * test: Prevent leaking modified _session * chore: Add a type ignore * feat: Add `disable_connection_reuse` config method Disables connection pooling * set_socket_options is idempotent
Configuration menu - View commit details
-
Copy full SHA for d72e89a - Browse repository at this point
Copy the full SHA d72e89aView commit details
Commits on Dec 10, 2025
-
fix: remove unused $exception_message and $exception_type (#383)
* fix: remove unused * fix: remove exception type * fix: wip
Configuration menu - View commit details
-
Copy full SHA for 88a7c5e - Browse repository at this point
Copy the full SHA 88a7c5eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v7.0.1...v7.3.1