Contents

@posthog/browser-common

0.14.0

Minor Changes

  • #5789 6715a04 Thanks @dustinbyrne! - Add local flag property overrides, flag read controls, early-access features and onActiveMatchingSurveysChanged to @posthog/browser, and load its feature flags while capture is opted out as posthog-js does. (2026-11-25)

  • #5787 c17ad19 Thanks @dustinbyrne! - Add setConfig() and debug(), immediate per-event delivery, and getPageViewId() to @posthog/browser. (2026-11-25)

0.13.1

Patch Changes

0.13.0

Minor Changes

  • #5851 54220f6 Thanks @ella-c-ph! - Capture the Snapchat click ID as sccid when the landing URL spells it ScCid or SsCid. When mask_personal_data_properties is on, also mask ScCid, SsCid and sscid in captured URLs, including landing URLs stored by older SDK versions. (2026-11-23)

Patch Changes

0.12.2

Patch Changes

  • #5829 1c8b544 Thanks @srednoff888-art! - Name survey buttons by their visible text instead of a hard-coded English "Submit survey" label, so screen readers and voice control match the configured or translated button text. Tests that find the button by the name "Submit survey" need to use the visible button text or the .form-submit class instead. (2026-11-20)

0.12.1

Patch Changes

  • #5715 4e53c65 Thanks @marandaneto! - Skip autocapture when ancestor privacy checks cannot complete. (2026-11-19)

  • #5715 4e53c65 Thanks @marandaneto! - Honor autocapture privacy markers across shadow hosts and slots before collecting text and attributes. (2026-11-19)

  • #5715 4e53c65 Thanks @marandaneto! - Expose a narrow autocapture client type for shared renderer integrations. (2026-11-19)

0.12.0

Minor Changes

  • #5693 d8389d7 Thanks @marandaneto! - Treat failed flag evaluations as unavailable: Node getFeatureFlag()/isFeatureEnabled() return undefined, getAllFlags() omits failed keys, and no failed values or payloads are exposed. (2026-11-15)

Patch Changes

0.11.0

Minor Changes

  • #5640 ec79e8a Thanks @dustinbyrne! - Allow shared extensions to declare their host type while retaining the default client contract. (2026-11-13)

0.10.8

Patch Changes

  • #5635 fc00120 Thanks @rafaeelaudibert! - Use the gradient PostHog logo in the survey and product tour footer branding, and the one-color (mono) logo on dark backgrounds (2026-11-10)

0.10.7

Patch Changes

0.10.6

Patch Changes

  • #5488 358a77e Thanks @gustavohstrassburger! - A $feature_flag_called event that the client rate limit drops is now sent again at the next capture. Before, the flag was marked as reported and its exposure was lost. (2026-11-04)

0.10.5

Patch Changes

  • #5481 5764ddd Thanks @gustavohstrassburger! - Feature flags read before the user opts in to capturing now send $feature_flag_called when the user opts in, without being read again. This fixes missing exposures from the React and React Native hooks, which read a flag once on mount. (2026-11-04)
  • Updated dependencies [5764ddd]:

0.10.4

Patch Changes

  • #5503 89c3a6b Thanks @abdullah129026! - Fix tab widget surveys ignoring the selected position. The popup is only centred next to the tab for the default right position or next to trigger; any other position picked in the survey appearance settings is now honoured. (2026-11-02)
  • Updated dependencies [3fbb667]:

0.10.3

Patch Changes

  • #5491 aedb488 Thanks @marandaneto! - Sanitize survey HTML descriptions while preserving rich text formatting. (2026-11-02)

0.10.2

Patch Changes

  • #5341 de6b06f Thanks @sebxt! - Keep the rest of the URL when masking personal data query params and a query value contains ? or the hash contains #. (2026-10-29)

0.10.1

Patch Changes

  • #5222 6d12d24 Thanks @posthog! - Fall back to Math.random when crypto.getRandomValues throws, so UUID generation no longer breaks capture. (2026-10-28)

0.10.0

Minor Changes

  • #5269 950d034 Thanks @dustinbyrne! - Add $input_value to autocapture change events for fields marked data-ph-capture-value, or matched by the new autocapture.capture_value_css_selector_allowlist option (CSS selectors or an (element) => boolean predicate). (2026-10-28)

Patch Changes

0.9.12

Patch Changes

0.9.11

Patch Changes

  • #5346 f91145d Thanks @sebxt! - Reject a prefilled survey rating of 0 on rating scales that start at 1. (2026-10-23)

  • #5399 02616e1 Thanks @ARXHHHH! - Ship the IE11 Math.trunc and Number.isInteger polyfills only in array.full.es5.js, so the modern bundles no longer trigger Lighthouse's "Legacy JavaScript" audit. (2026-10-23)

  • Updated dependencies [f827137]:

0.9.10

Patch Changes

  • #5292 d73e6c7 Thanks @sarmah-rup! - Read query params with form-encoding rules: an encoded plus (%2B) is kept as + instead of becoming a space, and values that contain = are no longer cut off. This fixes UTM, click ID and search keyword properties such as utm_term=c%2B%2B. (2026-10-23)

0.9.9

Patch Changes

  • #4994 bcd33ce Thanks @dustinbyrne! - Share autocapture across browser SDKs while preserving existing event capture behavior. (2026-10-22)

0.9.8

Patch Changes

0.9.7

Patch Changes

  • #5273 d9148bb Thanks @posthog! - Warn in debug mode when reloadFeatureFlags() runs inside an onFeatureFlags callback, because cross-tab flag changes can turn it into a request loop (2026-10-22)

0.9.6

Patch Changes

  • #4992 3b7ffc6 Thanks @dustinbyrne! - Share surveys across browser SDKs; calls to getSurveys before survey setup now invoke the callback immediately with an unavailable error. Notify all survey subscribers when survey loading fails. (2026-10-22)

0.9.5

Patch Changes

  • #5300 09d4ba2 Thanks @rafaeelaudibert! - Capture the Freebuff click identifier (bfcid) as a campaign parameter, so it is set on events and as $initial_bfcid like every other ad click ID. (2026-10-14)
  • Updated dependencies [09d4ba2]:

0.9.4

Patch Changes

  • #4990 a66cada Thanks @dustinbyrne! - Share browser logging across SDKs with consistent initialization and cleanup; captureLog and logger calls before logging setup are now dropped instead of buffered. (2026-10-09)

0.9.3

Patch Changes

  • #5245 76b4402 Thanks @abrahamguo! - Fix type checking in posthog-js 1.438.2 by publishing the feature flag types it imports from @posthog/browser-common. (2026-10-09)

0.9.2

Patch Changes

  • #5004 730d92b Thanks @posthog! - Stop carousel and pager arrow controls from capturing false $rageclick events. The rageclick content ignorelist, active from the 2025-11-30 config defaults, now also covers arrow glyphs (→, ←, ›, ‹, », «, ▶, ◀, ❯, ❮). The built-in word keywords match whole words wherever they appear, including inside a list you pass yourself, so "Preview" keeps capturing; other word keywords you add still match as substrings. Keywords now match against the clicked control (the nearest button, link, ARIA control or cursor: pointer wrapper), reading its label from the control's whole subtree instead of every ancestor up to the body, so a region labelled "Featured carousel" no longer suppresses the buttons inside it. A control's own text or aria-label wins over an icon's aria-label inside it, so clicking the icon and clicking the text agree. Set rageclick: { content_ignorelist: false } to keep capturing these events. (2026-10-06)
  • Updated dependencies [730d92b]:

0.9.1

Patch Changes

  • #5046 c360da1 Thanks @luke-belton! - Capture the OpenAI Ads click identifier (oppref) as a campaign parameter, so it is set on events and as $initial_oppref like every other ad click ID. (2026-10-01)
  • Updated dependencies [c360da1]:

0.9.0

Minor Changes

  • #4675 2828b6b Thanks @dustinbyrne! - Make browser extension capture synchronous so its return semantics match immediate event admission rather than implying delivery completion. (2026-09-16)

0.8.3

Patch Changes

0.8.2

Patch Changes

  • #4803 87b34af Thanks @marandaneto! - Preserve Error details, causes, aggregate errors, and custom enumerable properties in event properties, including cross-realm Errors. Apply string truncation to ordinary capture properties and retain custom toJSON serialization for exception additional properties. (2026-09-07)

0.8.1

Patch Changes

  • #4804 988f03a Thanks @marandaneto! - Recover autocapture targets for dropdown clicks retargeted to the page root, and attribute nested SVG icon clicks to their enclosing button or link while preserving privacy checks. (2026-09-07)

0.8.0

Minor Changes

  • #4809 3a5b322 Thanks @marandaneto! - Add best-effort in-app browser attribution using $webview_app and $webview_app_version, without changing existing $browser or $browser_version values. Detect explicit user-agent markers for Facebook, Facebook Lite, Messenger, Instagram, Threads, LinkedIn, Twitter, TikTok, WhatsApp, Snapchat, WeChat, LINE, Google, Bing, Pinterest, Naver, and KakaoTalk. Unknown apps and versions are omitted; missing markers do not imply a standalone browser. (2026-09-07)

Patch Changes

0.7.3

Patch Changes

0.7.2

Patch Changes

  • #4732 f00e24d Thanks @posthog! - Polyfill Array.prototype.findLast in the web vitals attribution bundles so they keep capturing on browsers older than Chrome 97 and Safari 15.4 (2026-09-03)
  • Updated dependencies [c475070]:

0.7.1

Patch Changes

  • #4683 6309cb2 Thanks @posthog! - Harden the directly importable getElementsChainString utility against runtime JavaScript callers that pass a non-array value. It now returns an empty string instead of calling .map on malformed input. (2026-09-01)
  • Updated dependencies [444bf35, 6ae173f, 6723395]:

0.7.0

Minor Changes

  • #4378 a895e7e Thanks @dustinbyrne! - Add a direct pubsub export, isolate publisher listener failures, and make disposal terminal. (2026-08-28)

0.6.2

Patch Changes

  • #4669 d0279e5 Thanks @posthog! - Autocapture no longer throws a RangeError into the host page when it sorts element attributes. It now sorts attribute keys with a plain lexical comparator instead of localeCompare, which can throw on browsers with faulty ICU data. (2026-08-28)

0.6.1

Patch Changes

  • #4636 74ff567 Thanks @yfwmaniish! - Narrow the pinterest entry in the bot-detection blocklist to pinterestbot, so real users on Pinterest's in-app browser (whose UA also contains the substring pinterest) are no longer misclassified as bots and silently excluded from analytics. The crawler's other UA variant remains covered by the existing generic bot.htm entry, so no bot-detection coverage is lost. (2026-08-27)
  • Updated dependencies [74ff567]:

0.6.0

Minor Changes

  • #4592 ca540f9 Thanks @dustinbyrne! - Add typed stable-name lookup for installed browser extensions and use it when independently loaded survey code resolves feature flags. (2026-08-25)

Patch Changes

0.5.2

Patch Changes

0.5.1

Patch Changes

0.5.0

Minor Changes

  • #4316 f999394 Thanks @dustinbyrne! - Add richer client request and identity context alongside initialized, synchronously buffered batch key-value persistence operations. (2026-08-11)

0.4.0

Minor Changes

  • #4376 2da12b8 Thanks @posthog! - Add attribute-level masking to session replay: maskAttributeFn provides per-attribute control over the final serialized value, while maskAllElementAttributes masks all source DOM string attributes (including rendering attributes and synthesized form values) at the cost of replay fidelity. (2026-08-05)

Patch Changes

0.3.1

Patch Changes

  • #4340 4b8867c Thanks @marandaneto! - Avoid redacting session replay network bodies when timestamps or UUID fragments resemble social security or credit card numbers. (2026-07-31)

0.3.0

Minor Changes

  • #4300 6b48a59 Thanks @dustinbyrne! - Stream replayable remote config outcomes through shared browser extension clients. (2026-07-31)

0.2.5

Patch Changes

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)

0.2.3

Patch Changes

  • #4272 2551b08 Thanks @dustinbyrne! - Replace the extension client apiRequest bridge with sendRequest, exposing the public project token and caller-directed request targets, headers, and browser transports. (2026-07-27)

0.2.2

Patch Changes

  • #4240 7210789 Thanks @dustinbyrne! - Add the shared extension runtime and CoreExtension capability contract, expose core observer and configuration payloads as deeply readonly views, allow key-value stores to return values synchronously or asynchronously, and expose host API response details. Nullish values passed to set follow host-native storage semantics; use remove to delete a key. (2026-07-27)

0.2.1

Patch Changes

  • #4225 4bf533a Thanks @dustinbyrne! - Represent extension capability tokens as branded runtime strings so independently compiled bundles resolve the same providers. (2026-07-23)

0.2.0

Minor Changes

  • #4194 d39b903 Thanks @dustinbyrne! - Move shared browser utility implementations into @posthog/browser-common and consume them directly from posthog-js. (2026-07-21)

0.1.0

Minor Changes