Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(deps): Update posthog-node to 5.51.7 (#96036)

posthog-js-upgrader[bot]9c5d5ac179b8
diff --git a/nodejs/package.json b/nodejs/package.json
index 91391ed801cc..fb01253a72e0 100644
--- a/nodejs/package.json
+++ b/nodejs/package.json
@@ -134,7 +134,7 @@
"p-limit": "3.1.0",
"pg": "^8.6.0",
"pino": "^8.6.0",
- "posthog-node": "5.51.6",
+ "posthog-node": "5.51.7",
"pretty-bytes": "^5.6.0",
"prom-client": "^14.2.0",
"puppeteer": "^24.3.0",
diff --git a/nodejs/tests/ingestion/ingestion-e2e.test.ts b/nodejs/tests/ingestion/ingestion-e2e.test.ts
index fb7a3c7930b7..0fd1ae8d4f94 100644
--- a/nodejs/tests/ingestion/ingestion-e2e.test.ts
+++ b/nodejs/tests/ingestion/ingestion-e2e.test.ts
@@ -2692,7 +2692,10 @@ describe.each([
.build(),
]
- await ingester.handleKafkaBatch(createKafkaMessages(events, token))
+ // Different distinct IDs run concurrently within a batch, but this login sequence requires ordered events.
+ for (const event of events) {
+ await ingester.handleKafkaBatch(createKafkaMessages([event], token))
+ }
await waitForKafkaMessages(kafkaProducer)
await waitForExpect(async () => {
@@ -3574,7 +3577,6 @@ describe.each([
const p2DistinctId = 'p2_distinct_id'
const p2NewDistinctId = 'new_distinct_id'
- // Batch 1: anonymous event, identify, event, second person event, second identify, event
const events = [
new EventBuilder(team, anonymousId).withEvent('event 1').build(),
new EventBuilder(team, initialDistinctId)
@@ -3590,7 +3592,10 @@ describe.each([
new EventBuilder(team, p2NewDistinctId).withEvent('event 4').build(),
]
- await ingester.handleKafkaBatch(createKafkaMessages(events, token))
+ // Different distinct IDs run concurrently within a batch, but this login sequence requires ordered events.
+ for (const event of events) {
+ await ingester.handleKafkaBatch(createKafkaMessages([event], token))
+ }
await waitForKafkaMessages(kafkaProducer)
await waitForExpect(async () => {
@@ -3599,7 +3604,7 @@ describe.each([
expect(persons.every((p) => p.is_identified)).toBe(true)
})
- // Batch 2: try to alias back to initialDistinctId (should fail — both already identified)
+ // Both persons must be identified before attempting to alias back to initialDistinctId.
await ingester.handleKafkaBatch(
createKafkaMessages(
[
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index db063a798052..a2d929719a28 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1700,8 +1700,8 @@ importers:
specifier: ^8.6.0
version: 8.11.0
posthog-node:
- specifier: 5.51.6
- version: 5.51.6([email protected])
+ specifier: 5.51.7
+ version: 5.51.7([email protected])
pretty-bytes:
specifier: ^5.6.0
version: 5.6.0
@@ -5125,7 +5125,7 @@ importers:
version: link:../../packages/llm-normalizer
'@posthog/mcp-analytics':
specifier: npm:@posthog/[email protected]
'@posthog/quill':
specifier: workspace:*
version: link:../../packages/quill/packages/quill
@@ -5163,8 +5163,8 @@ importers:
specifier: 4.12.0
version: 4.12.0
posthog-node:
- specifier: ^5.51.6
- version: 5.51.6([email protected])
+ specifier: ^5.51.7
+ version: 5.51.7([email protected])
prom-client:
specifier: ^14.2.0
version: 14.2.0
@@ -20041,8 +20041,8 @@ packages:
react:
optional: true
- resolution: {integrity: sha512-r+Ge3p0OnOcOWeTnvKZmAtDwECeIoyNTyxBxuZc8wM6RHCQ9j2Xrhogrf39HSq1Y2gIOpWLqIDRmWDcu7xmqcA==}
+ resolution: {integrity: sha512-QzUQ0S7afLIivL1mQvZ1qv3/o179ds1Zze7Zf4JDhjVlJ1mFTyu42cwFQHrD0VQpPXhIVKOq7AvSrF8Bt8yonQ==}
engines: {node: ^20.20.0 || >=22.22.0}
peerDependencies:
rxjs: ^7.0.0
@@ -30013,10 +30013,10 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
'@posthog/core': 1.50.6
- posthog-node: 5.51.6([email protected])
+ posthog-node: 5.51.7([email protected])
optionalDependencies:
'@modelcontextprotocol/sdk': 1.29.0(@cfworker/[email protected])([email protected])
@@ -42262,9 +42262,9 @@ snapshots:
'@types/react': 18.3.27
react: 18.3.1
dependencies:
- '@posthog/core': 1.50.0
+ '@posthog/core': 1.50.6
optionalDependencies:
rxjs: 7.8.1
diff --git a/products/desktop/apps/code/package.json b/products/desktop/apps/code/package.json
index 486589af2767..acada44ffb7d 100644
--- a/products/desktop/apps/code/package.json
+++ b/products/desktop/apps/code/package.json
@@ -134,7 +134,7 @@
"node-addon-api": "^8.5.0",
"node-machine-id": "^1.1.12",
"node-pty": "1.1.0",
- "posthog-node": "^5.51.6",
+ "posthog-node": "^5.51.7",
"react": "19.2.6",
"react-dom": "19.2.6",
"react-grab": "^0.2.0",
diff --git a/products/desktop/pnpm-lock.yaml b/products/desktop/pnpm-lock.yaml
index 2b0361000753..4b724e0c21cd 100644
--- a/products/desktop/pnpm-lock.yaml
+++ b/products/desktop/pnpm-lock.yaml
@@ -301,8 +301,8 @@ importers:
specifier: 1.1.0
version: 1.1.0(patch_hash=4dfdf785f5ac51a03f5d6032371cebe89036381acd403621f250a896245647c5)
posthog-node:
- specifier: ^5.51.6
- version: 5.51.6([email protected])
+ specifier: ^5.51.7
+ version: 5.51.7([email protected])
react:
specifier: 19.2.6
version: 19.2.6
@@ -6258,8 +6258,8 @@ packages:
engines: {node: '>=14.14', npm: '>=6'}
hasBin: true
- '@posthog/[email protected]':
- resolution: {integrity: sha512-25SnQycZbqqLodQs+GaDPGDC1oxT8+XOSGlyhiS2rtdVON9Opg2hmfJ/fpFNgMBL7YDi0rpvJiR/fudy96W4pA==}
+ '@posthog/[email protected]':
+ resolution: {integrity: sha512-Lno7WoIk5QI/HvlkW+ajfrE/DKTrKoA5pULB/HK6Om/ShGGUAJfOpOn22yWBtBvZ6R+bhAEsWXtzcc8QwNF8gQ==}
'@posthog/[email protected]':
resolution: {integrity: sha512-LilmmtjcrjV1LgaVNQXrAUt4IXcWIYMrwEtx6VJUUFDeBBdmeI99jshKGtAWugYeB3Wkcp9xQIVCrxIYRpNiRA==}
@@ -6300,9 +6300,6 @@ packages:
peerDependencies:
rollup: 4.59.0
- '@posthog/[email protected]':
- resolution: {integrity: sha512-WhbkXPC2rgylXqmxHqv70ffI3k+KxyR6s7DBIfr5NvIqHkxp6v0pk31D/jbz0DNVbzwkLjyll2pxr4FNbJiYzg==}
-
'@posthog/[email protected]':
resolution: {integrity: sha512-lA2sSGQUdVknSQl93uN9eUXDwkCMjAuthq24GONGHzMWwVygsKNHlWCnlJsVv2giDokj2p1NopO4zsE2S7gYjA==}
@@ -13945,8 +13942,8 @@ packages:
react:
optional: true
- resolution: {integrity: sha512-r+Ge3p0OnOcOWeTnvKZmAtDwECeIoyNTyxBxuZc8wM6RHCQ9j2Xrhogrf39HSq1Y2gIOpWLqIDRmWDcu7xmqcA==}
+ resolution: {integrity: sha512-QzUQ0S7afLIivL1mQvZ1qv3/o179ds1Zze7Zf4JDhjVlJ1mFTyu42cwFQHrD0VQpPXhIVKOq7AvSrF8Bt8yonQ==}
engines: {node: ^20.20.0 || >=22.22.0}
peerDependencies:
rxjs: ^7.0.0
@@ -20971,9 +20968,9 @@ snapshots:
dependencies:
detect-libc: 2.1.2
- '@posthog/[email protected]':
+ '@posthog/[email protected]':
dependencies:
- '@posthog/types': 1.407.1
+ '@posthog/types': 1.409.1
'@posthog/[email protected]':
dependencies:
@@ -21044,8 +21041,6 @@ snapshots:
magic-string: 0.30.21
rollup: 4.62.2
- '@posthog/[email protected]': {}
-
'@posthog/[email protected]': {}
'@preact/[email protected]': {}
@@ -30054,9 +30049,9 @@ snapshots:
transitivePeerDependencies:
- preact-render-to-string
dependencies:
- '@posthog/core': 1.50.0
+ '@posthog/core': 1.50.6
optionalDependencies:
rxjs: 7.8.2
diff --git a/services/mcp/package.json b/services/mcp/package.json
index e9ad2614900b..e227acc70f6d 100644
--- a/services/mcp/package.json
+++ b/services/mcp/package.json
@@ -64,7 +64,7 @@
"jose": "^6.2.3",
"lucide-react": "^0.577.0",
"posthog-js-lite": "4.12.0",
- "posthog-node": "^5.51.6",
+ "posthog-node": "^5.51.7",
"prom-client": "^14.2.0",
"prosemirror-collab": "^1.3.1",
"prosemirror-model": "^1.25.2",