chore: update posthog dependency to 2.5.0#38
Merged
Conversation
posthog 2.4.0 -> 2.5.0. Constrains mix.exs to ~> 2.5.0 (was ~> 2.0) because every release from 2.6.0 through the current 2.10.3 fails to compile on OTP 28: PostHog.Config bakes compiled ~r// regexes into a module attribute default, and Regex structs on OTP 28 hold a Reference that can't be escaped into an attribute. Verified via git bisect of posthog-elixir tags; no existing upstream issue as of 2026-07-04. Also pulls in required transitive bumps (req, finch, mint, jason, telemetry, ecto, plug, decimal, castore). Co-Authored-By: Claude Sonnet 5 <[email protected]>
ReviewReviewed the diff ( Code quality
Potential bugs/issues
Performance
Security
Test coverage
Overall: LGTM. Small, well-justified, well-tested change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
posthogfrom 2.4.0 to 2.5.0 (was locked at 2.4.0 whilemix.exsallowed up to~> 2.0).mix.exsconstraint from~> 2.0to~> 2.5.0deliberately: every posthog release from 2.6.0 through the current 2.10.3 fails to compile on Erlang/OTP 28 (this repo's toolchain per.tool-versions).PostHog.Configbakes compiled~r//regex defaults into a module attribute (source_code_exclude_patterns, added in 2.6.0 for the error-tracking source-context feature); on OTP 28,Regex.compile/1produces a struct holding aReference(an opaque NIF resource), and Elixir cannot escape aReferenceinto a module attribute —mix compilefails withArgumentError: cannot escape #Reference<...>. I verified this by bisectingposthog-elixirtags 2.5.0 through 2.10.3; the bug is unreported upstream as of 2026-07-04.mix.exsnow pins to~> 2.5.0(the last known-good release) with a comment explaining why, so we don't silently upgrade into the broken range again.mix deps.update posthog).Test plan
mix compile— compiles cleanly (only a pre-existing, unrelated warning intg_webhook_handler.exthat's present onmaintoo)mix test— 250 tests, 0 failuresiex -S mix— boots cleanly,PostHogapplication loads at 2.5.0mix dialyzer— 0 errorsmix format --check-formatted— clean🤖 Generated with Claude Code