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…
- 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
- Breaking
Remove
enterContext(); usewithContext()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()andcaptureExceptionImmediate()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.levelis read case-insensitively, with the same aliases as posthog-python (critical→fatal,warn→warning). An unknown level keepserror.registerOptions()andunregisterOptions()return a promise, andprepareEventMessage()returns a flat message with top-leveloptions,uuid,timestampanddisableGeoip. (2026-11-17) - Breaking
Generated event uuids and personless distinct ids take their random bits from
crypto.getRandomValuesinstead ofMath.random. (2026-11-17)
- Breaking
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.