fix(webapp): upgrade posthog-node to v5, drop axios + stale override#3801
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (29)
🧰 Additional context used📓 Path-based instructions (1)**/*.{js,jsx,ts,tsx,json,md,yml,yaml}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-05-14T14:54:39.095ZApplied to files:
📚 Learning: 2026-04-27T16:46:03.861ZApplied to files:
🔇 Additional comments (2)
WalkthroughThis PR upgrades the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Follow-up to #3796, which bumped the slack-client axios paths but left posthog-node's transitive
axios@1.15.1in place.posthog-node4.17.1 → 5.35.6. v5 drops the axios dependency entirely (it's now fetch-based via@posthog/core), so posthog's old axios path disappears. With #3796 already on main (webapp + d3 references on@slack/web-api@7.16.0), nothing else pins the old line, so the now-deadaxios@>=1.0.0 <1.15.0override is removed and axios resolves to a single patched1.16.1repo-wide. This closes the remaining axios advisories.Compat: the webapp's usage in
telemetry.server.ts(new PostHog(key, { host }),.identify,.groupIdentify,.capture) is all object-form API that v5 preserves;pnpm run typecheck --filter webapppasses.Node: posthog-node v5 requires Node
^20.20.0 || >=22.22.0. We run 20.20.0 in dev (.nvmrc), CI, and the published Docker image (node:20.20-bullseye-slim), so we're compliant.