Back to Explore

PostHog/posthog-js

GitHub
231 updates · last 90 days1 watchersOpen source

Last release: 2026-06-12

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

  • Actively maintained: The repo shows an upstream push as recently as 2026-06-10, and multiple related updates to the PostHog SDK ecosystem were published within the same day (2026-06-10), indicating ongoing maintenance rather than a dormant period.
  • Cadence: Based on the provided timeline, updates appear to be very frequent (same-day, multiple versions), with changes flowing through the monorepo in quick succession up to 2026-06-10.

AI summary generated 2026-06-11

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

Recent updates

  • posthog-node@5.37.0

    2026-06-12

    posthog-node@5.37.0 adds server-matching behavior for the feature flag `early_exit` condition option during local (client-side) evaluation. When a condition group's property filters match but the rollout percentage excludes the user, evaluation now stops early and returns `false`.

    Features
  • posthog-react-native@4.47.0

    2026-06-12

    posthog-react-native@4.47.0 adds opt-in native iOS and Android crash autocapture via the optional @posthog/react-native-plugin. It also extends Expo build tooling so crashes can be symbolicated when you enable native symbol upload (including an option to include native source).

    Features
  • @posthog/react-native-plugin@2.0.1

    2026-06-12

    This release (2.0.1) is described as a patch that changes native React Native error capture to avoid duplicate $exception events, and it updates session replay behavior by applying the configured session replay settings at native SDK setup time even if replay starts disabled. These are both aimed at correcting unexpected analytics behavior and improving session replay configuration consistency.

  • posthog-js@1.386.6

    2026-06-11

    This patch updates the product tours behavior in posthog-js so cached product tours data is dropped when product tours become disabled. Specifically, when remote config or the disable_product_tours option resolves product tours to disabled, the SDK stops the in-session tour manager and clears the persisted tours cache to prevent stale data from being carried across persistence writes and cross-tab storage events.

  • posthog-js@1.386.5

    2026-06-11

    Release posthog-js@1.386.5 primarily documents a replay fix for rrweb session-id rotation, preventing silent recorder teardown during active capture. However, the actual code diff includes additional SDK surface changes (notably the new MCP integration export and multiple configuration/type default updates) that are not covered in the provided release notes.

    BreakingFeatures
  • posthog-js@1.386.4

    2026-06-11

    posthog-js@1.386.4 includes a replay fix where seeking/fast-forwarding past pages using CSS `scroll-behavior: smooth` no longer animates via the inherited smooth behavior. Instead, sync scrolls and full snapshot rebuilds apply `behavior: 'instant'` so the document and UI content stay in view during replayer seeking.

  • posthog-react-native@4.46.32

    2026-06-11

    posthog-react-native@4.46.32 ships with only documented dependency bumps in the release notes (@posthog/types and @posthog/core). However, the underlying code diff includes multiple behavioral changes across conversations widget DOM handling, session/cross-tab persistence logic, and AI gateway misconfiguration warnings.

    Features
  • @posthog/webpack-plugin@1.5.22

    2026-06-11

    The published release notes for @posthog/webpack-plugin@1.5.22 only mention a patch dependency update to @posthog/core@1.32.3. The actual code diff for this release includes multiple substantive behavioral changes in posthog-js itself, including conversations widget DOM re-attachment across SPA navigations, cross-tab session-id rotation/adoption logic, and split-storage persistence optimizations.

  • @posthog/types@1.386.3

    2026-06-11

    This release focuses on cross-tab session stability, changing how session rotation is decided when multiple tabs share localStorage. Instead of rotating when a single background tab becomes idle, a tab refreshes and adopts a sibling tab's session id when the sibling has kept the session alive, and emits onSessionId events with changeReason.crossTabAdoption.

  • posthog-node@5.36.17

    2026-06-11

    Although the release notes for posthog-node@5.36.17 only mention a dependency bump for @posthog/core@1.32.3, the actual diff contains multiple significant behavior changes in the browser SDK. These include cross-tab session-id stability/adoption logic, changes to when split-storage group entries are rewritten, and a new SPA-navigation reattachment watcher for the Conversations widget.

    BreakingFeatures
  • posthog-js@1.386.3

    2026-06-11

    posthog-js@1.386.3 is a patch release focused on cross-tab session correctness, plus a UI fix for the Conversations support widget disappearing after SPA navigations that replace document.body. It also improves split-storage behavior by preventing per-request metadata updates from dirtying and re-broadcasting large group entries on every /flags or /surveys load.

  • posthog-js-lite@4.6.62

    2026-06-11

    This release introduces multiple behavioral fixes in the browser SDK: the Conversations widget is now re-attached automatically after SPA navigations that replace document.body, and session handling across tabs is hardened to prevent premature background-tab idle rotations. It also changes persistence behavior for certain volatile metadata keys to avoid repeatedly rewriting large split-storage entries on every load.

    Breaking
  • @posthog/next@0.4.94

    2026-06-11

    This release is a dependency-only patch update for @posthog/next. It bumps @posthog/core, posthog-js, and posthog-node to specific newer versions without listing any direct feature, bug fix, or API changes.

  • @posthog/nextjs-config@1.9.65

    2026-06-11

    This release of @posthog/nextjs-config is a patch update that only bumps a dependency. No new PostHog Next.js config features or behavioral changes are documented in the release notes.

  • posthog-react-native@4.46.31

    2026-06-11

    posthog-react-native 4.46.31 is a patch release that updates underlying PostHog packages. The only noted changes are dependency bumps to @posthog/core and @posthog/types, which may include internal fixes or behavioral adjustments from those libraries.

  • posthog-node@5.36.16

    2026-06-11

    posthog-node@5.36.16 is a patch release that only updates a dependency, @posthog/core to version 1.32.2. No PostHog Node specific features, bug fixes, or behavior changes are described in the release notes.

  • posthog-js-lite@4.6.61

    2026-06-11

    posthog-js-lite version 4.6.61 is a dependency-only patch release. The only noted change is updating @posthog/core to version 1.32.2.

  • @posthog/types@1.386.2

    2026-06-11

    The @posthog/types v1.386.2 release notes do not list any specific changes, features, bug fixes, or migration guidance. As provided, there is no actionable information to assess upgrade impact from these release notes alone.

  • posthog-js@1.386.2

    2026-06-11

    posthog-js v1.386.2 is a patch release that updates its internal dependencies. No direct API or behavior changes are described in the release notes beyond the dependency bumps.

  • @posthog/mcp@0.1.27

    2026-06-11

    Version 0.1.27 is a patch release for @posthog/mcp with no user-facing feature notes. It only updates key dependencies, which may include compatibility fixes and minor behavior changes inherited from those packages.