github PostHog/posthog-js posthog-node@6.4.0

latest release: posthog-js@1.457.0
2 hours ago

6.4.0

Minor Changes

  • #5819 42786b8 Thanks @marandaneto! - Add personPropertyKeysKnownAbsent and groupPropertyKeysKnownAbsent flag evaluation options, so local evaluation can resolve is_not_set and negated filters without a /flags request.
    (2026-12-03)

  • #6012 dba0fad Thanks @mayteio! - Add headers and tags options to posthog.emails.send for emails sent with templateKey.
    (2026-12-03)

Patch Changes

  • #5819 42786b8 Thanks @marandaneto! - Skip each group condition without a usable group key instead of returning false for the whole group flag, so a person condition in a group flag still matches. A group flag with a holdout above 0% and no usable group key now falls back to /flags instead of resolving locally.
    (2026-12-03)

  • #5819 42786b8 Thanks @marandaneto! - Read a group filter of another group type from that group type's properties and known-absent keys in local flag evaluation, and treat a group filter without group_type_index in a person condition as unsupported, as the flags service does.
    (2026-12-03)

  • #5819 42786b8 Thanks @marandaneto! - Read person properties for person filters and person cohort leaves in group conditions during local flag evaluation, as /flags does, instead of the group's properties. A person condition in a group flag now also buckets by the distinct id (or $device_id for device bucketing) instead of the group key, as /flags does, so people in a partial rollout can move in or out of it.
    (2026-12-03)

  • #5819 42786b8 Thanks @marandaneto! - Treat an empty, null, boolean, array, object or non-finite number group key as no group key in local flag evaluation, so its group conditions don't match.
    (2026-12-03)

  • #6030 b194f6e Thanks @Silthus! - Deprecate the category option of posthog.emails.send(). Code-sent emails are staying strictly transactional, and the server feature flag for categories on code sends is off. A send that sets category is now refused with invalid_form before any request and never sends the field; send marketing email through a PostHog workflow. Sends without category are unchanged.
    (2026-12-03)

  • Updated dependencies [42786b8]:

    • @posthog/core@1.70.0

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.