Skip to content

Releases: PostHog/posthog-js

posthog-node@5.19.0

06 Jan 03:48

Choose a tag to compare

5.19.0

Minor Changes

  • #2840 84e4140 Thanks @ordehi! - Add overrideFeatureFlags() method for local testing and development
    (2026-01-06)

posthog-js@1.314.0

06 Jan 03:48

Choose a tag to compare

1.314.0

Minor Changes

  • #2835 d50ffaa Thanks @adboio! - adds person property for last-seen survey date, bringing more consistent behavior cross-browser/device/etc
    (2026-01-06)

Patch Changes

  • #2810 add0648 Thanks @ksvat! - Add targetSessionID to lifecycle start events
    (2026-01-06)

@posthog/nuxt@1.4.7

06 Jan 03:48

Choose a tag to compare

1.4.7

Patch Changes

posthog-js@1.313.0

01 Jan 18:31

Choose a tag to compare

1.313.0

Minor Changes

  • #2832 f050f6c Thanks @rafaeelaudibert! - Introduce custom cookie properties for localStorage+cookie persistence using the new cookie_persisted_properties property. This allows people to opt-in to store properties in cookies even in localstorage+cookies mode
    (2026-01-01)

@posthog/nuxt@1.4.6

01 Jan 18:31

Choose a tag to compare

1.4.6

Patch Changes

  • Updated dependencies [f050f6c]:
    • posthog-js@1.313.0

posthog-react-native@4.17.2

31 Dec 12:00

Choose a tag to compare

4.17.2

Patch Changes

posthog-js@1.312.0

31 Dec 19:22

Choose a tag to compare

1.312.0

Minor Changes

  • #2834 548b466 Thanks @ordehi! - fix: Clear PageViewManager state on session rotation to prevent cross-session duration pollution

    When a browser tab is backgrounded and the session rotates (30 min idle or 24 hour max), PageViewManager now clears its state. This prevents $prev_pageview_duration from spanning session boundaries, which was causing impossibly large values (94+ hours observed) in web analytics "Average Time on Page" metrics.

    Users who implemented workarounds for inflated $prev_pageview_duration values (e.g., capping at 30 minutes) may want to review those after upgrading, as the root cause is now fixed. (2025-12-31)

@posthog/nuxt@1.4.5

31 Dec 19:22

Choose a tag to compare

1.4.5

Patch Changes

  • Updated dependencies [548b466]:
    • posthog-js@1.312.0

posthog-node@5.18.1

30 Dec 20:59

Choose a tag to compare

5.18.1

Patch Changes

  • #2825 5a4a8e2 Thanks @haacked! - getFeatureFlag() respects exponential backoff for HTTP 401, 403, and 429 responses.
    (2025-12-30)

@posthog/nuxt@1.4.4

30 Dec 20:58

Choose a tag to compare

1.4.4

Patch Changes

  • Updated dependencies [5a4a8e2]:
    • posthog-node@5.18.1