@posthog/browser-common
0.14.0
Minor Changes
-
#5789
6715a04Thanks @dustinbyrne! - Add local flag property overrides, flag read controls, early-access features andonActiveMatchingSurveysChangedto@posthog/browser, and load its feature flags while capture is opted out asposthog-jsdoes. (2026-11-25) -
#5787
c17ad19Thanks @dustinbyrne! - AddsetConfig()anddebug(), immediate per-event delivery, andgetPageViewId()to@posthog/browser. (2026-11-25)
0.13.1
Patch Changes
0.13.0
Minor Changes
- #5851
54220f6Thanks @ella-c-ph! - Capture the Snapchat click ID assccidwhen the landing URL spells itScCidorSsCid. Whenmask_personal_data_propertiesis on, also maskScCid,SsCidandsscidin captured URLs, including landing URLs stored by older SDK versions. (2026-11-23)
Patch Changes
- Updated dependencies [
54220f6]:- @posthog/types@1.427.1
0.12.2
Patch Changes
- #5829
1c8b544Thanks @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-submitclass instead. (2026-11-20)
0.12.1
Patch Changes
-
#5715
4e53c65Thanks @marandaneto! - Skip autocapture when ancestor privacy checks cannot complete. (2026-11-19) -
#5715
4e53c65Thanks @marandaneto! - Honor autocapture privacy markers across shadow hosts and slots before collecting text and attributes. (2026-11-19) -
#5715
4e53c65Thanks @marandaneto! - Expose a narrow autocapture client type for shared renderer integrations. (2026-11-19)
0.12.0
Minor Changes
- #5693
d8389d7Thanks @marandaneto! - Treat failed flag evaluations as unavailable: NodegetFeatureFlag()/isFeatureEnabled()returnundefined,getAllFlags()omits failed keys, and no failed values or payloads are exposed. (2026-11-15)
Patch Changes
- Updated dependencies [
d8389d7]:- @posthog/core@1.68.0
0.11.0
Minor Changes
- #5640
ec79e8aThanks @dustinbyrne! - Allow shared extensions to declare their host type while retaining the default client contract. (2026-11-13)
0.10.8
Patch Changes
- #5635
fc00120Thanks @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
- #5544
8ddb57fThanks @marandaneto! - Fix tree shaking of unselected extensions and shared utilities when using the slim SDK. (2026-11-05) - Updated dependencies [
8ddb57f]:- @posthog/core@1.63.2
0.10.6
Patch Changes
- #5488
358a77eThanks @gustavohstrassburger! - A$feature_flag_calledevent 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
5764dddThanks @gustavohstrassburger! - Feature flags read before the user opts in to capturing now send$feature_flag_calledwhen 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]:- @posthog/core@1.63.1
0.10.4
Patch Changes
- #5503
89c3a6bThanks @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]:- @posthog/core@1.62.1
0.10.3
Patch Changes
- #5491
aedb488Thanks @marandaneto! - Sanitize survey HTML descriptions while preserving rich text formatting. (2026-11-02)
0.10.2
Patch Changes
- #5341
de6b06fThanks @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
6d12d24Thanks @posthog! - Fall back toMath.randomwhencrypto.getRandomValuesthrows, so UUID generation no longer breaks capture. (2026-10-28)
0.10.0
Minor Changes
- #5269
950d034Thanks @dustinbyrne! - Add$input_valueto autocapturechangeevents for fields markeddata-ph-capture-value, or matched by the newautocapture.capture_value_css_selector_allowlistoption (CSS selectors or an(element) => booleanpredicate). (2026-10-28)
Patch Changes
- Updated dependencies [
950d034]:- @posthog/types@1.418.0
0.9.12
Patch Changes
- #5279
d47c184Thanks @github-actions! - Fix optional rating surveys with response-based branching when skipped. (2026-10-26)
0.9.11
Patch Changes
-
#5346
f91145dThanks @sebxt! - Reject a prefilled survey rating of 0 on rating scales that start at 1. (2026-10-23) -
#5399
02616e1Thanks @ARXHHHH! - Ship the IE11Math.truncandNumber.isIntegerpolyfills only inarray.full.es5.js, so the modern bundles no longer trigger Lighthouse's "Legacy JavaScript" audit. (2026-10-23) -
Updated dependencies [
f827137]:- @posthog/core@1.60.1
0.9.10
Patch Changes
- #5292
d73e6c7Thanks @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 asutm_term=c%2B%2B. (2026-10-23)
0.9.9
Patch Changes
- #4994
bcd33ceThanks @dustinbyrne! - Share autocapture across browser SDKs while preserving existing event capture behavior. (2026-10-22)
0.9.8
Patch Changes
- #5365
964e736Thanks @gustavohstrassburger! - Feature flags read before the user opts in to capturing now send$feature_flag_calledthe next time they are read after opt in. (2026-10-22) - Updated dependencies [
964e736]:- @posthog/core@1.59.4
0.9.7
Patch Changes
- #5273
d9148bbThanks @posthog! - Warn in debug mode whenreloadFeatureFlags()runs inside anonFeatureFlagscallback, because cross-tab flag changes can turn it into a request loop (2026-10-22)
0.9.6
Patch Changes
- #4992
3b7ffc6Thanks @dustinbyrne! - Share surveys across browser SDKs; calls togetSurveysbefore 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
09d4ba2Thanks @rafaeelaudibert! - Capture the Freebuff click identifier (bfcid) as a campaign parameter, so it is set on events and as$initial_bfcidlike every other ad click ID. (2026-10-14) - Updated dependencies [
09d4ba2]:- @posthog/core@1.59.1
0.9.4
Patch Changes
- #4990
a66cadaThanks @dustinbyrne! - Share browser logging across SDKs with consistent initialization and cleanup;captureLogandloggercalls before logging setup are now dropped instead of buffered. (2026-10-09)
0.9.3
Patch Changes
- #5245
76b4402Thanks @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
730d92bThanks @posthog! - Stop carousel and pager arrow controls from capturing false$rageclickevents. The rageclick content ignorelist, active from the2025-11-30config 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 orcursor: pointerwrapper), 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 oraria-labelwins over an icon'saria-labelinside it, so clicking the icon and clicking the text agree. Setrageclick: { content_ignorelist: false }to keep capturing these events. (2026-10-06) - Updated dependencies [
730d92b]:- @posthog/types@1.415.1
0.9.1
Patch Changes
- #5046
c360da1Thanks @luke-belton! - Capture the OpenAI Ads click identifier (oppref) as a campaign parameter, so it is set on events and as$initial_oppreflike every other ad click ID. (2026-10-01) - Updated dependencies [
c360da1]:- @posthog/core@1.55.3
0.9.0
Minor Changes
- #4675
2828b6bThanks @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
- #4899
18ae6bbThanks @marandaneto! - Share the trySafe utility through @posthog/core. (2026-09-11) - Updated dependencies [
18ae6bb]:- @posthog/core@1.53.2
0.8.2
Patch Changes
- #4803
87b34afThanks @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
988f03aThanks @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
3a5b322Thanks @marandaneto! - Add best-effort in-app browser attribution using$webview_appand$webview_app_version, without changing existing$browseror$browser_versionvalues. 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
- Updated dependencies [
3a5b322]:- @posthog/core@1.51.0
0.7.3
Patch Changes
- #4814
21dcebdThanks @posthog! - Prevent invalid clock values from breaking UUID generation and continue capturing replay chunks after a chunk fails. (2026-09-07) - Updated dependencies [
74ca945,5e74132]:- @posthog/core@1.50.6
- @posthog/types@1.409.1
0.7.2
Patch Changes
- #4732
f00e24dThanks @posthog! - PolyfillArray.prototype.findLastin 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]:- @posthog/core@1.50.4
0.7.1
Patch Changes
- #4683
6309cb2Thanks @posthog! - Harden the directly importablegetElementsChainStringutility against runtime JavaScript callers that pass a non-array value. It now returns an empty string instead of calling.mapon malformed input. (2026-09-01) - Updated dependencies [
444bf35,6ae173f,6723395]:- @posthog/core@1.50.0
0.7.0
Minor Changes
- #4378
a895e7eThanks @dustinbyrne! - Add a direct pubsub export, isolate publisher listener failures, and make disposal terminal. (2026-08-28)
0.6.2
Patch Changes
- #4669
d0279e5Thanks @posthog! - Autocapture no longer throws aRangeErrorinto the host page when it sorts element attributes. It now sorts attribute keys with a plain lexical comparator instead oflocaleCompare, which can throw on browsers with faulty ICU data. (2026-08-28)
0.6.1
Patch Changes
- #4636
74ff567Thanks @yfwmaniish! - Narrow thepinterestentry in the bot-detection blocklist topinterestbot, so real users on Pinterest's in-app browser (whose UA also contains the substringpinterest) are no longer misclassified as bots and silently excluded from analytics. The crawler's other UA variant remains covered by the existing genericbot.htmentry, so no bot-detection coverage is lost. (2026-08-27) - Updated dependencies [
74ff567]:- @posthog/core@1.49.1
0.6.0
Minor Changes
- #4592
ca540f9Thanks @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
- #4533
53fcb2dThanks @dustinbyrne! - Expose host capture permission to browser extensions. (2026-08-25) - Updated dependencies [
ed4dd97]:- @posthog/types@1.406.1
0.5.2
Patch Changes
- #4611
d4eee8fThanks @marandaneto! - Share survey property matching between the browser and React Native SDKs while preserving their existing missing-value behavior. (2026-08-25) - Updated dependencies [
930de19,d4eee8f]:- @posthog/core@1.48.11
0.5.1
Patch Changes
- #4532
60ee0acThanks @dustinbyrne! - Migrate surveys to the shared browser extension lifecycle. (2026-08-24)
0.5.0
Minor Changes
- #4316
f999394Thanks @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
2da12b8Thanks @posthog! - Add attribute-level masking to session replay:maskAttributeFnprovides per-attribute control over the final serialized value, whilemaskAllElementAttributesmasks all source DOM string attributes (including rendering attributes and synthesized form values) at the cost of replay fidelity. (2026-08-05)
Patch Changes
- Updated dependencies [
2da12b8]:- @posthog/types@1.402.0
0.3.1
Patch Changes
- #4340
4b8867cThanks @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
6b48a59Thanks @dustinbyrne! - Stream replayable remote config outcomes through shared browser extension clients. (2026-07-31)
0.2.5
Patch Changes
- #4325
3bd8a2dThanks @marandaneto! - Fix dead-click false positives on WebKit when the SDK uses an iframe-sourced MutationObserver fallback. (2026-07-30) - Updated dependencies [
3bd8a2d]:- @posthog/core@1.45.3
0.2.4
Patch Changes
-
#4284
fbd457fThanks @dustinbyrne! - Reduce extension runtime and contract overhead by replacing theCoreExtensionand capability-token registry with one host-providedClient. Extensions now access analytics, identity, session, events, remote config, transport, persistence, and logging directly from that client.Cross-extension
getExtension/provideslookup 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
2551b08Thanks @dustinbyrne! - Replace the extension clientapiRequestbridge withsendRequest, exposing the public project token and caller-directed request targets, headers, and browser transports. (2026-07-27)
0.2.2
Patch Changes
- #4240
7210789Thanks @dustinbyrne! - Add the shared extension runtime andCoreExtensioncapability 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 tosetfollow host-native storage semantics; useremoveto delete a key. (2026-07-27)
0.2.1
Patch Changes
- #4225
4bf533aThanks @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
d39b903Thanks @dustinbyrne! - Move shared browser utility implementations into@posthog/browser-commonand consume them directly fromposthog-js. (2026-07-21)
0.1.0
Minor Changes
- #4190
7b8a11cThanks @dustinbyrne! - Initial publish (2026-07-17)