@posthog/next
0.11.1 · 17 Nov 2026MIT95k / weekRepositorynpmAtom feed
Upgrading @posthog/next From 0.4.93 to 0.11.1
20 releases in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 8
- new
- 9
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.11.1
- Breaking0.8.6
- Breaking0.8.3
Release by release
- Breaking
Require posthog-node 5.58.0 or later, the first version with the span-context helpers they use. (2026-11-17)
- Breaking
- New
onRequestErrortakes identity from PostHog tracing headers before the cookie, drops a cookie session that posthog-js would have ended, and adds the request URL, method, path and user agent. NewwithPostHogProxycaptures errors thrown inproxy.tsor middleware without delaying the response. Errors that escape middleware or a proxy are marked unhandled. (2026-11-03)
- New
- New
Add an optional Node.js App Router span context bridge that reuses the configured PostHog client and request identity. (2026-10-28)
- New
- New
Add opt-in
$routetemplate capture for App Router and Pages Router pageviews. (2026-09-01)
- New
- Breaking
Drop events when a before-send hook throws instead of sending the unmodified event. (2026-08-20)
- Breaking
- Fixed
Fix request routing in the Next.js middleware proxy. (2026-08-19)
- Fixed
- Fixed
Let Next.js dynamic rendering bailouts propagate when bootstrapping flags. (2026-07-16)
- Fixed
Require the Pages Router request context in server identity resolver types. (2026-07-16)
- Fixed
- Breaking
Remove the Pages Router
PostHogProvider.bootstrapprop; move its value toclientOptions.bootstrap. For App Router server-evaluated bootstrap, use fresh evaluated flags and payloads while preserving configured identity and session fields. (2026-07-16)
- Breaking
32 internal lines (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.