Skip to content

Commit e35f574

Browse files
authored
fix(webapp): upgrade posthog-node to v5, drop axios + stale override (#3801)
Follow-up to #3796, which bumped the slack-client axios paths but left posthog-node's transitive `axios@1.15.1` in place. `posthog-node` 4.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-dead `axios@>=1.0.0 <1.15.0` override is removed and axios resolves to a single patched `1.16.1` repo-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 webapp` passes. 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.
1 parent 952139d commit e35f574

4 files changed

Lines changed: 33 additions & 23 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: fix
4+
---
5+
6+
Upgrade posthog-node to v5 (drops its axios dependency) and remove the now-stale axios override so axios resolves to patched 1.16.1

apps/webapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
"p-retry": "^4.6.1",
184184
"parse-duration": "^2.1.0",
185185
"posthog-js": "^1.93.3",
186-
"posthog-node": "4.17.1",
186+
"posthog-node": "5.35.6",
187187
"prism-react-renderer": "^2.3.1",
188188
"prismjs": "^1.30.0",
189189
"prom-client": "^15.1.0",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
"form-data@^2": "2.5.4",
9797
"form-data@^3": "3.0.4",
9898
"form-data@^4": "4.0.4",
99-
"axios@>=1.0.0 <1.15.0": "^1.15.0",
10099
"js-yaml@>=3.0.0 <3.14.2": "3.14.2",
101100
"js-yaml@>=4.0.0 <4.1.1": "4.1.1",
102101
"jws@<3.2.3": "3.2.3",

pnpm-lock.yaml

Lines changed: 26 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)