Packages

posthog-node

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

Upgrading posthog-node From 5.74.0 to 6.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 5.74.0Latest6.0.5
  1. 5.74.0yours
  2. 6.0.0target
14
changes to make
0
advisories fixed
0
new
5
fixes

Before you upgrade

Tick each one off as you go
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0

Release by release

  1. 6.0.0

    Migration needed17 Nov 20265 fixes
    • Breaking

      Remove enterContext(); use withContext() to scope async context to a callback. (2026-11-17)

    • Breaking

      Use camelCase SDK configuration names and typed boolean event options with support for additional JSON-valued options. (2026-11-17)

    • Breaking

      captureException() and captureExceptionImmediate() take an options object (distinctId, properties, options, uuid, flags, level). The old positional form still works in posthog-node 6.x.x and logs a deprecation error once per method. level is read case-insensitively, with the same aliases as posthog-python (critical → fatal, warn → warning). An unknown level keeps error. registerOptions() and unregisterOptions() return a promise, and prepareEventMessage() returns a flat message with top-level options, uuid, timestamp and disableGeoip. (2026-11-17)

    • Breaking

      Generated event uuids and personless distinct ids take their random bits from crypto.getRandomValues instead of Math.random. (2026-11-17)

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.