Packages

@posthog/next

0.11.1 · 17 Nov 2026MIT95k / weekRepositorynpmAtom feed

Upgrading @posthog/next From 0.7.2 to 0.8.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.7.2Newest 0.x, Latest0.11.1
  1. 0.7.2yours
  2. 0.8.0target
0
changes to make
0
advisories fixed
1
new
1
fix

Release by release

  1. 0.8.0

    9 Jul 20261 new · 1 fix
    • New

      Replace the getPostHog and getServerSidePostHog exports with a createPostHog() factory. Configure PostHog once in a shared module — including an optional getDistinctId resolver that attributes server-side events and feature flags to the authenticated user — and use the returned getPostHog everywhere.

    • Fixed

      Fix Pages Router server clients to apply request context after async initialization: the Pages Router path of createPostHog().getPostHog(ctx) now wraps method calls in withContext instead of calling enterContext, which does not propagate back to the caller across the helper's await boundary. (2026-07-09)

1 internal line (docs, tests, tooling) left out.

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.