posthog-node
6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed
5.74.0 is the newest release of 5.x.
In short
1 new1 internal
Release note
Minor Changes
node: Add
instrumentRequestandposthogHonoMiddlewarefor fetch-API servers (Hono, Bun, Deno, Next route handlers). They readx-posthog-session-id, wrap the request inwithContext, open a server span that continuestraceparentand is named by route, mark 5xx as errors, and recordhttp.server.request.durationandhttp.server.request.count.feat(core): add
PostHogMetrics.flushCoalesced(), a flush that callers can request once per unit of work: concurrent calls share one queued send, and it waits out a metrics backoff. (2026-11-10)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.