releases.shpreview

CoreExtension replaced with host-provided Client

@posthog/browser-common@0.2.4

July 28, 2026PostHog JSView original ↗
2 enhancementsThis release2 enhancementsImprovements to existing featuresAI-tallied from the release notes
From the original release noteView original ↗

0.2.4

Patch Changes

  • #4284 fbd457f Thanks @dustinbyrne! - Reduce extension runtime and contract overhead by replacing the CoreExtension and capability-token registry with one host-provided Client. Extensions now access analytics, identity, session, events, remote config, transport, persistence, and logging directly from that client.

    Cross-extension getExtension/provides lookup and session lifecycle observation are no longer part of the shared contract. Extension cleanup is synchronous and best-effort: resources are released in reverse registration order, and Promise-returning legacy cleanup is not awaited but rejected Promises are contained. (2026-07-28)

Fetched July 28, 2026