posthog-node
6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed
Upgrading posthog-node From 5.39.3 to 6.0.5
97 releases in betweenevery note read
Reading releases, release notes and advisories…
- 17
- changes to make
- 0
- advisories fixed
- 42
- new
- 73
- fixes
Before you upgrade
Tick each one off as you go- Breaking6.0.3
- 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
- Fixed
Keep falsy payloads (
0,false,"") for locally evaluated flags inevaluateFlagsandgetAllFlagsAndPayloads(2026-11-19)
- Fixed
- Fixed
Send transactional email requests to
/api/messaging/instead of the/api/projects/@current/alias, which PostHog is removing. Needs PostHog Cloud, or a self-hosted PostHog from 2026-11-18 or later. Older self-hosted versions answer these calls with a 404. (2026-11-18)
- Fixed
- Breaking
Drop null-valued custom exception properties after
beforeSendwithout undoing redaction or changing array positions. (2026-11-18) - Fixed
Preserve falsy JSON payloads in feature flag snapshots from legacy flag responses. (2026-11-18)
- Breaking
- Fixed
Accept the 5.x option names
before_send,custom_blocked_useragents,disable_capture_url_hashes, and__preview_capture_bot_pageviewsagain as deprecated aliases. Each one maps to its camelCase name and logs one deprecation error per process. When both names are set, the camelCase one wins. In 6.0.0 the old names were ignored without a warning, so abefore_sendhook stopped running. (2026-11-17)
- Fixed
- New
Add the missing commas to the
captureImmediateandidentifydoc comment examples, so the examples parse when you copy them. (2026-11-17)
- New
- 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
- New
Treat failed flag evaluations as unavailable: Node
getFeatureFlag()/isFeatureEnabled()returnundefined,getAllFlags()omits failed keys, and no failed values or payloads are exposed. (2026-11-15)
- New
- Fixed
node:
shutdown()now also sends logs captured while its logs flush was in flight, instead of dropping them (2026-11-14)
- Fixed
54 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.