Packages

posthog-node

6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed

Your version

5.67.0

10 Nov 2026Where it was published

5.74.0 is the newest release of 5.x.

In short

1 new1 internal

Release note

Minor Changes

  • node: Add instrumentRequest and posthogHonoMiddleware for fetch-API servers (Hono, Bun, Deno, Next route handlers). They read x-posthog-session-id, wrap the request in withContext, open a server span that continues traceparent and is named by route, mark 5xx as errors, and record http.server.request.duration and http.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.