Skip to content

chore(deps): bump posthog-node from 5.51.8 to 5.52.4 - #285

Merged
allisonmahmood merged 2 commits into
mainfrom
deps/posthog-node-5.52
Sep 19, 2026
Merged

allisonmahmood merged 2 commits into
mainfrom
deps/posthog-node-5.52

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

Dependabot's #276 bumps posthog-node to 5.52.1 against main; the range now resolves to 5.52.4, so this lands the bump on top of the Effect RC bump (#284) instead.

posthog-node 5.52 adds experimental distributed tracing (startSpan, withSpan, a traces option), honours Retry-After for refused log and metric batches, and drops oversized batches client-side. @patchy/analytics uses only the client constructor, capture and shutdown, none of which changed.

Verification

  • pnpm typecheck passes; packages/analytics tests pass (6 of 6).

Stacked on deps/effect-rc-115 (#284); replaces #276.

Model: Claude Fable 5.1. Harness: Claude Code.

@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines labels Sep 16, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Astra review

Reviewed git diff origin/deps/effect-rc-115...HEAD at 2fa9253, using this PR's description and #276 as the spec. One pass, no subagents; merge blockers only.

Standards

No merge-blocking method or YAGNI findings. The change is limited to the dependency declaration and its lockfile entries. It adds no wrappers, configuration, or speculative functionality.

Spec

No merge-blocking intent findings. The ^5.52.1 declaration resolves to 5.52.4, as this PR describes. The @posthog/core and @posthog/types updates match the published dependency requirements and integrity hashes. The Node requirement remains compatible with the repo's minimum. The existing PostHog adapter needs no migration identified by this review.

Verification: pnpm --filter @patchy/analytics test passed all 6 tests; pnpm --filter @patchy/analytics typecheck passed. These are package-scoped checks, not a full-workspace verification. CI was still pending when checked.

Summary: Standards 0 blockers; Spec 0 blockers. No worst issue on either axis.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Opus review

Reviewed git diff origin/deps/effect-rc-115...HEAD at 50a47e1. Spec: this PR's body and #276. Astra's pass is on the thread; not repeating it.

Checked the posthog-node changelog 5.52.0–5.52.4 against packages/analytics/src/PostHogClient.ts. 5.52.0 is the only release touching the used surface, and only additively: a new traces constructor option with the span methods, and an optional flags argument on capture. The options this adapter passes — host, flushAt, flushInterval, requestTimeout, disableGeoip (PostHogClient.ts:68-77) — are unchanged, shutdown() is unchanged, and engines stays ^20.20.0 || >=22.22.0. 5.52.1–5.52.4 are span timing, Express status, exception causes and a flag-resolution fix, none reachable from here.

Lockfile: the only changed entries are the @patchy/analytics importer, posthog-node, @posthog/core 1.51.2 → 1.54.2 and @posthog/types 1.409.2 → 1.412.1, in both the packages and snapshots blocks. Nothing else moved.

Findings:

  1. Non-blocking — packages/analytics/package.json:25. The declared range is ^5.52.1 while the title, body and lock all say 5.52.4. It reads as a mismatch on the manifest alone, and a later non-frozen install drifts inside ^5.52 with no PR. Either declare ^5.52.4, or leave it since the body explains the floor comes from chore(deps): bump posthog-node from 5.51.8 to 5.52.4 #276.

  2. Non-blocking, no change asked — 5.52.0 drops batches over 10 MiB client-side. That happens on the background flush, so it cannot surface through capture's Effect.try error channel. Patchy's payloads are a distinct id, an event name and small properties, so it is unreachable today.

Surfaces: no wire contract, CLI, dev loop, vocabulary, migration or served-page surface is touched, and nothing under docs/ or the skills names a PostHog version. Title is conventional and correctly chore(deps), since this is a runtime dependency. One concern, smallest correct change.

Would merge on green CI.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Disposition for the Astra and Opus reviews: the declared range now reads ^5.52.4, matching the title and lockfile. Kept as is: the 10 MiB client-side batch drop needs no handling here, as the review says.

@allisonmahmood
allisonmahmood force-pushed the deps/posthog-node-5.52 branch 2 times, most recently from 268f85d to 025df82 Compare September 19, 2026 13:10
@github-actions github-actions Bot removed the area:ci CI, shared testing infrastructure, development scripts and tooling label Sep 19, 2026
Base automatically changed from deps/effect-rc-115 to main September 19, 2026 13:35
@allisonmahmood
allisonmahmood merged commit a54aa81 into main Sep 19, 2026
8 checks passed
@allisonmahmood
allisonmahmood deleted the deps/posthog-node-5.52 branch September 19, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:server Touches the server area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant