Packages

posthog-node

6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed

Your version

370 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 5.34.6

    19 May 2026
    • Fix six edge cases in local feature flag evaluation. gt/gte/lt/lte now compare numerically when both sides parse as finite numbers — previously a string override like "10" against numeric value 9 slipped into lexicographic comparison and returned false, and parseFloat's NaN return value leaked through the old != null guard. is_not_set now resolves locally — true when the property key is absent, false when present — instead of always throwing InconclusiveMatchError and forcing the flag to return undefined. Flag-level condition properties with negation: true are now correctly inverted, matching the existing cohort-path behavior in matchPropertyGroup. An inactive flag (active: false) now short-circuits to false even when ensure_experience_continuity: true — previously it threw InconclusiveMatchError and resolved to undefined. is_set now returns true for properties whose value is null or undefined as long as the key is present — is_set is about key presence, not value. Cohort property groups containing a flag-type property no longer silently skip the dependency; the cohort eval is now marked inconclusive so the flag returns undefined instead of a wrong definitive answer.
      (2026-05-19)

  2. 5.34.1 – 5.34.55 releases that only update dependencies@posthog/core 1.29.5Show each
  3. 5.34.0

    12 May 2026
    • Expose UUID and cookie helpers from @posthog/core and posthog-node for users managing distinct_id outside the browser SDK (e.g. Lambda functions handing out cross-domain redirects). The helpers were already implemented in @posthog/next — this change lifts them to core so all SDKs can re-use them. @posthog/next now re-exports the same surface from @posthog/core to keep existing consumers working without churn. Closes #2143.
      (2026-05-12)

  4. 5.33.3 – 5.33.75 releases that only update dependencies@posthog/core 1.28.7Show each
  5. 5.33.2

    4 May 2026
    • Consume fetch response body to prevent CF Workers runtime warnings
      (2026-05-04)

  6. 5.33.1

    4 May 2026

    Only updates a dependency:@posthog/core 1.28.1

  7. 5.33.0

    2 May 2026
    • Add evaluateFlags() and a new flags option on capture() so a single /flags request powers both flag branching and event enrichment per incoming request:

      const flags = await posthog.evaluateFlags(distinctId, { personProperties: { plan: 'enterprise' } })
      if (flags.isEnabled('new-dashboard')) {
        renderNewDashboard()
      }
      posthog.capture({ distinctId, event: 'page_viewed', flags })

      The returned FeatureFlagEvaluations snapshot exposes isEnabled(), getFlag(), getFlagPayload() for branching, plus onlyAccessed() and only([keys]) for filtering which flags get attached to a captured event. Pass flagKeys: [...] to evaluateFlags() to scope the underlying /flags request itself. captureException() / captureExceptionImmediate() accept a flags argument so $exception events carry the same flag context as the rest of your request's events.

      Deprecates isFeatureEnabled(), getFeatureFlag(), getFeatureFlagPayload(), and capture({ sendFeatureFlags }). They continue to work but now log a deduped [PostHog] ... is deprecated warning the first time they're used. Removal is planned for the next major version. (2026-05-02)

  8. 5.32.1

    1 May 2026

    Only updates a dependency:@posthog/core 1.28.0

  9. 5.32.0

    30 Apr 2026
    • flags: Support mixed targeting in local evaluation
      (2026-04-30)

  10. 5.31.0

    29 Apr 2026
    • Add Express and NestJS request context support for PostHog tracing headers.
      (2026-04-29)

  11. 5.30.1 – 5.30.88 releases that only update dependencies@posthog/core 1.27.9Show each
  12. 5.30.0

    23 Apr 2026
    • Send relative file paths in frames
      (2026-04-23)

  13. 5.29.5 – 5.29.73 releases that only update dependencies@posthog/core 1.27.1Show each
  14. 5.29.4

    21 Apr 2026
    • flags: Switch local evaluation polling from /api/feature_flag/local_evaluation to /flags/definitions
      (2026-04-21)

  15. 5.29.3

    21 Apr 2026
    • Trim surrounding whitespace from user-provided API keys, personal API keys, and host config values before using them.
      (2026-04-21)

  16. 5.29.2

    9 Apr 2026
    • Send $device_id as a top-level field in /flags requests so the feature flags service can use it for device-based bucketing during remote evaluation
      (2026-04-09)

  17. 5.29.1

    7 Apr 2026

    Only updates a dependency:@posthog/core 1.25.1

  18. 5.29.0

    7 Apr 2026
    • Preserve $set_once semantics in local flag evaluation cache
      (2026-04-07)

  19. 5.28.11

    2 Apr 2026

    Only updates a dependency:@posthog/core 1.24.6

  20. 5.28.10

    1 Apr 2026
    • Extract CLI and sourcemap utilities from @posthog/core into @posthog/plugin-utils to remove cross-spawn from React Native dependencies
      (2026-04-01)

  21. 5.28.7 – 5.28.93 releases that only update dependencies@posthog/core 1.24.4Show each
  22. 5.28.6

    26 Mar 2026
    • captureException now uses distinctId from request context
      (2026-03-26)

  23. 5.28.4 – 5.28.52 releases that only update dependencies@posthog/core 1.24.1Show each
  24. 5.28.3

    18 Mar 2026
    • Fix captureExceptionImmediate return value
      (2026-03-18)

  25. 5.28.2

    13 Mar 2026
    • Omit the config query parameter by default to request only the necessary data
      (2026-03-13)

    • Client shutdown awaits the feature flags poller to stop
      (2026-03-13)

  26. 5.28.1

    11 Mar 2026

    Only updates a dependency:@posthog/core 1.23.3

  27. 5.28.0

    5 Mar 2026
    • Add nestjs integration with interceptor for context propagation
      (2026-03-05)

  28. 5.27.1

    5 Mar 2026
    • Add semver comparison operators to local feature flag evaluation: semver_eq, semver_neq, semver_gt, semver_gte, semver_lt, semver_lte, semver_tilde, semver_caret, and semver_wildcard
      (2026-03-05)

  29. 5.27.0

    4 Mar 2026
    • Accept a waitUntil method for serverless environments
      (2026-03-04)

  30. 5.26.2

    2 Mar 2026

    Only updates a dependency:@posthog/core 1.23.2

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.