posthog-node
6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed
5.74.0 is the newest release of 5.x.
In short
2 new1 internal
Release note
Minor Changes
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)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.A flag record with a field of the wrong JSON type, such as a string
metadata.version, now reads as disabled: flag getters returnfalseand it has no payload. Other flags in the same response are not affected. This applies to both response versions, so tests that mock/flagsmay need to match the new URL and send correctly typed fields. (2026-11-13)
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.