Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2025

Updates the requirements on posthog to permit the latest version.

Changelog

Sourced from posthog's changelog.

6.0.0

This release contains a number of major breaking changes:

  • feat: make distinct_id an optional parameter in posthog.capture and related functions
  • feat: make capture and related functions return Optional[str], which is the UUID of the sent event, if it was sent
  • fix: remove identify (prefer posthog.set()), and page and screen (prefer posthog.capture())
  • fix: delete exception-capture specific integrations module. Prefer the general-purpose django middleware as a replacement for the django Integration.

To migrate to this version, you'll mostly just need to switch to using named keyword arguments, rather than positional ones. For example:

# Old calling convention
posthog.capture("user123", "button_clicked", {"button_id": "123"})
# New calling convention
posthog.capture(distinct_id="user123", event="button_clicked", properties={"button_id": "123"})
Better pattern
with posthog.new_context():
posthog.identify_context("user123")
# The event name is the first argument, and can be passed positionally, or as a keyword argument in a later position
posthog.capture("button_pressed")

Generally, arguments are now appropriately typed, and docstrings have been updated. If something is unclear, please open an issue, or submit a PR!

5.4.0 - 2025-06-20

  • feat: add support to session_id context on page method

5.3.0 - 2025-06-19

  • fix: safely handle exception values

5.2.0 - 2025-06-19

  • feat: construct artificial stack traces if no traceback is available on a captured exception

5.1.0 - 2025-06-18

  • feat: session and distinct ID's can now be associated with contexts, and are used as such
  • feat: django http request middleware

5.0.0 - 2025-06-16

  • fix: removed deprecated sentry integration

4.10.0 - 2025-06-13

  • fix: no longer fail in autocapture.

... (truncated)

Commits
  • 37bd301 feat: prep for 6.0.0, bunch of breaking changes (#273)
  • b41dc85 docs: update release details on readme (#272)
  • f0e1cdf feat: bump version to 5.4.0 with session_id on page method (#271)
  • e23ca94 chore: ensure session_id context works with page method (#269)
  • 5a7f324 fix(err): always safe_str exception values (#267)
  • e13c428 feat(err): construct full trace if no traceback available (#266)
  • 77190c2 document prep_local (#265)
  • b775339 feat: session and identity integrate with context now (#264)
  • 250bd42 feat(err): add django middleware (#263)
  • 579cc56 fix: delete sentry integration (#262)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 1, 2025
Updates the requirements on [posthog](https://github.com/posthog/posthog-python) to permit the latest version.
- [Release notes](https://github.com/posthog/posthog-python/releases)
- [Changelog](https://github.com/PostHog/posthog-python/blob/master/CHANGELOG.md)
- [Commits](PostHog/posthog-python@v3.0.1...v6.0.0)

---
updated-dependencies:
- dependency-name: posthog
  dependency-version: 6.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants