posthog-node
6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed
Upgrading posthog-node From 5.38.7 to 5.74.0
96 releases in betweenevery note read
Reading releases, release notes and advisories…
- 2
- changes to make
- 0
- advisories fixed
- 42
- new
- 69
- fixes
Before you upgrade
Tick each one off as you go- Breaking5.49.2
- Deprecated5.71.0
Release by release
- 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
- New
Send
$experiment_exposurefor config version 2 experiment splits, and send the reason code and rule attribution on$feature_flag_calledfor config version 2 flags in place of$feature_flag_reason. (2026-11-13) - New
Request
/flags/?v=4instead of/flags/?v=2and read its typed flag records. For a well-formed response, flag getters and$feature_flag_calledevents return the same values as before. A PostHog server that does not servev=4answers as it does forv=2, and that response is read as before.
- New
- New
Send cc, bcc and attachments with email from code. The SDK uploads each file PostHog doesn't have yet, then sends the email with the files' hashes. An email carries at most 10 files and 40 MB after Base64 encoding, about 29 MB of files. (2026-11-13)
- New
- Deprecated
captureEngagementis deprecated in favor oftracking: { engagement: false }. - New
A send with
templateKeynow takestrackingandsensitive.
- Deprecated
- New
Opt a recipient out of email topics, or back in, with
posthog.emails.setPreferences({ to, topics, allMarketing }). One call sends the whole change in one request, using the client'ssecretKey. (2026-11-12)
- New
- New
posthog.emails.send()takes a React Email element asreactand renders it with the optional peer@react-email/render. (2026-11-11)
- New
- Fixed
With
POSTHOG_CAPTURE_MODE=v1, capture now retries404and429responses like408and5xxinstead of failing the batch at once. (2026-11-10)
- Fixed
56 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.