Back to Explore

PostHog/posthog-js

GitHub
558 updates · last 90 days1 watchersOpen source

Last release:

PostHog JS is a set of JavaScript and TypeScript packages for integrating PostHog into web and other applications. It is useful for sending usage data from your web app or site to PostHog, including autocapture, with supporting packages for frameworks like React and Next.js.

Project status

  • PostHog/posthog-js appears actively maintained, with an upstream push recorded today (2026-09-10) and multiple dependency and posthog-js patch updates published within the same day.
  • The apparent update cadence is high, at least over the last 1-2 days, with several rapid posthog-js patch updates (e.g., 1.428.9 through 1.429.1) plus same-day updates to related packages (@posthog/types, @posthog/core, and posthog-react-native).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • posthog-react-native@4.68.7

    posthog-react-native@4.68.7 is a patch release focused on correcting React Native screen name attribution for exceptions and improving screen tracking during tab changes. The diff also includes additional native Android behavior changes in the companion react-native plugin for push notification opened events during warm starts.

  • @posthog/react-native-plugin@2.6.0

    Release @posthog/react-native-plugin@2.6.0 documents a single change: on Android, capture $push_notification_opened when a user taps a notification while the app is already running (warm start), not only on cold start. The code diff, however, includes additional behavioral and API changes across the React Native SDK (error tracking, error boundary fallback props) and the AI telemetry layer that are not mentioned in these release notes.

    BreakingFeatures
  • posthog-react-native@4.68.6

    posthog-react-native@4.68.6 updates error tracking so that fatal uncaught JavaScript exceptions can persist pending analytics data before React Native forwards them to its native fatal exception handler. Specifically, fatal exceptions now wait for storage persistence (and related async initialization) up to a 2 second deadline.

  • posthog-react-native@4.68.5

    posthog-react-native@4.68.5 is a patch release focused on improving uncaught exception handling across multiple SDK instances, and making React error boundary behavior safer and more actionable. It also adds logic to capture React Native component stacks and to enable retrying reporting via the error boundary fallback.

  • @posthog/ai@8.10.4

    posthog-js @posthog/ai@8.10.4 changes how AI “service tier” is recorded for telemetry. Instead of using the requested `service_tier`, the SDK now records the provider-reported served tier, and emits it explicitly as a `$ai_service_tier` event property used for cost processing.

    BreakingFeatures
  • @posthog/core@1.52.1

    PostHog core v1.52.1 is a patch release focused on fixing build and distribution compatibility issues. It addresses incorrect recording package exports, native ESM loading problems, and improves compatibility for consumers using TypeScript 4.7.

  • posthog-js@1.429.2

    posthog-js 1.429.2 is a patch release focused on fixing packaging and compatibility issues for recording and module loading. It also updates @posthog/core to 1.52.1 to bring in related fixes.

  • posthog-js@1.429.1

    posthog-js@1.429.1 is a patch release focused on session replay UI behavior, specifically preventing browsers from applying saved autofill suggestions inside replayed form fields. The code changes enforce `autocomplete="off"` for `input` and `textarea` elements both when rebuilding snapshots and when applying incremental mutations during replay.

  • posthog-js@1.429.0

    posthog-js@1.429.0 adds Segment integration support for filtering PostHog enrichment properties before they are fanned out by Segment. It also includes multiple fixes around dead-click detection for text selection/editable caret gestures, TypeScript compatibility for replay events, and survey visibility behavior when capture is disabled.

    Features
  • posthog-react-native@4.68.4

    posthog-react-native@4.68.4 is a patch release that is documented as a survey UI fix. However, the underlying monorepo diff also includes substantial, not-mentioned changes to replay JSON-LD capture and masking behavior, plus related type changes.

  • posthog-js@1.428.11

    posthog-js@1.428.11 is a patch release focused on survey “open text” questions in the browser and React Native. It changes how the textarea placeholder is determined, removing the default “Start typing...” text when the configured placeholder is empty.

  • @posthog/types@1.409.4

    This release adds replay URL privacy masking for URL-like string values inside captured JSON-LD payloads. The browser JSON-LD sanitizer now applies the privacy masking callback to additional cases, and normalizes inputs via trimming before masking.

  • posthog-js@1.428.10

    posthog-js@1.428.10 applies replay URL privacy settings to URL-like values inside captured JSON-LD payloads, using a new shared URL-prefix detection helper. The release also bumps @posthog/types to 1.409.4 and @posthog/core to 1.52.0.

    Features
  • @posthog/types@1.409.3

    This release adds the masked page URL to JSON-LD replay events. Concretely, JSON-LD custom events now carry an additional `href` field computed from the current page URL with the existing URL masking logic.

    Features
  • posthog-js@1.428.9

    posthog-js@1.428.9 is a patch release focused on enriching JSON-LD replay data with the (masked) page URL. The implementation adds an `href` field to JSON-LD custom replay events and updates associated TypeScript types to expose that field.

    Features
  • posthog-react-native@4.68.3

    posthog-react-native@4.68.3 is a patch release whose release notes only mention improved keyboard behavior when interacting with SurveyModal content. The code change for that behavior is present, and the only React Native source change is in SurveyModal touch handling. The diff also contains several repo-wide typing and build-system modifications (primarily rrweb declaration generation) that are not mentioned in the release notes.

  • @posthog/core@1.51.2

    Release @posthog/core@1.51.2 is a patch update focused on packaging, specifically including the root license and attribution notices in the published @posthog/core package. The code diff also reveals several repo-wide changes around type generation and TypeScript annotations that are not described in the release notes.

  • @posthog/mcp@0.14.1

    This patch release focuses on improving error-tracking behavior by collapsing repeated frame cycles in parsed stack traces, reducing grouping differences caused by recursion depth while still preserving distinct throw locations. It also updates underlying PostHog dependencies to newer versions.

  • posthog-node@5.51.8

    posthog-node 5.51.8 is a patch release focused on improving error-tracking stack trace parsing. It collapses repeated frame cycles in parsed stack traces to reduce grouping differences caused by recursion depth, while keeping distinct throw locations.

  • posthog-js-lite@4.12.1

    posthog-js-lite 4.12.1 is a patch release focused on error tracking stack trace parsing. It improves how parsed stack traces handle repeated frame cycles to reduce grouping differences caused by recursion depth, while keeping distinct throw locations intact.