posthog-js
1.454.7
Patch Changes
- #5864
b3ce2a8Thanks @joaohenriquesfr! - Add the private__preview_replay_early_fetch_responseoption, which stops Session Replay from holding back streamed fetch responses while it records their body. In WebKit, a request aborted while its body is being read then rejects with aTypeErrorinstead of anAbortError. (2026-11-25) - Updated dependencies [
b3ce2a8]:- @posthog/types@1.427.2
1.454.6
Patch Changes
- #5849
b9be6b0Thanks @yoarajota! - Request URLs keep query values that contain=, query keys without a value, and the URL fragment when the SDK addscompression,retry_countor timestamp params. ArewriteRequestPathURL ending in?sig=abc==was sent as?sig=abc, and?debugwas sent as?debug=undefined. (2026-11-25)
1.454.5
Patch Changes
-
#5789
6715a04Thanks @dustinbyrne! - Stop feature flag reloads requested from reloading listeners from recursing. (2026-11-25) -
#5787
c17ad19Thanks @dustinbyrne! - Honordelivery: 'immediate'from shared browser extensions assend_instantly. (2026-11-25) -
Updated dependencies [
6715a04,c17ad19]:- @posthog/browser-common@0.14.0
1.454.4
Patch Changes
-
#5742
fa50a00Thanks @pauldambra! - Stop session replay recording the contents of an iframe that is blocked with the block class or block selector. (2026-11-24) -
#5858
9d28601Thanks @dustinbyrne! - Preserve campaign and referrer properties whencookieWinsOnConflictadopts a shared cross-subdomain cookie (2026-11-24) -
#5805
e4d5c4fThanks @dustinbyrne! - Tracing headers no longer break an app's request when the distinct ID cannot be sent as a header value: the request goes out without the PostHog tracing headers, and afetch(Request)keeps its body. (2026-11-24)
1.454.3
Patch Changes
- #5744
962bf43Thanks @pauldambra! - Stop session replay recording play, pause and other media events that a page dispatches on elements that are not audio or video. (2026-11-24)
1.454.2
Patch Changes
- #5857
2f8247dThanks @slshults! - Updated DOMPurify from 3.4.13 to 3.4.18. (2026-11-23) - Updated dependencies [
2f8247d]:- @posthog/browser-common@0.13.1
1.454.1
Patch Changes
- #5833
8140a3aThanks @jakesciotto! - Stop heatmaps and dead clicks from sending interactions that happened while capturing was off, such as clicks before the visitor consented. (2026-11-23)
1.454.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/browser-common@0.13.0
- @posthog/types@1.427.1
1.453.3
Patch Changes
- #5797
7f9920aThanks @ioannisj! - Stop sending replay debug properties on events captured while session replay is off (2026-11-23)
1.453.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) - Updated dependencies [
1c8b544]:- @posthog/browser-common@0.12.2
1.453.1
Patch Changes
-
#5830
895636bThanks @marandaneto! - Only attach the queue-size debug property while the queue is backed up:$sdk_debug_retry_queue_sizeon web when requests are waiting to be retried, and$sdk_debug_pending_queue_sizeon React Native once the queue reachesflushAt(2026-11-20) -
#5824
363fe3aThanks @marandaneto! - Only register$sdk_debug_extensions_init_methodand$sdk_debug_extensions_init_time_mswhen extensions were loaded and their initialization took measurable time. (2026-11-20)
1.453.0
Minor Changes
- #5709
1016d81Thanks @marandaneto! - Add an explicit per-select session replay masking policy. (2026-11-19)
Patch Changes
- #5820
2cdc70cThanks @TueHaulund! - fix: reduce main-thread work when validating native gzip output (2026-11-19) - Updated dependencies [
1016d81,2cdc70c]:- @posthog/types@1.427.0
- @posthog/core@1.69.2
1.452.0
Minor Changes
- #5766
6680554Thanks @marandaneto! - Add opt-inrequire_subresource_integrityto verify lazy-loaded extension scripts against SHA-384 hashes built into the trusted SDK bundle; it disables site apps and the toolbar and doesn't cover the initial loader unless pinned, third-party widgets or a malicious release with valid hashes. (2026-11-19)
Patch Changes
- Updated dependencies [
6680554]:- @posthog/types@1.426.0
1.451.3
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) -
Updated dependencies [
4e53c65,4e53c65,4e53c65]:- @posthog/browser-common@0.12.1
1.451.2
Patch Changes
- #5774
58bf16fThanks @DanielVisca! - Stop including the first dropped event's name in the console warning shown when the bot user agent filter drops events (2026-11-18)
1.451.1
Patch Changes
- #5798
4c9fcafThanks @turnipdabeets! - Fixed requests being blocked by web application firewalls running the OWASP Core Rule Set (ModSecurity and others) for visitors whose session was sampled out of session replay. Theph_<token>_posthogcookie stored that decision with a!prefix that rule 942190 flags as SQL injection. The decision now uses a plain letter, and this version removes old!values from the cookie on the next page load, whether or not replay starts on that page. Versions before 1.417.0 that load the unversioned recorder from the PostHog CDN stop writing new!values without upgrading, but only replace old ones on pages where the recorder loads. (2026-11-18)
1.451.0
Minor Changes
-
#5765
91537b4Thanks @marandaneto! - Load remote config as JSON withfetchinstead of executableconfig.jswhen site apps are disabled (the default). The SDK no longer falls back toconfig.jswhen the JSON request fails.Action may be required if you use a Content Security Policy without a reverse proxy: remote config is now fetched from the assets host, so
connect-srcmust allow it, not onlyscript-src. Addhttps://us-assets.i.posthog.com(US),https://eu-assets.i.posthog.com(EU), orhttps://*.posthog.comtoconnect-src. Otherwise remote config fails to load, so features such as session recording, surveys, and autocapture use their default or saved settings. Feature flags are unaffected. Sites using a reverse proxy, no CSP, oropt_in_site_apps: trueneed no change. (2026-11-18)
1.450.1
Patch Changes
- #5735
ea89609Thanks @ioannisj! - Send base64 beacon bodies as baretext/plainso/i/v0/e/accepts page-unload events when gzip compression is disabled or unavailable (2026-11-17)
1.450.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
- @posthog/browser-common@0.12.0
1.449.2
Patch Changes
- #5737
9852049Thanks @TueHaulund! - record: throttle scroll events per element, so a resting scroll offset is no longer dropped when another element scrolls in the same 100ms window (e.g. Silk sheets on Safari before 26.2, which has noscrollend). (2026-11-14)
1.449.1
Patch Changes
- Updated dependencies [
ec79e8a]:- @posthog/browser-common@0.11.0
1.449.0
Minor Changes
- #5721
6cebc6cThanks @haacked! - When the experimentalmetrics.flagsoption is on, the browser SDK splits each/flagsattempt that gets a response into three histograms with the same attributes asposthog.flags.request.duration.posthog.flags.request.pre_send_durationruns from dispatch until the request starts, which includes body compression.posthog.flags.request.network_durationruns from the request start until the last byte of the response arrives, taken from the request's Resource Timing entry.posthog.flags.request.main_thread_durationruns from that last byte until the SDK's callback runs, which includes reading and parsing the response body. The three add up to the total. An attempt records them only when the browser reports its Resource Timing entry within 5 seconds of the callback and that entry can't belong to another/flagsrequest that this copy of the SDK sends to the same URL, so it may record the total without them.posthog.flags.request.durationis unchanged. The option, the metric names, and their attributes may change or be removed in any release. (2026-11-13)
Patch Changes
- Updated dependencies [
6cebc6c]:- @posthog/types@1.425.1
1.448.0
Minor Changes
- #5675
6af1863Thanks @DanielVisca! - Addtrace_propagation_targets: an opt-in allowlist of hostnames or origins that receive a W3Ctraceparentheader onfetchandXMLHttpRequestrequests, so backend traces can continue from the browser. Unlisted hosts never get the header, and atraceparentset by the app or by OpenTelemetry instrumentation is never overwritten or duplicated. (2026-11-13)
Patch Changes
- Updated dependencies [
6af1863]:- @posthog/types@1.425.0
1.447.15
Patch Changes
- #5670
753e5bfThanks @marandaneto! - Fix dropdown selection masking without changing custom multiselect behavior. (2026-11-12)
1.447.14
Patch Changes
- #5618
f2af66fThanks @marandaneto! - Fix dropdown replay updates and blocked-value leaks, and preserve custom mask passthrough. (2026-11-12)
1.447.13
Patch Changes
-
#5685
d669687Thanks @DanielVisca! - fix(metrics): export browser metrics once a minute by default instead of every 10 seconds. Every tab of an app writes to the same series, so busy series exceeded the backend's per-series point limit and were undercounted. An explicitmetrics.flushIntervalMsstill wins. (2026-11-12) -
#5686
9e97237Thanks @DanielVisca! - fix(metrics):metrics.networkno longer records server-sent event streams. Atext/event-streamresponse stays open for as long as the page listens, so it was timed as a request lasting minutes and pinned the duration percentiles to the top bucket. (2026-11-12) -
#5687
fbadce0Thanks @miguel-heygen! - Session replay: in browsers that cannot encode WebP (Safari), send opaque canvas frames as JPEG at the configured quality instead of the lossless PNG the browser falls back to (2026-11-12) -
#5677
14e5893Thanks @DanielVisca! - chore(browser): remove an unused_botFilterWarnedfield that was declared on the internalDeprecatedWebPerformanceObserverclass (2026-11-12) -
Updated dependencies [
d669687,9e97237]:- @posthog/types@1.424.1
1.447.12
Patch Changes
- #5444
a07707bThanks @brandonweeks! - Let bundlers tree-shake the slim build's extension bundles, so an app keeps only the bundles it imports. (2026-11-11)
1.447.11
Patch Changes
- #5663
d6dbd3aThanks @rafaeelaudibert! - AddimageUrlto theEarlyAccessFeaturetype (2026-11-11) - Updated dependencies [
d6dbd3a]:- @posthog/types@1.424.0
1.447.10
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) - Updated dependencies [
fc00120]:- @posthog/browser-common@0.10.8
1.447.9
Patch Changes
- #5647
a95d952Thanks @zocario! - fix(replay): full snapshots no longer force the layout ofcontent-visibilitycontent the browser skips (2026-11-10)
1.447.8
Patch Changes
-
#5619
8006468Thanks @marandaneto! - Preserve observed CSS-variable shorthands across full session replay snapshots, including uninterrupted session rotations. (2026-11-10) -
#5644
145fb45Thanks @RoderickQiu! - Warn once in debug mode when history-based pageviews are explicitly configured without the required history autocapture extension. (2026-11-10)
1.447.7
Patch Changes
- #5595
b5e9b69Thanks @DanielVisca! - Warn once in the console, even outside debug mode, when the bot user agent filter drops events, and document thatcaptureLoglogs bypass the filter. (2026-11-10) - Updated dependencies [
b5e9b69,fee9bee]:- @posthog/types@1.423.0
- @posthog/core@1.66.0
1.447.6
Patch Changes
- #5617
b20c48dThanks @marandaneto! - Fix session recording errors when adopted stylesheets are locked by another script. (2026-11-09)
1.447.5
Patch Changes
-
#5559
9fe341dThanks @adityareddy-dev! - Continue replaying mutation batches when a removal has the wrong parent or an addition targets a leaf node. (2026-11-09) -
#5610
eaab1fcThanks @posthog! - Fix session replay failing to rebuild a snapshot when the replay document already has a root element (2026-11-09) -
#5546
21bd08eThanks @adityareddy-dev! - Collapse buffered text changes to the final value per node and simplify attribute mutation storage. (2026-11-09)
1.447.4
Patch Changes
- #5433
7ceaa14Thanks @ioannisj! - Stop parsing the persistence entry on every capture() to refresh the Meta $fbc and $fbp identifiers; capture() now compares the stored text and only parses it when a sibling tab or subdomain changed it. (2026-11-09)
1.447.3
Patch Changes
- #5562
8e042cbThanks @adityareddy-dev! - Preserve non-empty CDATA content with text masking and rebuild it as text in HTML documents. (2026-11-06)
1.447.2
Patch Changes
- #5561
ab49034Thanks @adityareddy-dev! - Mask hidden input values in session replay whenmaskAllInputsis enabled, and accepthiddeninmaskInputOptions. (2026-11-06) - Updated dependencies [
ab49034]:- @posthog/types@1.421.1
1.447.1
Patch Changes
- #5576
9ee327dThanks @lucasheriques! - Reworded the description of thellm_modelargument thatcapture_webmcpadds to WebMCP tools, so it no longer points the model at its system prompt. (2026-11-05)
1.447.0
Minor Changes
- #5580
aa66d4cThanks @haacked! -metrics.histogram()accepts aboundsoption that sets the histogram's bucket boundaries, andbeforeSendsees and can change them. The first sample of a histogram (name and unit) fixes its bounds until the client resets. A later sample with different bounds is recorded in the fixed buckets and logs a warning, and a sample with invalid bounds is dropped. The experimentalposthog.flags.request.durationhistogram now uses the bounds[50, 75, 100, 150, 200, 300, 400, 500, 750, 1000, 1500, 2000, 3000, 5000, 10000]ms, so its p50 and p95 resolve between 50ms and 5s. This changes the metric's buckets, which its experimental status allows. (2026-11-05)
Patch Changes
- Updated dependencies [
aa66d4c]:- @posthog/core@1.64.0
- @posthog/types@1.421.0
1.446.3
Patch Changes
- #5560
e22dedbThanks @adityareddy-dev! - Use native sibling accessors when recording insertion positions so patched DOM getters do not reorder replayed nodes. (2026-11-05)
1.446.2
Patch Changes
- #5542
7be658cThanks @adityareddy-dev! - Avoid duplicate same-origin iframe observers after full snapshots during session recording. (2026-11-05)
1.446.1
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
- @posthog/browser-common@0.10.7
1.446.0
Minor Changes
- #5547
742f73fThanks @haacked! - Add the experimentalmetrics.flagsoption. When it is on, the browser SDK records the round trip of every/flagsHTTP attempt as the histogramposthog.flags.request.duration, with the server host, the response status or error type, and the browser's timezone as attributes. The option, the metric name, and its attributes may change or be removed in any release. (2026-11-04)
Patch Changes
- #5547
742f73fThanks @haacked! -posthog.metricsdrops a counter, gauge, or histogram recorded afterposthog.shutdown(). A late sample no longer restarts the metrics flush timer. (2026-11-04) - Updated dependencies [
742f73f]:- @posthog/types@1.420.0
1.445.6
Patch Changes
- #5548
24917f0Thanks @haacked! - The XHR transport now reports a timed-out request as{ statusCode: 0, error }with a namedAbortError, as the fetch transport does. Feature flag requests sent over XHR now retry on timeout and record atimeoutflag error. (2026-11-04)
1.445.5
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) - Updated dependencies [
358a77e]:- @posthog/browser-common@0.10.6
1.445.4
Patch Changes
-
#5541
13457bdThanks @adityareddy-dev! - Preserve CSS URL fragments when resolving relative paths in session recordings. (2026-11-04) -
#5543
720059dThanks @veryayskiy! - skip the support widget's initial ticket list request for new anonymous visitors (2026-11-04)
1.445.3
Patch Changes
- #5521
a265612Thanks @phillram! - Web experiments that run on a feature flag now honor each variant's URL conditions, so a variant only changes the pages it targets. (2026-11-04)
1.445.2
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/browser-common@0.10.5
- @posthog/core@1.63.1
1.445.1
Patch Changes
- #5504
7e023a2Thanks @seandph! - fix:opt_in_capturing()now captures the$opt_inevent (or the customcaptureEventName) only when the user was not already opted in. Consent tools often re-apply stored consent on every page load, which sent one billed$opt_inevent per page. Opting out and back in, or callingreset()first, still captures it. (2026-11-03)
1.445.0
Minor Changes
- #5494
b033b8cThanks @marandaneto! - Add release integrity manifests and customer-pinned core integrity support to the static loader. (2026-11-03)
1.444.4
Patch Changes
-
#5492
84a5277Thanks @marandaneto! - Sanitize web experiment HTML transforms; unsupported tags and attributes are now removed. (2026-11-02) -
#5505
3fbb667Thanks @majicmaj! - Recognize self-declared Lightpanda headless browsers in bot detection. (2026-11-02) -
#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,89c3a6b]:- @posthog/core@1.62.1
- @posthog/browser-common@0.10.4
1.444.3
Patch Changes
-
#5493
5e872e1Thanks @marandaneto! - Respect external script loading policies when reusing scripts or inserting deferred dependencies. (2026-11-02) -
#5491
aedb488Thanks @marandaneto! - Sanitize survey HTML descriptions while preserving rich text formatting. (2026-11-02) -
Updated dependencies [
aedb488]:- @posthog/browser-common@0.10.3
1.444.2
Patch Changes
- #5512
bc6b54cThanks @robbie-c! - Fix session replay keeping a stylesheet's old CSS when a<link>changes to a sheet the recorder cannot read (2026-11-02)
1.444.1
Patch Changes
- #5490
0bf0316Thanks @robbie-c! - Fix session replay missing stylesheets that load after 5 seconds or after a<link>changes itsrelorhref(2026-11-02)
1.444.0
Minor Changes
- #5480
9bd0e80Thanks @veryayskiy! - Add support widget theming:conversations.themeinit option,posthog.conversations.setTheme(), dark mode, and--ph-conv-*CSS custom properties (2026-10-30)
Patch Changes
- Updated dependencies [
9bd0e80]:- @posthog/types@1.419.0
1.443.0
Minor Changes
- #5470
41ae7fdThanks @marandaneto! - Add a nonblocking local bootstrap with early-call queuing, and make hosted and local loaders honor the selected latest, major, or exact-version SDK namespace. (2026-10-30)
1.442.1
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) - Updated dependencies [
de6b06f]:- @posthog/browser-common@0.10.2
1.442.0
Minor Changes
- #5467
afde45eThanks @veryayskiy! - Addposthog.conversations.open()andposthog.conversations.close()to open and close the support chat panel (2026-10-29)
1.441.2
Patch Changes
- #5421
34833f2Thanks @frostfire575! - Session replay releases a removed shadow DOM host as soon as it leaves the page, instead of keeping it and its detached subtree in memory until the next full snapshot. (2026-10-28)
1.441.1
Patch Changes
- #5222
6d12d24Thanks @posthog! - Fall back toMath.randomwhencrypto.getRandomValuesthrows, so UUID generation no longer breaks capture. (2026-10-28) - Updated dependencies [
6d12d24]:- @posthog/browser-common@0.10.1
1.441.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/browser-common@0.10.0
- @posthog/types@1.418.0
1.440.0
Minor Changes
- #5406
285d874Thanks @marandaneto! - Add a single-tag browser SDK loader with URL or attribute tokens and optional deferred initialization. (2026-10-27)
Patch Changes
- Updated dependencies [
96d7ff2]:- @posthog/core@1.61.1
1.439.2
Patch Changes
- #5427
8a9a066Thanks @posthog! - Fix stale identity when restoring a page from the back-forward cache (2026-10-27)
1.439.1
Patch Changes
-
#5244
52c84e2Thanks @61465! - Port upstream rrweb #1652 into the vendored MutationBuffer to fix a 9–10 s session-replay main-thread freeze when a single render mounts many sibling nodes (e.g. a 50 × 35 table at ~13 000 nodes). The pre-fixaddList-based drain tail-rescanned every pass and ran in O(n²); the new drain iteratesaddedSetin topological order usingdom.previousSibling/dom.lastChild/dom.nextSiblingand runs in O(n). Fixes #5227.The walk-up loop treats a
ShadowRootparent as its shadow host for ancestry checks so shadow children of a moved host are never serialized before the host itself.@posthog/rrweb-utilspicks up three new untainted-prototype accessors (previousSibling,nextSibling,lastChild) that the drain depends on. Nodes that still can't resolve a parent at emission time are counted and reported in one summaryconsole.warnper emission, so a dropped subtree doesn't cascade through the replay via the console-record plugin. (2026-10-27)
1.439.0
Minor Changes
- #5405
3150079Thanks @marandaneto! - Adddefaults: 'latest'to follow the newest defaults and report the applied date in events. (2026-10-27)
Patch Changes
- Updated dependencies [
3150079]:- @posthog/types@1.417.0
1.438.24
Patch Changes
- #5279
d47c184Thanks @github-actions! - Fix optional rating surveys with response-based branching when skipped. (2026-10-26) - Updated dependencies [
d47c184]:- @posthog/browser-common@0.9.12
1.438.23
Patch Changes
- #5335
cb34fe0Thanks @hpouillot! - Enable synchronous session replay fetch capture by default for new SDK versions. (2026-10-26) - Updated dependencies [
cb34fe0]:- @posthog/types@1.416.1
1.438.22
Patch Changes
- #5429
1034948Thanks @pauldambra! - fix(browser): stop parsing the whole persistence entry on every capture() to refresh Meta identifiers. This made Interaction to Next Paint slower since 1.426.0, most of all on mobile and for projects with many feature flags. (2026-10-26)
1.438.21
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,f91145d,02616e1]:- @posthog/core@1.60.1
- @posthog/browser-common@0.9.11
1.438.20
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) - Updated dependencies [
d73e6c7]:- @posthog/browser-common@0.9.10
1.438.19
Patch Changes
- #4994
bcd33ceThanks @dustinbyrne! - Share autocapture across browser SDKs while preserving existing event capture behavior. (2026-10-22) - Updated dependencies [
bcd33ce]:- @posthog/browser-common@0.9.9
1.438.18
Patch Changes
-
#5189
2aacdcbThanks @posthog! - Log whycapture()dropped an event (capturing disabled or a bot user agent) whendebug: trueis set (2026-10-22) -
#5383
0faf643Thanks @sarankumar1325! - Conversations: the widget now comes back afterreset(), and after a cookieless (on_reject) visitor callsopt_in_capturing(), instead of staying unavailable until the next page load. (2026-10-22)
1.438.17
Patch Changes
-
#5367
23b287fThanks @sarankumar1325! - Session replay records mouse movement inside same-origin iframes as mouse movement instead of touch movement, so the replay cursor stays visible. (2026-10-22) -
#5348
45f6cd6Thanks @ayushjhanwar-png! - Keep session replay data URI filtering output valid JSON and match svg+xml and parameterised data URIs. (2026-10-22) -
#5325
21a2559Thanks @Majny! - Session replay no longer installs the network plugin when the client setssession_recording.recordHeadersandrecordBodytofalseand turns network timing off, even if the project enables network payload capture. Previously request URLs and timings were still recorded. (2026-10-22)
1.438.16
Patch Changes
-
#5370
a50fa7aThanks @sarankumar1325! - Conversations: areset()or opt-out that happens while the widget is still loading its tickets (or a restore link) no longer brings the widget back, restarts polling, or writes the old ticket id back to storage. (2026-10-22) -
#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) -
#5256
e7c87faThanks @jakesciotto! - Session replay: a scroll on ascroll-snap-typecontainer now lands instantly during real-time playback, so a sheet or carousel that a scroll reveals shows the same content in Safari as in Chrome. Scrolls on other elements still animate. (2026-10-22) -
Updated dependencies [
964e736]:- @posthog/browser-common@0.9.8
- @posthog/core@1.59.4
1.438.15
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) - Updated dependencies [
d9148bb]:- @posthog/browser-common@0.9.7
1.438.14
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) - Updated dependencies [
3b7ffc6]:- @posthog/browser-common@0.9.6
1.438.13
Patch Changes
- #5322
5beb414Thanks @AyobamiH! - Flush buffered web vitals immediately using a beacon when the page is hidden or unloaded. (2026-10-20)
1.438.12
Patch Changes
- #5298
e940c92Thanks @github-actions! - Prevent backward device clock changes from subtracting client rate-limit tokens. (2026-10-15)
1.438.11
Patch Changes
- #5260
845bf99Thanks @gesh! - Capture WebMCP failures in Error Tracking when exception autocapture is enabled. Withposthog-js/slim, addErrorTrackingExtensionsnext toWebMCPExtensionsto get these events. (2026-10-15)
1.438.10
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/browser-common@0.9.5
- @posthog/core@1.59.1
1.438.9
Patch Changes
- #5281
8f2d581Thanks @marandaneto! - Fixbefore_sendcallback types to accept non-null events while still allowingnullreturns to drop events. (2026-10-12) - Updated dependencies [
8f2d581]:- @posthog/types@1.415.3
- @posthog/core@1.58.1
1.438.8
Patch Changes
1.438.7
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) - Updated dependencies [
a66cada]:- @posthog/browser-common@0.9.4
1.438.6
Patch Changes
-
#5218
8bc2df6Thanks @lucasheriques! - Skip WebMCP intent and model injection for schemas with constraints that the extra fields could break. (2026-10-09) -
#5217
6af3aa8Thanks @lucasheriques! - ExportWebMCPExtensionsfrom the slimextension-bundlesentry point. (2026-10-09)
1.438.5
Patch Changes
- #5258
429b5b2Thanks @hpouillot! - Recognize native bundler debug IDs and build-time error tracking release IDs. (2026-10-09) - Updated dependencies [
429b5b2]:- @posthog/core@1.57.4
1.438.4
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) - Updated dependencies [
76b4402]:- @posthog/browser-common@0.9.3
1.438.3
Patch Changes
- #5200
34cdfa6Thanks @hpouillot! - fix(replay): add a private opt-in to preserve application stacks for failed fetch requests (2026-10-08) - Updated dependencies [
34cdfa6]:- @posthog/types@1.415.2
1.438.2
Patch Changes
- #4988
22dfa4aThanks @dustinbyrne! - Share feature flag functionality across browser SDKs while preserving existing behavior. (2026-10-07) - Updated dependencies [
ff7582a]:- @posthog/core@1.57.1
1.438.1
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/browser-common@0.9.2
- @posthog/types@1.415.1
1.438.0
Minor Changes
- #5191
6cd5496Thanks @gesh! - Capture WebMCP tool intent and model metadata by default. (2026-10-06)
Patch Changes
- Updated dependencies [
6cd5496]:- @posthog/types@1.415.0
- @posthog/core@1.57.0
1.437.0
Minor Changes
Patch Changes
- Updated dependencies [
6af4c59]:- @posthog/types@1.414.0
1.436.1
Patch Changes
- #5203
633f5b2Thanks @marandaneto! - Restore batching for events carrying pending Meta$fbcor$fbpidentifiers to reduce races with precedingidentify()calls. (2026-10-05)
1.436.0
Minor Changes
- #5083
d576becThanks @61465! - Opt-in WebView bot heuristic for #2921.posthog-js/customizationsexports a newisLikelyWebViewBot(ua)helper that flags the UA pattern described in #2921 (aChrome/...token without the usualAppleWebKit/*+Safari/*co-markers that real Chrome always sends). Wire it intobefore_sendto tag or drop the matching events — seeisLikelyWebViewBotJSDoc for a usage example. Default SDK behaviour is unchanged; the helper is tree-shaken out unless you import it.@posthog/corekeepsisBlockedUAandDEFAULT_BLOCKED_UA_STRSbyte-for-byte compatible, and gains session-level memoisation ofisBlockedUAresults keyed on(ua, customBlockedUserAgents), so repeat calls within the same session are O(1). (2026-10-05)
Patch Changes
- Updated dependencies [
d576bec]:- @posthog/core@1.56.0
1.435.9
Patch Changes
- #5150
abe2924Thanks @DeepanshuPal! - Stop a SecurityError escaping the recorder when an iframe becomes cross-origin while shadow DOM observation starts. (2026-10-05)
1.435.8
Patch Changes
- #5152
2bdc8ebThanks @rafaeelaudibert! - Use the new PostHog logo in the survey footer branding (2026-10-02)
1.435.7
Patch Changes
- #5188
8a005caThanks @dustinbyrne! - Preserve shared identity while consent is pending and clear it after shared rejection in cookieless mode. (2026-10-02)
1.435.6
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) -
#5175
c21f14dThanks @marandaneto! - Fix cross-subdomain identity continuity when opting in after cookie consent. (2026-10-01) -
Updated dependencies [
c360da1]:- @posthog/browser-common@0.9.1
- @posthog/core@1.55.3
1.435.5
Patch Changes
- #5167
59b93a3Thanks @dustinbyrne! - Preserve session attribution and registered properties across initialization and configuration updates when persistence writes are debounced. (2026-09-30)
1.435.4
Patch Changes
- #5158
5c92e83Thanks @posthog! - Fix aDataCloneErrorwhen session replay records network timing inside a cross-origin iframe. (2026-09-30)
1.435.3
Patch Changes
- #4976
47db7ceThanks @posthog! - Start session recording atDOMContentLoaded, so a page whoseloadevent is late or never fires still records, and report$sdk_debug_rrweb_attachedfrom rrweb's own recording state (2026-09-30)
1.435.2
Patch Changes
- #5144
bd66ceeThanks @marandaneto! - Reduce replay debug properties on captured events while preserving recording status and capture diagnostics. Report cumulative mutation-drop counts and dropped bytes on$snapshotevents only when greater than zero. (2026-09-30)
1.435.1
Patch Changes
- #5120
5929eabThanks @breken-ai! - PostHogFeature withoutmatchshows the fallback when the flag evaluates to false. (2026-09-29)
1.435.0
Minor Changes
- #4794
e89d224Thanks @AyobamiH! - AddonActiveMatchingSurveysChangedto subscribe to survey eligibility updates with safe unsubscribe and recoverable load-error reporting. (2026-09-29)
Patch Changes
- Updated dependencies [
e89d224]:- @posthog/types@1.413.0
1.434.18
Patch Changes
-
#5125
69a55c0Thanks @marandaneto! - Prevent analytics persistence writes during initialization when persistence is disabled or opted out. (2026-09-29) -
#5133
fbf3990Thanks @marandaneto! - Isolate replay network masking callback errors so unrelated network records continue to be captured. (2026-09-29) -
#5126
5775575Thanks @marandaneto! - Preserve equals signs in survey URL prefill values and ignore malformed URL parameters without blocking surveys. (2026-09-29)
1.434.17
Patch Changes
-
#5063
799e84cThanks @arnohillen! - fix(replay): keep a held recording epoch's buffered data when it hits the size cap (2026-09-28) -
#5118
3212630Thanks @TueHaulund! - fix(replay): keep CSS-in-JS styles after a large DOM change in the page head (2026-09-28)
1.434.16
Patch Changes
- #5127
d48c783Thanks @marandaneto! - Honor the modern replay network masking callback when both modern and deprecated hooks are configured. (2026-09-28)
1.434.15
Patch Changes
- #5115
8531e40Thanks @turnipdabeets! - Fix SPA$pageviewevents frompushState/replaceStatenavigations carrying the previous page'stitle(2026-09-26)
1.434.14
Patch Changes
- #5097
ae954abThanks @turnipdabeets! - FixuseThumbSurveyfrom@posthog/react/surveysandposthog-js/react/surveysignoring the client passed toPostHogProvider, which left it capturing no survey events. (2026-09-25)
1.434.13
Patch Changes
- #5098
a7250f0Thanks @Piccirello! - Replay loads a recorded font under the replay iframe's content security policy, not the embedding page's. (2026-09-24)
1.434.12
Patch Changes
- #5073
60bd968Thanks @ksvat! - The replayer no longer freezes the tab on a mutation that adds tens of thousands of nodes at once. It now applies a batch of 1,000 or more adds against a detached subtree, so the document updates style and layout once instead of per insert. A recorded batch of 25,746 style elements went from 92 seconds of blocked main thread to 1.5 seconds. (2026-09-23)
1.434.11
Patch Changes
- #5051
1549919Thanks @DeepanshuPal! - Avoid cross-domain cookie probes when cross-subdomain cookies are disabled. (2026-09-23)
1.434.10
Patch Changes
- #5060
a9c40ecThanks @marandaneto! - Fix SDK initialization when a script loader pre-creates window.posthog as a placeholder object. (2026-09-23)
1.434.9
Patch Changes
- #4970
708a5f7Thanks @Christian2702! - Session replay no longer defers its input setter hooks on zone.js's patchedsetTimeout. In Angular apps each of those timers ended a zone task and triggered another change detection, so any component writing an input property on every cycle drove the tab into an endless loop at 100% CPU. (2026-09-22)
1.434.8
Patch Changes
-
#5054
36f356dThanks @posthog! - fix(dead-clicks): survive a denied property access in FirefoxFirefox denies property access on a DOM node from another origin or from a realm that was torn down. The detector reads
isConnectedandnodeTypeon mutation records and on composed paths, and readsgetRootNodeon selection endpoints, so the denial escaped the MutationObserver callback and stopped the rest of the batch from refreshing the liveness timestamp. A node that cannot be read is now treated as a node that cannot be inspected. (2026-09-22)
1.434.7
Patch Changes
- #5001
c551218Thanks @posthog! - Session replay network capture no longer fails to start in frames withoutPerformanceObserveror itssupportedEntryTypes; those frames record without live network timing. (2026-09-22)
1.434.6
Patch Changes
- #5016
4770179Thanks @posthog! - Keep session recording active when a cross-origin image or video taints a canvas. (2026-09-22)
1.434.5
Patch Changes
- #5021
9cd834cThanks @posthog! - Stop reporting dead clicks on controls inside open shadow roots (such as web components or micro-frontends) when the click updates content inside the shadow root. (2026-09-21)
1.434.4
Patch Changes
- #5042
ed9fc04Thanks @ioannisj! - Fix$session_idbeing sent asnullwhen a sibling tab resets the session before this tab captures its first event (#5036) (2026-09-21)
1.434.3
Patch Changes
- #5008
3a8035fThanks @nachogarcia! - Retry/flagsin the browser SDK on HTTP 502/504 and on request timeouts, bounded by the newfeature_flag_request_max_retriesconfig (default 1, set 0 to disable). Plain transport failures are deliberately left to the existing status-zero circuit breaker. (2026-09-21) - Updated dependencies [
3a8035f]:- @posthog/types@1.412.4
1.434.2
Patch Changes
- #4904
5cfec8bThanks @lucasheriques! - Share survey answer snapshots and response event properties with React Native for consistent partial response reporting. (2026-09-18) - Updated dependencies [
5cfec8b]:- @posthog/core@1.55.0
1.434.1
Patch Changes
- #4980
7e07338Thanks @posthog! - Capture the document navigation timing in the replay network waterfall when recording starts after the page has loaded, and stop recording a partial duplicate of that entry when recording starts while the page is still loading (2026-09-18)
1.434.0
Minor Changes
- #5014
5e86154Thanks @pauldambra! - Rename themetrics.networkdefault attributes to the OTel HTTP client semantic conventions:http.request.method,server.address,server.port,url.scheme,url.template,http.response.status_codeanderror.typereplacemethod,host,pathandstatus_class. (2026-09-17)
Patch Changes
- Updated dependencies [
5e86154]:- @posthog/types@1.412.2
1.433.10
Patch Changes
-
#4960
c8e53faThanks @posthog! - Log a console warning when session replay stops capturing canvas frames (browser withoutOffscreenCanvas, a CSP that blocksblob:workers, or a failingcanvasCapture.maskRegionsFn), and stop changing WebGL and WebGPU canvas settings when canvas capture fails to start (2026-09-17) -
#4977
0257a29Thanks @lucasheriques! - Share survey choice and question shuffling between web and React Native through surveys core. Use Fisher-Yates for web questions, preserve Other-last choice ordering, and avoid mutating configured choices. (2026-09-17) -
Updated dependencies [
0257a29]:- @posthog/core@1.54.4
1.433.9
Patch Changes
- #5007
c3043f4Thanks @marandaneto! - Add a session diagnostic when stale replay configuration cannot be refreshed, without changing recording behavior. (2026-09-17)
1.433.8
Patch Changes
- #4709
c1d1fafThanks @posthog! - Prefer synchronous compression for events captured withsend_instantly, including the initial$pageview, to avoid delaying request dispatch on asynchronous compression. (2026-09-17)
1.433.7
Patch Changes
- #4979
c767b98Thanks @darkopia! - fix(surveys): keep URL prefill working when localStorage is unavailable, such as on a page with an opaque origin or in private browsing (2026-09-16) - Updated dependencies [
2828b6b]:- @posthog/browser-common@0.9.0
1.433.6
Patch Changes
- #4926
ec4062bThanks @posthog! - Stop treating a<link rel=preload as=style>resource hint as a stylesheet when recording. Because it carries the URL of the sheet it preloads, the recorder matched it to the loaded stylesheet and inlined the whole sheet onto it, putting the CSS in every full snapshot twice and reporting a failed stylesheet deferral on every snapshot. (2026-09-16)
1.433.5
Patch Changes
- #4962
85b775aThanks @posthog! - Docstrings foridentity_hashandsetIdentity()now say the hash is signed with the Secret API key from Support settings, not a project secret API key or a personal API key. (2026-09-15) - Updated dependencies [
85b775a]:- @posthog/types@1.412.1
1.433.4
Patch Changes
-
#4941
07c1045Thanks @marandaneto! - Capture causes and AggregateError members with relationship metadata and individual stacks, limiting output to 50 entries and 1,000 member inspections. (2026-09-15) -
#4898
372afbaThanks @posthog! - Contain a throw from a third-party patchedAbortController.abort()when our own fetch timeout fires, so it is retried instead of escaping as an uncaught error, and report a single outcome per request. (2026-09-15) -
#4910
38b61f9Thanks @posthog! - Keep the end of a session recording when one replay event is too large to stringify: that event is dropped and the rest of the buffer still ships, instead of the size estimate throwing and stopping the unload flush. (2026-09-15) -
#4909
5d4f1f7Thanks @posthog! - Keep the session recording observers that started when one of them fails to initialize, and report the failed observers in the recorder debug properties. (2026-09-15) -
Updated dependencies [
07c1045]:- @posthog/core@1.54.1
1.433.3
Patch Changes
- #4945
79f02e7Thanks @marandaneto! - Default Fetch requests to strict-origin so referrers omit page paths and query strings. (2026-09-14)
1.433.2
Patch Changes
-
#4846
bd4543eThanks @posthog! - Keep session recording snapshots from different windows of the same session in separate uploads to preserve their window attribution. (2026-09-14) -
#4954
3c68c08Thanks @marandaneto! - Respect Retry-After, including repeated headers, up to 30 seconds on retryable browser responses without shortening exponential backoff. (2026-09-14) -
Updated dependencies [
3c68c08]:- @posthog/core@1.54.0
1.433.1
Patch Changes
- #4949
8f11f5fThanks @marandaneto! - Respect autocapture attribute masks for link URLs and legacy class properties. (2026-09-14)
1.433.0
Minor Changes
- #4916
d037ea1Thanks @mayteio! - Read Meta's_fbcand_fbpcookies for the Conversions API. When the Meta pixel is on the page, its_fbccookie holds the true ad click time, so that value now wins over the time PostHog stamps on the pageview that follows the click, and a click that landed before the SDK loaded is no longer lost. The_fbpbrowser ID is captured as the$fbpperson property, which makes it available to a conversion sent later from a backend. Both cookies are read under the same switches as the URL click ID:save_campaign_params: falseturns the reads off, and cookieless mode skips them. (2026-09-14)
1.432.0
Minor Changes
- #4958
4a46fabThanks @marandaneto! - Add a resetError callback to React error-boundary fallbacks so applications can retry rendering without remounting the boundary. (2026-09-14)
Patch Changes
- #4927
62fc60bThanks @marandaneto! - Fix lost event retries after restoring a page from the back-forward cache. (2026-09-14)
1.431.8
Patch Changes
- #4935
6a78625Thanks @marandaneto! - Fix false dead clicks after synchronous DOM updates. Clicks stopped from bubbling are now evaluated too, which may increase dead-click counts for inert controls. (2026-09-14)
1.431.7
Patch Changes
- #4937
a5d094fThanks @marandaneto! - Avoid fetch keepalive quota failures when multiple event requests are in flight. (2026-09-14)
1.431.6
Patch Changes
- #4936
ee6fd02Thanks @marandaneto! - Prevent buffered session replay data from crossing projects that share a persistence name during page navigation. (2026-09-14)
1.431.5
Patch Changes
- #4940
3e12f1dThanks @marandaneto! - Discard pending replay network captures after recording stops or restarts. (2026-09-14)
1.431.4
Patch Changes
-
#4952
4f8076bThanks @marandaneto! - Support clickable[label](url)links in Conversations widget greetings. (2026-09-14) -
#4835
03e45b6Thanks @posthog! - Fix identical person property retries being dropped after the original capture was rejected. (2026-09-14)
1.431.3
Patch Changes
- #4948
3acf287Thanks @marandaneto! - Fix replay cleanup when the host's children are removed before destroying the player. (2026-09-14)
1.431.2
Patch Changes
- #4938
fea443aThanks @marandaneto! - Mark console-captured exceptions as handled and identify their console origin. (2026-09-14)
1.431.1
Patch Changes
- #4934
b15ae1fThanks @marandaneto! - Exclude internal SDK console diagnostics from exception autocapture and report recoverable recorder diagnostics as warnings. (2026-09-14)
1.431.0
Minor Changes
- #4918
c666606Thanks @pauldambra! - Addmetrics.networkconfig to record HTTP and HTTPSfetchandXMLHttpRequestdurations as histograms, with an optional custom metric name and attributes. (2026-09-14)
Patch Changes
- #4894
d81541bThanks @posthog! - Contain replay errors during playback and seeking so a failed event does not stall the remaining events. (2026-09-14) - Updated dependencies [
c666606]:- @posthog/types@1.412.0
1.430.4
Patch Changes
- #4946
aeaea15Thanks @marandaneto! - Fix console capture continuing after stop or duplicating after restart when another library wraps the console. (2026-09-14)
1.430.3
Patch Changes
- #4923
2ae0f26Thanks @marandaneto! - Fix session recording failing to restart after capturing events while stopped with expired config. (2026-09-12)
1.430.2
Patch Changes
- #4897
a140fa7Thanks @fasyy612! - Send each replay session's snapshots in their own request so a session rotation no longer files the new session's first snapshot under the old session. (2026-09-11)
1.430.1
Patch Changes
- #4913
0224a83Thanks @github-actions! - Fix scroll depth metrics carrying over between pages after client-side navigation. (2026-09-11)
1.430.0
Minor Changes
- #4834
5f2b0feThanks @posthog! - Addposthog-js/full,posthog-js/no-externalandposthog-js/full/no-externalentry points, so desktop apps and other CSP-restricted builds canrequirea bundle instead of deep-importing an ES module fromdist/(2026-09-11)
Patch Changes
-
#4860
8207df8Thanks @posthog! - Back off automatic feature flag refreshes on idle visible pages only whenremote_config_refresh_interval_msis omitted, preserving explicitly configured intervals. (2026-09-11) -
#4901
65aafccThanks @marandaneto! - Preserve batched event timestamps so delayed retries do not shift event times and prevent deduplication. (2026-09-11) -
Updated dependencies [
8207df8]:- @posthog/types@1.411.1
1.429.5
Patch Changes
-
#4579
19e78ccThanks @turnipdabeets! - Cap the retry delay for log exports at 30 seconds, the ceiling the logs contract states. It previously doubled to 64 times the flush interval — 192s on web, 640s on React Native — so a log export now resumes within 30 seconds of a failing endpoint recovering, at the cost of more retry requests while that endpoint is down. (2026-09-10) -
#4579
19e78ccThanks @turnipdabeets! - Keep backing off a failing log flush while new records arrive, instead of the next record resetting the retry to the flush interval. (2026-09-10) -
#4579
19e78ccThanks @turnipdabeets! - Logs and metrics now always sendservice.nameandtelemetry.sdk.*, even when aresourceAttributesvalue is too large to encode in full. Previously that value could crowd them out, and the records reached PostHog with no service attribution. (2026-09-10) -
Updated dependencies [
19e78cc,19e78cc,19e78cc,19e78cc,19e78cc,19e78cc,19e78cc]:- @posthog/core@1.53.0
- @posthog/types@1.411.0
1.429.4
Patch Changes
-
#4862
3278cd0Thanks @pauldambra! - Call the original console method with the console as its receiver when recording console logs. The wrapper passedundefinedinstead, and passed no receiver at all when reporting its own failures, which a console implementation is free to reject. (2026-09-10) -
#4887
0da006cThanks @posthog! - Error tracking no longer counts an injected script as your own code. A stack frame isin_apponly when its filename names a script your app was served —http(s),file,blob,app,capacitor,ionic, a bundler scheme, or a bare path. A frame served over any other scheme, such as an in-app browser bridge oniabjs://or an extension content script onchrome-extension://, is kept for context but no longer groups the issue under your code. (2026-09-10) -
#4837
99b4fc7Thanks @pauldambra! - Stop recordingautoplayattribute mutations on<video>and<audio>during session replay. The check compared a lowercase tag name againstElement.tagName, which is uppercase for HTML elements, so a looping background video emitted a mutation for everyautoplaytoggle. (2026-09-10) -
Updated dependencies [
0da006c]:- @posthog/core@1.52.2
1.429.3
Patch Changes
-
#4878
14ba783Thanks @dustinbyrne! - Allow null bootstrap values and treat null or empty distinct IDs as missing. (2026-09-10) -
#4831
9498567Thanks @posthog! - Log a console message when advanced_disable_feature_flags stops surveys from displaying (2026-09-10) -
Updated dependencies [
14ba783,9498567]:- @posthog/types@1.410.1
1.429.2
Patch Changes
- #4880
412c97cThanks @marandaneto! - Fix recording package exports, native ESM loading, and strict TypeScript 4.7 consumer compatibility. (2026-09-10) - Updated dependencies [
412c97c]:- @posthog/core@1.52.1
1.429.1
Patch Changes
- #4861
61b92f9Thanks @pauldambra! - Disable browser autofill on input and textarea fields during session replay. (2026-09-09)
1.429.0
Minor Changes
- #4707
b441eb2Thanks @posthog! - Segment integration: allowsegmentto accept an integration config withfilterProperties, so customers can filter PostHog-generated enrichment properties before Segment sends an event to its destinations. Returningnullor throwing leaves the original Segment event unenriched. (2026-09-09)
Patch Changes
-
#4876
0c2a15fThanks @dustinbyrne! - Fix dead-click detection for text selection and editable caret gestures when mouse release is delayed, while continuing to report inert text clicks. (2026-09-09) -
#4733
24fa541Thanks @dustinbyrne! - fix(web): avoid reporting clicks that select or unselect text as dead clicks (2026-09-09) -
#4882
4bd37b7Thanks @lucasheriques! - Fix TypeScript compatibility between public replay events and the replay player. (2026-09-09) -
#4833
f1395b6Thanks @posthog! - Keep surveys hidden while capture is disabled and preserve answers if capture stops before submission. (2026-09-09) -
Updated dependencies [
0c2a15f,24fa541,b441eb2]:- @posthog/types@1.410.0
1.428.11
Patch Changes
- #4725
d5abeceThanks @bs1180! - fix(surveys): don't show the default "Start typing..." placeholder when the survey's placeholder text is empty (2026-09-09)
1.428.10
Patch Changes
- #4869
891eefaThanks @robbie-c! - Apply replay URL privacy settings to URL values in captured JSON-LD payloads. (2026-09-09) - Updated dependencies [
891eefa,891eefa]:- @posthog/types@1.409.4
- @posthog/core@1.52.0
1.428.9
Patch Changes
- #4864
e8b2be1Thanks @robbie-c! - Include the masked page URL with JSON-LD replay events. (2026-09-09) - Updated dependencies [
e8b2be1]:- @posthog/types@1.409.3
1.428.8
Patch Changes
- #4798
4358915Thanks @posthog! - fix(error-tracking): collapse repeated frame cycles in parsed stack traces to reduce grouping differences caused by recursion depth, while preserving distinct throw locations (2026-09-09) - Updated dependencies [
4358915]:- @posthog/core@1.51.1
1.428.7
Patch Changes
- #4842
f93160dThanks @marandaneto! - Restore retry queue connectivity tracking when a page returns from the back-forward cache, without reactivating it after an explicitshutdown(). (2026-09-08)
1.428.6
Patch Changes
- #4791
b2affdcThanks @posthog! - PrefersendBeaconfor unbatched events, such as{ send_instantly: true }captures, once PostHog's ownpagehidehandler (orunloadfallback) marks the page as unloading. Captures frombeforeunloador earlierpagehidelisteners retain their normal transport. Preserve response-capable transports on active pages so failed requests can be retried, including whenfetchis unavailable. (2026-09-08) - Updated dependencies [
b2affdc]:- @posthog/types@1.409.2
1.428.5
Patch Changes
-
#4703
5c34aeeThanks @posthog! - Stop the internalSCRIPT_PLACEHOLDERfrom rendering during replay. A recorded<script>is rebuilt as<noscript>, whose text shows when scripting is off in the replay iframe. The document-scoped hide style never reaches shadow roots, so the placeholder leaked over third-party widgets recorded in a shadow root. Rebuild now emits an empty text node for the placeholder, so it cannot render in any context. (2026-09-08) -
#4801
7ae27feThanks @marandaneto! - Reduce session replay DOM traversal overhead by reusing native-accessor cache keys instead of constructing a new string for every node access. (2026-09-08) -
#4808
60644f7Thanks @marandaneto! - Avoid repeatedly traversing the same subtree during session replay mirror cleanup when it moves multiple times in one mutation batch. (2026-09-08) -
#4816
c80df37Thanks @marandaneto! - Reduce shadow DOM connectivity checks during session recording. (2026-09-08) -
#4812
4163648Thanks @marandaneto! - Reduce session recording overhead by avoiding empty child-list reads for text nodes during mutation processing. (2026-09-08) -
#4811
44b0a6cThanks @marandaneto! - Reduce session recording overhead when DOM subtrees are moved repeatedly by avoiding per-node traversal callbacks. (2026-09-08) -
#4819
fe828ffThanks @posthog! - Fix two silent session replay failures. Recorder teardown no longer stops when a cleanup handler throws, so recording restarts after an idle reset andisRecording()stops reporting a stopped recorder as started. Playback no longer ends or stalls when a recording holds a malformed mouse-movepositionsvalue; the player skips that one event and falls back to the event's own timestamp instead of scheduling it at a time the timer can never reach. (2026-09-08) -
#4756
54be921Thanks @posthog! - Session replay no longer loses the start of a recording when a page unloads while a timing gate holds the buffer. The minimum-duration gate and the markers-only gate both hold the buffer for a retry that an unloading page never runs, so the buffered snapshots died with the page. They are now parked insessionStorageand picked up by the next page in the same tab, which keeps the configured minimum duration intact: a session that really ended on that page still ships nothing (2026-09-08) -
#4813
8e58a12Thanks @posthog! - fix(browser): drop Safari extension exceptions that report a WebKit messaging failure (2026-09-08) -
#4807
7222accThanks @marandaneto! - Reduce per-node allocations when serializing session replay mutations by reusing serialization options within each emission. (2026-09-08)
1.428.4
Patch Changes
- #4828
4ae6405Thanks @marandaneto! - Prevent waking an idle tab from extending the previous session recording across the entire idle gap. (2026-09-08)
1.428.3
Patch Changes
- #4805
4cd5717Thanks @marandaneto! - Wait for the initial remote config outcome before using cached autocapture enablement, so a newly disabled project does not capture events while its settings load. Disabled remote requests retain local startup behavior, and failed or incomplete responses retain the cached fallback. (2026-09-07)
1.428.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) - Updated dependencies [
87b34af]:- @posthog/browser-common@0.8.2
1.428.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) - Updated dependencies [
988f03a]:- @posthog/browser-common@0.8.1
1.428.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
- @posthog/browser-common@0.8.0
1.427.3
Patch Changes
-
#4815
c207020Thanks @marandaneto! - Prevent queued session recording mutations from capturing content beneath DOM or shadow ancestors that have become blocked. (2026-09-07) -
#4785
74ca945Thanks @marandaneto! - Clarify feature flag return-value terminology across SDK APIs. Afalsevalue is a conclusive off evaluation, whileundefinedmeans no evaluation is available. Remote evaluation omits globally inactive flags, whereas backend local evaluation can resolve cached inactive definitions tofalse. (2026-09-07) -
#4797
fd4ece8Thanks @posthog! - Prevent exception autocapture from throwing when the handler it wraps belongs to another compartment or a destroyed document. (2026-09-07) -
#4754
d73455eThanks @posthog! - Session replay now reports why a recording holds its buffer. An epoch that starts without user interaction keeps its snapshots and uploads nothing, while$recording_statusstill readsactive. Captured events now carry$sdk_debug_replay_flush_hold_reason(no_interaction_since_recording_startedorno_interaction_since_session_rotated), and the SDK logs the reason once per held epoch in debug mode. Discarding a recording (for example when the server turns replay off) also no longer uploads the stylesheet mutations the recorder emits as it stops. (2026-09-07) -
#4788
95b159aThanks @fasyy612! - fix(replay): reset the idle clock on a session-id rotation so the new session's first snapshot is not dropped as idle and its recording does not start hours early (2026-09-07) -
#4770
24f1937Thanks @fasyy612! - fix(replay): drain the compression queue synchronously on a session-id rotation so the old session's unflushed tail ships under the old session id instead of being discarded (2026-09-07) -
#4666
5e74132Thanks @robbie-c! - Preserve universally safe JSON-LD properties and allowlisted tree structure when replay redacts other fields. Keep only DOM-backed ID fragments. Keep only@typevalues shaped like a Schema.org term, and limit types and payloads. Publish a reusable sanitization contract fixture. (2026-09-07) -
#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,21dcebd]:- @posthog/core@1.50.6
- @posthog/types@1.409.1
- @posthog/browser-common@0.7.3
1.427.2
Patch Changes
- #4787
fd87cafThanks @marandaneto! - Prevent failures in automatic and manual exception processing from escaping into customer code. (2026-09-04)
1.427.1
Patch Changes
- #4786
a04c333Thanks @marandaneto! - Prevent automatic and manual exception capture from recursively recapturing stack overflows raised while sending an exception. (2026-09-04)
1.427.0
Minor Changes
- #4774
426e1fdThanks @Fhatu12! - AddreuseAnonymousIdsupport to browser identify calls. (2026-09-04)
Patch Changes
-
#4782
b64b113Thanks @posthog! - Stop counting stack frames that have no filename (in-app browser bridge scripts and other code the runtime reports without a script URL) as in-app code. (2026-09-04) -
#4758
dd74222Thanks @marandaneto! - Keep relaying session recording events when a cross-origin iframe redirects through the parent page's origin. (2026-09-04) -
Updated dependencies [
b64b113,426e1fd]:- @posthog/core@1.50.5
- @posthog/types@1.409.0
1.426.4
Patch Changes
- #4764
fa2924dThanks @marandaneto! - Preserve previously persisted feature flags as an offline fallback when bootstrap flags are provided. (2026-09-04)
1.426.3
Patch Changes
- #4761
ebf7318Thanks @marandaneto! - Prevent session replay network capture from replacing a downstream fetch wrapper's response with an instrumentation error when the response has no headers. (2026-09-04)
1.426.2
Patch Changes
-
#4763
7b30da7Thanks @marandaneto! - Ship the package ESM entrypoint with an.mjsextension so Node recognizes its module format, while retaining the existing.jsbundle for backwards compatibility. (2026-09-03) -
#4759
c475070Thanks @marandaneto! - Preserve explicitly false feature flag values supplied through bootstrap configuration. (2026-09-03) -
#4767
9d683caThanks @marandaneto! - Preserve the anonymous distinct ID used for feature flag persistence whenidentify()queues a reload behind an in-flight flags request. (2026-09-03) -
#4766
ed4ba23Thanks @marandaneto! - Limit persisted initial URLs by their encoded cookie size to prevent long URLs and referrers from exceeding browser cookie limits. (2026-09-03) -
#4762
fbf10d4Thanks @marandaneto! - Merge event-specific$groupswith groups registered on the browser client. (2026-09-03) -
#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,f00e24d]:- @posthog/core@1.50.4
- @posthog/browser-common@0.7.2
1.426.1
Patch Changes
- #4765
d8508b6Thanks @marandaneto! - Initialize the Segment enrichment integration when Segment is configured throughset_config, so Segment events include PostHog properties such as active feature flags. (2026-09-03)
1.426.0
Minor Changes
- #4740
6325953Thanks @mayteio! - Capture Meta's$fbcperson property when a newfbclidis observed. (2026-09-03)
Patch Changes
-
#4760
41ed3afThanks @marandaneto! - Require a distinct ID when callingidentifyand correct its API documentation to match the existing runtime validation. (2026-09-03) -
#4713
7a027adThanks @posthog! - Gate$groupidentifyon person processing. Underidentified_only, agroup()call promotes the user to identified so the event is kept instead of dropped. Undernever, the local group association is retained for subsequent events and feature flags, but$groupidentifyis not sent because the server always drops it. (2026-09-03) -
Updated dependencies [
41ed3af,dbbb58e]:- @posthog/types@1.408.1
- @posthog/core@1.50.3
1.425.1
Patch Changes
-
#4731
9b4008aThanks @fasyy612! - fix(replay): re-adopt constructed stylesheets when a shadow host is removed and re-added mid-replay. An SPA navigation can detach and reattach the same web component element; the browser keeps its shadow root and adopted sheets, so the recorder (which already tracks that shadow root) emits no new AdoptedStyleSheet event. The replayer rebuilds the element with a fresh shadow root and previously dropped the adopted styles for the rest of playback, rendering the component unstyled. The replayer now remembers the last adopted styleIds per host and re-adopts them when the shadow root is rebuilt, in both live playback and fast-forward. Fixes playback of existing recordings. (2026-09-02) -
#4744
77797c9Thanks @fasyy612! - fix(replay): keep recording through a session-id rotation when the persisted remote config is past its TTL. A rotation restart transits through stop() before start(), which made the config TTL check treat it as a cold boot: the stale config was discarded, start() bailed silently, and the recorder died with session attribution stuck on the old session id. The rotated session then shipped events with no initial full snapshot, producing recordings whose prefix cannot be played until something else restarted recording. Affects any rotation on a session older than one hour, most visibly posthog.reset() on logout. Cold-boot TTL behavior is unchanged. (2026-09-02)
1.425.0
Minor Changes
- #4741
61a26e5Thanks @veryayskiy! - Forward generic server-signed identity claims with conversations widget requests. (2026-09-02)
Patch Changes
- Updated dependencies [
61a26e5]:- @posthog/types@1.408.0
1.424.1
Patch Changes
- #4711
d90b3c5Thanks @posthog! - Prevent failed replay network body reads from escaping into the host page's ownfetch()call (2026-09-01)
1.424.0
Minor Changes
- #4710
e87820aThanks @turnipdabeets! - Addos.nameandos.versionresource attributes to logs from the browser SDK, overridable vialogs.resourceAttributes(2026-09-01)
Patch Changes
- Updated dependencies [
e87820a]:- @posthog/core@1.50.1
1.423.2
Patch Changes
1.423.1
Patch Changes
- #4560
5931638Thanks @skvark! - Prevent stale session recorders from initializing after consent or session teardown, and dispose of recorders when switching to cookieless mode. (2026-09-01)
1.423.0
Minor Changes
-
#4663
6ae173fThanks @pauldambra! - Detect the Claude, Codex, and ChatGPT apps from their user agent markers:$browsernow reports the app name instead ofChrome.ChatGPT versions its apps differently per platform, so its
$browser_versionis not comparable across platforms. (2026-09-01) -
#4659
1406e04Thanks @marandaneto! - Synchronize feature flag and early access enrollment persistence across browser tabs. Keep successful partial evaluations authoritative for payload updates and removals, including falsy payload values, while retaining cached state for failed evaluations. (2026-09-01)
Patch Changes
-
#4696
aa72a36Thanks @github-actions! - Preferdata-ph-capture-attribute-*values from the closest element when the same property is defined on multiple ancestors. (2026-09-01) -
#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) -
#4708
6723395Thanks @turnipdabeets! - Changebigintattributes on logs, metrics and spans to send as an int64 rather than as a string. (2026-09-01) -
#4692
ec550b8Thanks @mhornbacher! - Respectnavigator.globalPrivacyControlwhenrespect_dntis enabled (2026-09-01) -
#4697
6d6091eThanks @yfwmaniish! - Fix a memory leak in Session Replay recording:MutationBufferskipped its own cleanup whenever a mutation batch normalized to an empty payload (e.g. a node added and removed within the same task), leaving the buffer holding strong references to DOM nodes indefinitely. (2026-09-01) -
#4672
0cddefeThanks @posthog! - Error tracking now drops a known uBlock Origin Lite exception thrown by its Safari extension. Safari masks extension content-script URLs aswebkit-masked-url://hidden/, but also uses that URL for application code, so the filter requires the extension's error signature before dropping an all-masked stack. A remaining unmaskedin_appframe still preserves the exception as first-party. (2026-09-01) -
#4704
cee2280Thanks @veryayskiy! - back off support widget polling to stop starving sends (2026-09-01) -
#4684
5874d1cThanks @yfwmaniish! - Fall back to in-memory storage when neither web storage nor cookies are available, instead of selecting a backend that cannot store anything. In contexts like adata:URL — a Figma plugin, for example — Chrome disables localStorage and cookies alike, and both the persistence and consent paths previously committed to an unusable store, logging a SecurityError on every capture.cookieStore._is_supported()now round-trips a probe cookie rather than only checking thatdocumentexists, andmemoryStoreno longer reports a stored falsy value (such as the0consent writes for "opted out") as absent. (2026-09-01) -
#4662
e7f5733Thanks @posthog! - Warn at init whenpersistenceis'memory'or'sessionStorage'and nobootstrap.distinctIDis set. In this setup the SDK mints a fresh distinct ID on every page load, so eachidentify()call merges another ID onto the same person. A person can then pass the distinct-ID limit, after which person pages and the session tab load only a truncated slice and the rest of the events look missing even though ingestion is fine. The warning points at the two fixes: switch tolocalStorage+cookie, or keep this persistence and pass a stable ID throughbootstrap.distinctID. (2026-09-01) -
#4682
5c6ab6fThanks @posthog! - Fix an uncaughtTypeErrorin the web vitals attribution bundle. The attributed INP observer readstartTimefrom the first entry without a guard, so a report with no entries (for example after a bfcache restore or soft navigation) threw and stopped the metric capture. Bumpweb-vitalsto 6.2.1, which guards the empty-entry case: instead of throwing, it reports the metric with fallback attribution that carries no interaction details (zeroed input and processing delays). (2026-09-01) -
Updated dependencies [
444bf35,6ae173f,6309cb2,6723395]:- @posthog/core@1.50.0
- @posthog/browser-common@0.7.1
1.422.5
Patch Changes
- Updated dependencies [
a895e7e]:- @posthog/browser-common@0.7.0
1.422.4
Patch Changes
- #4626
3c650a1Thanks @nandinitiw! - Re-translate popover surveys when the display language changes while the survey is on screen, either from a browserlanguagechangeevent or fromidentify()updating thelanguageperson property. In-progress answers are preserved.$survey_questions[].questionand$survey_languageonsurvey sent/survey dismissednow report the text and language the user saw when they answered, not the language active when the event fired. Feedback-button (widget) surveys are unchanged. (2026-08-28) - Updated dependencies [
3c650a1]:- @posthog/core@1.49.2
1.422.3
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) - Updated dependencies [
d0279e5]:- @posthog/browser-common@0.6.2
1.422.2
Patch Changes
- #4665
d5ef459Thanks @fasyy612! - Session replay can now bound DOM mutation bytes with an opt-in budget. Set__mutationBytesBucketSize(e.g. 1MB) to enable: mutations beyond the sustained budget (__mutationBytesRefillRate, default 25KB/s) are dropped and the recording resyncs with a full snapshot, keeping recordings from apps with very high DOM churn playable. Off by default. (2026-08-28) - Updated dependencies [
d5ef459]:- @posthog/types@1.407.1
1.422.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
- @posthog/browser-common@0.6.1
1.422.0
Minor Changes
- #4658
db8687cThanks @posthog! - Report$sdk_debug_replay_throttled_mutations_droppedon captured events, counting the attribute changes the session recorder discarded during that session. The recorder throttles elements that change hundreds of times a second, and a discardedclassorstylechange never reaches the player — so a recording can keep showing an element the live page had already hidden. Query this property to see whether your app is affected. (2026-08-27)
1.421.2
Patch Changes
-
#4653
712223aThanks @posthog! - Fix request timeouts never firing on pages where a browser extension makesError.prototype.namenon-writable (2026-08-27) -
#4036
718beeeThanks @emmayusufu! - Fixlogs.captureConsoleLogsset ininit()not enabling console autocapture, captureconsolecalls made before the logs script loads, and drop captured console records when the user opts out (2026-08-27) -
#4036
718beeeThanks @emmayusufu! - Fix session replay and posthog-js leaving each other'sconsolewrapper in the call path when either one stops (2026-08-27) -
Updated dependencies [
718beee,712223a]:- @posthog/core@1.49.0
1.421.1
Patch Changes
-
#4657
9c09bd4Thanks @marandaneto! - Use the best available compression for browser feature flag requests, preferring gzip when supported. (2026-08-27) -
#4520
362d081Thanks @veksa! - DropsourcesContentfrom the source maps published to npm. The maps themselves still ship, so downstream source-map chaining and the//# sourceMappingURLreferences are unaffected — only the copy of our TypeScript sources embedded in each map is gone, taking the package from 40.8 MB to 17.4 MB unpacked. CDN artifacts are built separately and keep their inlined sources. (2026-08-27) -
Updated dependencies [
7902e44,e899b1c]:- @posthog/core@1.48.12
1.421.0
Minor Changes
- #4655
4f80973Thanks @robbie-c! - Add the2026-08-30config defaults. These defaults enable sanitized JSON-LD replay events. (2026-08-26)
Patch Changes
- Updated dependencies [
4f80973]:- @posthog/types@1.407.0
1.420.0
Minor Changes
- #4640
0d2cf49Thanks @robbie-c! - Add opt-in Schema.org JSON-LD capture to session replay throughsession_recording.captureJsonLd. When enabled, the recorder emits sanitized JSON-LD as custom replay events and excludes all script elements from replay snapshots. (2026-08-26)
Patch Changes
-
#4635
ab1383aThanks @robbie-c! - Capture paste interactions with clipboard autocapture without collecting pasted text. (2026-08-26) -
#4594
1d88b4eThanks @posthog! - Fix session replay playback ending when a recording contains a shadow host the browser refuses. The player now skips that one subtree instead of aborting the rebuild. (2026-08-26) -
Updated dependencies [
ab1383a,0d2cf49]:- @posthog/types@1.406.2
1.419.4
Patch 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) -
#4533
53fcb2dThanks @dustinbyrne! - Fix console log autocapture silently failing when an olderposthog-jscore loads a newer logs bundle. (2026-08-25) -
#4476
ed4dd97Thanks @posthog! - fix(browser): refresh configured feature flags when a hidden tab becomes visibleFeature flags now own their automatic refresh timer and visibility listener. Hidden tabs reload due flags when they become visible. The existing five-minute default and
remote_config_refresh_interval_msbehavior remain unchanged. (2026-08-25) -
Updated dependencies [
53fcb2d,ca540f9,ed4dd97]:- @posthog/browser-common@0.6.0
- @posthog/types@1.406.1
1.419.3
Patch Changes
-
#4548
fe933d8Thanks @posthog! - Fix surveys recording a response before the respondent finishes, and reordering questions for surveys that use branching, are prefilled, or are resumedAn
initialResponsesprefill passed toposthog.displaySurvey()that neither completes the survey nor auto-advances a question no longer sendssurvey sent, and a partial event carries only the auto-advanced answers. (2026-08-25)
1.419.2
Patch Changes
-
#4645
cb7cc12Thanks @turnipdabeets! - Type declarations no longer import theJSXnamespace fromreact, so they typecheck against@types/reactback to the declared 16.8.0 floor. Component return types are now spelledReactElement<any, any>, which is the definition ofJSX.Element— the same type, so consuming code is unaffected.JSXonly became an exported member of thereacttypes module in@types/react@18.2.6, so projects on older React types previously sawTS2305: Module '"react"' has no exported member 'JSX'when checking these declarations withskipLibCheck: false. (2026-08-25)
1.419.1
Patch Changes
-
#4638
d166e54Thanks @github-actions! - Declarereactand@types/reactas optional peer dependencies so theposthog-js/reactentry point can resolve React on strictnode_moduleslayouts — pnpm and bun isolated linkers backed by a global store, where the package is installed outside the project tree and Node's directory walk never reaches the app's React.Projects that do not import
posthog-js/reactare unaffected: the peers are optional, so npm, pnpm, yarn, and bun install them only when React is already present and emit no unmet-peer warnings. (2026-08-25)
1.419.0
Minor Changes
- #4598
334159bThanks @posthog! - Web vitals now capture attribution by default for INP and LCP, so a slow interaction or paint arrives with the target element and phase breakdown that make it diagnosable. CLS stays without attribution by default, because its attribution holds detached DOM nodes and can leak memory in single-page apps. Setcapture_performance.web_vitals_attributiontofalseto opt out,truefor every metric, or an array to name the metrics. The captured metric also drops the emptyentriesarray and bounds attribution to a small set of useful fields, and the attributed INP observer no longer collects theprocessedEventEntrieswe never read. (2026-08-25)
Patch Changes
- Updated dependencies [
334159b]:- @posthog/types@1.406.0
1.418.17
Patch Changes
-
#4612
e8a2c2aThanks @marandaneto! - Prevent session recordings from emitting failed CSSOM changes and fix shadow DOM, cross-origin iframe, blocked and unsupported canvas, and deep DOM serialization edge cases. (2026-08-25) -
#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
- @posthog/browser-common@0.5.2
1.418.16
Patch Changes
- #4607
7ec4f0dThanks @posthog! - Drop exceptions thrown by user scripts the browser injects into every page (Firefox for iOS, Chrome for iOS) instead of reporting them as the page's own errors. Seterror_tracking.captureExtensionExceptions: trueto keep capturing them. (2026-08-24) - Updated dependencies [
7ec4f0d]:- @posthog/types@1.405.3
1.418.15
Patch Changes
- #4532
60ee0acThanks @dustinbyrne! - Migrate surveys to the shared browser extension lifecycle. (2026-08-24) - Updated dependencies [
60ee0ac]:- @posthog/browser-common@0.5.1
1.418.14
Patch Changes
-
#4513
cb7e4a6Thanks @dustinbyrne! - Migrate browser autocapture to the shared extension lifecycle. (2026-08-24) -
#4623
be299dfThanks @turnipdabeets! - Fix logs and metrics batches being dropped instead of retried after HTTP 408 (2026-08-24) -
Updated dependencies [
be299df]:- @posthog/core@1.48.10
1.418.13
Patch Changes
-
#4418
be2161dThanks @posthog! - feat: add granular automatic pageview options for SPA navigationcapture_pageviewnow accepts an object withpath,search, andhashoptions. Each selected URL component triggers a$pageviewwhen it changes, including direct hash changes used by hash-based routers. The existing'history_change'option continues to capture pathname changes. (2026-08-24) -
Updated dependencies [
be2161d]:- @posthog/types@1.405.2
1.418.12
Patch Changes
- #4501
9e853c1Thanks @posthog! - Session replay: fixed a stale element left rendered in the player when a mutation re-added a node id with changed attributes. Affects bothuseVirtualDommodes. (2026-08-24)
1.418.11
Patch Changes
-
#4603
ca030a6Thanks @martinfrancois! - Stop adding PostHog's optional feature scripts, such as the session replay recorder and exception autocapture, to the page more than once. Sites that proxy PostHog through their own domain, by settingapi_hostto a path like/ingestrather than a full URL, ended up with the same<script>tag three or four times: the check meant to spot the duplicate compared the browser's resolved absolute URL against the relative one, so it never matched. The network tab showed a single request either way, because the browser served the repeats from its cache, which is why this was easy to miss. Nothing measurable got slower as a result, so this is a correctness fix rather than a speed one. (2026-08-24) -
#4453
325870aThanks @posthog! - When session replay is waiting on a trigger, debug mode now names the conditions that haven't matched yet (for examplebuffering: URL condition not matched, or the named trigger group whose condition is pending) instead of only reportingbuffering. Enable it withposthog.debug(). Logged once per change, not once per flush. (2026-08-24)
1.418.10
Patch Changes
-
#4451
e1d993cThanks @posthog! - Guard the replayer's hover handling against non-element and detached hover targets, which previously threw an unhandledTypeError(querySelectorAllon a node without that method) and stopped session recording playback mid-stream. (2026-08-21) -
#4557
4451274Thanks @posthog! - Keep replay playback running when a recording adopts constructed stylesheets across a document swap. A constructed stylesheet can only be adopted by the document that created it, so a sheet held over a swap is rejected and the error previously stopped the player. Adoption now falls back to whatever is already applied. (2026-08-21)
1.418.9
Patch Changes
- #4588
c8df61cThanks @clr182! - fix(replay): attribute the backdated sessionIdle marker to the session that went idle, so a rotation-born session's recording no longer starts hours before its first snapshot (2026-08-21)
1.418.8
Patch Changes
- #4583
6322f09Thanks @turnipdabeets! - Fix logs and metrics being silently dropped when an attribute holds a very large integer, a function, a symbol, a sparse array, or a truncated emoji. Cap log and metric attributes at 20 levels of nesting, 1,000 entries per object and 10,000 values in total, marking anything beyond as[Truncated]. TypeOtlpAnyValue.intValueasstring | number— code reading that field must handle both. (2026-08-21) - Updated dependencies [
6322f09]:- @posthog/core@1.48.7
- @posthog/types@1.405.1
1.418.7
Patch Changes
-
#4459
caed377Thanks @posthog! - fix(browser): stop the$posthog_cookielesssentinel from leaking intoidentify()and real events. A tab that missed a cross-tab consent flip could emit the sentinel as a durable distinct_id — merging distinct real users into a single person. It now adopts the identity persisted by the tab that handled consent, falling back to a fresh anonymous device id when persistence is not shared. (2026-08-21) -
#4567
5bd2c8dThanks @github-actions! - Render React component stacks as linked exception causes so error tracking identifies the crashing component. (2026-08-21)
1.418.6
Patch Changes
-
#4578
bae46bfThanks @marandaneto! - Drop events when a before-send hook throws instead of sending the unmodified event. (2026-08-20) -
#4582
aef2f49Thanks @ablaszkiewicz! - Stop building a stack frame for awindow.onerrorreport that carries no code position, such as theResizeObserverloop warning. The frame named the document URL rather than a script, so no source map could resolve it. These exceptions now arrive with no stack trace. (2026-08-20) -
Updated dependencies [
bae46bf,aef2f49]:- @posthog/core@1.48.6
1.418.5
Patch Changes
- #4572
9701637Thanks @ablaszkiewicz! - Stop counting Chromium<anonymous>stack frames (extension-injected, devtools or string-evaluated code) as in-app code. (2026-08-19) - Updated dependencies [
9701637]:- @posthog/core@1.48.5
1.418.4
Patch Changes
- #4309
b564d61Thanks @posthog! - Fix session recording in the full browser bundles.array.full.jsandmodule.full.es.jsonly inlined rrweb, so they still fetched the recorder script at runtime - the request the full bundles exist to avoid. They now inline the whole recorder. Also flags the session with$sdk_debug_recording_script_not_loadedwhen the recorder script fails to load, so a blocked recorder is visible in analytics rather than only in the console. (2026-08-19)
1.418.3
Patch Changes
- #4558
3f9ba71Thanks @posthog! - Fall back to the synthetic exception stack when a capturedErrorhas no stack, so frameless failures (such as a Firefox networkfetchTypeError) keep their call-site frames and group per call site instead of merging into one issue. (2026-08-19) - Updated dependencies [
3f9ba71]:- @posthog/core@1.48.4
1.418.2
Patch Changes
-
#4555
3e0edffThanks @HaynesPostHog! - Fix a Chrome renderer crash (grey "Aw, Snap" tab, "Error code: 5") that could still occur when closing an in-app survey on a heavy page such as a large dashboard.Closing a survey animated the fade-out with
document.startViewTransition, which snapshots the entire page viewport. The survey applied noview-transition-namescoping, so on a heavy host page capturing that whole-page snapshot could exhaust renderer memory and crash the tab. A previous fix addressed a related crash (a snapshot pointing at a removed node) but left the document-level transition — and its whole-page snapshot cost — in place.The survey renders in an isolated shadow root, so it never needed a document-level transition. The close now fades the popup out with a plain CSS opacity transition scoped to the survey's own container, then unmounts it once the fade has run. No whole-page snapshot, no crash, same fade-out UX. (2026-08-19)
1.418.1
Patch Changes
- #4549
0599fe0Thanks @ablaszkiewicz! - Recognise Firefox and Safari extension frames when filtering extension exceptions, and stop counting Safari's maskedwebkit-masked-url://frames as in-app code. (2026-08-18) - Updated dependencies [
0599fe0]:- @posthog/core@1.48.3
1.418.0
Minor Changes
- #4496
1ade666Thanks @marandaneto! - AddcookieWinsOnConflictto keep shared cross-subdomain identity and session state ahead of stale per-origin localStorage, deprecate__preview_cookie_wins_on_conflict, and enable the new behavior for the2026-08-29defaults. (2026-08-18)
Patch Changes
- Updated dependencies [
1ade666]:- @posthog/types@1.405.0
1.417.4
Patch Changes
- #4509
8d74821Thanks @ksvat! - Take a full snapshot when session recording wakes from idle if DOM mutations were dropped while idle, so replay no longer shows duplicated or overlapping DOM after an idle period. (2026-08-17)
1.417.3
Patch Changes
- #4540
ce8fc13Thanks @marandaneto! - Restore exception autocapture compatibility for posthog-js clients through version 1.141.0. (2026-08-17)
1.417.2
Patch Changes
- #4413
7b61aa4Thanks @posthog! - Fix error tracking coercion reporting the wrong exception type for non-Errorobjects (e.g.TypeError,ReferenceError) that are thrown by browser extensions or other cross-realm code. Previously these always reported as typeError, burying the real type in the message string. Also fixed a localisErrorhelper shadowing the more robust cross-realm-aware implementation, which caused some errors thrown from iframes or extension isolated worlds to be misclassified. (2026-08-17) - Updated dependencies [
7b61aa4]:- @posthog/core@1.48.2
1.417.1
Patch Changes
-
#4521
0a0206fThanks @marandaneto! - Normalize capture timestamp overrides to equivalent UTC ISO strings in the browser and Node.js SDKs and shared core. (2026-08-14) -
#4523
6230b5bThanks @marandaneto! - Prevent swallowed rrweb observer initialization errors from breaking session replay teardown and subsequent recorder restarts. (2026-08-14) -
#4503
eb05237Thanks @pauldambra! - fix(dead-clicks): treat visibility and focus changes as liveness signals, not dead-click evidenceThe dead-click detector treated a
visibilitychangeas evidence a click was dead: it measuredMath.abs(clickTimestamp - lastVisibilityChange)and, once that exceeded the threshold, timed the click out as dead. Because it only recorded the tab becoming visible, any click in a session where the tab had ever been backgrounded (median gap ~1 minute) was flagged.A visibility or focus change near a click is the opposite — a sign the click did something (it woke/focused the tab, opened a new tab, or opened a new window/popup) — so these signals now only ever suppress a dead click, never cause one:
- Visibility changes are recorded in both directions (a click that opens a new tab sends the current tab to
hidden), and a windowfocus/blurobserver is added, since a click that opens a new window/popup may leave the tab visible and only surface as the current window losing focus. - A click within a wake-up/interaction window (1s, wide enough for a real "tab back, then click" gesture) of any such change is suppressed.
- The visibility signal no longer feeds the dead-marking path at all.
$dead_click_visibility_changed_timeoutstays in the payload (always false) for shape compatibility, and a new$dead_click_focus_changed_delay_msis emitted for observability. - Visibility/focus changes are now recorded onto each queued candidate the instant they fire (like scroll), instead of being read from a single shared timestamp when the click is checked ~1s later. A click that hides or blurs the tab (opening a new tab/window) suspends that check while the tab is backgrounded; by the time it resumes the tab has usually returned, and the shared timestamp would have been overwritten by that later transition — losing the click-correlated one and wrongly flagging the click dead. Stamping the candidate as the event fires makes delayed hide→show and blur→focus sequences suppress correctly. (2026-08-14)
- Visibility changes are recorded in both directions (a click that opens a new tab sends the current tab to
-
Updated dependencies [
0a0206f,eb05237]:- @posthog/core@1.48.1
- @posthog/types@1.404.1
1.417.0
Minor Changes
- #4485
8bc63c3Thanks @dustinbyrne! - Default external dependency loading to versioned asset paths with automatic fallback to legacy paths, and add astrict_script_versioning: 'fallback'mode. (2026-08-13)
Patch Changes
- Updated dependencies [
8bc63c3]:- @posthog/types@1.404.0
1.416.1
Patch Changes
-
#4443
b2c6830Thanks @arnohillen! - Harden the session replay stylesheet inlining budget (inlineStylesheetBudgetRules):- The default budget (10,000 rules) moves from the recorder chunk into posthog-js session recording options, so npm-pinned or cached bundles keep their configured override (including
0to disable) and directrrweb.record()consumers keep unbounded inlining unless they opt in. - Deferred inlining is bounded inside a sheet: a resumable cursor stringifies 200 rules per idle slice and emits a sheet's
_cssTextatomically, so monolithic sheets no longer produce one long task and partial CSS never reaches the wire. - Deferred sheets are flushed synchronously when recording stops and on
pagehide; residual failure modes are counted via$sdk_debug_replay_deferred_stylesheets_failed/_abandoned. - CSSOM-only styles (
insertRuleoutput,adoptedStyleSheets) no longer charge the budget, since deferring<link>sheets buys those pages nothing. - Telemetry fixes: full-snapshot duration wraps the whole synchronous task, deferred counts are cumulative per session, new gauges cover non-deferrable rules and idle stringification cost, and duration samples straddling tab suspension are discarded (
$sdk_debug_replay_discarded_duration_samples). (2026-08-13)
- The default budget (10,000 rules) moves from the recorder chunk into posthog-js session recording options, so npm-pinned or cached bundles keep their configured override (including
-
Updated dependencies [
c9086de,b2c6830]:- @posthog/core@1.48.0
- @posthog/types@1.403.1
1.416.0
Minor Changes
-
#4495
e4b9947Thanks @marandaneto! - feat(browser): addrewriteRequestPathto customize API, feature flag, and asset paths for reverse proxies (2026-08-12) -
#4493
e34ebf9Thanks @marandaneto! - Add reset options for applying bootstrapped identity, feature flag, and session values afterposthog.reset()while preserving the legacy boolean argument. (2026-08-12)
Patch Changes
- Updated dependencies [
e4b9947,e34ebf9]:- @posthog/types@1.403.0
1.415.7
Patch Changes
- #4318
847d963Thanks @dustinbyrne! - Migrate browser feature flags to the shared extension lifecycle while preserving the public feature flag facade, persistence compatibility, request behavior, and event enrichment. (2026-08-12)
1.415.6
Patch Changes
-
#4500
d773405Thanks @ksvat! - Fix session recording starting from arbitrarily old persisted configs.Recording configs persisted by SDK versions before 1.347.2 carry no
cache_timestamp. The core freshness check treated these undated configs as always fresh, so the recorder started immediately under their settings. A device whose stored config predated a customer's config change kept recording under the old triggers, sample rate, and masking settings indefinitely.The core now treats undated persisted configs as stale. Recording waits for a fresh remote config before it starts, the same path every dated config older than one hour already takes. The lazy recorder bundle is unchanged: it still accepts undated configs, because old cores that load the latest bundle cannot recover from a rejected config (INC-749). (2026-08-11)
1.415.5
Patch Changes
-
#4497
d62e42eThanks @hpouillot! - Fix a Chrome renderer crash (grey "Aw, Snap" tab) that could occur when closing an in-app survey.The survey close path wrapped the survey container's DOM removal in
document.startViewTransition. Removing the element inside the transition callback left the captured snapshot pointing at a removed node, which on heavy SPAs triggered a Chromium renderer crash and took down the whole tab.The close path now only animates a fade-out inside the transition and lets React tear the container down once the transition settles. It also guards against overlapping transitions (a second close while one is animating) and always settles the popup state if the transition is skipped or interrupted, so the survey can never be left visible with a stale reference. (2026-08-11)
1.415.4
Patch Changes
- #4494
deb6bb0Thanks @marandaneto! - fix(types): accept current and legacy Segment Analytics SDK types in the Segment integration config (2026-08-11) - Updated dependencies [
deb6bb0]:- @posthog/types@1.402.3
1.415.3
Patch Changes
-
#4488
23db844Thanks @TueHaulund! - fix(replay): never ship a buffer swapped in by a re-entrant session rotation mid-flush (2026-08-11) -
#4474
e06bf52Thanks @dependabot! - dependencies updates: - Updated dependencydompurify@^3.4.13↗︎ (from^3.4.12, independencies) (2026-08-11) -
#4435
1cbbe6aThanks @arnohillen! - fix(replay): stop dropping adopted stylesheets that arrive before the host's shadow root is attached. When the recorder's full snapshot races a web component's hydration, the AdoptedStyleSheet event can be recorded before the mutation that attaches the host's shadow root. The replayer silently dropped those styles for the rest of the page view, so components styled viashadowRoot.adoptedStyleSheets(Stencil, Lit) rendered completely unstyled. The replayer now constructs the stylesheet even when the shadow root does not exist yet and keeps retrying adoption until it is attached. (2026-08-11)
1.415.2
Patch Changes
- #4316
f999394Thanks @dustinbyrne! - Support removing multiple persisted properties in one operation. (2026-08-11) - Updated dependencies [
f999394]:- @posthog/browser-common@0.5.0
1.415.1
Patch Changes
- #4477
6f9adf8Thanks @TueHaulund! - fix(replay): don't open a recording that holds only idle lifecycle markers (2026-08-10)
1.415.0
Minor Changes
-
#4436
80f15a3Thanks @jakesciotto! - feat(surveys): optional intro screen shown before the first questionSurveys can now display an intro screen before question 1, configured via the new
displayIntroScreen,introScreenHeader,introScreenDescription,introScreenDescriptionContentType, andintroScreenButtonTextappearance fields. The intro is dismissed with a button and records no response, does not affect completion or partial-response metrics, does not re-fire "survey shown", and is skipped when a survey is resumed with answers in progress. Intro copy is translatable like the thank-you message.renderSurveysPreviewacceptspreviewPageIndex: -1(exported asINTRO_SCREEN_PREVIEW_INDEX) to preview the intro screen. (2026-08-10)
Patch Changes
- Updated dependencies [
80f15a3]:- @posthog/core@1.47.0
1.414.0
Minor Changes
- #4330
5bd8b83Thanks @darkopia! - Addposthog.conversations.getUnavailableReason()to expose why the conversations API is unavailable (bundle blocked/failed to load, disabled in project, remote config pending/failed, still initializing, …) instead of collapsing every case intoisAvailable() === false. Lets callers that fall back to another channel record the specific cause.ConversationsUnavailableReasonis exported from the package entry points, so consumers can name the type. (2026-08-07)
1.413.3
Patch Changes
-
#4414
1b88c2fThanks @marandaneto! - Clear properties registered for a session when the PostHog session rotates. (2026-08-06) -
#4374
b39b577Thanks @dustinbyrne! - Persist in-place object and array mutations when properties are re-registered. (2026-08-06) -
#4434
75fb719Thanks @arnohillen! - Make the session replay attribute masking options mutually exclusive: when bothmaskAllElementAttributesandmaskAttributeFnare set, the coarse option wins and the callback is ignored (with a console warning), so a callback can no longer accidentally unmask whatmaskAllElementAttributeshides. (2026-08-06) -
Updated dependencies [
64ba193,75fb719]:- @posthog/core@1.46.9
- @posthog/types@1.402.2
1.413.2
Patch Changes
- #4425
ee7fab0Thanks @posthog! - Fix a benign network failure (e.g.TypeError: Failed to fetch) in the async native-gzip request path surfacing as an unhandled promise rejection, which exception autocapture would otherwise pick up (2026-08-05)
1.413.1
Patch Changes
-
#4390
1160403Thanks @posthog! - Contain and log recorder-owned callback failures while preserving exceptions from patched native host APIs. Keep recording mutations from adopted cross-realm nodes. (2026-08-05) -
#4286
d108d66Thanks @posthog! - fix(replay): preserve privacy masking for initial network metadataInitial navigation and performance-timing entries are now passed through
maskCapturedNetworkRequestFn, including when they have no method. URL rewrites are respected. When the callback returns nullish for an initial entry, replay-required timing metadata is retained without its URL, headers, or body so method-gated callbacks do not drop the metadata or expose deliberately filtered customer data. Derived server-timing entries are also suppressed when this strict fallback is used. Enforced PostHog filtering and payload cleaning still run first. (2026-08-05) -
Updated dependencies [
d108d66]:- @posthog/types@1.402.1
1.413.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
- #4376
2da12b8Thanks @posthog! - fix(replay): discard held interaction-less recordings when a background document unloads without ever becoming visible (2026-08-05) - Updated dependencies [
2da12b8]:- @posthog/types@1.402.0
- @posthog/browser-common@0.4.0
1.412.2
Patch Changes
- #4417
3acadfeThanks @marandaneto! - fix(replay): discard held interaction-less recordings when a background document unloads without ever becoming visible (2026-08-05)
1.412.1
Patch Changes
- #4404
a348fb3Thanks @dependabot! - Update PostCSS to include upstream security fixes. (2026-08-05)
1.412.0
Minor Changes
-
#4320
837363eThanks @posthog! - Bound the main-thread cost of the recorder's initial full snapshot, and start measuring it.stringifyStylesheetreadscssTextfor every CSSRule of every stylesheet, all inside the one uninterruptible task that takes the full snapshot. On CSS-heavy pages that is the dominant cost, and it has been observed freezing the UI (no rendering, scrolling, or cursor movement) for seconds. The existingmaxDepthguard doesn't help, since it only bounds deep DOMs, not wide ones or heavy CSS.Stylesheet inlining now stops after a budget of CSSRules per snapshot (
session_recording.inlineStylesheetBudgetRules, default 10,000; set0for the previous unbounded behaviour). Sheets past the budget are serialized without_cssText, keepingrel/hrefso replay can load them remotely, and are then inlined one per idle callback and delivered as attribute mutations. Replay fidelity is preserved; the work is just no longer one long blocking task.The snapshot's cost is also now measured and reported on captured events, so slow snapshots are visible without a browser profile:
$sdk_debug_replay_slowest_full_snapshot_ms,$sdk_debug_replay_slowest_full_snapshot_stylesheet_ms,$sdk_debug_replay_slowest_full_snapshot_nodes,$sdk_debug_replay_slowest_full_snapshot_css_rules,$sdk_debug_replay_deferred_stylesheets, and, for the incremental path,$sdk_debug_replay_slowest_mutation_batch_ms. (2026-08-05)
1.411.0
Minor Changes
-
#4266
43d1850Thanks @posthog! - feat: add opt-incapture_performance.__preview_web_vitals_soft_navsto fix inflated web vitals on single-page appsClient-side route changes in SPAs previously left web vitals (LCP especially) accumulating against the original hard-navigation timestamp, inflating the top tail of Core Web Vitals. Setting
capture_performance: { __preview_web_vitals_soft_navs: true }now scopes metrics to the browser's Soft Navigation entries so each route change starts a fresh measurement window. It's a preview option because it relies on Chrome's experimental Soft Navigation Detection API and loads pinned stable web-vitals 6.x callbacks; when disabled (the default), the existing web-vitals 5.x behavior remains unchanged. (2026-08-04)
Patch Changes
- #4287
d3c4538Thanks @posthog! - Keep$referring_domainand canonicalutm_*/campaign parameters on minimal$feature_flag_calledevents. Previously the minimal allowlist stripped every campaign parameter, so a flag-called event landing first in a session could set the session's UTM attribution and channel type to NULL in web analytics. (2026-08-04) - Updated dependencies [
d3c4538,43d1850]:- @posthog/core@1.46.7
- @posthog/types@1.401.0
1.410.10
Patch Changes
-
#4271
3d4e2fdThanks @felipeatom! - Fix inline surveys rendering an empty container when a stale persisted question index (left over from a prior completion) points past the last question. When the persisted index is out of range the whole in-progress record is now discarded and the survey starts fresh, instead of clamping the index while keeping the equally-stale responses and visited indices. Restored visited indices are also filtered to valid questions so the Back button can never navigate to a non-existent question and re-empty the container. (2026-08-04) -
#4412
5f2b78aThanks @TueHaulund! - fix(replay): hold fresh interaction-less session recordings until there is evidence someone caresA tab that loads but never sees any user interaction (prefetched pages, background tabs, in-app browser preloads) no longer ships a billable recording while it sits untouched. Like rotation-born sessions, a fresh recording epoch is held until there is evidence someone cares about it: a user interaction, an event trigger match, or an explicit override (
posthog.startSessionRecording(...)) releases the hold and ships the buffer on the normal flush cadence, so released recordings are playable from the session's start. A clean unload also ships a fresh-start hold, so passive visits (reading, watching a video) are still captured exactly as before; rotation-born holds are discarded on unload as before. A held buffer that reaches the size cap is dropped to bound memory, and a later release takes a fresh full snapshot so the recording resumes playable. (2026-08-04) -
#4410
064874aThanks @ioannisj! - Fix held rotation-born session replay buffers not flushing when a V2 event trigger matches (2026-08-04) -
#4343
83a9b67Thanks @arnohillen! - Session replay no longer freezes the page re-encoding base64 images that are already small. When canvas recording is enabled, every<img>with adata:URL was synchronously redrawn and re-encoded throughcanvas.toDataURLduring full snapshots and attribute mutations. The encode cost scales with pixel dimensions, not payload size, so a page of base64 lazy-load placeholders (measured: 18 images of 4096x3072 at ~33KB each) blocked the main thread for 7+ seconds to produce outputs that were larger than the inputs. Recompression now skips data URLs under 100KB (where it cannot save meaningful payload), keeps the original when the re-encoded output is not smaller, and memoizes by input so repeated snapshots and src-swapping mutations never pay for the same image twice. Genuinely large base64 images are still recompressed as before. (2026-08-04) -
#4339
f865818Thanks @posthog! - Report privacy-aware dropped-event count, page and session context in the client rate limit warning (2026-08-04) -
Updated dependencies [
f865818]:- @posthog/types@1.400.2
1.410.9
Patch Changes
-
#4314
feb9e2aThanks @posthog! - fix: warn whenreset()silently opts the user back outreset()clears stored consent along with the rest of the user's state. Withopt_out_capturing_by_default, this returns the instance to the opted-out default, so callingreset()afteropt_in_capturing()would stop capturing without warning. It now logs a warning when that happens and documents the required ordering. (2026-08-04) -
#4288
877418eThanks @posthog! - Fix event-triggered survey popup delays resetting on every page navigation. The popup delay now resumes from when the trigger fired (persisted for the session) instead of restarting a fresh countdown on each page load, so a survey configured with an event/action trigger and a popup delay no longer gets lost when the user navigates before the delay elapses. (2026-08-04) -
Updated dependencies [
feb9e2a]:- @posthog/types@1.400.1
1.410.8
Patch Changes
- #4402
a31bd1eThanks @NVolcz! - Publish TypeScript declarations for browser extension entrypoints under their publicdistpaths. (2026-08-04)
1.410.7
Patch Changes
- #4400
9811a43Thanks @marandaneto! - Avoid promoting handled transport failures to error logs in surveys, product tours, remote config, conversations, and logs while preserving error severity for HTTP and unexpected failures. (2026-08-04)
1.410.6
Patch Changes
- #4407
6d5e314Thanks @ioannisj! - Fix session replay shipping one billable recording per session rotation for tabs the user never interacts with. A session born from an idle rotation now holds its buffer until the first user interaction, then ships a recording playable from the session's start; without interaction nothing is sent — a further rotation, stop, opt-out, or page unload discards the held data instead of shipping it. An event trigger match (for example record-on-exception) also releases the hold, since it is explicit intent to record the session. (2026-08-03)
1.410.5
Patch Changes
- #4273
8ec3499Thanks @felipeatom! - Fix selector-widget surveys being abruptly removed while open when their trigger element is unmounted from the DOM (e.g. a dropdown or menu that hosts the trigger closes). The survey is now kept in place while open and only torn down once the user has closed it. Also fixes a related leak where, if the selector resolved to a different element while the survey was open, the old element's click listener was never removed and kept dispatching the show-widget event for the lifetime of the page. (2026-08-03)
1.410.4
Patch Changes
- #4235
7db0e8cThanks @hpouillot! - Preserve messages, source locations, and existing stacks from browser errors that do not provide a same-realmErrorobject. (2026-08-03) - Updated dependencies [
7db0e8c]:- @posthog/core@1.46.5
1.410.3
Patch Changes
- #4399
662fb4cThanks @christiaan-ph! - Conversations widget: bullet and numbered lists in a support reply now keep their markers on host pages with an aggressive CSS reset (for example Tailwind preflight'sol, ul { list-style: none }). The widget renders into the host page's DOM, so the list style is now set inline on<ul>,<ol>, and<li>rather than left to the page's own styles. (2026-08-03)
1.410.2
Patch Changes
-
#4334
bd93230Thanks @posthog! - Conversations widget: treat a network-level message send failure (ad blocker, offline, CORS, page teardown) as transient — the widget now shows a "check your connection" message and logs atwarninstead oferror, so these benign failures no longer show up as captured exceptions in error tracking. (2026-08-03) -
#4341
d68e607Thanks @posthog! - Prevent duplicate snippet loaders from replacing an initialized instance or replaying queued calls more than once, and warn with actionable guidance wheninit()is called again with a different project token (2026-08-03)
1.410.1
Patch Changes
- #4386
0854095Thanks @marandaneto! - Prevent the inline canvas recording worker from requesting an unusable source map from its blob URL. (2026-08-03) - Updated dependencies [
eb0a793]:- @posthog/core@1.46.3
1.410.0
Minor Changes
- #4125
fde7145Thanks @DerGeraetK! - Addsession_recording.samplingto disable or throttle mousemove capture (and optionally mouseInteraction) in session replay. Canvas recording now merges its canvas sampling with user-provided sampling instead of overwriting it. (2026-08-03)
Patch Changes
- #4387
10ef759Thanks @NVolcz! - Share extension bundle types between the slim and slim no-external entrypoints. (2026-08-03) - Updated dependencies [
fde7145]:- @posthog/types@1.400.0
1.409.6
Patch Changes
- #4299
8a7bb3fThanks @posthog! - Mark our bundles as third-party code in the source maps we publish (thex_google_ignoreListextension). Browser devtools now attributeconsole.*messages to the code that called them instead of to posthog-js's console wrapper, which previously showed every message as coming fromlogs.tswhencaptureConsoleLogsor session replay'senable_recording_console_logwas enabled. (2026-08-03) - Updated dependencies [
7c3a9af]:- @posthog/core@1.46.2
1.409.5
Patch Changes
- #4354
6c500f1Thanks @ablaszkiewicz! - Fail open when an error tracking suppression rule cannot be evaluated, so an unknown operator or a key outside$exception_types/$exception_valuesno longer drops the exception. (2026-07-31)
1.409.4
Patch Changes
- #4338
c458807Thanks @turnipdabeets! - Fix canvases staying blank after seeking in session replay by re-sending one frame per canvas after each full snapshot (2026-07-31)
1.409.3
Patch Changes
- #4312
4729871Thanks @darkopia! - Fix hosted (external) surveys with URL prefill: the auto-submitted response now includes caller-provided event properties (extra URL query params), and a later manual submit no longer clears the prefilled answer from the partial-response merge. (2026-07-31)
1.409.2
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) - Updated dependencies [
4b8867c]:- @posthog/browser-common@0.3.1
1.409.1
Patch Changes
- #4301
4b36c44Thanks @dustinbyrne! - Add the browser-v1 client adapter for shared extensions, including analytics, request, persistence, replayed remote-config outcomes, and synchronous best-effort cleanup. (2026-07-31) - Updated dependencies [
6b48a59]:- @posthog/browser-common@0.3.0
1.409.0
Minor Changes
- #4308
6e7f3aeThanks @ablaszkiewicz! - Emit the release id that posthog-cli injects into your bundle as$release_idon$exceptionevents, so PostHog can attach exceptions to a release without joining through symbol sets. AddsgetInjectedReleaseId()to@posthog/core. The property is only attached when an injected release id can be read. (2026-07-30)
Patch Changes
- Updated dependencies [
6e7f3ae]:- @posthog/core@1.46.0
1.408.3
Patch Changes
-
#4327
232b06aThanks @github-actions! - Refresh campaign parameters after SPA URL changes. (2026-07-30) -
#4328
95a3d02Thanks @marandaneto! - Fixidentify()creating a person profile when the supplied ID already matches an anonymously persisted distinct ID. (2026-07-30)
1.408.2
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/browser-common@0.2.5
- @posthog/core@1.45.3
1.408.1
Patch Changes
- #4226
3b02a78Thanks @ksvat! - The replayer can now yield to the event loop while fast-forwarding to a seek target, via the new opt-inseekYieldBudgetMsplayer config. Seeking in a long, event-dense recording rebuilds the target frame by re-applying every event since the last full snapshot in one uninterrupted main-thread pass, which can block the page for many seconds and trigger the browser's "Page Unresponsive" dialog; when a yield budget is set, the rebuild runs in time-budgeted chunks instead, and a newer seek cancels any rebuild still in flight so rapid scrubbing only pays for the last seek. A superseded rebuild also resets the machine'slastPlayedEventso the next seek performs a full rebuild rather than trusting a partially-applied history. The default (0) keeps the previous fully-synchronous behavior. (2026-07-30)
1.408.0
Minor Changes
-
#4270
92427a1Thanks @turnipdabeets! - Add canvas mask regions to session replay canvas capture:session_recording.canvasCapture.maskRegionsFnis called once per canvas per captured frame, and the returned regions (CSS pixels, relative to the canvas) are painted black in the captured frame before it is encoded — letting apps that render into canvas (e.g. Flutter web via CanvasKit) mask content that DOM-based masking cannot see.The return value decides what happens to that canvas's frame:
[]— nothing to mask; the frame is recorded as is.null— regions could not be computed; the frame is skipped rather than recorded unmasked.maskRegionsFnnot set — canvases are recorded unmasked and canvas capture behavior is unchanged.
Configuring
maskRegionsFnalso disables canvas pixel serialization in DOM full snapshots (rr_dataURL) — that path never sees the mask regions, so skipping it closes the route that could otherwise embed unmasked canvas stills in a snapshot; the canvas repaints from the masked frame stream instead. Every canvas the provider answers — with regions or[]— re-sends an unchanged frame as a keyframe every 30s, so after a full snapshot or a seek an idle canvas repaints within at most 30s.An app whose real provider only exists once its runtime has booted chooses what happens in between by what it declares in
posthog.init: a function covering the whole canvas blacks those frames out,() => nullskips them, and declaring nothing records them. Client-side only, cannot be set via remote configuration. (2026-07-29)
Patch Changes
- Updated dependencies [
92427a1]:- @posthog/types@1.399.0
1.407.8
Patch Changes
-
#4311
c1818e2Thanks @marandaneto! - fix(react): restore CommonJS default import interop in UMD bundlesReact hooks used without a
PostHogProvidernow receive the default PostHog instance again when the UMD build is loaded through CommonJS. (2026-07-29)
1.407.7
Patch Changes
-
#4304
c7099e9Thanks @lucasheriques! - fix(surveys): only wait for feature flags on surveys that repeatSurveys stopped being shown while feature flags were still loading, even when a cached enabled value for their internal targeting flag was already available. Popover and widget surveys recovered on the next evaluation, but a survey your own code renders (type
api) is evaluated once, so it was dropped for that page load and never reappeared.That wait is only needed for surveys that repeat, where stored per-survey state is keyed by iteration and cannot be relied on to record that someone already answered. Other surveys keep one stable key that already prevents a repeat display, so they are now evaluated against the cached flag right away. (2026-07-29)
-
Updated dependencies [
c7099e9]:- @posthog/core@1.45.2
1.407.6
Patch Changes
- #4305
b4250a7Thanks @marandaneto! - Fix extension bundles when used with the slim no-external browser build. (2026-07-29)
1.407.5
Patch Changes
- #4278
a19ba65Thanks @marandaneto! - Fix paused replay seeks at an exact full snapshot timestamp so the snapshot frame is rebuilt before playback pauses. (2026-07-28)
1.407.4
Patch Changes
- #4290
a08c226Thanks @marandaneto! - Send session recording request timestamps in request bodies instead of query strings. (2026-07-28)
1.407.3
Patch Changes
-
#4214
f7399a0Thanks @felipeatom! - FixcanRenderSurvey/canRenderSurveyAsyncreporting a survey as renderable before its event/action activation trigger has fired. Surveys gated on a "User sends events" filter are now only eligible once the trigger event is received. (2026-07-27) -
#4231
eabe2efThanks @marandaneto! - Send analytics request timestamps in capture bodies while retaining query timestamps for session recordings. (2026-07-27) -
#4102
fa4844bThanks @marandaneto! - Send SDK library identity in feature flag person properties instead of URL query parameters. (2026-07-27) -
#4220
11330b3Thanks @SegFaultZero! - fix(replay): prevent server timings from dropped ingestion requests causing an endless capture loop (2026-07-27) -
Updated dependencies [
7210789]:- @posthog/browser-common@0.2.2
1.407.2
Patch Changes
- #4224
ba7042bThanks @turnipdabeets! - Fix session replay recordings being unplayable after the session rotated in a tab with no user interaction. When a session expired and rotated (for example in a long-lived background tab), a recorder that had not yet seen user interaction kept attributing snapshots — including full snapshots — to the previous session, so the new session never received a playable full snapshot. The recorder now restarts on rotation in this state, re-syncs its session id from the session manager if they ever diverge, and flushes its buffer on the normal cadence before the first user interaction instead of holding data until the next rotation or page unload. (2026-07-23)
1.407.1
Patch Changes
- #4218
33f0bd7Thanks @marandaneto! - Send ISO feature flag timestamps in request bodies, use numericsent_atquery timestamps for capture POSTs, and preserve_cache busting for dynamic GET requests. (2026-07-23)
1.407.0
Minor Changes
-
#4222
0f2407bThanks @turnipdabeets! - feat: add a default-value option toisFeatureEnabledisFeatureEnabled(key, { defaultValue: false })now returns the given default when the flag has no value — flags not loaded yet, or no flag with that key — and the return type narrows toboolean. The option name is the same in posthog-js, posthog-js-lite, and posthog-react-native. WithoutdefaultValue, behavior is unchanged:boolean | undefined. (2026-07-22)
Patch Changes
-
#4203
90e7483Thanks @posthog! - fix(conversations): let users start a new conversation while a ticket is still openThe support widget now surfaces the ticket list navigation (and its "New conversation" button) whenever the user has any ticket, instead of only when they have multiple tickets or a single resolved one. Previously a user sitting on one open, unresolved ticket was locked into that conversation with no way to raise a second issue. (2026-07-22)
-
#4221
da6e082Thanks @posthog! - fix(exception-autocapture): don't throw when the page's onerror handler is non-callableThe wrapped
window.onerror,window.onunhandledrejection, andconsole.errorhandlers chained to the page's original handler using optional chaining, which only guards againstnull/undefined. When a page had one of these set to a truthy non-callable value (e.g. viaObject.defineProperty, or clobbered by another script/extension), our wrapper threw aTypeErrorfrom inside its own handler. We now check the original handler is actually callable before invoking it and fall back tofalseotherwise. (2026-07-22) -
#4209
569fc62Thanks @posthog! - Session recording no longer emits an uncaughtTypeError: Illegal invocationfrom the input observer's synchronous native-setter call. The previous fix only guarded the deferred hooked setter; the synchronousoriginal.set.call(this, value)still ran with a non-nativethis(a proxy, custom element, or cross-realm object) and threw inside the host page's own assignment. The recorder now probes the native getter — which fails the same internal-slot brand check as the setter — before forwarding: a non-nativethisis skipped, so the recorder no longer re-throws from its own frame, while genuine elements (including file inputs that legitimately throw on a programmatic value) keep their native behavior. The input event handler andgetInputTypeare similarly guarded against reading native accessors on a non-nativethis. (2026-07-22) -
#4068
d5e1188Thanks @posthog! - Fix event-triggered surveys re-displaying in a fresh session without their trigger firing. A non-repeatable event/action-triggered survey that was shown but never dismissed or answered had its activation persisted indefinitely, so it kept being treated as "triggered" on later page loads. The persisted activation is now scoped to the triggering session: it still survives a reload within that session, but a brand-new session drops it until the trigger fires again. Repeatable surveys are unaffected. (2026-07-22) -
#4205
de3ad61Thanks @posthog! - Warn when session recording masking options inposthog.initshadow the project-level "Privacy and masking" setting. Client-side masking still intentionally takes precedence, but previously the override was silent — a developer could set masking in the dashboard and see it quietly ignored because their SDK config diverged. The recorder now logs a console warning (in debug mode) naming the diverging fields so the precedence is self-explaining. (2026-07-22) -
Updated dependencies [
0f2407b]:- @posthog/core@1.45.0
- @posthog/types@1.398.0
1.406.2
Patch Changes
-
#4206
a3112d9Thanks @posthog! - fix(surveys): stop recurring surveys re-showing off a stale internal targeting flagRecurring surveys could re-display and record a duplicate response when the eligibility check ran against a cached internal targeting flag before fresh flags had loaded. The display loop now waits for feature flags to actually load before trusting the internal targeting flag, and forces a flag reload after a survey is completed so the flag recomputes promptly. (2026-07-21)
1.406.1
Patch Changes
- #4127
220fa2cThanks @sarmah-rup! - Don't let save_referrer overwrite a $referrer / $referring_domain that was explicitly set via posthog.register(), so registered attribution values survive pageviews in SPA and iframe contexts (2026-07-21)
1.406.0
Minor Changes
- #4194
d39b903Thanks @dustinbyrne! - Move shared browser utility implementations into@posthog/browser-commonand consume them directly fromposthog-js. (2026-07-21)
Patch Changes
- #4204
ba977d0Thanks @turnipdabeets! - Keep autocapture off when a remote config response omitsautocapture_opt_out. The SDK now retains the last known server value for the missing-field case, the same as when the config fetch fails, instead of enabling autocapture. Values persisted by earlier SDK versions are still trusted; a browser holding a stale value corrects itself on the first config response that includes the field. (2026-07-21) - Updated dependencies [
d39b903]:- @posthog/browser-common@0.2.0
1.405.3
Patch Changes
- #4200
91505baThanks @pauldambra! - fix: apply the active full snapshot interval as soon as a recording trigger matches (2026-07-21)
1.405.2
Patch Changes
- #4198
fbfc84fThanks @pauldambra! - feat: make the pending session recording trigger buffer interval configurable (2026-07-20) - Updated dependencies [
fbfc84f]:- @posthog/types@1.397.1
1.405.1
Patch Changes
- #4193
dec8fe7Thanks @turnipdabeets! - Internal restructuring of remote config failure handling across SDK extensions; no behavior change. (2026-07-20)
1.405.0
Minor Changes
-
#4172
9621830Thanks @haacked! - send minimal$feature_flag_calledevents when the server enables itWhen the v2
/flagsresponse carriesminimalFlagCalledEvents: true(or, for posthog-node local evaluation, the flag-definitions payload carriesminimal_flag_called_events: true) and the evaluated flag is not linked to an experiment ($feature_flag_has_experiment === false),$feature_flag_calledevents are rebuilt from a strict allowlist of flag-evaluation, processing-control, and SDK-identity properties. Super properties,$set/$set_once, the$feature/<key>enumeration,$active_feature_flags, and the context envelope are stripped. Any missing signal (no gate on the response, bootstrapped or locally injected flags,has_experimentunknown) falls back to the full event, and experiment-linked flags always send the full envelope. The gate is stored alongside the cached flags (posthog-js persistence, posthog-node poller state) and is server-controlled, with no SDK-side configuration.before_sendruns after the filter and may re-add stripped properties. (2026-07-20)
Patch Changes
- Updated dependencies [
9621830]:- @posthog/core@1.44.0
1.404.1
Patch Changes
- #4191
66c1666Thanks @turnipdabeets! - Honour the project-level autocapture opt-out when the remote config request fails. Previously a failed config fetch (network error, timeout, blocked request) enabled autocapture on opted-out projects and persisted that state for later page loads. Autocapture now keeps the last successfully received server value, and stays off until the first successful config response. (2026-07-17)
1.404.0
Minor Changes
- #4149
607bf54Thanks @pauldambra! - Add dead swipe detection to dead clicks autocapture. When dead clicks autocapture is enabled, touch swipe gestures that produce no observable screen change (no scroll, mutation, selection or visibility change) are now captured as$dead_swipeevents, surfacing failed navigations on touch devices. Configurable viacapture_dead_swipes(defaulttrue) andswipe_threshold_px(default30) on thecapture_dead_clicksconfig. Swipes over surfaces whose response cannot be observed (canvas, video and other media elements under the finger) are skipped, and captures are limited per page load viamax_dead_swipes_per_page_load(default10). (2026-07-16)
Patch Changes
- #4171
df17ddcThanks @posthog! - Catch synchronous throws from a monkey-patchedwindow.fetchso they no longer escape as unhandled exceptions. A synchronous throw is now routed through the same handling as an async rejection, so the request queue retries instead of the error leaking into error tracking. (2026-07-16) - Updated dependencies [
607bf54]:- @posthog/types@1.397.0
1.403.0
Minor Changes
-
#4159
fad6d9aThanks @haacked! - add$feature_flag_has_experimentto$feature_flag_calledevents$feature_flag_calledevents now carry a$feature_flag_has_experimentboolean sourced from the server'shas_experimentflag metadata (the/flags?v=2response for remote evaluation, the/api/feature_flag/local_evaluationdefinitions for posthog-node local evaluation). The property is only sent when the server explicitly reportshas_experiment; it is omitted entirely when the value is unknown (older servers, missing metadata, bootstrapped or locally injected flags). (2026-07-16)
Patch Changes
- Updated dependencies [
fad6d9a]:- @posthog/core@1.43.0
- @posthog/types@1.396.0
1.402.3
Patch Changes
-
#4157
4a2ecf5Thanks @posthog! - Session recording no longer emits an uncaughtNotAllowedError("Sharing constructed stylesheets in multiple documents is not allowed") when a page assigns aCSSStyleSheetconstructed in a different document toadoptedStyleSheets. That assignment is the host page's own invalid operation, but the recorder's patched setter sat on the call stack, so the exception was attributed to rrweb and churned fingerprints in error tracking. The recorder now contains this specific rejection (matched by its standardizedNotAllowedErrorname, so it works even when the setter throws from an iframe realm) and skips recording those sheets, while still re-throwing any other native-setter error so host-page behaviour is preserved. (2026-07-15) -
#4158
0dc389eThanks @posthog! - fix(replay): session recording no longer throwsTypeError: Converting circular structure to JSONwhen replay event data contains a circular reference. The circular-reference guard now also detects cycles that pass through an array, and affected events are captured with[Circular]markers instead of surfacing an unhandled error and being dropped. (2026-07-15) -
Updated dependencies [
fc2cb2e]:- @posthog/core@1.42.1
1.402.2
Patch Changes
- #4151
81adbfdThanks @posthog! - Session recording no longer emits an uncaughtTypeError: Illegal invocationwhen a programmatic input-value change happens on an object that is not a genuine native input element (for example a proxy on the element prototype chain). The recorder drops that one replay update instead of throwing. (2026-07-15)
1.402.1
Patch Changes
-
#4117
1eddff7Thanks @DanielVisca! - add the posthog.metrics API (count, gauge, histogram) to posthog-node — alphaBackend services can now record metrics through the same statsd-style pre-aggregating client the browser SDK ships, with no OpenTelemetry setup:
1const client = new PostHog("phc_...", { 2 metrics: { serviceName: "billing-worker" }, 3}); 4client.metrics.count("invoices.processed", 1, { 5 attributes: { plan: "pro" }, 6}); 7client.metrics.gauge("queue.depth", 42); 8client.metrics.histogram("job.duration", 187, { unit: "ms" });Samples aggregate in memory and flush as OTLP/JSON to
/i/v1/metrics(one data point per series per window). Pending metrics are flushed onshutdown(). Core gains_sendMetricsBatchonPostHogCoreStateless(same outcome contract as_sendLogsBatch) and a sharedresolveMetricsConfig, so any core-based SDK can hostPostHogMetrics. (2026-07-15) -
Updated dependencies [
1eddff7]:- @posthog/core@1.42.0
1.402.0
Minor Changes
- #4143
0e8ad14Thanks @robbie-c! - Stamp the current hostname as$snapshot_hoston every$snapshotevent the session recorder sends. The value is derived from the page URL after it passes through the existing replay URL masking pipeline (maskCapturedNetworkRequestFn/ deprecatedmaskNetworkRequestFn, hash stripping, personal-data query-param masking), so it cannot bypass a customer's masking config. When masking removes the URL or the masked result doesn't parse as a URL, the property is omitted entirely. This gives ingestion consumers a per-message host signal even for mid-session snapshot batches that contain no URL-bearing events. (2026-07-15)
1.401.0
Minor Changes
- #4129
800af7cThanks @pauldambra! - feat: addsession_recording.attributeFilteroption that passes an attribute allowlist through to the native MutationObserver, so mutations to unlisted attributes (e.g. animation-driven inlinestylechurn) never cost recording CPU (port of upstream rrweb #1873) (2026-07-15)
Patch Changes
- Updated dependencies [
800af7c]:- @posthog/types@1.395.0
1.400.1
Patch Changes
- #4090
6dd8827Thanks @lucasheriques! - chore: survey seen-key and repeat-activation helpers now live in @posthog/core, shared by the web and React Native SDKs. Core's survey enums are now const-object literal unions (matching the web SDK's existing pattern), so the same values type-check across both SDKs. No behavior change. Type-level note: enum members no longer work as standalone type annotations (e.g.SurveyType.Popoveras a type); use the exported union types instead. Runtime values are unchanged. (2026-07-14) - Updated dependencies [
6dd8827]:- @posthog/core@1.41.1
1.400.0
Minor Changes
- #4101
dc2aa5bThanks @posthog! - Normalize the error tracking rate-limiter config to first-class options. The browser SDK now readsexceptionRateLimiterRefillRate/exceptionRateLimiterBucketSizeonerror_tracking, with the previous double-underscore__exceptionRateLimiterRefillRate/__exceptionRateLimiterBucketSizeoptions deprecated but still honoured as a fallback. The option shape (ExceptionRateLimiterConfig) and default-resolution logic (resolveExceptionRateLimiterConfig) now live in@posthog/coreand are shared between the browser and Node SDKs. (2026-07-14)
Patch Changes
- #4140
1eabd30Thanks @turnipdabeets! - HandlesendBeaconquota rejections instead of silently dropping events. A beacon rejected by the browser (over the page's shared ~64KiB in-flight keepalive quota) is now split in half and re-sent recursively so the batch delivers as far as the quota allows; a rejected payload that cannot be split falls back to a non-keepalive fetch and logs a warning. Previously the boolean return ofsendBeaconwas ignored and an over-quota unload batch was lost with no signal. (2026-07-14) - Updated dependencies [
dc2aa5b]:- @posthog/core@1.41.0
- @posthog/types@1.394.0
1.399.5
Patch Changes
-
#4134
ab10064Thanks @posthog! - Bound autocapture's DOM ancestor walks against abnormal host-page DOM trees.autocapturePropertiesForElementandshouldCaptureElementnow stop climbing theparentNodechain after 1000 ancestors or if they revisit a node (only possible when a page patchesparentNode, since native DOMs cannot contain cycles), instead of walking indefinitely. WhenshouldCaptureElementcannot finish checking ancestors forph-no-capture/ph-sensitive, it fails closed and reports the element as not capturable. Behavior on normal DOM trees is unchanged. (2026-07-14) -
#4141
17d956cThanks @posthog! - Log network-level fetch failures from posthog-js's own request layer (ad blocker, dropped connection, CORS, page teardown) atwarninstead oferror. The browser rejects these with a genericTypeError(Failed to fetch, Firefox'sNetworkError..., or Safari'sLoad failed); they are already caught and retried by the request queue, so they are expected noise rather than SDK errors —_fetchnow gives them the samewarntreatment as our own timeout aborts. Genuine, unexpected errors still log aterror. (2026-07-14)
1.399.4
Patch Changes
- #4139
7c339beThanks @turnipdabeets! - Encode uncompressedsendBeaconbodies as base64 form data so the beacon keeps a CORS-simple content type. Previously an uncompressed unload beacon was sent asapplication/json, which forces a CORS preflight — a preflight cannot complete while the page unloads, so on cross-origin hosts the browser silently dropped the POST and the final batch of events was lost. Compression is inactive whenever the remote config request fails (flaky network, blocked endpoint), when the config response omitssupportedCompression, or withdisable_compression: true. (2026-07-13)
1.399.3
Patch Changes
- #4133
4ebb618Thanks @mikenicholls88! - MakejsonStringifycircular-safe so event serialization never throws. Previously a captured property holding a circular value — most commonly a DOM node that retains a React fiber pointing back at the element — madeJSON.stringifythrowConverting circular structure to JSON; withcapture_exceptionsenabled that throw was recaptured as a new$exception, at times in a loop. On a throw we now fall back tosafeJsonStringifyfrom@posthog/core. The fast (non-circular) path is unchanged, and only true cycles become"[Circular]", so shared-but-acyclic references keep their real values. (2026-07-13)
1.399.2
Patch Changes
- #4118
f630394Thanks @posthog! - Fix aRangeError: Maximum call stack size exceededoriginating from the shared rrwebpatch()helper. It patches shared globals such asElement.prototype.attachShadow(shadow-dom-manager) and the DOM/canvas observers, so multiple recorder instances or repeated start/stop cycles wrap the same global more than once. Previously an out-of-order restore silently no-op'd, leaving the wrapper in the call path; repeated cycles grew the wrapper chain without bound until a real call walked a chain deep enough to overflow the stack. Wrappers now delegate through a mutable per-layer link so any layer can be torn down even when newer wrappers sit on top of it, keeping the chain bounded. Recording behavior is unchanged. This applies the same fix as #4063 (fetch/XHR) to the shared helper so every rrweb-record caller inherits the bounded-chain behavior. (2026-07-10)
1.399.1
Patch Changes
-
#4122
c915581Thanks @github-actions! - FixTypeError: handlePageUnload is not a functionthrown on page unload when a version-skewed lazy-loaded surveys chunk produces a survey manager whose prototype lackshandlePageUnload. The delegated call inPostHogSurveys.handlePageUnload()now guards the method as well as the receiver. (2026-07-09) -
#4124
562ceebThanks @posthog! - Session recording no longer crashes on startup when a CDN-loaded recorder chunk runs against an older bundled core. Calls intoSessionIdManager.on/onSessionIdare now guarded so a core without those methods degrades gracefully instead of throwing aTypeErrorduringstart(). (2026-07-09)
1.399.0
Minor Changes
-
#4115
86bb3a5Thanks @DanielVisca! - add the posthog.metrics API (count, gauge, histogram) — alphaA statsd-style pre-aggregating metrics client for the PostHog Metrics product (alpha). Samples are folded into per-series aggregates in memory (counts sum, gauges keep the last value, histograms accumulate buckets) and flushed periodically as OTLP/JSON to
/i/v1/metrics— one data point per series per flush window, no matter how many calls. No OpenTelemetry SDK setup required:1posthog.metrics.count("orders_created", 1); 2posthog.metrics.gauge("active_connections", 42); 3posthog.metrics.histogram("api_latency", 187, { unit: "ms" });Configure via
metrics: { serviceName, environment, flushIntervalMs, maxSeriesPerFlush, beforeSend, ... }. (2026-07-08)
Patch Changes
- Updated dependencies [
86bb3a5]:- @posthog/core@1.40.0
- @posthog/types@1.393.0
1.398.7
Patch Changes
-
#4113
45f17eeThanks @TueHaulund! - fix session replay leaking a shadow-root observer when a same-origin iframe is removedFollow-up to the shadow-observer iframe-teardown fix:
takeFullSnapshot'sonSerializeregisters every shadow root with the top-level document, so a root nested in a same-origin iframe was keyed to the wrong document and its observer/buffer were not disconnected when that iframe was removed (they lingered until the next full snapshot).addShadowRootnow derives the owning document from the host element, so per-document teardown matches iframe-nested roots too. (2026-07-08)
1.398.6
Patch Changes
- #4114
c75c0baThanks @hpouillot! - fix: avoid throwing when rrweb recorder cleanup cannot remove a listener (2026-07-08)
1.398.5
Patch Changes
- #4103
be8242aThanks @rafaeelaudibert! - Publish the code-split ESM toolbar bundle when the build emits one. The release tooling now recursively includesdist/toolbar/(with explicit JS content types for the strict-MIME ESM chunks) across the immutable, major-alias, and compatibility upload prefixes, and the workflow accepts the canonicaltoolbar.js/toolbar.csslayout. This is a no-op against today's single-file build. (2026-07-08)
1.398.4
Patch Changes
-
#4104
ec5e401Thanks @TueHaulund! - fix session recordings missing their initial full snapshot after an idle session-id rotationWhen the session id rotated while the recorder was idle, the restarted recorder's Meta and FullSnapshot were appended to the previous session's buffer and shipped under the old session id, leaving the new recording unplayable until the next periodic snapshot. The buffer now rebinds on any session-id change regardless of idle state, and as a safety net the recorder requests a full snapshot whenever an incremental is about to ship for a session that has not produced one. (2026-07-08)
1.398.3
Patch Changes
-
#4112
38bb185Thanks @TueHaulund! - fix session replay silently dropping shadow DOM mutations after an iframe teardownThe single shared ShadowDomManager observes every shadow root on the page, but MutationBuffer.reset() disconnected it. That reset fires whenever any one buffer is torn down, so an iframe being removed or navigating away disconnected every shadow-root observer page-wide. Shadow DOM content (for example a widget mounted in an open shadow root) then stopped recording until the next periodic full snapshot re-registered it. Buffer teardown now releases only its own resources; global shadow observation is reset by takeFullSnapshot and on recording stop. (2026-07-08)
1.398.2
Patch Changes
-
#4063
24aadd5Thanks @posthog! - Fix aRangeError: Maximum call stack size exceededthat could originate from the sharedpatch()fetch/XHR wrapper. posthog-js wrapswindow.fetchin two independent places (tracing headers and session-recording network capture), so their restores routinely ran out of order. Previously an out-of-order restore silently no-op'd, leaving the wrapper in the call path; repeated start/stop cycles grew the wrapper chain without bound until a realfetchwalked a chain deep enough to overflow the stack. Wrappers now delegate through a mutable link so any layer can be torn down even when newer wrappers sit on top of it, keeping the chain bounded. Header-injection and network-capture behavior is unchanged. (2026-07-07) -
#4100
e250a24Thanks @marandaneto! - Stop adding the gzip compression query parameter to browser SDK requests. (2026-07-07) -
#4083
f07e241Thanks @posthog! - fix(replay): harden session-replay network capture so instrumentation that throws (e.g.new Request()rejecting a URL/method) degrades gracefully and never breaks or misattributes the host application's ownxhr.open()/fetch()calls (2026-07-07)
1.398.1
Patch Changes
- #4096
5013ab6Thanks @marandaneto! - Stop sending the deprecatedverquery parameter to capture and session recording endpoints. (2026-07-07)
1.398.0
Minor Changes
- #4070
ef119bfThanks @posthog! - Add adisableAutofocussurvey appearance option. When set, open-text survey questions no longer steal focus when they render, which is useful for embedded (inline) surveys that shouldn't grab the caret or scroll the page on load. Defaults tofalse, preserving the existing autofocus behavior. (2026-07-06)
1.397.0
Minor Changes
- #4089
cc340dbThanks @bs1180! - feat(web): add aposthog-js/customizationssubpath entry point exposing the optional customizations (setAllPersonProfilePropertiesAsPersonPropertiesForFlags, thebefore-sendsampling helpers, and the redux/kea loggers) as a proper ES module with bundled types, replacing the internalposthog-js/lib/src/customizationsdeep import. Also fixes the TypeScript definitions sosetAllPersonProfilePropertiesAsPersonPropertiesForFlagsaccepts the instance passed to theloadedcallback (the documented usage), and theloadedcallback's instance type now includesconfig. (2026-07-06)
1.396.9
Patch Changes
- #4077
2595440Thanks @pauldambra! - fix(web): stop retrying log batches forever when requests die before an HTTP response (status 0, e.g. an ad blocker) — after 3 consecutive such failures while the browser reports itself online, the logs pipeline stops sending and drops batches instead of buffering and retrying for the life of the page; theonlineevent reopens it, and genuine offline periods still queue for the reconnect flush (2026-07-06)
1.396.8
Patch Changes
- #4062
2af0026Thanks @posthog! - fix(web): prevent an infinite-recursion stack overflow in the logs console capture. The console wrapper's own capture path can emit internal debug lines through PostHog's logger, which wrote back to the wrapped console and re-entered capture until the stack blew (RangeError: Maximum call stack size exceeded). The wrapper now exposes the original console method via__rrweb_original__(so the internal logger bypasses it) and guards against re-entrancy from any code that logs mid-capture. (2026-07-06)
1.396.7
Patch Changes
- #4080
08cd27bThanks @marandaneto! - fix(web): stop repeatedly hitting blocked feature flag and conversations polling endpoints after consecutive status-0 failures (2026-07-06)
1.396.6
Patch Changes
-
#4053
45d1b36Thanks @posthog! - feat(web): add a gracefulshutdown()to the browser client for parity with posthog-node, so isomorphic teardown code (e.g. the Nuxt module) that callsposthog.shutdown()on the client no longer throwsTypeError: shutdown is not a function. It best-effort flushes the queued events and always resolves. (2026-07-03) -
#4054
f0657ebThanks @posthog! - fix(web): detect our own feature-flag request timeouts via atimedOutflag instead of the abort reason, so they are logged atwarn(noterror) on browsers that don't propagatecontroller.abort(reason)— keeping benign timeouts out of error tracking's console-error capture (2026-07-03) -
#4031
94a0530Thanks @posthog! - Improve survey display reliability:- posthog-js: refresh the cached
$surveysdefinitions after a short TTL (stale-while-revalidate) so server-side changes such as switching a survey from popover to API propagate to long-lived tabs without a page reload. - posthog-js: add
posthog.surveys.markSurveyAsSeen(surveyId, { iteration })so custom integrators that render surveys through their own backend can honour the "already seen" and wait-period checks. - posthog-react-native: guarantee the survey
Modalnotifies its parent on close even when iOSModal.onDismissfails to fire, so the transparent full-screen modal can no longer stay mounted intercepting touches and freezing the app. (2026-07-03)
- posthog-js: refresh the cached
-
Updated dependencies [
45d1b36]:- @posthog/types@1.392.1
1.396.5
Patch Changes
- #4050
d7cf13bThanks @turnipdabeets! - Prevent uncaughtgetComputedStylecrashes in heatmaps and autocapture when the event target is a cross-realm element (e.g. from an iframe or synthetic event) (2026-07-02) - Updated dependencies [
5e7e132]:- @posthog/core@1.39.5
1.396.4
Patch Changes
-
#4035
18e543bThanks @posthog! - fix(web): isolateonFeatureFlagscallbacks so a throwing user handler no longer breaks the remaining callback chain or gets misattributed as an SDK error (2026-07-01) -
#4039
15bcb42Thanks @github-actions! - fix(replay): measure$snapshot_bytesas UTF-8 byte length instead of UTF-16 string length, so non-ASCII session replay payloads are counted accurately against the message size limit (2026-07-01)
1.396.3
Patch Changes
- #4020
e0ad8efThanks @posthog! - FixTypeError: ....at is not a functionthrown by the bundledweb-vitalsdependency on browsers that predateArray.prototype.at()(Chrome <92, iOS Safari <15.4). The web-vitals entrypoints now install a tinyArray.prototype.atpolyfill before web-vitals runs, so web vitals capture works again on older browsers instead of crashing with an unhandled error. (2026-06-30)
1.396.2
Patch Changes
- #4003
b6261e7Thanks @marandaneto! - Include a Promise polyfill in the IE11 bundle and avoid Promise-dependent async compression paths when Promise support is unavailable. (2026-06-29)
1.396.1
Patch Changes
- #3999
cdeae17Thanks @marandaneto! - Fall back to uncompressed browser requests when gzip encoding fails. (2026-06-29)
1.396.0
Minor Changes
- #3987
74cc6bbThanks @TueHaulund! - Add aget_current_urlconfig option that overrides the URL used for client-side URL targeting — session replay URL triggers, the session replay URL blocklist, survey URL display conditions, product tour URL conditions, web experiment URL conditions, and autocapture URL allow/ignore lists. These match againstwindow.location.hrefdirectly, which does not reflect a$current_urlrewritten inbefore_send. Apps where the browser URL is not meaningful for targeting (e.g. Electron/desktop builds served from a generated host) can now return the logical URL to match against. Defaults towindow.location.hrefwhen not set. (2026-06-29)
Patch Changes
- Updated dependencies [
74cc6bb]:- @posthog/types@1.392.0
1.395.0
Minor Changes
- #3977
6200888Thanks @turnipdabeets! - AddgetAllFeatureFlags(), which returns all currently loaded feature flags as structuredFeatureFlagResults (key,enabled,variant,payload). It is a synchronous read of the cached flags and does not send a$feature_flag_calledevent. (2026-06-26)
Patch Changes
- Updated dependencies [
6200888]:- @posthog/core@1.38.0
1.394.0
Minor Changes
- #3986
919abcaThanks @ioannisj! - Capture the$device_modelsuper-property on Android Chromium vianavigator.userAgentData.getHighEntropyValues(['model']). Resolved once during init and sent on subsequent events; opt out withdisableDeviceModel: true. (2026-06-26)
1.393.6
Patch Changes
- #3965
6ef9179Thanks @marandaneto! - Handle request serialization errors without throwing or blocking queued requests. (2026-06-26)
1.393.5
Patch Changes
- #3960
619d318Thanks @marandaneto! - Improve console log capture performance for truncated large objects. (2026-06-25)
1.393.4
Patch Changes
- #3942
c9c8925Thanks @hpouillot! - Fix browser console log capture when session activity timestamps are missing and refresh session attributes for each log. (2026-06-24) - Updated dependencies [
c9c8925]:- @posthog/core@1.37.2
1.393.3
Patch Changes
- #3945
f94deafThanks @ioannisj! - fix(surveys): guard handlePageUnload against version-skewed surveys instance missing the method (2026-06-24)
1.393.2
Patch Changes
- #3944
1c9a811Thanks @ioannisj! - Stop logging a misleading "upgrade your PostHog server" warning for valid v2 flags responses that have no flags. (2026-06-24)
1.393.1
Patch Changes
- #3919
99bad9cThanks @pauldambra! - Session replay network capture: add an opt-in streaming reader for request/response bodies that stops at the payload size limit instead of buffering the whole body and then discarding it — bounding memory and pre-request latency when a body is very large. It reads only a clone of the body, so it never consumes the stream the page itself reads, and always resolves (never rejects) into the page'sfetch. Off by default; enabled fordefaults: '2026-06-25'and settable directly viasession_recording.streamNetworkBody. (2026-06-24) - Updated dependencies [
99bad9c]:- @posthog/types@1.391.1
1.393.0
Minor Changes
-
#3921
c28b161Thanks @marandaneto! - Adddisable_capture_url_hashesto strip URL fragments from automatically captured URLs. It is disabled by default for backwards compatibility, and enabled automatically whenconfig.defaultsis'2026-06-25'or later. Enabling it (either explicitly or via the'2026-06-25'defaults) is a breaking behavior change for SPAs that rely on URL hashes for routing or analytics, because hash-based routes will be collapsed to the same URL without the fragment in fields such as$current_url,$initial_current_url,$session_entry_url, autocapture$elements[*].attr__href,$external_click_url, replayhrefURLs, heatmaps, web vitals$current_url, logsurl.full, conversationscurrent_url/request_url, or Next.js Pages Router$pageview$current_url.If you only want to capture some hashes, leave hash capture enabled and use
before_sendto remove or redact sensitive hash values before events are sent. (2026-06-23)
Patch Changes
- Updated dependencies [
c28b161]:- @posthog/core@1.36.0
- @posthog/types@1.391.0
1.392.0
Minor Changes
-
#3895
ce528edThanks @turnipdabeets! - Console log auto-capture (logs: { captureConsoleLogs: true }) now flows through the same pipeline asposthog.captureLog(),posthog.logger.*, and PostHog's other SDKs, instead of OpenTelemetry. As a result:- the bundled OpenTelemetry dependencies are removed, shrinking the lazily-loaded logs chunk
- auto-captured console logs now run through
logs.beforeSend(the same hook ascaptureLog/logger.*), so you can redact or drop sensitive console output before it's sent. To treat console logs differently from manual logs, branch on the record'slog.sourceattribute: auto-captured console logs set it toconsole.<method>(e.g.console.error), while manualcaptureLog/logger.*logs leave it unset - console logs now link to the person's profile: they carry the person id as
posthogDistinctId, the attribute PostHog uses to associate logs with a person (docs). The old path useddistinct_id, which isn't used for person linking by default, so console logs previously didn't appear on person profiles unless you'd configured a custom key.
Console logs keep their
posthog-browser-logsservice.name, theirconsoleinstrumentation scope, and theirlog.source: console.<level>attribute.As part of moving onto the shared pipeline, console records now use PostHog's standard log field names — the same ones programmatic web logs and other SDKs use, and the ones the Logs UI surfaces. For the fields below the values are unchanged — only the attribute names/locations differ:
distinct_id→posthogDistinctId(record attribute)location.href→url.full(record attribute; same value — the page URL)session.id(resource attribute) →sessionId(record attribute) — renamed and movedhostandwindow.idmove from resource attributes to record attributes (names unchanged)- records also now carry the standard SDK context shared by other logs, including
feature_flags
For most projects this needs no action — these are already the canonical log fields. The only thing to update is a saved Logs query or dashboard built specifically on an old console attribute name, for example:
attributes.distinct_id→attributes.posthogDistinctIdattributes.location.href→attributes.url.fullresource.attributes.session.id→attributes.sessionIdresource.attributes.host/resource.attributes.window.id→attributes.host/attributes.window.id(2026-06-22)
Patch Changes
- Updated dependencies [
ce528ed]:- @posthog/core@1.35.4
1.391.9
Patch Changes
- #3922
26aa9baThanks @posthog! - Exception autocapture: posthog-js's own fetch timeout now aborts with an explicit, descriptive reason (PostHog request timed out after <n>ms) instead of a reason-lessDOMException: AbortError: signal is aborted without reason. This keepsname === 'AbortError'so existing timeout handling (e.g. feature flag timeout detection) is unchanged, but makes our own timeouts identifiable and stops them being re-captured as noise by console-error exception autocapture. (2026-06-22)
1.391.8
Patch Changes
- #3908
1fce04fThanks @marandaneto! - Apply CSP stylesheet preparation hook to Product Tours styles. (2026-06-22)
1.391.7
Patch Changes
- #3914
dac4edbThanks @pauldambra! - Session replay network capture: redact credential-bearing headers on both request and response (previously only request), and match credential-shaped custom header names by substring (e.g.x-gist-encoded-user-token) in addition to the exact deny list - avoiding accidental capture of tokens/cookies in recordings. (2026-06-22)
1.391.6
Patch Changes
-
#3901
049eeb6Thanks @marandaneto! - Stop adding the unusedbeaconquery parameter to browser SDK sendBeacon requests. (2026-06-22) -
#3900
3ee8667Thanks @marandaneto! - Stop adding the unusedipquery parameter to browser SDK requests. (2026-06-22)
1.391.5
Patch Changes
- #3915
beaccc3Thanks @pauldambra! - Session replay: apply the existing base64 image size cap (maxBase64ImageLength) to SVG<image>elements withdata:URIs on bothhrefandxlink:href. Previously the cap only covered<img>elements, so large inline data URIs inside SVGs were recorded in full - this also covers them in mutations, replacing oversized ones with the striped placeholder. (2026-06-22)
1.391.4
Patch Changes
- #3913
ee9f2a8Thanks @pauldambra! - Session replay network capture: expand the default payload host deny list to skip third-party analytics, RUM, and session-replay telemetry whose payloads have no replay value - Datadog, Segment, RudderStack, Amplitude, Mixpanel, Hotjar (both.comand.io), and FullStory. Also covers both Google Analytics beacon hosts (google-analytics.com, plusanalytics.google.comwhich gtag uses when Google Signals is enabled) and widens New Relic tonr-data.net. (2026-06-22)
1.391.3
Patch Changes
-
#3909
ab4a220Thanks @marandaneto! - Avoidstyle-src-attrCSP violations when diffing rrweb style mutations. (2026-06-22) -
#3912
78ac40cThanks @pauldambra! - Session replay network capture: never record binary/asset response or request bodies (image, video, audio, font, octet-stream, pdf, zip, wasm) even whenrecordBodyis enabled - they bloat recordings, duplicate what the replay already shows, and the body is no longer read. (2026-06-22)
1.391.2
Patch Changes
- #3903
6b21f77Thanks @marandaneto! - Validate custom event UUID overrides and generate new UUIDs when invalid. (2026-06-19) - Updated dependencies [
6b21f77]:- @posthog/core@1.35.3
- @posthog/types@1.390.2
1.391.1
Patch Changes
-
#3899
d090a7cThanks @lucasheriques! - Surveys: re-check eligibility when a popover's display delay elapses, instead of only re-checking the URL.A survey with a display delay could be queued while a visitor was still anonymous (the targeting flag passed for the anonymous profile), and then displayed after the delay even though
identify()had reloaded feature flags and the survey's internal targeting flag was now false for the identified profile (e.g. a "show once per user" survey the person had already dismissed). The delayed display now re-runs the full display predicate (eligibility, URL/device/selector conditions, event/action trigger, and feature flags) before rendering, so a survey that became ineligible during the delay is no longer shown. Pending delayed surveys are also cancelled promptly when a later evaluation cycle finds them ineligible. (2026-06-19)
1.391.0
Minor Changes
-
#3885
5392a55Thanks @pauldambra! - feat(replay): capture canvas at reduced resolutionAdds
session_recording.canvasCapture.resolutionScale- a(0, 1]fraction of the canvas display size to capture replay frames at. The captured bitmap is downscaled (pixel-area savings are quadratic) while the canvas's true display size is still recorded, so playback stretches the smaller frame back to the correct dimensions and aspect ratio - only sharpness drops, never layout. It defaults to1(full resolution, matching today's behaviour), and the latestdefaultsbundle (2026-05-30) opts new installs into0.6.The canvas's true display size travels with each frame through the encode worker (as required message fields), so the encoded reply is always drawn back to the correct dimensions — no per-canvas state is retained on the main thread, and downscaling can never mislabel a canvas's dimensions. At full resolution the captured pixels are unchanged (the quality resampling hint is only applied when actually downscaling); the emitted
drawImagenow always uses the explicit destination-size form, which is pixel-equivalent on replay.Mechanically,
@posthog/rrweb's canvas FPS-snapshot observer takes an optionalcanvasResolutionScalerecord option and downscales each captured frame accordingly. (2026-06-19)
Patch Changes
- Updated dependencies [
5392a55]:- @posthog/types@1.390.1
1.390.2
Patch Changes
-
#3868
a5dd54aThanks @pauldambra! - fix(replay): scope the session-recording flushed-size tracker to the session$sdk_debug_replay_flushed_sizewas stored as a single device-global value in persistence and only reset on an in-page session rotation, so it leaked across page loads and tabs and over-counted on returning visitors. The tracker now keys the running total to the current session id, so a new session starts from zero and a fresh load reading an ongoing session sees the correct total.The internal persistence key backing this counter (
$sess_rec_flush_size) was also unintentionally attached to every captured event as a super-property; it is now marked hidden so it no longer ships on events. The value remains available on session-replay debug events as$sdk_debug_replay_flushed_size. (2026-06-17)
1.390.1
Patch Changes
-
#3784
e25e629Thanks @lucasheriques! - Surveys: event-triggered surveys are now scoped to the page load the event fired in, and only persist across a page reload once they have actually been shown.Previously an event armed a survey by writing it to localStorage, where it stayed until shown. Because the activation survived reloads and the URL condition was only checked at display time, a survey armed by an exit-intent event (which fires as the user is leaving or reloading) could surface on a later page load with no event behind it. Activations now live in memory until the survey is shown, so an armed-but-unshown survey no longer reappears after a reload.
Once a survey is shown it is promoted to persistence, so a non-repeatable survey survives a reload and re-displays until the user dismisses or answers it (instead of vanishing if they reload before interacting). Repeatable surveys (
schedule: 'always'or "Show every time the event is captured") are still consumed when shown, so each captured trigger shows them once. Product tours follow the same model. Cross-page deferral (arm on one full page load, display on a later one) is no longer supported via event triggers; use audience targeting for that. (2026-06-17)
1.390.0
Minor Changes
-
#3869
81b79fbThanks @turnipdabeets! - Add abeforeSendoption to the logs config, so you can inspect, redact, or drop log records before they're sent:1posthog.init("<token>", { 2 logs: { 3 beforeSend: (log) => { 4 // return null to drop the log, or return the (optionally modified) log to keep it 5 if (log.body.includes("password")) { 6 return null; 7 } 8 return log; 9 }, 10 }, 11});beforeSendaccepts a single function or an array of functions (applied left to right); returningnullfrom any of them drops the record. It runs for logs sent via bothposthog.captureLog()andposthog.logger.*. (2026-06-17)
Patch Changes
- Updated dependencies [
81b79fb]:- @posthog/types@1.390.0
1.389.1
Patch Changes
- #3875
43b4137Thanks @marandaneto! - Limit retries for transport failures without an HTTP response. (2026-06-17)
1.389.0
Minor Changes
- #3865
b469830Thanks @turnipdabeets! - The browser's programmatic logs API (posthog.captureLog()/posthog.logger.*) now runs through the shared@posthog/corelogs pipeline that React Native already uses — no change to the public API or existing behavior. Log delivery is more resilient as a result: oversized batches are split automatically, failed sends retry with exponential backoff, and delivery resumes when the browser comes back online. (2026-06-17)
Patch Changes
- Updated dependencies [
b469830]:- @posthog/core@1.35.0
- @posthog/types@1.389.0
1.388.2
Patch Changes
- #3870
5edfee1Thanks @turnipdabeets! - FixupdateFlags(flags, payloads, { merge: true })baking an active feature flag override into the stored flags. The merge now seeds from the raw stored flags rather than the override-applied values, so clearing the override afterwards correctly restores the original flag. (2026-06-17)
1.388.1
Patch Changes
- #3851
5c453cdThanks @marandaneto! - Apply CSP nonce preparation hooks to style and script elements appended by site apps. (2026-06-17)
1.388.0
Minor Changes
- #3863
b6bc9beThanks @marandaneto! - Add autocapture-only CSS selector opt-outs for web interactions. (2026-06-17)
Patch Changes
- Updated dependencies [
b6bc9be]:- @posthog/types@1.388.0
1.387.0
Minor Changes
- #3709
c6c163aThanks @posthog! - AddunsetPersonProperties()to remove person properties, the counterpart tosetPersonProperties(). Previously the only way to unset a person property was to hand-pass a$unsetarray inside acapture()call. (2026-06-16)
Patch Changes
-
#3756
b3ec845Thanks @archievi! - Drop the event and log a warning when abefore_sendhook removes thetokenproperty, instead of silently sending an event that ingest rejects with a 401. (2026-06-16) -
#3860
c9c7df1Thanks @marandaneto! - Add$unsetto capture options and pass it through in browser capture payloads. (2026-06-16) -
#3855
fadaa4fThanks @haacked! - Stop sending theipquery parameter on feature flag requests. The flags endpoint ignores it, and some ad blockers match/flags…ip=to block flag evaluation on any domain. Dropping it from flag requests avoids the block with no functional change. Event and session recording requests are unchanged. (2026-06-16) -
#3830
0d837f5Thanks @dustinbyrne! - Avoid reloading exception and dead-click autocapture external scripts when they are already present. (2026-06-16) -
#3853
f95a0ecThanks @TueHaulund! - Capture native Fullscreen API transitions in session replay. Entering native fullscreen (element.requestFullscreen()) is rendered by the browser via the UA:fullscreenpseudo-class with no DOM mutation, so the recorder previously captured nothing and replays showed the element at its pre-fullscreen size with drifted click coordinates. The recorder now emits a reserved custom event onfullscreenchange(standard pluswebkit/moz/MSprefixes), and the replayer re-applies fullscreen layout to the element on playback (including when scrubbing into a fullscreen region) via a reservedrr_fullscreenattribute, consistent with rrweb's existingrr_*attribute namespace.Known limitation: fullscreen of an element inside a same-origin iframe is recorded against the
<iframe>element rather than the inner element, so replay pins the iframe. (2026-06-16) -
Updated dependencies [
b3ec845,c9c7df1,c6c163a]:- @posthog/core@1.33.0
- @posthog/types@1.387.0
1.386.8
Patch Changes
- #3838
3094f73Thanks @TueHaulund! - fix(replay): discard the prior session's buffer when start() bails out a pending stop(). On a stopSessionRecording() → reset() → identify(newUser) → startSessionRecording() sequence, stopSessionRecording() takes the async compression-drain path, deferring its buffer flush and teardown. start() correctly invalidates that pending cleanup so the new recorder survives, but it left the stopped session's snapshot buffer in place. The re-entrant session-id restart then flushed those previous-user snapshots under the OLD session id, producing a mixed-distinct_id session that server-sideany(distinct_id)attribution resolves to the wrong person — recordings showing the previous user's identity. start() now clears that stale buffer alongside invalidating the compression queue, matching the drop-trailing-data trade-off the bailed-out stop() path already accepts. (2026-06-15)
1.386.7
Patch Changes
-
#3837
29bf8e3Thanks @marandaneto! - Add missing bugs metadata to package manifests. (2026-06-15) -
#3832
d3a9462Thanks @archievi! - Surveys: guard the remaining unprotectedlocalStorageaccesses (reset()and thelastSeenSurveyDatewrite) so aSecurityErrorin cross-origin iframes is swallowed instead of bubbling up to user monitoring. (2026-06-15) -
Updated dependencies [
29bf8e3]:- @posthog/core@1.32.4
- @posthog/types@1.386.4
1.386.6
Patch Changes
-
#3804
a27b163Thanks @pauldambra! - fix(product-tours): drop the cached tours blob when product tours is not enabledTours fetched while product tours was enabled are cached under
ph_product_toursin the main persistence blob. Once product tours is disabled (remote config or thedisable_product_toursoption) that cache was never cleaned up, so a potentially large stale blob kept riding on every persistence write — and on every cross-tabstorageevent those writes broadcast.onRemoteConfignow clears the cached tours whenever product tours resolves to disabled; they are re-fetched if it is ever re-enabled. (2026-06-11)
1.386.5
Patch Changes
- #3801
bd06ac7Thanks @ksvat! - fix(replay): prevent silent recorder teardown on session-id rotation. When the session id rotates during active rrweb capture,_updateWindowAndSessionIdscallsstop()then synchronouslystart('session_id_changed'). Ifstop()took the_stopAfterCompressionQueueDrainspath (which fires whenever the compression queue is non-empty — common during steady recording), its async cleanup would later resolve and call_teardown()against the freshly-started recorder, stopping rrweb, removing event listeners, and emptying the V2 trigger-group matchers. From that point on, the recorder'sstatusgetter kept reportingactive/sampled(the_strategyreference was still set), but rrweb was no longer producing events, no listeners were registered, and no$snapshotdata reached the server — the session looked recording-eligible from event metadata yet produced no replay.start()now invalidates the compression-queue state (generation bump plus reset of the stop-in-progress flag and queued-event count), so any pending cleanup from a priorstop()bails at its existing generation check and a laterstop()of the new recorder is not mistaken for the old in-progress one. Affects long-running tabs that rotate session id mid-use (idle timeout, session-past-max-length, orposthog.reset()). (2026-06-11)
1.386.4
Patch Changes
- #3767
fdc07f3Thanks @arnohillen! - replay: jump scrolls instantly when seeking past pages that usescroll-behavior: smooth. During fast-forward the replayer applied scrolls withbehavior: 'auto', which inherits the page's CSSscroll-behavior— so on sites that setscroll-behavior: smooth(e.g. Silk bottom sheets/modals) a seeked scroll animated from 0 instead of jumping, leaving scroll-revealed content (the open sheet) out of view and showing only the backdrop until the animation caught up. Sync scrolls now usebehavior: 'instant', matching the method's stated intent that smooth scrolling be disabled while fast-forwarding. Full snapshot rebuilds apply their initial offset withbehavior: 'instant'too, so the document-level scroll doesn't animate either. (2026-06-11)
1.386.3
Patch Changes
-
#3760
5ddfd44Thanks @benben! - fix(conversations): re-attach the support widget after SPA navigations that replacedocument.body(e.g. Turbo Drive), so the widget no longer disappears until a full page reload (2026-06-11) -
#3690
dbf2377Thanks @pauldambra! - fix(sessionid): keep the session id stable across tabsA session now rotates only when every tab has been idle past the timeout, rather than whenever a single background tab decides it is idle. On the active event path an idle tab re-reads the session id from storage before rotating: if a sibling tab kept the session alive it does not rotate, and if a sibling already rotated it adopts that id instead of minting a new one. This removes spurious cross-tab session fragmentation (inflated session counts, truncated session durations, split replays). When a sibling session is adopted,
onSessionIdhandlers fire withchangeReason.crossTabAdoption: trueso session recording, pageview state, and session-scoped properties follow the new session. Whenpersistence_save_debounce_ms > 0(the2026-05-30default) the refresh reads only the session-id key so it cannot clobber a sibling's write.Note: projects with significant multi-tab usage will see fewer but longer sessions after upgrading — this is a correction of previously over-counted sessions, not a traffic change. (2026-06-11)
-
#3795
21441a8Thanks @pauldambra! - fix(persistence): stop per-request metadata rewriting the split-storage entries on every load$feature_flag_evaluated_at,$feature_flag_request_id, and$surveys_loaded_atchange on every/flags(or/surveys) load even when the flag and survey content is unchanged. Withsplit_storageenabled that made the multi-hundred-KB__flags/__surveyslocalStorage entries dirty on every SPA navigation, re-broadcasting the full payload to every open same-origin tab via cross-tabstorageevents — the exact pressure the split exists to remove. These keys are now marked volatile: a value-only change neither dirties the group nor alters its fingerprint, so the write is skipped and the freshest value rides along on the next real content write. Adding or deleting a volatile key still writes through (presence is fingerprinted, the moving value is not), and the in-memory value is always current — only the on-disk copy may lag until the next content change. (2026-06-11) -
Updated dependencies [
dbf2377]:- @posthog/types@1.386.3
- @posthog/core@1.32.3
1.386.2
Patch Changes
- Updated dependencies [
25822ac]:- @posthog/core@1.32.2
- @posthog/types@1.386.2
1.386.1
Patch Changes
-
#3780
93e0461Thanks @dustinbyrne! - Fix stale sampled-in session replay decisions after the configured replay sample rate changes. (2026-06-10) -
#3788
6da86d0Thanks @TueHaulund! - fix(replay): never record or flush snapshots while the sampling decision is missingWhen the stored sampling decision was wiped while the recorder was running (e.g. by
posthog.reset()), the undecided session reported anactivestatus and could leak short junk recordings from sessions that then decided not to record. Sampling decisions are now persisted tagged with the session id they were made for ('!' + sessionIdwhen sampled out), are re-made on every session id change regardless of config availability, and a buffer is never flushed without a decision when sampling is configured. Because the decision is a deterministic hash of the session id, re-deciding never flips the outcome for the same session. This also stops a stalefalsedecision from a previous session being inherited by a new session, which chronically under-recorded returning visitors. (2026-06-10) -
Updated dependencies []:
- @posthog/types@1.386.1
- @posthog/core@1.32.1
1.386.0
Minor Changes
-
#3634
612f97aThanks @lucasheriques! - feat(surveys): add opt-inappearance.allowGoBackfor multi-question surveys, and make button labels translatableRenders a "Back" button on web surveys after the first question. Default is off — existing surveys are unchanged. Uses a visited-index history stack so back-navigation respects branching paths (
response_based,specific_question), and abandoned-branch responses are pruned before submission so analytics aren't polluted. Returning to a question pre-fills the prior answer.appearance.backButtonTextoverrides the default label. The button uses the survey's text color so it stays readable on any background, and it also shows in survey previews.Also adds
submitButtonTextandbackButtonTextto survey-level translations, so both the submit and back button labels can be localized viaappearancetranslations (previously only the per-question button text was translatable). (2026-06-10)
Patch Changes
- Updated dependencies [
612f97a]:- @posthog/core@1.32.0
- @posthog/types@1.386.0
1.385.0
Minor Changes
- #3777
f601c49Thanks @dustinbyrne! - Promote external dependency script versioning to supportedstrict_script_versioningandasset_hostconfig options. (2026-06-10)
Patch Changes
-
#3753
c11794dThanks @dustinbyrne! - Reload feature flags by default when resetting person properties for flags. (2026-06-10) -
#3742
23b2af1Thanks @arnohillen! - record: capture resting scroll offset onscrollendwhen a reveal scroll clamps to 0 before its target is scrollable (e.g. Silk sheets). Deduped againstscrollso normal gestures don't double event volume. (2026-06-10) -
Updated dependencies [
c11794d,f601c49]:- @posthog/types@1.385.0
- @posthog/core@1.31.4
1.384.3
Patch Changes
- #3791
2d21adaThanks @marandaneto! - Deprecate__preview_disable_beaconin favor ofdisable_beaconand mark__preview_disable_xhr_credentialsas a no-op. (2026-06-10) - Updated dependencies [
2d21ada]:- @posthog/types@1.384.3
- @posthog/core@1.31.3
1.384.2
Patch Changes
- #3789
d9462b3Thanks @marandaneto! - Deprecate__preview_eager_load_replayas a no-op now that session replay lazy loading is the default. (2026-06-10) - Updated dependencies [
d9462b3]:- @posthog/types@1.384.2
- @posthog/core@1.31.2
1.384.1
Patch Changes
- #3787
0e22d77Thanks @TueHaulund! - replayer: stop corrupting recordings when events are added behind the playhead.addEvent()used to apply any event older than the playback baseline synchronously onto the current DOM — correct for live-mode catch-up, but wrong for on-demand playback where snapshot chunks can finish loading after the user has seeked ahead. Applying those past mutations onto a DOM at a different position made theirremovesfail mirror lookups, andapplyMutationthen deleted the failed entries from the event objects themselves, so every later seek rebuilt from corrupted data (DOM nodes accumulating, e.g. duplicated text) and exports serialized the stripped events. Past events are now only applied synchronously in live mode (otherwise they are just inserted for the next seek to pick up), andapplyMutationfilters removes into a local copy instead of mutating the event data. (2026-06-10) - Updated dependencies []:
- @posthog/types@1.384.1
- @posthog/core@1.31.1
1.384.0
Minor Changes
-
#3782
0c2acb9Thanks @pauldambra! - Detect the Google Search App (GSA) as its own$browservalue (Google Search App) via the cross-platformGSA/UA marker, instead of reporting the embedded webview as Mobile Safari (iOS) or Chrome (Android). Gated behind the newdetect_google_search_appconfig option, which the2026-05-30config defaults opt into automatically — left off otherwise to keep existing browser attribution backwards-compatible.Note:
$browser_versionforGoogle Search Appis not comparable across platforms — iOS yields a version like284.0(fromGSA/284.0.564099828) while Android yields a version like14.21(fromGSA/14.21.20.28.arm64), since Google maintains separate versioning schemes for the two apps. Avoid building cross-platform version dashboards on$browser_versionfor this browser. (2026-06-10)
Patch Changes
- Updated dependencies [
0c2acb9]:- @posthog/core@1.31.0
- @posthog/types@1.384.0
1.383.3
Patch Changes
- #3776
783ba46Thanks @marandaneto! - Deprecate the no-op__preview_flags_v2browser SDK config option. The SDK already uses the/flags/?v=2endpoint by default. (2026-06-09) - Updated dependencies [
783ba46]:- @posthog/types@1.383.3
- @posthog/core@1.30.14
1.383.2
Patch Changes
- #3748
7820929Thanks @marandaneto! - Reduce duplicate internal code found by dry4ts. (2026-06-09) - Updated dependencies []:
- @posthog/types@1.383.2
- @posthog/core@1.30.13
1.383.1
Patch Changes
- #3770
e481b0cThanks @dustinbyrne! - Respectcapture_pageview: falsewhen opting out in cookielesson_rejectmode. (2026-06-08) - Updated dependencies []:
- @posthog/types@1.383.1
- @posthog/core@1.30.12
1.383.0
Minor Changes
-
#3771
227c9b0Thanks @dustinbyrne! - feat(persistence): addsplit_storageconfig option to store the feature-flag config cluster in its own localStorage entry (<name>__flags) instead of the single main persistence blob. This payload is large and changes rarely, so keeping it out of the main blob stops it riding on every high-frequency main-blob write and broadcasting on cross-tabstorageevents. Reads are unchanged: on load the entry is merged back into the in-memory props, and the old main-blob location is read once and migrated forward so upgrades never miss a cached flag. The split only applies when persistence resolves tolocalStorage/localStorage+cookie(it is pointless formemory/sessionStorageand impossible forcookie), andreset()/ opt-out wipe every entry. Defaults tofalsefor backwards compatibility; the new2026-05-30config default opts in automatically. (2026-06-08) -
#3727
393f9e2Thanks @pauldambra! - feat(surveys): extendsplit_storageto also move the survey config ($surveys) out of the main persistence blob into its own<name>__surveyslocalStorage entry, on top of the feature-flag split. Surveys now stamp a$surveys_loaded_atfreshness timestamp on every/surveysload — the survey analogue of$feature_flag_evaluated_at— so a stale__surveysentry can no longer win over a fresher survey payload written back into the main blob by a gate-off / older-SDK tab. With no timestamp on either side (migration leftover) the group entry still wins, so the migration path is unchanged. Same backend andreset()/ opt-out semantics as the flag split. (2026-06-08)
Patch Changes
- Updated dependencies [
227c9b0,393f9e2]:- @posthog/types@1.383.0
- @posthog/core@1.30.11
1.382.0
Minor Changes
-
#3749
9877710Thanks @pauldambra! - Stop classifying intentional repeated clicks as rageclicks. From the2026-05-30config defaults, rageclick detection now ignores:- text-editing surfaces (
textarea, text-likeinputs, andcontenteditableelements), where rapid clicks are double/triple-click text selection rather than rage (rageclick.ignore_text_selection) +/-stepper buttons, added to the defaultcontent_ignorelist
Symbol-only keywords in
content_ignorelist(e.g.+,-,>,<) now match the element's text exactly instead of as a substring, so labels likesign-up,5 > 3, orC++are no longer treated as repeatedly-clicked controls. The heatmaps rageclick marker now applies the same suppression as the$rageclickevent.A partial
rageclickconfig object is now merged with the date-gated defaults instead of replacing them, so e.g.rageclick: { threshold_px: 50 }keeps the defaultcontent_ignorelist/ignore_text_selection. Pass an explicit value (e.g.content_ignorelist: false) to override a specific default, or a boolean to opt out entirely.Behaviour change for existing
content_ignorelist: trueusers (available since2025-11-30): the default list already includes>and<. After this release, buttons whose text contains>or<but is not exactly that symbol (e.g.Learn more >,< Back,home > settings) will no longer be suppressed. Bare>and<buttons remain suppressed. This is the intended fix, but if you rely on the old substring behaviour for those keywords, replacecontent_ignorelist: truewith an explicit array listing the exact terms you want to suppress. (2026-06-06) - text-editing surfaces (
Patch Changes
- Updated dependencies []:
- @posthog/types@1.382.0
- @posthog/core@1.30.10
1.381.0
Minor Changes
- #3719
a7bd828Thanks @lricoy! - Add__preview_cookie_wins_on_conflictopt-in config to prefer cookie values over localStorage when merging persistence state inlocalStorage+cookiemode, fixing cross-subdomain identify and session disconnects. (2026-06-05)
Patch Changes
- Updated dependencies [
a7bd828]:- @posthog/types@1.381.0
- @posthog/core@1.30.9
1.380.1
Patch Changes
- #3743
ced0039Thanks @robbie-c! - fix(surveys): stop the survey CSS from using:has(.survey-question:empty), which crashes some WebKit builds during text-node style invalidation while a survey renders. The empty-header margin tweak now keys off a JS-setquestion-header--emptyclass and a sibling selector instead. (2026-06-05) - Updated dependencies []:
- @posthog/types@1.380.1
- @posthog/core@1.30.8
1.380.0
Minor Changes
- #3715
2387084Thanks @dustinbyrne! - Promote browser tracing header configuration to the publictracing_headersoption while keepingaddTracingHeadersand__add_tracing_headersas deprecated aliases. (2026-06-04)
Patch Changes
- #3715
2387084Thanks @dustinbyrne! - When using tracing headers,X-POSTHOG-DISTINCT-IDis read at request time instead of when fetch/XHR is patched, ensuring it reflects bootstrap, identify, reset, and other identity changes. (2026-06-04) - Updated dependencies [
2387084]:- @posthog/types@1.380.0
- @posthog/core@1.30.7
1.379.3
Patch Changes
- #3741
32de5d2Thanks @clr182! - logs: the console-log integration now respectsopt_out_capturing()— it checksis_capturing()before emitting, so log events stop on opt-out (and resume on opt-in). (2026-06-04) - Updated dependencies []:
- @posthog/types@1.379.3
- @posthog/core@1.30.6
1.379.2
Patch Changes
- #3736
374962aThanks @arnohillen! - replay: re-apply scroll positions after fast-forward/seek. Scrolls applied mid-catch-up could clamp to 0 when the target wasn't scrollable yet (e.g. scroll-revealed sheets/modals whose content sits below the fold), leaving the content scrolled out of view on replay. The last scroll per node is now re-applied in the flush stage once layout has settled.posthog-jsis bumped too so the rebuilt bundle containing the fix is published. (2026-06-03) - Updated dependencies []:
- @posthog/types@1.379.2
- @posthog/core@1.30.5
1.379.1
Patch Changes
-
#3570
4a27cedThanks @gruessi! - fix(record): release iframe documents and observers on iframe removal — same-origin iframes mounted and unmounted while session recording is active no longer leak theirDocument, every node serialized into the mirror, or oneMutationObserverper mount. Closes eight retainer chains: load-listener disposers, named pagehide handlers, therecordCrossOriginIframescleanup gate (now applied to same-origin too), capturedDocument/Windowsets that surviveiframe.srcswap-to-about:blankbefore removal, and the globalmutationBuffers[]/handlers[]arrays which previously accumulated forever. Validated end-to-end: a host page that mounts/unmounts 5 blob-URL iframes every 2s for 110s went from +118 MB / +390 leakedHTMLDocuments to ~0 MB / 0. (2026-06-03) -
#3717
1688b38Thanks @turnipdabeets! - Move the OpenTelemetry logs dependencies todevDependencies. They are only used to build the CDN-servedlogsextension chunk, which inlines them, so consumers no longer install the transitiveprotobufjs(whoseeval("require")trippedunsafe-evalContent Security Policies).If you imported
@opentelemetry/*directly while relying on it being hoisted fromposthog-js, add it to your own dependencies. (2026-06-03) -
Updated dependencies []:
- @posthog/types@1.379.1
- @posthog/core@1.30.4
1.379.0
Minor Changes
- #3722
c487070Thanks @marandaneto! - Add$sdk_dist_channelevent property for browser SDKnpmandcdndistribution channels. (2026-06-02)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.379.0
- @posthog/core@1.30.3
1.378.1
Patch Changes
- #3706
8fcf40dThanks @dustinbyrne! - fix(browser): avoid exposing internally-created Request bodies to downstream fetch wrappers in Safari. (2026-06-01) - Updated dependencies []:
- @posthog/types@1.378.1
- @posthog/core@1.30.2
1.378.0
Minor Changes
- #3688
8181354Thanks @pauldambra! - feat(persistence): addpersistence_save_debounce_msconfig option to coalesce rapid storage saves into a single write. Setting a positive value debounces writes to localStorage/cookie by that window; the in-memorypropsobject still updates synchronously so within-tab reads see the latest values immediately, and pending writes flush onbeforeunloadandpagehideso no state is lost on tab close. Cross-tabstorageevents are reduced proportionally to the debounce window. Defaults to0(no debouncing) for backwards compatibility. On pages that capture many events per second,250is a reasonable starting point. The new2026-05-30config default opts intopersistence_save_debounce_ms: 250automatically. (2026-06-01)
Patch Changes
- Updated dependencies [
8181354]:- @posthog/types@1.378.0
- @posthog/core@1.30.1
1.377.0
Minor Changes
-
#3708
3d4a76fThanks @pauldambra! - Detect Brave (desktop, Android, iOS), Vivaldi, Yandex, Naver Whale, DuckDuckGo, Pale Moon, and Waterfox so users on these browsers no longer get bucketed as Chrome or Firefox.detectBrowser/detectBrowserVersionnow accept an optional third argument,BrowserDetectionHints, with abraveflag (set whennavigator.braveexists). The browser SDK populates this automatically to catch desktop / Android Brave, which is Chromium-based and carries no UA marker. Brave on iOS is picked up purely from theBrave/UA marker — WebKit doesn't shipnavigator.brave. The original two-argument signature still works for non-DOM callers. (2026-06-01)
Patch Changes
- #3703
f3cc6faThanks @marandaneto! - Disable/no-op initialization paths instead of throwing or sending requests when PostHog project tokens are missing or blank. (2026-06-01) - Updated dependencies [
3d4a76f]:- @posthog/core@1.30.0
- @posthog/types@1.377.0
1.376.6
Patch Changes
- #3687
663e250Thanks @pauldambra! - fix(persistence): skip the storage write when the serialized props are unchanged. Callers spamsave()after every property change, and many of those changes leave the serialized payload identical (e.g. resetting a value to its current value). Writing identical bytes to localStorage still fires a cross-tabstorageevent in every same-origin tab, where Chrome allocates the payload buffer in mojo IPC even though no listener reacts. Nowsave()compares the serialized payload against the last successful write and bails out when nothing changed. (2026-05-31) - Updated dependencies []:
- @posthog/types@1.376.6
- @posthog/core@1.29.15
1.376.5
Patch Changes
- #3686
66cbc59Thanks @pauldambra! - fix(persistence): throttle session-activity timestamp writes to a 5s granularity. The in-memory value still moves at full resolution; only writes to localStorage/cookie are coalesced. Activity-timestamp-only updates within the granularity window are skipped, dropping localStorage write pressure and cross-tabstorageevent broadcasts on pages that capture many events per second. The pending in-memory value is flushed ondestroyandbeforeunloadso a tab close inside the window does not leave the persisted value up to 5s stale for sibling tabs. The flush re-reads storage first and bails out if a sibling tab has rotated the session, so the flush cannot clobber the new session with the old id/start. (2026-05-31) - Updated dependencies [
d9ad199]:- @posthog/core@1.29.14
- @posthog/types@1.376.5
1.376.4
Patch Changes
-
#3685
f59f35aThanks @ioannisj! - fix(cookieless): enable request queue when opting out inon_rejectmode. When usingcookieless_mode: "on_reject", callingopt_out_capturing()correctly switched the SDK into cookieless capturing but never enabled theRequestQueue— so batched events were enqueued but never flushed over the network. At init time the queue was not started because consent wasPENDINGandis_capturing()returnedfalse;opt_out_capturing()is the first moment capturing becomes active but was missing the_start_queue_if_opted_in()call thatopt_in_capturing()already had. (2026-05-28) -
#3692
f01cd93Thanks @ksvat! - fix(replay): take a fresh full snapshot after session ID rotates viaforcedIdleReset. Previously, when the session manager's idle enforcement timer rotated the session id, the recorder tore down rrweb and set_isIdle = 'unknown'before the new session id was observed. Neither restart path then fired (the_onSessionIdCallbackguard only restarted when_isIdle === true, and_updateWindowAndSessionIdscould not run with rrweb stopped), so the new session received only incremental mutations until a later snapshot — leaving the player stuck on "Buffering". The restart guard now also fires when rrweb isn't running. (2026-05-28) -
#3691
cc71f3fThanks @ksvat! - fix(replay): shipph-no-captureabsolute-position fix from #3678 toposthog-js. The original changeset only bumped@posthog/rrweband@posthog/rrweb-snapshot; becauseposthog-jsdepends on@posthog/rrwebviaworkspace:*, the cascade did not bumpposthog-js, so the rebuilt bundle containing the fix was not published. This changeset re-publishesposthog-jswith the fix. (2026-05-28) -
#3695
e1ff722Thanks @ksvat! - chore(replay): expose$sdk_debug_rrweb_attachedand$sdk_debug_rrweb_start_attempteddebug properties on captured events. Today the SDK already stamps several$sdk_debug_*properties (start reason, linked-flag trigger status, recording status) that report the SDK's intent to record — they all flip to "active" as soon as the state machine evaluates the configured triggers. None of them observe whether rrweb actually attached and is producing events. The new booleans close that gap:$sdk_debug_rrweb_start_attemptedis set when_startRecorder()is first entered, and$sdk_debug_rrweb_attachedreflects whether_stopRrwebis currently a non-falsy stop handle (i.e.rrwebRecord({...})returned successfully and the recorder has not been torn down). No behavior change — this only adds two booleans to the existingsdkDebugPropertieschannel, used to diagnose cases where a session reportstrigger_activated/recording_status: activebut no$snapshotdata is ever uploaded. (2026-05-28) -
Updated dependencies [
7b84b75]:- @posthog/core@1.29.13
- @posthog/types@1.376.4
1.376.3
Patch Changes
- #3649
9cac1f6Thanks @marandaneto! - Improve console log serialization performance for large objects. (2026-05-27) - Updated dependencies []:
- @posthog/types@1.376.3
- @posthog/core@1.29.12
1.376.2
Patch Changes
- #3667
cafa9ccThanks @pauldambra! - fix(replay): stop polling preload-as-style<link>elements forever. Session recorder treated<link rel="preload" as="style" href="*.css">as if it were a stylesheet and waited forlink.sheetto populate. Per spec preload links never instantiate aCSSStyleSheet, so the wait timed out, re-serialized the link, scheduled another wait, and leaked aloadlistener on every cycle — multiplying further on every realloadevent. Pages with Next.js-style CSS preloads accumulated thousands of active polling chains, saturating the main thread and freezing the tab on refocus (2026-05-26) - Updated dependencies []:
- @posthog/types@1.376.2
- @posthog/core@1.29.11
1.376.1
Patch Changes
- Updated dependencies [
5568f12]:- @posthog/core@1.29.10
- @posthog/types@1.376.1
1.376.0
Minor Changes
- #3655
6e8d349Thanks @arnaudhillen! - Expose the in-repo@posthog/rrweb,@posthog/rrweb-types, and@posthog/rrweb-plugin-console-recordpackages as subpath entry points onposthog-js. Consumers can nowimport { Replayer } from 'posthog-js/rrweb',import type { eventWithTime } from 'posthog-js/rrweb-types', andimport { LogLevel } from 'posthog-js/rrweb-plugin-console-record'instead of installing the underlying rrweb packages directly. The rrweb worker sourcemap (image-bitmap-data-url-worker-*.js.map) is also shipped fromposthog-js/dist/so downstream bundlers no longer need to reach intonode_modules/@posthog/rrweb. (2026-05-22)
Patch Changes
- #3639
c806ccaThanks @marandaneto! - Use native async gzip compression for session recording events when CompressionStream is available. (2026-05-22) - Updated dependencies [
c806cca]:- @posthog/core@1.29.9
- @posthog/types@1.376.0
1.375.0
Minor Changes
- #3641
2e1d5f4Thanks @dustinbyrne! - Addflag_keysconfig to restrict browser feature flag remote evaluation to specific flag keys. (2026-05-21)
Patch Changes
- Updated dependencies [
2e1d5f4]:- @posthog/types@1.375.0
- @posthog/core@1.29.8
1.374.4
Patch Changes
-
#3638
87e2145Thanks @marandaneto! - Apply tracing headers to matching XMLHttpRequest requests (2026-05-21) -
#3646
4f87827Thanks @marandaneto! - Avoid throwing or initializing PostHogProvider when no API key or client is provided (2026-05-21) -
#3645
280832bThanks @TueHaulund! - Capture<link rel="stylesheet">URLs fromlink.sheet.hrefand trylink.sheetdirectly for inlining, so recordings survive SPAhistory.pushStatenavigations between routes of different path depths (wherelink.hrefre-resolves against a new baseURI butlink.sheet.hrefpreserves the URL the browser actually fetched).Ships the fix landed in #3635, which only bumped the internal
@posthog/rrweb-snapshotpackage — that package is bundled intoposthog-jsat build time but is not published to npm on its own, so aposthog-jsbump is needed to actually deliver the change. (2026-05-21) -
Updated dependencies []:
- @posthog/types@1.374.4
- @posthog/core@1.29.7
1.374.3
Patch Changes
- #3607
557b893Thanks @eli-r-ph! - Enable $web_vitals reporting when cookieless mode is enabled (2026-05-20) - Updated dependencies [
557b893,a880dbc]:- @posthog/types@1.374.3
- @posthog/core@1.29.6
1.374.2
Patch Changes
-
#3550
df91995Thanks @TueHaulund! - Preserve session-recording remote config acrossposthog.reset().posthog.reset()was clearing the entire persistence store, which wiped$session_recording_remote_configalong with user state. On the next session rotation triggered by the reset,start('session_id_changed')would early-return because the remote config was missing — leaving rrweb torn down and the new session opening with no Meta + FullSnapshot until the next periodic 5-minute checkout.This affected any flow where an app calls
posthog.reset()mid-session (e.g. on sign-out / sign-in) and was particularly visible on Flutter Web recordings that depend on a fresh FullSnapshot to anchor the CanvasKit DOM. (2026-05-18) -
Updated dependencies []:
- @posthog/types@1.374.2
- @posthog/core@1.29.5
1.374.1
Patch Changes
- #3627
07a0f5fThanks @marandaneto! - Respect transport overrides passed to posthog.capture. (2026-05-18) - Updated dependencies []:
- @posthog/types@1.374.1
- @posthog/core@1.29.4
1.374.0
Minor Changes
- #3620
594ea11Thanks @pauldambra! - Dead clicks: add a.ph-no-deadclickCSS class (andcapture_dead_clicks.css_selector_ignorelistconfig option) to exclude specific elements from dead-click detection without affecting autocapture, session replay, or heatmaps. Mirrors the existing.ph-no-rageclickpattern. (2026-05-18)
Patch Changes
- #3621
3c0a09fThanks @pauldambra! - Dead clicks: a click on an<a>(or any element inside an<a>, including across shadow DOM) is no longer flagged as a dead click — the browser navigates / downloads / opens a new window and we can't observe that. Reuses autocapture's existing DOM walker for the ancestor walk. Direct clicks on<button>,<input>,<select>,<textarea>,<label>, and<form>(previously all skipped) are now eligible for dead-click detection: if their JS handler ran, the existing mutation / scroll / selection observers see the effect; if it didn't, dead-click correctly surfaces the bug. A broken<button>with no handler, or an<svg>icon inside one, will now flag — which is exactly the dead-click case we want to catch. (2026-05-18) - Updated dependencies [
594ea11]:- @posthog/types@1.374.0
- @posthog/core@1.29.3
1.373.5
Patch Changes
- #3613
221973eThanks @lucasheriques! - Surveys: submit open text questions with Cmd/Ctrl+Enter. The textarea still inserts a newline on plain Enter (native behaviour), matching the convention used by Slack, GitHub, Discord, and ChatGPT for multi-line inputs. Single-line "Other:" inputs continue to submit on plain Enter as before. (2026-05-15) - Updated dependencies []:
- @posthog/types@1.373.5
- @posthog/core@1.29.2
1.373.4
Patch Changes
- #3602
4b895bfThanks @marandaneto! - Validate gzip request bodies at the browser send boundary and fall back to JSON if the outgoing body is not gzip data. (2026-05-12) - Updated dependencies [
4b895bf]:- @posthog/core@1.29.1
- @posthog/types@1.373.4
1.373.3
Patch Changes
- Updated dependencies [
ad60818]:- @posthog/core@1.29.0
- @posthog/types@1.373.3
1.373.2
Patch Changes
- #3568
223d925Thanks @marandaneto! - Validate native gzip output before sending requests and fall back when CompressionStream returns malformed data. (2026-05-11) - Updated dependencies [
223d925]:- @posthog/core@1.28.7
- @posthog/types@1.373.2
1.373.1
Patch Changes
- #3566
7d027bcThanks @dustinbyrne! - Prevent browser log capture from throwing when console arguments contain unreadable properties. (2026-05-11) - Updated dependencies []:
- @posthog/types@1.373.1
- @posthog/core@1.28.6
1.373.0
Minor Changes
- #3547
4c0c7d9Thanks @williamchong! -capture()now accepts an optionaluuidonCaptureOptions. (2026-05-11)
Patch Changes
-
#3561
3511848Thanks @marandaneto! - Handle invalid persisted session replay config JSON gracefully (2026-05-11) -
#3559
0a835faThanks @marandaneto! - Skip remote config background refreshes when no document is available. (2026-05-11) -
Updated dependencies [
4c0c7d9,0a835fa]:- @posthog/types@1.373.0
- @posthog/core@1.28.5
1.372.10
Patch Changes
-
#3544
d120042Thanks @ksvat! - fix: stop session recording before destroying sessionManager inopt_out_capturing()withcookieless_mode: "on_reject". Previously, queued/throttled rrweb events (e.g. mousemove) could fire after the sessionManager was set toundefinedand throw[SessionRecording] must be started with a valid sessionManager. Also adds a defensive early-return inonRRwebEmitso any remaining late events bail out instead of throwing. (2026-05-07) -
#3542
94a5ba0Thanks @TueHaulund! - Preserve<style>textContent when the browser's CSSOM serialization would emit empty longhands fromvar()inside a shorthand. When a stylesheet has e.g.padding: var(--p); padding-bottom: var(--pb);, browsers store the shorthand's longhands with empty token lists per the CSS Custom Properties spec, andCSSStyleRule.cssTextre-emits them aspadding-top: ; padding-right: ; padding-left: ;. The previous behavior replaced the<style>text with that corrupted output, silently dropping layout rules on replay. We now detect the empty-longhand pattern and keep the original textContent in that case. Affects users of any CSS-in-JS framework that combinesvar()with shorthands (Chakra UI v3, Panda CSS, Emotion, etc.). Same class of bug as rrweb-io/rrweb#1667. (2026-05-07) -
Updated dependencies []:
- @posthog/types@1.372.10
- @posthog/core@1.28.4
1.372.9
Patch Changes
- #3537
026e09dThanks @TueHaulund! - Pull in the canvas-manager fix from@posthog/rrweb0.0.61: skip canvas snapshots while the WebGL context is lost so transparent bitmaps don't poison the worker's fingerprint dedup map and silently kill canvas recording for the rest of the session. Also wrapsgetCanvas()in try/catch so DOM/shadow-root traversal errors can't cancel the rAF loop. See PR #3527 for context. (2026-05-05) - Updated dependencies []:
- @posthog/types@1.372.9
- @posthog/core@1.28.3
1.372.8
Patch Changes
- #3515
255b273Thanks @marandaneto! - Gate survey translation logs behind SDK debug logging to avoid production console spam. (2026-05-04) - Updated dependencies [
220cd61,255b273]:- @posthog/core@1.28.2
- @posthog/types@1.372.8
1.372.7
Patch Changes
- Updated dependencies [
8aee3d5]:- @posthog/core@1.28.1
- @posthog/types@1.372.7
1.372.6
Patch Changes
- #3492
cf56753Thanks @lucasheriques! - Add translated survey rendering support in React Native and share survey translation logic through@posthog/core. (2026-05-01) - Updated dependencies [
cf56753,04db756]:- @posthog/core@1.28.0
- @posthog/types@1.372.6
1.372.5
Patch Changes
- #3448
c726aaeThanks @posthog! - fix(exceptions): avoid cross-origin property access when calling the previouswindow.onunhandledrejectionhandler (2026-04-29) - Updated dependencies []:
- @posthog/types@1.372.5
- @posthog/core@1.27.9
1.372.4
Patch Changes
- #3495
5a6b2a5Thanks @posthog! - Fix copy autocapture when copying or cutting text from Shadow DOM or document fragment contexts. (2026-04-29) - Updated dependencies []:
- @posthog/types@1.372.4
- @posthog/core@1.27.8
1.372.3
Patch Changes
- #3488
5b8efc3Thanks @lucasheriques! - Add browser survey translation rendering and language tracking. (2026-04-27) - Updated dependencies []:
- @posthog/types@1.372.3
- @posthog/core@1.27.7
1.372.2
Patch Changes
- #3484
cba2570Thanks @veryayskiy! - Fix autofocus (2026-04-27) - Updated dependencies []:
- @posthog/types@1.372.2
- @posthog/core@1.27.6
1.372.1
Patch Changes
- #3464
70508dfThanks @dustinbyrne! - Avoid usingBlob.stream()for native async gzip compression to prevent SafariNotReadableErrorstream failures. (2026-04-24) - Updated dependencies [
70508df]:- @posthog/core@1.27.5
- @posthog/types@1.372.1
1.372.0
Minor Changes
- #3470
eaa1322Thanks @veryayskiy! - You cannot write to a resolve ticket. Start a new one. (2026-04-24)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.372.0
- @posthog/core@1.27.4
1.371.4
Patch Changes
- #3469
3c4fc1eThanks @fasyy612! - bump rrweb to 0.0.60 (2026-04-24) - Updated dependencies []:
- @posthog/types@1.371.4
- @posthog/core@1.27.3
1.371.3
Patch Changes
- #3445
61cf83eThanks @dustinbyrne! - Fix session recording in the full no-external browser bundles (2026-04-24) - Updated dependencies [
daf028d]:- @posthog/core@1.27.2
- @posthog/types@1.371.3
1.371.2
Patch Changes
- #3453
96f19b7Thanks @turnipdabeets! - Lift OTLP log serialization helpers from posthog-js into @posthog/core so the upcoming React Native logs feature consumes the same builders. Browser gains two fixes as a side effect: NaN and ±Infinity attribute values no longer get silently dropped during JSON encoding, and the scope.version OTLP field is now populated with the SDK version (changes the server's instrumentation_scope column from "posthog-js@" to "posthog-js@ - Updated dependencies [
96f19b7]:- @posthog/types@1.371.2
- @posthog/core@1.27.1
1.371.1
Patch Changes
- #3425
2da17e8Thanks @marandaneto! - Classify SDK-owned persistence keys with an explicit event exposure policy so new internal persistence state must be intentionally marked as event-visible, hidden, or derived. (2026-04-23) - Updated dependencies []:
- @posthog/types@1.371.1
1.371.0
Patch Changes
-
#3432
1a8b727Thanks @richardsolomou! - refactor: rename__add_tracing_headerstoaddTracingHeaders. The__prefix signalled an internal/experimental option, but the config is a public API (documented for linking LLM traces to session replays).__add_tracing_headerscontinues to work as a deprecated alias on the browser SDK.Also exposes
patchFetchForTracingHeadersfrom@posthog/coreso non-browser SDKs can reuse the implementation. (2026-04-23) -
Updated dependencies [
1a8b727]:- @posthog/core@1.27.0
- @posthog/types@1.371.0
1.370.1
Patch Changes
- #3442
6f19ce8Thanks @marandaneto! - fix(surveys): guard survey seen localStorage access (2026-04-22) - Updated dependencies []:
- @posthog/types@1.370.1
1.370.0
Minor Changes
- #3389
922a1c1Thanks @hpouillot! - Add exception steps to error tracking (aka breadcrumbs) (2026-04-22)
Patch Changes
- Updated dependencies [
922a1c1]:- @posthog/types@1.370.0
- @posthog/core@1.26.0
1.369.5
Patch Changes
- Updated dependencies [
1a0b58d]:- @posthog/core@1.25.3
- @posthog/types@1.369.5
1.369.4
Patch Changes
- #3362
d61bce1Thanks @sampennington! - fix(cookieless): start in cookieless mode when opt_out_capturing_by_default is set (2026-04-21) - Updated dependencies []:
- @posthog/types@1.369.4
1.369.3
Patch Changes
-
#3419
ea08727Thanks @haacked! - Reinstate$feature_flag_payloadsand$surveys_activatedin captured event properties. (2026-04-18) -
#3416
3d8b2e2Thanks @feliperalmeida! - Updated dependencies: - protobufjs@7.5.5 (2026-04-18) -
Updated dependencies []:
- @posthog/types@1.369.3
1.369.2
Patch Changes
- #3386
4a65604Thanks @dustinbyrne! - Add a preview flag for versioned browser lazy bundle asset paths. (2026-04-16) - Updated dependencies [
4a65604]:- @posthog/types@1.369.2
1.369.1
Patch Changes
-
#3393
85ae4d9Thanks @haacked! - Exclude active feature flag payloads from event properties (2026-04-16) -
#3392
00cd1ceThanks @haacked! - Fix unnecessary persisted config and activation properties (including product tours, surveys, and session recording config) added to captured events (2026-04-16) -
Updated dependencies []:
- @posthog/types@1.369.1
1.369.0
Minor Changes
-
#3342
eea5260Thanks @ksvat! - Account for property filters on events in recording triggers for v2 triggers (2026-04-14) -
#3281
b1fd228Thanks @ksvat! - Add session replay trigger groups handling (V2) (2026-04-14)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.369.0
1.368.2
Patch Changes
- #3378
f1bea33Thanks @marandaneto! - Disable native gzip compression after a NotReadableError in the browser SDK (2026-04-14) - Updated dependencies []:
- @posthog/types@1.368.2
1.368.1
Patch Changes
- #3379
d7c71b1Thanks @dmarticus! - Fix bootstrapped feature flags being overwritten by partial /flags response whenadvanced_only_evaluate_survey_feature_flagsis enabled (2026-04-14) - Updated dependencies []:
- @posthog/types@1.368.1
1.368.0
Minor Changes
- #3345
3fcf5c4Thanks @jonmcwest! - Add posthog.captureLog() API for sending structured log entries to PostHog logs (2026-04-13)
Patch Changes
- #3373
f5fe0a8Thanks @ksvat! - bump rrweb version (2026-04-13) - Updated dependencies [
3fcf5c4]:- @posthog/types@1.368.0
1.367.0
Minor Changes
- #3242
353be9aThanks @dustinbyrne! - feat: Add support for pre-loaded remote-config (2026-04-09)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.367.0
1.366.2
Patch Changes
- #3364
575e354Thanks @lucasheriques! - Add a hover state to numeric survey rating options so they provide clearer pointer feedback before selection. (2026-04-09) - Updated dependencies []:
- @posthog/types@1.366.2
1.366.1
Patch Changes
- #3360
802bf39Thanks @jabahamondes! - Re-evaluate consent persistent store when config changes to support cross-subdomain consent sharing (2026-04-09) - Updated dependencies []:
- @posthog/types@1.366.1
1.366.0
Minor Changes
- #3305
b599672Thanks @veryayskiy! - Add customer side identification (2026-04-09)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.366.0
1.365.5
Patch Changes
- Updated dependencies [
c735b08]:- @posthog/core@1.25.2
- @posthog/types@1.365.5
1.365.4
Patch Changes
- #3353
3939856Thanks @lucasheriques! - Expose the current question index on.survey-boxvia adata-question-indexattribute. This gives consumers rendering surveys via the API a reliable way to know which question is currently displayed without parsing input ids or class names — works for every question type, including link questions which render no input or rating element. (2026-04-08) - Updated dependencies []:
- @posthog/types@1.365.4
1.365.3
Patch Changes
- #3357
dbdddcaThanks @pauldambra! - Bump @posthog/rrweb packages to 0.0.56, which includes:- PostHog/posthog-rrweb#157: fix: clear mutation buffer on iframe pagehide to prevent recording corruption
- PostHog/posthog-rrweb#158: fix: skip unchanged setAttribute calls to prevent replay flicker
- PostHog/posthog-rrweb#159: fix: prevent iframe leak in untainted prototype and avoid unnecessary iframe creation
- PostHog/posthog-rrweb#163: fix: handle SecurityError in IframeManager destroy and removeIframeById
- PostHog/posthog-rrweb#166: fix: remove postcss from @posthog/rrweb-record bundle (420KB → 170KB) (2026-04-08)
- Updated dependencies []:
- @posthog/types@1.365.3
1.365.2
Patch Changes
- #3323
c387f6dThanks @pauldambra! - perf(replay): reduce memory and CPU cost of event compression by caching gzipped empty arrays and eliminating redundant JSON.stringify for size estimation (2026-04-08) - Updated dependencies [
c387f6d]:- @posthog/types@1.365.2
1.365.1
Patch Changes
- Updated dependencies [
57ee5b2]:- @posthog/core@1.25.1
- @posthog/types@1.365.1
1.365.0
Minor Changes
- #3302
fc5589fThanks @dmarticus! - preserve $set_once semantics in local flag evaluation cache (2026-04-07)
Patch Changes
- Updated dependencies [
fc5589f]:- @posthog/core@1.25.0
- @posthog/types@1.365.0
1.364.7
Patch Changes
- #3319
b25b689Thanks @dustinbyrne! - fix: send $groupidentify for new groups even when no properties are provided (2026-04-03) - Updated dependencies []:
- @posthog/types@1.364.7
1.364.6
Patch Changes
- #3316
68cd4e5Thanks @dustinbyrne! - Fix slim bundle + extension bundles crash caused by inconsistent property mangling (2026-04-02) - Updated dependencies [
a01a3d5]:- @posthog/core@1.24.6
- @posthog/types@1.364.6
1.364.5
Patch Changes
-
#3309
197eedaThanks @marandaneto! - Extract CLI and sourcemap utilities from @posthog/core into @posthog/plugin-utils to remove cross-spawn from React Native dependencies (2026-04-01) -
#3312
c5feb5cThanks @TueHaulund! - Bump @posthog/rrweb-* to 0.0.52 — adds error recovery to the canvas FPS snapshot pipeline, preventing canvas recording from permanently stopping when createImageBitmap or the worker encounters an error (2026-04-01) -
#3315
7b944fcThanks @TueHaulund! - Bump @posthog/rrweb-* to 0.0.53 — fixes infinite recursion crash ("Maximum call stack size exceeded") when calling posthog.reset() or restarting the recorder on pages with shadow DOM elements (e.g. CometChat) (2026-04-01) -
Updated dependencies [
197eeda]:- @posthog/core@1.24.5
- @posthog/types@1.364.5
1.364.4
Patch Changes
- #3298
2365df5Thanks @TueHaulund! - fix: skip deep copy for snapshot/exception events to prevent stack overflow on deeply nested DOM trees (2026-03-31) - Updated dependencies []:
- @posthog/types@1.364.4
1.364.3
Patch Changes
- #3300
bab5f3aThanks @dustinbyrne! - Strip workspace:* references from lib/package.json after build (2026-03-31) - Updated dependencies []:
- @posthog/types@1.364.3
1.364.2
Patch Changes
- #3297
341caafThanks @marandaneto! - fix: wrap sendBeacon body in Blob to ensure Content-Type header is set (2026-03-30) - Updated dependencies [
a863914]:- @posthog/core@1.24.4
- @posthog/types@1.364.2
1.364.1
Patch Changes
- Updated dependencies [
4bdfdbc]:- @posthog/core@1.24.3
- @posthog/types@1.364.1
1.364.0
Minor Changes
- #3285
00a5079Thanks @pauldambra! - Reject the strings "undefined" and "null" in posthog.identify(). All invalid distinct IDs now log a critical console error (always visible, not debug-only). (2026-03-27)
Patch Changes
- #3286
8d34289Thanks @marandaneto! - Use async native CompressionStream for gzip compression to avoid blocking the main thread (2026-03-27) - Updated dependencies [
8d34289]:- @posthog/core@1.24.2
- @posthog/types@1.364.0
1.363.6
Patch Changes
- #3279
32edaadThanks @pauldambra! - Bump @posthog/rrweb packages to 0.0.51, which includes:- PostHog/posthog-rrweb#145: fix: handle cross-origin iframe errors during stop handler cleanup
- PostHog/posthog-rrweb#148: fix: mask textarea innerText mutations
- PostHog/posthog-rrweb#150: fix: guard WebGLRenderingContext access for iOS compatibility
- PostHog/posthog-rrweb#151: refactor: extract slimDOMDefaults into shared function
- PostHog/posthog-rrweb#152: fix: improve nested CSS rule handling
- PostHog/posthog-rrweb#153: fix: allow clearing adopted stylesheets with empty strings
- PostHog/posthog-rrweb#154: fix: prevent object reference mutation breaking remote CSS replay
- PostHog/posthog-rrweb#156: fix: catch all SecurityError variants in stop handler cleanup (2026-03-26)
- Updated dependencies []:
- @posthog/types@1.363.6
1.363.5
Patch Changes
-
#3278
c59dc90Thanks @dustinbyrne! - Add tree-shakeable ESM extension-bundles entry point for slim builds (2026-03-25) -
#3274
ba08262Thanks @pauldambra! - fix: document visibility change shoudln't capture dead click (2026-03-25) -
Updated dependencies [
ba08262]:- @posthog/types@1.363.5
1.363.4
Patch Changes
- #3275
664a11bThanks @fasyy612! - bump rrweb dependency version (2026-03-24) - Updated dependencies []:
- @posthog/types@1.363.4
1.363.3
Patch Changes
- #3253
42fbd41Thanks @marandaneto! - Reduce browser SDK bundle size by ~6.6 KB (-3.7%) through code modernization, build config tuning, string deduplication, enum-to-const conversions, and property access shorthand getters. (2026-03-23) - Updated dependencies []:
- @posthog/types@1.363.3
1.363.2
Patch Changes
-
#3267
e5ef520Thanks @ksvat! - bump rrweb dependency version (2026-03-23) -
#3260
1435ec8Thanks @kyleswank! - Log warning instead of throwing error when session recording script is blocked by ad blockers (2026-03-23) -
Updated dependencies []:
- @posthog/types@1.363.2
1.363.1
Patch Changes
- Updated dependencies [
314120a]:- @posthog/core@1.24.1
- @posthog/types@1.363.1
1.363.0
Minor Changes
- #3247
7efa558Thanks @dmarticus! - prevent silent identity switch during bootstrap and auto-identify anonymous users (2026-03-20)
Patch Changes
- #3245
1acd6fdThanks @dmarticus! - handle plain array and object forms in overrideFeatureFlags (2026-03-20) - Updated dependencies [
1acd6fd]:- @posthog/types@1.363.0
1.362.0
Minor Changes
- #3244
ff8a93eThanks @sampennington! - Fixed $set_once initial person properties (e.g. $initial_current_url) not being included with $identify calls when they had already been sent with a prior event. This ensures initial properties are reliably set when identifying users across subdomains, even if an anonymous event was captured first. (2026-03-18)
Patch Changes
- Updated dependencies [
9cd2313]:- @posthog/core@1.24.0
- @posthog/types@1.362.0
1.361.1
Patch Changes
- #3249
c265d62Thanks @marandaneto! - fix: preserve_overrideSDKInfofrom terser mangling so wrapper SDKs can call it (2026-03-18) - Updated dependencies []:
- @posthog/types@1.361.1
1.361.0
Minor Changes
-
#3201
552c018Thanks @frankh! - Add a serviceName config option to logs config (2026-03-18) -
#3240
e4a58d0Thanks @marandaneto! - Add internal_overrideSDKInfomethod to allow wrapper SDKs to override$liband$lib_versionevent properties (2026-03-18) -
#3241
fe1fd7bThanks @dustinbyrne! - feat: addadvanced_feature_flags_dedup_per_sessionconfig option to scope$feature_flag_calleddeduplication to the current session (2026-03-18)
Patch Changes
-
#3239
bf4f078Thanks @jonathanlab! - fix: debug mode not persisting across page navigations (2026-03-18) -
#3228
8773fdfThanks @TueHaulund! - fix: restart session recorder when session rotates externally while idle, preventing "Recording not found" for sessions where analytics events triggered session rotation (2026-03-18) -
Updated dependencies [
552c018,fe1fd7b]:- @posthog/types@1.361.0
1.360.2
Patch Changes
- #3236
bc30c2dThanks @dustinbyrne! - fix: Calling reset() now automatically reloads feature flags (2026-03-13) - Updated dependencies [
bc30c2d,bc30c2d]:- @posthog/core@1.23.4
- @posthog/types@1.360.2
1.360.1
Patch Changes
- Updated dependencies [
4009c15]:- @posthog/core@1.23.3
- @posthog/types@1.360.1
1.360.0
Patch Changes
-
#3213
db089fdThanks @TueHaulund! - fix(replay): treat legacy configs without cache_timestamp as freshConfigs persisted by older SDK versions never include a cache_timestamp. Defaulting to 0 treats them as always stale, causing the persisted config to be cleared before start() runs — so recording never starts for customers on older core SDK versions paired with the latest CDN recorder. (2026-03-09)
-
#3207
c5a37cbThanks @dustinbyrne! - fix: PostHogFeatureFlags uses a TreeShakeable -
Updated dependencies [
c5a37cb]:- @posthog/types@1.360.0
1.359.1
Patch Changes
- #3204
2b0cd52Thanks @marandaneto! - chore: upgrade dompurify to 3.3.2 (2026-03-06) - Updated dependencies []:
- @posthog/types@1.359.1
1.359.0
Minor Changes
- #3166
9180726Thanks @dustinbyrne! - feat: Tree-shake feature flags (2026-03-05)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.359.0
1.358.1
Patch Changes
-
#3191
9f41d26Thanks @TueHaulund! - fix(replay): fall back to persisted config when remote config fetch failsWhen the remote config fetch failed (network error, ad blocker, CDN outage), the SDK received an empty
{}response with nosessionRecordingkey. TheonRemoteConfighandler returned early without ever setting_receivedFlags = true, leaving the recording permanently stuck inpending_configstatus for the entire page session.This removes the
_receivedFlagsgate entirely. The 1-hour TTL on persisted config (added in #3051, increased from 5 minutes) and the stale-config retry in_onScriptLoaded(added in #3093) already prevent recording from starting with outdated config. The additional gate was redundant and created a deadlock when the config fetch failed.Now when the config fetch fails,
startIfEnabledOrStop()is called and falls back to persisted config from a previous page load. If no persisted config exists (first-ever visit), recording is correctly disabled rather than silently stuck. (2026-03-04) -
#3198
9d0df0eThanks @TueHaulund! - Reduce session replay memory pressure by tracking per-event sizes in SnapshotBuffer, eliminating redundant JSON.stringify calls during buffer operations. Also bumps @posthog/rrweb to 0.0.46 which uses FNV-1a hash-based canvas frame deduplication instead of storing full base64 strings. (2026-03-04) -
Updated dependencies []:
- @posthog/types@1.358.1
1.358.0
Minor Changes
- #3165
0e08337Thanks @dustinbyrne! - feat: Tree-shake surveys, toolbar, exceptions, conversations, logs, experiments (2026-03-03)
Patch Changes
- #3164
20c1ff2Thanks @dustinbyrne! - Add Extension interface for tree-shakable extensions (2026-03-03) - Updated dependencies []:
- @posthog/types@1.358.0
1.357.2
Patch Changes
- #3170
f485c92Thanks @slshults! - fix: Move tablet detection logic into detectDeviceType for consistent classification across all call sites (2026-03-03) - Updated dependencies []:
- @posthog/types@1.357.2
1.357.1
Patch Changes
- #3149
91223c5Thanks @adboio! - avoid re-checking URLs if they have not changed (2026-03-02) - Updated dependencies [
5e8d5fc]:- @posthog/core@1.23.2
- @posthog/types@1.357.1
1.357.0
Minor Changes
- #3169
4f885c0Thanks @marandaneto! - feat: add local sampleRate config for session recording (2026-03-02)
Patch Changes
- #3179
0dce119Thanks @TueHaulund! - Bump @posthog/rrweb-* to 0.0.45 — reuses a single OffscreenCanvas in the canvas recording worker instead of allocating a new one per frame, fixing a memory leak in Safari where GPU-backed canvas resources were not being garbage collected promptly (2026-03-02) - Updated dependencies [
4f885c0]:- @posthog/types@1.357.0
1.356.2
Patch Changes
-
#3174
e9127d8Thanks @TueHaulund! - Detect and report when rrweb fails to initialize. rrweb'srecord()silently swallows startup errors and returnsundefined, which previously left the SDK reporting an active recording status while capturing zero data. The SDK now checks the return value and reports a newrrweb_errorstatus, making the failure visible in debug properties. (2026-03-02) -
#3175
6ee5f12Thanks @TueHaulund! - Fix memory leak in canvas recording on Safari < 16.4 where ImageBitmaps were never closed when OffscreenCanvas was unavailable in the web worker. (2026-03-02) -
#3178
186871aThanks @TueHaulund! - Skip canvas FPS recording entirely on browsers without OffscreenCanvas support (Safari < 16.4) instead of running a wasteful requestAnimationFrame loop that can never produce data. Also includes displayWidth/displayHeight in canvas mutation data for correct replay sizing. (2026-03-02) -
#3176
87bae20Thanks @dustinbyrne! - fix: Drop explicit exports (2026-03-02) -
#3172
2e46959Thanks @dustinbyrne! - fix: Compressed requests use ArrayBuffer (2026-03-02) -
Updated dependencies []:
- @posthog/types@1.356.2
1.356.1
Patch Changes
- #3128
a500d14Thanks @ksvat! - wait for fresh config before recording start decision, add new recorder status, output recording started event (2026-02-27) - Updated dependencies []:
- @posthog/types@1.356.1
1.356.0
Minor Changes
- #3142
ec54fd8Thanks @dmarticus! - Add feature_flag_cache_ttl_ms config to prevent stale flag values (2026-02-26)
Patch Changes
-
#3154
a47179cThanks @slshults! - fix: Improve tablet device type detection when Chrome sends desktop-like UA stringsChrome on Android tablets defaults to "request desktop site" mode, sending a UA string indistinguishable from desktop Linux. This uses the Client Hints API (navigator.userAgentData.platform) and touch capability (navigator.maxTouchPoints) to correctly classify these devices as Tablet or Mobile when UA-based detection falls through to the Desktop default. (2026-02-26)
-
#3145
d741668Thanks @dmarticus! - Adds a remote_config_refresh_interval_ms config option to control how often feature flags are automatically refreshed in long-running sessions. (2026-02-26) -
Updated dependencies [
ec54fd8,d741668]:- @posthog/types@1.356.0
1.355.0
Minor Changes
Patch Changes
- Updated dependencies []:
- @posthog/types@1.355.0
1.354.4
Patch Changes
- #3152
d6fd9c9Thanks @ksvat! - add re-entrancy guard for cases where ALL + regex + event trigger matching is configured (2026-02-26) - Updated dependencies []:
- @posthog/types@1.354.4
1.354.3
Patch Changes
- #3113
77261d8Thanks @adboio! - add product tours device type targeting (2026-02-25) - Updated dependencies []:
- @posthog/types@1.354.3
1.354.2
Patch Changes
- #3153
67cf41eThanks @dustinbyrne! - fix: Add additional legacy exports for fully qualified dist and lib exports (2026-02-25) - Updated dependencies []:
- @posthog/types@1.354.2
1.354.1
Patch Changes
- #3148
9ae20e7Thanks @dustinbyrne! - fix: Expose all export paths (2026-02-25) - Updated dependencies []:
- @posthog/types@1.354.1
1.354.0
Minor Changes
- #3080
4d0c783Thanks @dustinbyrne! - feat: Introduce internal config to improve tree-shaking (2026-02-25)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.354.0
1.353.1
Patch Changes
- #3143
0b86924Thanks @adboio! - fix autofill bug in hosted surveys (2026-02-24) - Updated dependencies []:
- @posthog/types@1.353.1
1.353.0
Minor Changes
- #3135
fba7e5bThanks @dustinbyrne! - feat: Persist $user_state to cookie for server-side access (2026-02-23)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.353.0
1.352.1
Patch Changes
-
#3129
6bfa003Thanks @pauldambra! - fix: no need to put rrweb and friends directly on window in posthog-recorder (2026-02-23) -
#3131
ad26474Thanks @veryayskiy! - Fix issue with toolbar interferring distinct id in conversations (2026-02-23) -
Updated dependencies []:
- @posthog/types@1.352.1
1.352.0
Minor Changes
- #3121
c3c9780Thanks @veryayskiy! - Ability to retrieve previous conversations (2026-02-20)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.352.0
1.351.4
Patch Changes
- #3119
2649a9aThanks @dmarticus! - Adds a fresh option to getFeatureFlag(), getFeatureFlagResult(), and isFeatureEnabled() that only returns values loaded from the server, not cached localStorage values. (2026-02-19) - Updated dependencies [
2649a9a]:- @posthog/types@1.351.4
1.351.3
Patch Changes
- #3098
1a53e8cThanks @adboio! - add animation option for tour banners (2026-02-19) - Updated dependencies []:
- @posthog/types@1.351.3
1.351.2
Patch Changes
- #3096
d964a31Thanks @adboio! - add banner click tracking for tours (2026-02-19) - Updated dependencies []:
- @posthog/types@1.351.2
1.351.1
Patch Changes
- #3112
c0b911dThanks @adboio! - prevent infinite recursion bug with 3rd party proxy on posthog (2026-02-18) - Updated dependencies []:
- @posthog/types@1.351.1
1.351.0
Minor Changes
- #3115
8655261Thanks @veryayskiy! - Strip markdown in tickets list (2026-02-18)
Patch Changes
- #3107
9dbc05eThanks @ablaszkiewicz! - warning on manual capture('$exception') (2026-02-18) - Updated dependencies [
9dbc05e]:- @posthog/types@1.351.0
- @posthog/core@1.23.1
1.350.0
Minor Changes
- #2895
1b47203Thanks @benjackwhite! - RemoteConfig (config.js) has been loaded for ages and is in use by us in production. This PR makes it the sole config loading mechanism for posthog-js, removing the legacy /flags/?v=2&config=true path and the __preview_remote_config gate. (2026-02-17)
Patch Changes
- Updated dependencies [
1b47203]:- @posthog/types@1.350.0
1.349.0
Minor Changes
Patch Changes
- Updated dependencies [
f707ec9]:- @posthog/types@1.349.0
1.348.0
Minor Changes
- #3108
c4ca045Thanks @veryayskiy! - Support multiple tickets (2026-02-17)
Patch Changes
-
#3104
b11c3c5Thanks @adboio! - support customizable survey step button texts in product tours (2026-02-17) -
#3081
d36a6edThanks @adboio! - move tour event names to constants (2026-02-17) -
Updated dependencies [
e962f01]:- @posthog/core@1.23.0
- @posthog/types@1.348.0
1.347.2
Patch Changes
-
#3094
0d30218Thanks @TueHaulund! - feat(replay): add $snapshot_max_depth_exceeded debug property and bump rrweb to 0.0.42 with DOM depth limit (2026-02-13) -
#3093
f19b7f2Thanks @TueHaulund! - fix(replay): retry session recording start when persisted remote config is stale (2026-02-13) -
Updated dependencies []:
- @posthog/types@1.347.2
1.347.1
Patch Changes
- #3090
312b785Thanks @adboio! - enable product tour image preload (2026-02-13) - Updated dependencies []:
- @posthog/types@1.347.1
1.347.0
Minor Changes
- #3087
512d578Thanks @dustinbyrne! - fix: Revert tree shaking configuration (2026-02-12)
Patch Changes
- #3079
9c078acThanks @adboio! - update z-index hierarchy for tours > surveys > conversations (2026-02-12) - Updated dependencies []:
- @posthog/types@1.347.0
1.346.0
Minor Changes
Patch Changes
- Updated dependencies []:
- @posthog/types@1.346.0
1.345.5
Patch Changes
- #3060
7437982Thanks @pauldambra! - Add missingfeatureFlagsproperty andOverrideFeatureFlagsOptionstype toPostHoginterface, restoreset_configto the loaded callback type, and addfeatureFlagsReloadingtoon()event types (2026-02-11) - Updated dependencies [
7437982]:- @posthog/types@1.345.5
1.345.4
Patch Changes
- #3074
4e7fda9Thanks @marandaneto! - fix: session replay respects the network_timing remote config (2026-02-11) - Updated dependencies []:
- @posthog/types@1.345.4
1.345.3
Patch Changes
- #3064
50ebdfbThanks @jordanm-posthog! - Fixed an issue where Dead Clicks could continue being captured after being disabled via remote config. (2026-02-10) - Updated dependencies [
0acf16f]:- @posthog/core@1.22.0
- @posthog/types@1.345.3
1.345.2
Patch Changes
- #3067
4580975Thanks @adboio! - add "product tour button clicked" events (2026-02-10) - Updated dependencies []:
- @posthog/types@1.345.2
1.345.1
Patch Changes
- #3034
de43d70Thanks @adboio! - add survey shown tracking to useThumbSurvey + option to disable shown tracking in displaySurvey (2026-02-10) - Updated dependencies []:
- @posthog/types@1.345.1
1.345.0
Minor Changes
- #2919
fe8090cThanks @dustinbyrne! - Add$feature_flag_errorproperty to$feature_flag_calledevents (2026-02-09)
Patch Changes
- #3066
90db5d4Thanks @pauldambra! - fix: remote config cache invalidation was too aggressive (2026-02-09) - Updated dependencies [
fe8090c]:- @posthog/types@1.345.0
1.344.0
Minor Changes
- #2820
d578824Thanks @ordehi! - Add survey response validation for message length (min and max length). Fixes whitespace-only bypass for required questions. Existing surveys work unchanged but now properly reject blank responses. (2026-02-09)
Patch Changes
- #3055
afdf746Thanks @adboio! - do not attempt to load the toolbar from the toolbar itself (2026-02-09) - Updated dependencies [
d578824]:- @posthog/core@1.21.0
- @posthog/types@1.344.0
1.343.2
Patch Changes
- Updated dependencies [
e055f9a]:- @posthog/core@1.20.2
- @posthog/types@1.343.2
1.343.1
Patch Changes
- #3051
aa712a3Thanks @pauldambra! - fix: replay remote config cache should be invalidated periodically (2026-02-09) - Updated dependencies []:
- @posthog/types@1.343.1
1.343.0
Minor Changes
- #3048
dd3328fThanks @veryayskiy! - Do not show identification form if user is identified (2026-02-09)
Patch Changes
- #3049
8d9bb16Thanks @pauldambra! - fix: sampled: true in persistence if legacy and should be ignored (2026-02-09) - Updated dependencies []:
- @posthog/types@1.343.0
1.342.1
Patch Changes
- #3039
8f75daeThanks @hpouillot! - fix(err): fix console error capturing (2026-02-06) - Updated dependencies [
8f75dae]:- @posthog/core@1.20.1
- @posthog/types@1.342.1
1.342.0
Minor Changes
- #3032
19d59eaThanks @dmarticus! - add featureFlagsReloading event for tracking flag reload state (2026-02-05)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.342.0
1.341.2
Patch Changes
- #3035
b68e991Thanks @adboio! - unify element<>modal steps for product tours, deprecate element steps (2026-02-05) - Updated dependencies []:
- @posthog/types@1.341.2
1.341.1
Patch Changes
- #3041
23292d4Thanks @adboio! - replace stopPropagation with preventDefault for tour manaul click triggers (2026-02-05) - Updated dependencies []:
- @posthog/types@1.341.1
1.341.0
Minor Changes
Patch Changes
- Updated dependencies []:
- @posthog/types@1.341.0
1.340.0
Minor Changes
- #3024
2b2725eThanks @veryayskiy! - Support widget position (2026-02-04)
Patch Changes
- Updated dependencies [
bb62809]:- @posthog/core@1.20.0
- @posthog/types@1.340.0
1.339.1
Patch Changes
- #3007
af665ccThanks @adboio! - add element inference precision to tours; do not mark as shown until we know first step rendered successfully (2026-02-03) - Updated dependencies []:
- @posthog/types@1.339.1
1.339.0
Minor Changes
- #3006
b3ec434Thanks @robbie-c! - Add a function isTestUser() and config option test_user_hostname (2026-02-03)
Patch Changes
- #2993
5420f4dThanks @pauldambra! - upgrade to posthog/rrweb 0.0.40 (2026-02-03) - Updated dependencies [
b3ec434]:- @posthog/types@1.339.0
1.338.1
Patch Changes
- #3002
3105ff6Thanks @adboio! - fix stale element references in multi-page product tours (2026-02-03) - Updated dependencies []:
- @posthog/types@1.338.1
1.338.0
Minor Changes
- #3020
5ccf27eThanks @veryayskiy! - Fix issue with contrast colors in support widget (2026-02-03)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.338.0
1.337.1
Patch Changes
- Updated dependencies [
c99e5fe]:- @posthog/core@1.19.0
- @posthog/types@1.337.1
1.337.0
Minor Changes
-
#2996
7768010Thanks @matheus-vb! - Filter out flags marked as failed before merging with cached values, preventing transient backend errors from overwriting previously evaluated flag states (2026-02-03) -
#3000
4a1af3bThanks @veryayskiy! - Render markdown in support product (2026-02-03)
Patch Changes
- #3001
9bd4dbcThanks @adboio! - do not intercept element clicks if a product tour fails to show (2026-02-03) - Updated dependencies [
7768010]:- @posthog/core@1.18.0
- @posthog/types@1.337.0
1.336.4
Patch Changes
- Updated dependencies [
727536c]:- @posthog/core@1.17.0
- @posthog/types@1.336.4
1.336.3
Patch Changes
- Updated dependencies [
cbe84c1]:- @posthog/core@1.16.0
- @posthog/types@1.336.3
1.336.2
Patch Changes
-
#2985
2ed9623Thanks @adboio! - support custom banner container for product tours (2026-01-29) -
#2991
2b32a60Thanks @lricoy! - treat undefined and null the same when receiving config (2026-01-29) -
#2973
c1aa45cThanks @lricoy! - make attribution opt-in by default to reduce memory usage (2026-01-29) -
Updated dependencies []:
- @posthog/types@1.336.2
1.336.1
Patch Changes
- Updated dependencies [
8c0c495]:- @posthog/core@1.15.0
- @posthog/types@1.336.1
1.336.0
Minor Changes
- #2954
228930aThanks @dustinbyrne! - feat: AddgetFeatureFlagResultmethod (2026-01-28)
Patch Changes
- Updated dependencies [
228930a]:- @posthog/types@1.336.0
1.335.5
Patch Changes
- #2981
b5c1981Thanks @adboio! - fix survey close button color (2026-01-27) - Updated dependencies []:
- @posthog/types@1.335.5
1.335.4
Patch Changes
-
#2980
f81d065Thanks @dustinbyrne! - fix: Bump preact minimum version to 10.28.2 (2026-01-27) -
#2978
724587dThanks @fasyy612! - Bump rrweb dependency version to 0.0.37 (2026-01-27) -
Updated dependencies [
f51560c]:- @posthog/core@1.14.1
- @posthog/types@1.335.4
1.335.3
Patch Changes
- #2956
3f26f7fThanks @ksvat! - Bump rr-web dependency version (2026-01-26) - Updated dependencies []:
- @posthog/types@1.335.3
1.335.2
Patch Changes
- #2958
592a5d7Thanks @adboio! - fix: update cancel button on surveys to be black (2026-01-23) - Updated dependencies []:
- @posthog/types@1.335.2
1.335.1
Patch Changes
- Updated dependencies [
933c763]:- @posthog/core@1.14.0
- @posthog/types@1.335.1
1.335.0
Minor Changes
- #2953
c8d3fbeThanks @pauldambra! - allows using web vitals with and without attribution (2026-01-23)
Patch Changes
- #2947
b586b6bThanks @adboio! - enable linked flags for product tours (2026-01-23) - Updated dependencies [
c8d3fbe]:- @posthog/types@1.335.0
1.334.1
Patch Changes
- #2940
d38842dThanks @adboio! - enable element inference for product tours (2026-01-22) - Updated dependencies []:
- @posthog/types@1.334.1
1.334.0
Minor Changes
- #2802
f8c17bcThanks @pauldambra! - feat: add external_scripts_inject_target config to control script injection location (2026-01-22)
Patch Changes
-
#2950
8543f0fThanks @fuziontech! - fix(web-vitals): reduce memory leak in SPAs- Upgrade web-vitals from v4.2.4 to v5.1.0 (includes internal memory fixes from v5.0.3)
- Remove duplicate observer creation on URL change
Note: web-vitals has inherent memory accumulation in SPAs due to internal state. The v5 upgrade reduces this but doesn't fully eliminate it since web-vitals doesn't provide cleanup functions (Issue #629 was closed as "not planned"). (2026-01-22)
-
Updated dependencies []:
- @posthog/types@1.334.0
1.333.0
Minor Changes
- #2942
994206dThanks @veryayskiy! - Send context on sendMessage (2026-01-21)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.333.0
1.332.0
Minor Changes
- #2882
8a5a3d5Thanks @adboio! - add support for question prefill in popover surveys, add useThumbSurvey hook (2026-01-20)
Patch Changes
- Updated dependencies [
8a5a3d5]:- @posthog/core@1.13.0
- @posthog/types@1.332.0
1.331.3
Patch Changes
-
#2916
cbab5d2Thanks @adboio! - fix product tour tooltips on mobile (2026-01-20) -
#2933
d9eaf41Thanks @adboio! - add url params to posthog logo in surveys footer (2026-01-20) -
Updated dependencies []:
- @posthog/types@1.331.3
1.331.2
Patch Changes
- #2939
6442f5dThanks @dustinbyrne! - fix: Rate limiting configuration changes are respected (2026-01-20) - Updated dependencies []:
- @posthog/types@1.331.2
1.331.1
Patch Changes
- Updated dependencies [
b7fa003,f0cbc0d]:- @posthog/core@1.12.0
- @posthog/types@1.331.1
1.331.0
Minor Changes
-
#2900
23770e9Thanks @dmarticus! - RenamedevaluationEnvironmentstoevaluationContextsfor clearer semantics. The term "contexts" better reflects that this feature is for specifying evaluation contexts (e.g., "web", "mobile", "checkout") rather than deployment environments (e.g., "staging", "production").Deprecated
posthog.initoptionevaluationEnvironmentsis now deprecated in favor ofevaluationContexts. The old property will continue to work and will log a deprecation warning. It will be removed in a future major version.
Migration Guide
1// Before 2posthog.init('<ph_project_api_key>', { 3 evaluationEnvironments: ['production', 'web', 'checkout'], 4}) 5 6// After 7posthog.init('<ph_project_api_key>', { 8 evaluationContexts: ['production', 'web', 'checkout'], 9}) 10``` (2026-01-19)
Patch Changes
- Updated dependencies [
23770e9]:- @posthog/core@1.11.0
- @posthog/types@1.331.0
1.330.0
Minor Changes
- #2929
6695383Thanks @veryayskiy! - Add more context to a ticket when created (2026-01-19)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.330.0
1.329.0
Minor Changes
- #2927
da78b8cThanks @veryayskiy! - Remove loading state in support product (2026-01-19)
Patch Changes
- #2926
3676972Thanks @pawel-cebula! - Fix TypeError when logging objects with null/undefined property values in flattenObject (2026-01-19) - Updated dependencies []:
- @posthog/types@1.329.0
1.328.0
Minor Changes
- #2925
ce4566dThanks @TueHaulund! - Restore fetch wrappers to most recent working version (2026-01-17)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.328.0
1.327.0
Minor Changes
- #2923
b8b7f90Thanks @TueHaulund! - Fixed issue with fetch wrappers reconsuming request bodies and generating mismatched FormData boundaries (2026-01-17)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.327.0
1.326.0
Minor Changes
Patch Changes
- Updated dependencies [
d37e570]:- @posthog/core@1.10.0
- @posthog/types@1.326.0
1.325.0
Minor Changes
- #2913
262cb4bThanks @TueHaulund! - Ensure we always pass RequestInit object to wrapped fetch (2026-01-16)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.325.0
1.324.1
Patch Changes
- #2891
4785cc4Thanks @ksvat! - introduce cache and url change tracking for regex (2026-01-15) - Updated dependencies []:
- @posthog/types@1.324.1
1.324.0
Minor Changes
- #2908
b9efc01Thanks @adboio! - add display frequency options for product tour announcements (2026-01-15)
Patch Changes
- #2906
665d84fThanks @frankh! - do not require preflight requests for logs extension (2026-01-15) - Updated dependencies []:
- @posthog/types@1.324.0
1.323.0
Minor Changes
- #2902
584657aThanks @TueHaulund! - Ensure wrapped fetch() passes duplex option when required (2026-01-15)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.323.0
1.322.0
Minor Changes
- #2904
b9fb2e2Thanks @veryayskiy! - Fix the issue with _currentTicketId (2026-01-15)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.322.0
1.321.3
Patch Changes
-
#2899
f56a875Thanks @adboio! - support configurable z-index (2026-01-15) -
#2898
037ccb5Thanks @adboio! - more robust element-based tooltip positioning for product tours (2026-01-15) -
Updated dependencies []:
- @posthog/types@1.321.3
1.321.2
Patch Changes
- #2893
8eff3c0Thanks @ksvat! - bump rrweb version to 0.0.35 (2026-01-14) - Updated dependencies []:
- @posthog/types@1.321.2
1.321.1
Patch Changes
- #2865
54b064eThanks @adboio! - support banner rendering for product tours (2026-01-14) - Updated dependencies []:
- @posthog/types@1.321.1
1.321.0
Minor Changes
Patch Changes
- Updated dependencies []:
- @posthog/types@1.321.0
1.320.0
Minor Changes
- #2875
7662025Thanks @lucasheriques! - chore(deps): bump preact from 10.19.3 to 10.28.0 to fix security vulnerability (2026-01-13)
Patch Changes
- Updated dependencies []:
- @posthog/types@1.320.0
1.319.2
Patch Changes
- #2864
f64ebefThanks @rafaeelaudibert! - We were missing some public definitions inside@posthog/typesso let's fix them here. We've also fixed the typing inside theloadedcallback (2026-01-13) - Updated dependencies [
f64ebef]:- @posthog/types@1.319.2
1.319.1
Patch Changes
- #2863
c17b44aThanks @adboio! - add button actions to product tour steps (2026-01-13) - Updated dependencies []:
- @posthog/types@1.319.1
1.319.0
Minor Changes
Patch Changes
- #2873
ec5b64bThanks @pauldambra! - fix: use property based testing to expose another edge case bug in checkAndGetSessionAndWindowId (2026-01-12) - Updated dependencies []:
- @posthog/types@1.319.0
1.318.2
Patch Changes
- #2871
4f73495Thanks @pauldambra! - fix: detecting activity timestamp should not compare null to numbers (2026-01-12) - Updated dependencies []:
- @posthog/types@1.318.2
1.318.1
Patch Changes
- #2862
9337928Thanks @adboio! - add position options to modal and survey tour steps (2026-01-10) - Updated dependencies []:
- @posthog/types@1.318.1
1.318.0
Minor Changes
Patch Changes
- Updated dependencies [
b703cbb]:- @posthog/types@1.318.0
1.317.1
Patch Changes
- #2869
a50645aThanks @ksvat! - Add first snapshot timestamp logging for monitoring/debugging purposes (2026-01-09) - Updated dependencies []:
- @posthog/types@1.317.1
1.317.0
Minor Changes
Patch Changes
- #2853
3390186Thanks @adboio! - product tours: support rich content (2026-01-09) - Updated dependencies []:
- @posthog/types@1.317.0
1.316.1
Patch Changes
-
#2846
5ce7252Thanks @ordehi! - Fix survey URL prefill to respect branching/skip logicWhen using URL parameters to prefill survey responses (e.g.,
?q0=9), the SDK now correctly respects the survey's branching configuration. Previously, prefilled answers would always advance to the next sequential question, ignoring any skip logic. (2026-01-09) -
Updated dependencies []:
- @posthog/types@1.316.1
1.316.0
Minor Changes
- #2851
d4bf005Thanks @veryayskiy! - Expose Conversations API Methods for Custom UI (2026-01-08)
Patch Changes
- #2856
c1ed63bThanks @marandaneto! - chore: expose default stack parser creator (2026-01-08) - Updated dependencies [
fba9fb2,c1ed63b]:- @posthog/core@1.9.1
- @posthog/types@1.316.0
1.315.1
Patch Changes
- #2843
579cd53Thanks @adboio! - support mutli-page product tours (2026-01-07) - Updated dependencies []:
- @posthog/types@1.315.1
1.315.0
Minor Changes
-
#2849
8ddf472Thanks @veryayskiy! - separate enable conversation with enable conversations widget (2026-01-06) -
#2839
83b03feThanks @rafaeelaudibert! - Release new @posthog/types library to make it easy for those using the script version ofposthog-jsto properly typewindow.posthog(2026-01-06)
Patch Changes
- Updated dependencies [
83b03fe]:- @posthog/types@1.315.0
1.314.0
Minor Changes
- #2835
d50ffaaThanks @adboio! - adds person property for last-seen survey date, bringing more consistent behavior cross-browser/device/etc (2026-01-06)
Patch Changes
1.313.0
Minor Changes
- #2832
f050f6cThanks @rafaeelaudibert! - Introduce custom cookie properties for localStorage+cookie persistence using the newcookie_persisted_propertiesproperty. This allows people to opt-in to store properties in cookies even inlocalstorage+cookiesmode (2026-01-01)
1.312.0
Minor Changes
-
#2834
548b466Thanks @ordehi! - fix: ClearPageViewManagerstate on session rotation to prevent cross-session duration pollutionWhen a browser tab is backgrounded and the session rotates (30 min idle or 24 hour max),
PageViewManagernow clears its state. This prevents$prev_pageview_durationfrom spanning session boundaries, which was causing impossibly large values (94+ hours observed) in web analytics "Average Time on Page" metrics.Users who implemented workarounds for inflated
$prev_pageview_durationvalues (e.g., capping at 30 minutes) may want to review those after upgrading, as the root cause is now fixed. (2025-12-31)
1.311.0
Minor Changes
-
#2813
4b7443cThanks @ordehi! - feat(flags): add updateFlags() method for injecting flags without network requestAdds
posthog.updateFlags(flags, payloads?, options?)to inject feature flag values from an external source (e.g., server-side evaluation, edge middleware) without making a network request. Supports{ merge: true }option to merge with existing flags instead of replacing. (2025-12-29)
1.310.2
Patch Changes
-
#2812
ad42eaeThanks @lucasheriques! - fix(surveys): queue callbacks when fetch is in progress instead of returning error (2025-12-29) -
#2814
3da6a4cThanks @jurajmajerik! - Persist $device_id to cookies so it survives localStorage clears (2025-12-29)
1.310.1
Patch Changes
- #2797
8b1a39aThanks @adboio! - product tours: support custom appearance, clean up animations (2025-12-23)
1.310.0
Minor Changes
-
#2770
6851061Thanks @daibhin! - feat: allow exception autocapture to be programatically enabled / disabled (2025-12-22) -
#2792
f7372c8Thanks @adboio! - add event/action triggers for product tours (2025-12-22) -
#2790
96f42beThanks @adboio! - fix: hosted survey auto-submit behavior only submits skipped questions (2025-12-22) -
#2786
2c54d15Thanks @adboio! - emit new "survey abandoned" event on pageleave (2025-12-22) -
#2787
b676b4dThanks @lucasheriques! - feat: allow customizing text colors on web and react native (2025-12-22)
Patch Changes
- Updated dependencies [
b676b4d]:- @posthog/core@1.9.0
1.309.1
Patch Changes
- Updated dependencies [
6b0aabf]:- @posthog/core@1.8.1
1.309.0
Minor Changes
-
#2783
0163c71Thanks @adboio! - product tours: enable click-element-to-progress steps (2025-12-17) -
#2745
ee5e76dThanks @adboio! - reduce bundle size for product tours (2025-12-17)
1.308.0
Minor Changes
-
#2736
9871ee0Thanks @adboio! - build tour-specific survey step (2025-12-17) -
#2777
72b8595Thanks @adboio! - support lt/gt operator in survey event property filters (2025-12-17)
1.307.2
Patch Changes
- Updated dependencies [
2603a8d]:- @posthog/core@1.8.0
1.307.1
Patch Changes
1.307.0
Minor Changes
- #2700
bb64696Thanks @veryayskiy! - conversations widget (2025-12-16)
1.306.2
Patch Changes
- #2730
79184bdThanks @ablaszkiewicz! - include synthetic exception in console.error capture (2025-12-15)
1.306.1
Patch Changes
1.306.0
Minor Changes
Patch Changes
- #2725
90a0f14Thanks @ordehi! - fix: include initial person props in $identify when group() called first (2025-12-12)
1.305.0
Minor Changes
1.304.0
Minor Changes
- #2723
ecd68fbThanks @adboio! - product tours: support auto-show config, add modal steps (2025-12-10)
1.303.1
Patch Changes
1.303.0
Minor Changes
1.302.2
Patch Changes
1.302.1
Patch Changes
1.302.0
Minor Changes
1.301.2
Patch Changes
-
#2690
e9c00fdThanks @robbie-c! - Related to https://www.wiz.io/blog/critical-vulnerability-in-react-cve-2025-55182We didn't include any of the vulnerable deps in any of our packages, however we did have them as dev / test / example project dependencies.
There was no way that any of these vulnerable packages were included in any of our published packages.
We've now patched out those dependencies.
Out of an abundance of caution, let's create a new release of all of our packages. (2025-12-04)
-
Updated dependencies [
e9c00fd]:- @posthog/core@1.7.1
1.301.1
Patch Changes
- #2666
2004d36Thanks @pauldambra! - fix: session id rotation relied on in-memory cache which would be stale after log idle periods - particularly with multiple windows in play (2025-12-04)
1.301.0
Minor Changes
1.300.0
Minor Changes
- #2603
e1617d9Thanks @dmarticus! - add $feature_flag_evaluated_at properties to $feature_flag_called events (2025-12-03)
Patch Changes
-
#2670
4487d6bThanks @pauldambra! - A click while holding a modifier key (CTRL, ALT, CMD, Windows) shouldn't ever count as a dead click - so that we don't pick up e.g. open in a new tab as a dead click (2025-12-03) -
#2677
0e67750Thanks @lucasheriques! - chore: allow customizing text input and background for surveys (2025-12-03) -
Updated dependencies [
e1617d9]:- @posthog/core@1.7.0
1.299.0
Minor Changes
-
#2641
f9c4dbaThanks @adboio! - add survey cancellation events (2025-12-01) -
#2642
37e4f76Thanks @rafaeelaudibert! - Add newpayloadentry to theEarlyAccessFeaturetype (2025-12-01) -
#2661
aaad806Thanks @adboio! - add support for surveys triggered by actions with event property filters (2025-12-01)
Patch Changes
- #2582
21365ffThanks @pauldambra! - fix: properly cleanup in network plugin (2025-12-01)
1.298.1
Patch Changes
- #2592
7782dd9Thanks @marandaneto! - fix: session replay on react native web (2025-11-24)
1.298.0
Minor Changes
- #2619
86dab38Thanks @hpouillot! - package deprecation (2025-11-24)
Patch Changes
- Updated dependencies [
86dab38]:- @posthog/core@1.6.0
1.297.3
Patch Changes
- #2618
3eed1a4Thanks @marandaneto! - last version was compromised (2025-11-24) - Updated dependencies [
3eed1a4]:- @posthog/core@1.5.6
1.297.2
Patch Changes
- Updated dependencies [
83f5d07]:- @posthog/core@1.5.5
1.297.1
Patch Changes
- Updated dependencies [
c242702]:- @posthog/core@1.5.4
1.297.0
Minor Changes
- #2578
91f41eeThanks @rafaeelaudibert! - Output confirmation log message to the user when overriding feature flags to improve user feedback on whether the action actually did something or not (2025-11-19)
Patch Changes
- #2575
8acd88fThanks @hpouillot! - fix frame platform property for $exception events (2025-11-19) - Updated dependencies [
8acd88f]:- @posthog/core@1.5.3
1.296.1
Patch Changes
- #2590
ab85422Thanks @pauldambra! - fix: don't rely on order of method calls to gate calling url
1.296.0
Minor Changes
1.295.0
Minor Changes
1.294.0
Minor Changes
1.293.0
Minor Changes
- #2565
f2426dbThanks @pauldambra! - feat: ignore rageclicks by content.
Patch Changes
-
#2570
de80a41Thanks @pauldambra! - fix: rageclick detection should use event timestamp not current time -
#2561
4418d60Thanks @pauldambra! - feat: upgrades posthog-rrweb to 0.0.30
1.292.0
Minor Changes
- #2519
7c16ff7Thanks @rodrigomarcolin! - Made rageclick detection fully parametrizable with configurable threshold_px, timeout_ms, and click_count, while preserving previous default behavior.
1.291.0
Minor Changes
- #2557
c8c7de2Thanks @pauldambra! - feat: support strict minimum duration (more accurate on full page load)
1.290.0
Minor Changes
- #2553
8a2b790Thanks @pauldambra! - feat: yield to the main thread during posthog init
1.289.0
Minor Changes
- #2551
10be1b0Thanks @dmarticus! - Support bootstrapping feature flags during SSR in ReactJS
1.288.1
Patch Changes
- Updated dependencies [
87f9604]:- @posthog/core@1.5.2
1.288.0
Minor Changes
- #2433
392b190Thanks @dustinbyrne! - feat: Addflags_api_hostconfig option
1.287.0
Minor Changes
- #2525
ec65577Thanks @pauldambra! - feat: track flushed size per session
1.286.0
Minor Changes
- #2547
cd8bcd7Thanks @TueHaulund! - Fixed a bug where configuration overrides for session recording would not be applied if the recorder module was still loading
1.285.2
Patch Changes
- Updated dependencies [
d8d98c9]:- @posthog/core@1.5.1
1.285.1
Patch Changes
- #2545
c26a12cThanks @pauldambra! - fix: allow session ending payload when recording is idle
1.285.0
Minor Changes
- #2503
e95a9d5Thanks @pauldambra! - feat: store previous and next session id in session recording
1.284.0
Minor Changes
-
#2529
882d823Thanks @MattBro! - feat(surveys): add URL prefill and auto-submit supportSurveys can now be prefilled and automatically submitted via URL parameters.
New configuration options:
1posthog.init("token", { 2 surveys: { 3 prefillFromUrl: true, 4 autoSubmitIfComplete: true, 5 autoSubmitDelay: 800, 6 }, 7});URL format:
?q0=1&q1=8&auto_submit=trueq{N}= question index (0-based)- Value = choice index or rating value
auto_submit=trueenables auto-submission
Supported question types:
- Single choice (choice index)
- Multiple choice (multiple q{N} params)
- Rating (numeric value, validated against scale)
Use cases:
- Pre-filled NPS surveys from email campaigns
- One-click survey responses from notifications
- SMS surveys with embedded feedback
- QR code surveys at events
1.283.0
Minor Changes
- #2520
068d55eThanks @lricoy! - Add bot pageview collection behind preview flag. Enables tracking bot traffic as$bot_pageviewevents when the__preview_capture_bot_pageviewsflag is enabled.
Patch Changes
- Updated dependencies [
068d55e]:- @posthog/core@1.5.0
1.282.0
Minor Changes
- #2517
46e3ca6Thanks @pauldambra! - feat: add a component that will wrap your components and capture an event when they are in view in the browser
Patch Changes
- #2517
46e3ca6Thanks @pauldambra! - fix: complete react sdk featureflag component refactor
1.281.0
Minor Changes
- #2502
751b440Thanks @pauldambra! - fix: bucketed rate limiter can calculate tokens without a timer
Patch Changes
-
#2500
71ae0d2Thanks @pauldambra! - fix: don't poll surveys while the page is hidden -
Updated dependencies [
751b440]:- @posthog/core@1.4.0
1.280.1
Patch Changes
-
#2492
2b13291Thanks @pauldambra! - fix: extendUrlParams should always replace unless the caller says otherwise -
#2491
130c9e0Thanks @pauldambra! - fix: correctly update the retry count URL parameter -
#2485
d7dced1Thanks @pauldambra! - fix: stop polling when the retry queue is empty
1.280.0
Minor Changes
1.279.3
Patch Changes
1.279.2
Patch Changes
- Updated dependencies [
e0a6fe0]:- @posthog/core@1.3.1
1.279.1
Patch Changes
- #2469
b161bb3Thanks @pauldambra! - fix: stop heatmap buffer interval when hidden
1.279.0
Minor Changes
- #2463
3075888Thanks @pauldambra! - fix: remove rrweb types as a peer dependency
1.278.0
Minor Changes
- #2467
b0f1390Thanks @lricoy! - Includes warning on advanced_disable_flags with extra examples on what it disables
1.277.0
Minor Changes
- #2460
52da336Thanks @TueHaulund! - Bump posthog-rrweb
1.276.0
Minor Changes
- #2444
d50899eThanks @pauldambra! - chore: bump posthog rrweb version - not generally used yet
1.275.3
Patch Changes
- #2434
10b3d23Thanks @pauldambra! - fix: allow turning off debug mode
1.275.2
Patch Changes
-
#2431
7d45a7aThanks @marandaneto! - fix: remove deprecated attribute $exception_personURL from exception events -
Updated dependencies [
daf919b,7d45a7a]:- @posthog/core@1.3.0
1.275.1
Patch Changes
- #2422
4e15fdaThanks @pauldambra! - fix: possible memory leak in session id replacement in cookieless mode
1.275.0
Minor Changes
- #2426
ae941c2Thanks @thmsobrmlr! - Apply $current_url masking in web vitals and heatmaps extensions.
1.274.3
Patch Changes
- #2423
2d4eac4Thanks @pauldambra! - fix: another small potential memory leak in the recorder wrapping code"
1.274.2
Patch Changes
- #2421
43b8029Thanks @pauldambra! - fix: potential source of memory leak in recorder mutation throttler
1.274.1
Patch Changes
- Updated dependencies [
10da2ee]:- @posthog/core@1.2.4
1.274.0
Minor Changes
- #2404
39ace01Thanks @pauldambra! - feat: remove eager loaded replay and reduce bundle size by 14.8%
Patch Changes
- Updated dependencies [
e19a384]:- @posthog/core@1.2.3
1.273.1
Patch Changes
- #2412
25a8846Thanks @pauldambra! - fix: rely on 'state' less when reporting replay status
1.273.0
Minor Changes
- #2408
66b12f8Thanks @thmsobrmlr! - Fixes an issue where the event queue was not started until a page reload after callingopt_in_capturing()
1.272.1
Patch Changes
- #2395
4a39a10Thanks @pauldambra! - fix: increase max depth for app state diffing
1.272.0
Minor Changes
- #2405
cdfbd6dThanks @pauldambra! - fix: session recording config can be false, correct the types
1.271.0
Minor Changes
- #2385
7373238Thanks @pauldambra! - feat: switch replay to lazy loaded by default"
1.270.1
Patch Changes
- #2390
244b3adThanks @hpouillot! - fix react sourcemaps
1.270.0
Minor Changes
- #2355
9eccbabThanks @lucasheriques! - fix: use persistence for surveys if localStorage usage is enabled
Patch Changes
- #2396
13c6667Thanks @pauldambra! - fix: no need to estimate the size of all rrweb events before compressing some of them
1.269.1
Patch Changes
- #2393
a3b64e6Thanks @pauldambra! - chore: variable rename so i can trigger a releas
1.269.0
Minor Changes
- #2369
2a6ea65Thanks @dmarticus! - This PR implements support for evaluation environments in the posthog-js SDK, allowing users to specify which environment tags their SDK instance should use when evaluating feature flags.
Patch Changes
- #2381
06a79f9Thanks @pauldambra! - fix: remove xhr event listener when handling it to avoid potential memory leak - #2374
5af6e2dThanks @hpouillot! - fix react sourcemaps
1.268.11
- failed release due to an error in CI, included in 1.269.0
- #2381
06a79f9Thanks @pauldambra! - fix: remove xhr event listener when handling it to avoid potential memory leak
1.268.10
- failed release due to an error in CI, included in 1.269.0
- #2374
5af6e2dThanks @hpouillot! - fix react sourcemaps
1.268.9
Patch Changes
-
#2378
b920bacThanks @pauldambra! - fix: don't mangle to $ in no external or es5 builds -
#2376
b5eb605Thanks @pauldambra! - fix: rotating buffer while trigger pending
1.268.8
Patch Changes
- Updated dependencies [
5820942]:- @posthog/core@1.2.2
1.268.7
Patch Changes
- #2373
aff9455Thanks @pauldambra! - fix: 2 small conditional recording fixes
1.268.6
Patch Changes
- #2368
2102ee4Thanks @pauldambra! - fix: recorder behaviour when idle session is force terminated then restarted
1.268.5
Patch Changes
- #2362
8b570b8Thanks @pauldambra! - fix: over eager rename left a couple of old versions trying to call onRemoteConfig that doesn't exist
1.268.4
Patch Changes
- Updated dependencies [
caecb94]:- @posthog/core@1.2.1
1.268.3
Patch Changes
- #2357
d5d523cThanks @pauldambra! - fix: app state logging diff performance
1.268.2
Patch Changes
- Updated dependencies [
ac48d8f]:- @posthog/core@1.2.0
1.268.1
Patch Changes
- #2315
fd2c51dThanks @pauldambra! - fix: lazy loaded replay relies on remote config having been persisted in storage to avoid race with config on restart
1.268.0
Minor Changes
- #2345
4f37e77Thanks @lucasheriques! - feat: surveys matching on event properties
1.267.0
Minor Changes
- #2347
5d13bedThanks @pauldambra! - feat: allow ignoring rageclicks on elements by css selector
1.266.3
Patch Changes
- #2344
3d3fc37Thanks @lucasheriques! - chore: mark renderSurvey as deprecated
1.266.2
Patch Changes
- #2341
1cb3b42Thanks @hpouillot! - fix exception loop
1.266.1
Patch Changes
-
#2330
da07e41Thanks @hpouillot! - use error tracking processing from core -
Updated dependencies [
da07e41]:- @posthog/core@1.1.0
1.266.0
Minor Changes
- #2321
b81e152Thanks @pauldambra! - feat: expose rrweb custom events on the public interface of the recorder. not intended for arbitrary public use but useful for internal purposes
1.265.1
Patch Changes
1.265.0
Minor Changes
- #2032
822d8dfThanks @lucasheriques! - feat: allow display surveys popups on demand
1.264.2
Patch Changes
- #2314
5836a2fThanks @ordehi! - Fixed a bug that prevented surveys from loading in cookieless mode using the on_reject option. Surveys now correctly initialize when consent is given.
1.264.1
Patch Changes
- #2312
dff84c6Thanks @daibhin! - chore: allow PostHog exception capture to be skipped in Sentry integration
1.264.0
Minor Changes
1.263.0
Minor Changes
- #2294
5137440Thanks @pauldambra! - feat: add a redux logging middleware to posthog-js
1.262.1
Patch Changes
- #2309
28223c1Thanks @pauldambra! - fix: default to eager loading replay while investigating trigger bug reports
1.262.0
Minor Changes
- #2296
f9fe3baThanks @pauldambra! - feat: switch replay default to lazy loading
1.261.8
Patch Changes
- #2276
97961e4Thanks @dustinbyrne! -isFeatureEnablednow returnsundefined(instead offalse) for missing or disabled feature flags, aligning with the documentation. Previously,undefinedwas returned only before flags had loaded, and missing/disabled flags returnedfalse. This change clarifies the difference between flags that exist but don't match (false) and flags that don’t exist or are disabled (undefined).
1.261.7
Patch Changes
- #2284
bdfe450Thanks @pauldambra! - fix: order of operations when replay does pageview fallback
1.261.6
Patch Changes
- #2274
50fe70aThanks @robbie-c! - Fix initial pageview not firing when using cookieless_mode: "always"
1.261.5
Patch Changes
- #2270
980f5c4Thanks @lucasheriques! - fix: hosted surveys should ignore any delays
1.261.4
Patch Changes
- #2268
999c63fThanks @pauldambra! - fix: session recorder wrapper had private field that should be public"
1.261.3
Patch Changes
- #2267
f2ac956Thanks @pauldambra! - feat: allow testing of the new lazy loaded session recorder
1.261.2
Patch Changes
-
#2266
9470d97Thanks @pauldambra! - fix: don't mangle variables to `# posthog-js -
#2265
2487d12Thanks @pauldambra! - chore: update to latest rollup and terser
1.261.1
Patch Changes
- #2263
41d3890Thanks @pauldambra! - chore: add unused lazy loaded session recorder to prime CDN
1.261.0
Minor Changes
Patch Changes
- Updated dependencies [
1981815]:- @posthog/core@1.0.2
1.260.3
Patch Changes
-
#2219
44d10c4Thanks @daibhin! - add @posthog/core dependency -
Updated dependencies [
44d10c4]:- @posthog/core@1.0.1
1.260.2
Patch Changes
- #2236
f3269f3Thanks @lucasheriques! - fix: set survey person properties on SDK <1.249.2
1.260.1
Patch Changes
- #2215
1e95d47Thanks @lucasheriques! - fix: always set surveySeen on local storage for old posthog-js versions
1.260.0
Minor Changes
Patch Changes
1.259.0
Minor Changes
- #2192
dec3f44Thanks @marandaneto! - survey support for feature flag variants
1.258.6
Patch Changes
1.258.5
Patch Changes
- #2178
db569faThanks @lucasheriques! - - Fix surveys loading with advanced_enable_surveys config
1.258.4
Patch Changes
- #2172
ac254d9Thanks @lucasheriques! - Adds a new config,advanced_enable_surveys, to always enable surveys funcionality in the SDK
1.258.3
Patch Changes
-
#2171
14adc01Thanks @lucasheriques! - Fix early access features accumulation in persistence -
#2170
262cc5cThanks @lucasheriques! - Removes the_renderExternalSurveymethod which is not needed anymore
1.258.2
Patch Changes
- #2111
7114593Thanks @pauldambra! - checks for session activity in other windows when timing out in any particular window, avoids a race condition when proactively marking a session as idle
1.258.1
Patch Changes
- #2120
c7b03cdThanks @lucasheriques! - Updates the renderSurvey and getActiveMatchingSurveys methods to not take any external surveys into consideration
1.258.0
Minor Changes
1.257.2 - 2025-07-22
- chore: Safer iteration of experimental
__add_tracing_headers(#2100)
1.257.1 - 2025-07-21
- return capture results from captureException (#2081)
- update posthog-js at workspace level (#2096)
- chore(tests): use playwright for integration tests (#2093)
- fix: Sync consent with persistence immediately (#2082)
- Use posthog consent in next playground (#2083)
1.257.0 - 2025-07-08
- one for flags and flags for all (#2079)
- Fix comment (#2078)
- feat: Enhance AssignableWindow type with additional properties for better SDK integration (#2077)
- reset flags internal state when posthog.reset is called (#2066)
1.256.2 - 2025-07-04
- fix: Fix backwards compatibility (#2074)
- feat: Sdk spec gen (#2029)
- Fix CHANGELOG.md (#2068)
1.256.1 - 2025-07-02
- fix survey input color on dark backgrounds (#2071)
1.256.0 - 2025-06-30
- feat: push replay and person data to intercom and crisp chat (#2039)
1.255.3 - 2025-06-30
- fix: init surveys manager if surveys is disabled in the project settings (#2056)
1.255.2 - 2025-06-30
- fix: word break on open ended choices (#2065)
- chore: make it easier to run locally (#2061)
- chore: deprecate ip config (#2053)
- Fix dev on nextjs playground (#2051)
- feat: add vscode extension playground (#2041)
- chore: add a top-level changelog (#2040)
- chore: improve eslint rule (#2038)
- chore: Make nextjs playground work with regular install (#2035)
1.255.1 - 2025-06-20
- chore: new survey config (#2031)
- split configuration and fix react linting (#2028)
1.255.0 - 2025-06-18
- feat: enhance campaign parameter retrieval from cookies and URL (#2027)
1.254.0 - 2025-06-17
- feat: add distinct id tracing header (#2026)
- Add flags project board workflow (#2014)
1.253.4 - 2025-06-16
- fix: some style problems in multiple/single-choice questions (#2016)
1.253.3 - 2025-06-16
- fix: don't call ff events for surveys (#2022)
- chore: move readme to root (#2023)
1.253.2 - 2025-06-16
- Revert "Revert "remove custom eslint rules (#2019)" (#2020)" (#2021)
1.253.1 - 2025-06-16
1.253.0 - 2025-06-16
- chore: update readme instructions (#2017)
- chore: workspace migration (#1991)
1.252.1 - 2025-06-15
- Fix crash when config has circular references (#2015)
1.252.0 - 2025-06-12
1.251.1 - 2025-06-12
- fix: Add warning for when the user tries to identify using the cookieless sentinel distinct ID (#2013)
1.251.0 - 2025-06-12
- feat: improve surveys accessibility (#1999)
1.250.2 - 2025-06-10
- fix: stop feedback surveys to re-render every second (#2006)
1.250.1 - 2025-06-10
1.250.0 - 2025-06-09
1.249.5 - 2025-06-05
- feat: exception rate limiter by type (#1994)
1.249.4 - 2025-06-05
- fix: use correct key for exception values in suppression rules (#2002)
1.249.3 - 2025-06-04
- fix: set survey properties before sending the event (#1997)
- chore: more playground scenarios (#1985)
1.249.2 - 2025-06-03
- fix: hide feedback tab if survey is not recurring (#1988)
- chore: apply survey seen attributes on posthog capture (#1987)
1.249.1 - 2025-06-02
- Fix: Block Leikibot (#1984)
1.249.0 - 2025-05-30
- feat(flags): add
advanced_only_evaluate_survey_feature_flagsconfig to explicitly only evaluate survey flags on the frontend (#1986)
1.248.1 - 2025-05-28
- chore: sync with main repo (#1982)
1.248.0 - 2025-05-27
- feat: Add "defaults" to config (#1978)
1.247.0 - 2025-05-27
- fix: getSurveySeen and waitPeriod checks (#1979)
1.246.0 - 2025-05-22
- fix: Block newer google bots (#1974)
1.245.2 - 2025-05-22
- fix: linked flag any variant match (#1972)
- fix: modernise domain spelunking cookie setting code (#1973)
- chore: fix changelog (#1971)
1.245.1 - 2025-05-21
- chore: update some dependencies (#1969)
- fix: don't call receivedFeatureFlags if flags were disabled (#1964)
- fix: csp trailing slash (#1967)
1.245.0 - 2025-05-19
- feat: add new options for survey positions (#1965)
1.244.0 - 2025-05-19
- automation let us down here, and this is identical to 1.243.1
1.243.1 - 2025-05-19
- feat: suppression matching (#1937)
- fix: survey should reappear after url is matching again (#1962)
- feat: sample violations for easier testing (#1966)
- feat: allow answer question when clicking on the choice (#1958)
1.242.3 - 2025-05-19
- fix: add new relic to payload host denylist (#1952)
- chore: remove unused function from survey extensions (#1960)
1.242.2 - 2025-05-15
- fix: center positioning for surveys (#1959)
- chore: escape quotation marks on elements string handling (#1943)
1.242.1 - 2025-05-14
- fix: retrieve survey shadow should include posthog ref (#1955)
1.242.0 - 2025-05-13
- feat: use css files for survey styles (#1950)
1.241.1 - 2025-05-13
- fix: Remove initial person info from event payload (#1953)
1.241.0 - 2025-05-13
- feat: Add calculateEventProperties to public API (#1951)
1.240.6 - 2025-05-09
- feat: use css files for survey widget styles (#1948)
1.240.5 - 2025-05-08
- fix: padding on cancel button (#1946)
- chore: make rollup able to bundle CSS files (#1945)
1.240.4 - 2025-05-07
- chore: include response within the survey_quesiton property (#1942)
1.240.3 - 2025-05-07
- fix: false flag should not trigger linked flags (#1944)
1.240.2 - 2025-05-07
- fix: conflict between event based vs feedback button surveys (#1941)
1.240.1 - 2025-05-07
- fix: getRenderSurvey behavior (#1939)
- chore: make internal vars private (#1938)
1.240.0 - 2025-05-06
- feat: submit partial responses for survey answers (#1888)
1.239.1 - 2025-05-02
- fix: dont mangle some surveys properties (#1934)
- docs: use history_change option on SPA playgrounds (#1929)
1.239.0 - 2025-05-01
- feat: Avoid tracking pageview from prerenders (#1910)
1.238.0 - 2025-05-01
- feat: allow ANY or ALL matches for triggers (#1875)
1.237.1 - 2025-04-30
- chore: use getConstratingColor and add question-container (#1926)
1.237.0 - 2025-04-29
- fix: prevent survey events to affect multiple surveys (#1924)
- chore: Add homepage fields and copy LICENSE to posthog-js-react (#1928)
- feat: Allow mangling of storage function names (#1927)
1.236.8 - 2025-04-29
- feat: Reduce bundle size with property mangling (#1902)
- Make the flags demo runnable (#1919)
- chore(err): add nuxtjs example (#1917)
1.236.7 - 2025-04-25
- chore: survey 10kb win (#1921)
1.236.6 - 2025-04-24
- fix: refactor canRenderSurvey and move logic to SurveyManager (#1897)
- chore: do not organize imports using VS Code functionality (#1914)
- fix: make feedback tab survey display responsive (#1704)
1.236.5 - 2025-04-22
- fix: dont propagate events in surveys (#1911)
1.236.4 - 2025-04-21
- fix: prevent multiple stylesheet creation for feedback survey (#1912)
1.236.3 - 2025-04-21
- fix: timezone offset property not being sent (#1908)
- fix(err): add support for error causes (#1909)
1.236.2 - 2025-04-17
- fix response based branching for open choice questions (#1907)
1.236.1 - 2025-04-15
- chore: refactor survey loadIfEnabled (#1903)
- feat: Enforce that private members of classes start with an underscore (#1901)
- chore: Remove giant Info object (#1900)
1.236.0 - 2025-04-14
- chore: add canRenderSurveyAsync (#1891)
- feat: capture pinterest, snapchat, and quora click ids (#1872)
- chore: Generate bundle size viz (#1899)
- Make react router playground handle pageviews on route change (#1895)
1.235.6 - 2025-04-11
- feat: Improve how PostHogProvider works with SSR (#1893)
- feat(err): add react error boundary (#1884)
1.235.5 - 2025-04-10
- fix: survey feedback button not showing after url change (#1892)
- chore: better license attribution (#1883)
1.235.4 - 2025-04-10
- Fix web vitals running when capture_performance: false is set (#1890)
1.235.3 - 2025-04-10
- chore: rename survey extension utils and fix logging (#1889)
1.235.2 - 2025-04-10
- fix: new survey position for feedback button (#1885)
1.235.1 - 2025-04-10
- chore: even more replay debug signal (#1887)
1.235.0 - 2025-04-08
- fix: make survey widget with selector work with SPAs (#1877)
- chore: add react router vite react playground (#1876)
1.234.11 - 2025-04-08
- chore: allow all surveys to be repeated if schedule is always (#1866)
1.234.10 - 2025-04-07
- feat: Only capture vitals on http and https (#1873)
- feat: Playwright tests should run over http rather than file (#1874)
1.234.9 - 2025-04-04
- fix: survey feedback button anchoring to trigger (#1865)
1.234.8 - 2025-04-04
- chore: deduplicate all $set calls done from setPersonProperties (#1813)
1.234.7 - 2025-04-03
- fix: clean styles to prevent
tags (#1863) - docs: Keep nuxt examples in sync with nuxt playground (#1867)
- Add autocapture playground page (#1864)
1.234.6 - 2025-04-01
1.234.5 - 2025-04-01
- fix: focus open input field on choice click (#1856)
1.234.4 - 2025-03-31
1.234.3 - 2025-03-31
1.234.2 - 2025-03-28
- fix: do not always wrap console.error (#1853)
- fix(err): message must always be a string (#1852)
1.234.1 - 2025-03-27
1.234.0 - 2025-03-27
- feat: always include stack trace parsing (#1850)
1.233.1 - 2025-03-26
- Send timezone to flags v2 (#1849)
1.233.0 - 2025-03-26
- feat: capture console errors (#1771)
- chore(flags): use the new
/flagsendpoint to manage flag evaluation for team 2 (#1841)
1.232.7 - 2025-03-25
- chore: add onSurveysLoaded listener (#1834)
1.232.6 - 2025-03-24
1.232.5 - 2025-03-24
- fix: Switch from regex to trim (#1847)
1.232.4 - 2025-03-21
- Revert "Revert "feat: Enjoy the benefits of
/decide?v=4(#1838)" (#1842)" (#1843)
1.232.3 - 2025-03-21
- Revert "feat: Enjoy the benefits of
/decide?v=4(#1838)" (#1842)
1.232.2 - 2025-03-20
- feat: Enjoy the benefits of
/decide?v=4(#1838)
1.232.1 - 2025-03-20
- feat: Screen dimensions and UA as person property (#1840)
1.232.0 - 2025-03-20
- feat: do not start recorder active-active (#1839)
- chore(dev): add config to make debugging with vs code and the orta jest extension… (#1836)
- feat(flags): Support
/decide?v=4and include version info flag called events (#1837)
1.231.3 - 2025-03-19
- fix: do not allow non string
$current_urlto be provided (#1835)
1.231.2 - 2025-03-18
- fix: check surveys timeout in the survey manager level (#1832)
1.231.1 - 2025-03-18
- chore: update posthog rrweb (#1831)
- chore: add a regression example for toolbar z-index highlighting (#1827)
1.231.0 - 2025-03-14
- feat: no recording blob urls (#1768)
- chore: update changelog (#1824)
- feat: remote image masking (#1826)
1.230.4 - 2025-03-13
- chore: allow push to main in GH actions (#1825)
- chore: add new question index to id map (#1812)
1.230.3 - 2025-03-13
- fix: session recording class type and typo (#1815)
- chore: update web vitals (#1820)
- fix: default mask all inputs must be defined (#1819)
- fix(err): fix hosts, linting and documentation (#1818)
1.230.2 - 2025-03-11
- fix: simple loader race protection (#1804)
- chore(err): add next template (typescript + app router) (#1807)
1.230.1 - 2025-03-10
- fix: handle non Error objects being passed to captureException (#1806)
1.230.0 - 2025-03-10
- feat: allow early access feature stage specification (#1805)
1.229.5 - 2025-03-07
- fix: Stop logging error when client is uninitialized (#1803)
1.229.4 - 2025-03-07
- chore: use quesiton ID instead of question index if it's available (#1764)
1.229.3 - 2025-03-07
- Reverse error message (#1795)
1.229.2 - 2025-03-06
- fix: make survey preview behave like the actual (#1799)
- chore(err): add playground for error tracking (#1796)
- chore: sourcemap sample app (#1782)
- chore: refactor playwright helper for clarity (#1774)
1.229.1 - 2025-03-06
- fix: stop setting platform on sentry event (#1790)
1.229.0 - 2025-03-06
- feat: add chunk_id to stack frames (#1794)
1.228.2 - 2025-03-06
- chore(flags): support handling optional
requestIds in/decideresponses (#1793)
1.228.1 - 2025-03-05
- fix(flags): do not reset $anon_distinct_id after first decide call if advanced_disable_feature_flags_on_first_load is true (#1786)
1.228.0 - 2025-03-05
- fix: Fix site app loading (#1792)
1.227.2 - 2025-03-05
- feat: Block yet another semrush crawler/bot (#1791)
1.227.1 - 2025-03-05
- feat: posthog feature component should report variant too (#1783)
- chore: image blocking example (#1789)
- chore(): set all github actions to run on ubuntu-22.04 (#1784)
- fix(flags): Make sure flags are loaded when identify is called (#1785)
- fix(flags): pass along $initial_ person properties in decide requests automatically (#1781)
- chore: Mark peerDependencies as optional (#1777)
- feat: Make
getQueryParamsmore resilient (#1778)
1.227.0 - 2025-03-04
- feat: support loading masking remotely (#1734)
1.226.0 - 2025-03-04
- feat(web-analytics): Add $session property with an object of props on session_id lifecycle (#1780)
- feat: Block more bots (#1776)
1.225.1 - 2025-03-03
- fix: add semrush audit bot (#1775)
- chore: add posthog built rrweb (#1770)
1.225.0 - 2025-03-02
- feat: better positioning for survey selectors (#1772)
1.224.1 - 2025-02-27
- fix: dont require double click to show feedback surveys (#1767)
1.224.0 - 2025-02-27
- feat(feature-flags): support quota limiting for feature flags (#1758)
1.223.5 - 2025-02-26
- fix: nonce missing style script (#1765)
1.223.4 - 2025-02-25
- fix: support inherit font family on surveys (#1763)
1.223.3 - 2025-02-23
- fix: dont show survey on url change, only hide it (#1761)
1.223.2 - 2025-02-22
- fix: improve survey bundle size (#1759)
1.223.1 - 2025-02-22
1.223.0 - 2025-02-22
- feat: Add new
prepare_external_dependency_stylesheetconfig option (#1757)
1.222.0 - 2025-02-20
- chore: Make
@rrweb/typesa peer dependency (#1749)
1.221.1 - 2025-02-20
- fix: check url matching on URL change for widget-type surveys (#1755)
1.221.0 - 2025-02-20
- feat: allow widget surveys to be repeated indefinitely (#1752)
1.220.0 - 2025-02-20
- feat(llm-observability): metric and feedback methods (#1709)
1.219.6 - 2025-02-19
- fix: Remove circular dependency (#1750)
1.219.5 - 2025-02-19
- Block Chrome-Lighthouse UA (used by ahrefs) (#1751)
1.219.4 - 2025-02-18
- fix: Fix types for
onFeatureFlagscallback (#1748)
1.219.3 - 2025-02-18
- fix(devex): update frontend/package.json when pushing to main repo (#1746)
1.219.2 - 2025-02-18
- fix: last seen survey date logic (#1745)
1.219.1 - 2025-02-17
- feat: add more debug signals (#1743)
1.219.0 - 2025-02-17
- feat(web-analytics): Handle set_once latest props in a cross-subdomain way (#1739)
1.218.2 - 2025-02-15
- chore: limit height of multiple choice question (#1740)
1.218.1 - 2025-02-14
1.218.0 - 2025-02-14
- feat(flags): Add remote config feature flag method that bypasses cached values (#1729)
1.217.7 - 2025-02-14
- fix: skip device type check if no devices set (#1737)
1.217.6 - 2025-02-14
- fix: heatmaps unload listener (#1736)
1.217.5 - 2025-02-14
- fix: check url match before trigger showSurvey (#1732)
1.217.4 - 2025-02-13
- fix: unexpected undefined should be expected (#1731)
1.217.3 - 2025-02-13
- Revert "fix: check url match twice because of potential race condition (#1722)" (#1733)
1.217.2 - 2025-02-12
- fix(no-code experiments): refactor (6) (#1728)
1.217.1 - 2025-02-11
- fix: canvas quality value (#1727)
1.217.0 - 2025-02-11
- feat: override exception capture clientside (#1726)
1.216.1 - 2025-02-10
- fix: capture when argument is not a string (#1724)
- feat: Add e-commerce test page to nextjs playground (#1725)
1.216.0 - 2025-02-10
- chore: Drop CI support for Node 16 (EOL), use pnpm 9 internally (#1723)
1.215.7 - 2025-02-10
1.215.6 - 2025-02-06
- fix(flags): set default state values in feature flag hooks (#1719)
- chore: correct type comment (#1721)
1.215.5 - 2025-02-06
- chore: small readability refactor to getActiveMatchingSurveys (#1718)
1.215.4 - 2025-02-05
- fix(flags): store setOnce properties in locally persisted feature flag props (#1716)
- chore: better reset comment (#1717)
1.215.3 - 2025-02-04
- refactor: Simplify
Posthog.init()signature (#1712)
1.215.2 - 2025-02-03
- fix: checking status is too blunt for paused status (#1713)
1.215.1 - 2025-01-31
- chore: export some types (#1710)
1.215.0 - 2025-01-31
- feat: allow configuring request queue interval (#1708)
1.214.1 - 2025-01-31
- fix: never send when not sampled (#1706)
- chore: silence survey logging (#1707)
1.214.0 - 2025-01-30
- chore: add device types check (#1698)
1.213.0 - 2025-01-30
- feat: deprecate
featureFlags.overridein favor offeatureFlags.overrideFeatureFlags, a new function that supports overriding flags and flag payloads (#1697) - chore: snapshot types that we want to not accidentally deprecate or remove (#1705)
1.212.1 - 2025-01-29
- docs: Add missing types (#1703)
1.212.0 - 2025-01-29
- feat: sampling that can be shared (#1700)
1.211.4 - 2025-01-29
- feat: Add new rule to guarantee events are tracked as passive (#1689)
1.211.3 - 2025-01-29
- docs: Add documentation to all of our init options (#1681)
- chore: add survey files codeowners (#1696)
1.211.2 - 2025-01-28
- fix: survey URL targeting should re-evaluate after the URL changes (#1695)
1.211.1 - 2025-01-28
- revert: "chore: upgrade rrweb to alpha.18" (#1659)
- chore: codeowners for recorder file (#1693)
1.211.0 - 2025-01-27
- refactor: Remove/deprecate/rename old options (#1694)
1.210.2 - 2025-01-24
- fix: rrweb patch fix take 2 (#1691)
1.210.1 - 2025-01-24
- fix: bad rrweb patch (#1690)
1.210.0 - 2025-01-24
1.209.4 - 2025-01-24
- feat: Annotate our
scrollevents aspassive(#1684) - fix: Exclude more domains from cross subdomain tracking by default (#1680)
1.209.3 - 2025-01-24
- fix: Fix hitting call stack limit when deep comparing circular objects (#1688)
1.209.2 - 2025-01-24
- fix: Implement
isDeepEqualmanually (#1686)
1.209.1 - 2025-01-24
- fix: angular detection can be less blunt (#1687)
- fix: Fix CI check name (#1673)
1.209.0 - 2025-01-23
- feat: Enhance PostHogProvider to prevent double initialization on
React.StrictMode(#1676)
1.208.1 - 2025-01-23
- fix: correctly cache split css (#1682)
1.208.0 - 2025-01-23
1.207.9 - 2025-01-23
- fix: silence noisy surveys logging (#1679)
1.207.8 - 2025-01-22
- fix: missing href on link (#1678)
1.207.7 - 2025-01-22
- fix: cache nested loops (#1677)
1.207.6 - 2025-01-22
- chore: better logging for surveys loaders (#1663)
1.207.5 - 2025-01-22
- fix: set last reset date as event super property (#1671)
1.207.4 - 2025-01-22
- fix: sentry integration fields (#1669)
1.207.3 - 2025-01-22
- fix: patch for css parsing performance (#1670)
1.207.2 - 2025-01-21
- fix(): prevent person processing if /decide fails to fetch remote config (#1658)
1.207.1 - 2025-01-21
- fix: expose getNextSurveyStep to use in posthog (#1661)
- chore: upgrade rrweb to alpha.18 (#1592)
1.207.0 - 2025-01-16
- chore: deduplicate subsequent identify calls (#1649)
- feat: Add the ability to mask some PII-containing URL parameters (#1654)
- chore: Remove '$web_experiment_applied' event (#1653)
- chore: Update pull_request_template.md (#1651)
1.206.1 - 2025-01-14
- fix: survey previews should never have the submit button disabled (#1650)
1.206.0 - 2025-01-14
- feat: add irclid and _kx as campaign parameters (#1648)
- chore: Rename cklsh constants to cookieless (#1647)
1.205.1 - 2025-01-13
- feat: custom webfont selection on surveys (#1643)
- chore(ci): final move from cypress to playwright (#1646)
- feat: add Better Uptime string to blocked UA (#1644)
1.205.0 - 2025-01-07
- feat: Add a onPreviewSubmit callback to preview surveys (#1641)
1.204.0 - 2025-01-06
- feat: Deprecate
sanitize_properties(#1632) - test(ci): move more of the browser tests to playwright (#1638)
1.203.3 - 2025-01-03
- feat: Add pageview and prev pageview tracking (#1634)
- fix: safer toolbar function (#1637)
- chore: playwright tests (#1631)
1.203.2 - 2024-12-27
- Adds option for nonce support (#1630)
1.203.1 - 2024-12-20
- fix: recordings that are paused for their whole duration (#1626)
- feat: custom event with remote config (#1628)
1.203.0 - 2024-12-20
- chore: add feature name prop to event (#1624)
- fix: payload host deny list (#1627)
- chore: build against lowest and current version of TS (#1625)
- chore: fix changelog after automation error (#1623)
1.202.5 - 2024-12-19
- chore: lint a file that needs it (#1622)
1.202.4 - 2024-12-19
- fix: do not even send heatmap with no x or y (#1621)
- fix: type error accessing null object and added test case (#1620)
- chore: Small tweaks to make fetch default (#1610)
- chore: remove circular dependencies (#1618)
1.202.3 - 2024-12-18
NB an error meant this version was never published to NPM
1.202.2 - 2024-12-17
- fix: specify transport in fewer places to let config control (#1614)
- chore: update rollup, bc y not (#1615)
1.202.1 - 2024-12-17
- feat: Use token scoped remote config (#1611)
1.202.0 - 2024-12-17
- fix: Change default transport to fetch (#1612)
1.201.1 - 2024-12-17
- fix: Load RemoteConfig by default but don't use it (#1607)
- chore: add websockets example to nextjs playground (#1605)
1.201.0 - 2024-12-16
- fix: rotate session id proactively (#1512)
1.200.2 - 2024-12-16
- feat(web-analytics): Add flag to send server hash instead of distinct id (#1490)
1.200.1 - 2024-12-13
- fix: Make legacy property sturdier (#1602)
1.200.0 - 2024-12-13
- fix: Refactor decide loading (#1596)
1.199.0 - 2024-12-12
- chore(flags): Add new debugging property
$used_bootstrap_value,$feature_flag_bootstrapped_responseand$feature_flag_bootstrapped_payloadto$feature_flag_calledevent (#1567)
1.198.0 - 2024-12-12
- feat: Allow users to customize
fetchbehavior (#1599)
1.197.0 - 2024-12-12
- feat: send snapshot library (#1587)
1.196.1 - 2024-12-12
- feat: Don't create person profile when setting properties for flags (#1586)
1.196.0 - 2024-12-12
- feat: include attribution with all web vitals (#1594)
1.195.0 - 2024-12-10
- Reduce type (#1590)
1.194.6 - 2024-12-09
- feat: Load site functions via RemoteConfig (#1580)
1.194.5 - 2024-12-06
- feat: Added better sub logging utils (#1581)
1.194.4 - 2024-12-05
- feat: RemoteConfig loader (#1577)
1.194.3 - 2024-12-03
- fix: parse Chrome instead of Android as browser (#1575)
1.194.2 - 2024-12-02
- fix: use previous site-app variables (#1574)
1.194.1 - 2024-11-30
- fix: Don't crash on bigints (#1573)
- feat: Add customization to print events drop them (#1572)
1.194.0 - 2024-11-29
- feat: add $recording_status property (#1571)
1.193.1 - 2024-11-28
- fix: zone detection (#1570)
1.193.0 - 2024-11-28
- feat: allow decide to provide script name for recorder (#1509)
1.192.1 - 2024-11-28
1.192.0 - 2024-11-28
- feat: Start tracking timezone offset and language prefix (#1568)
1.191.0 - 2024-11-28
- feat: different default and max idle period (#1558)
1.190.2 - 2024-11-27
- fix: patch to angular detection in rrweb (#1566)
- chore: fix changelog (#1564)
1.190.1 - 2024-11-27
- fix: catch errors detecting dialog state when recording (#1562)
1.190.0 - 2024-11-27
- feat: Add initial person info to cookie when using localPlusCookieStore (#1559)
1.189.1 - 2024-11-27
- feat: hog site functions (#1546)
1.189.0 - 2024-11-26
- feat: Add better npm import, and script entrypoint for customizations (#1550)
1.188.1 - 2024-11-26
- fix: safari support requires we don't use (#1553)
- fix: endless capturing /s/ (#1551)
- chore: make platform more specific (#1549)
1.188.0 - 2024-11-22
- fix(surveys): Process feature_flag_keys on Survey object (#1548)
- chore: sentry integration fixes (#1544)
1.187.2 - 2024-11-20
- fix: improve ES6 bundling (#1542)
1.187.1 - 2024-11-19
- fix: patch angular wrap detection in rrweb (#1543)
1.187.0 - 2024-11-19
- feat: allow config of before_send function to edit or reject events (#1515)
- chore: timeout test cafe jobs (#1540)
- chore: specify an explicit browserslist version (#1539)
1.186.4 - 2024-11-19
- chore: always transform exponentiation (#1537)
- chore: very small change to IE11 bundling (#1536)
1.186.3 - 2024-11-18
- fix: refactor native mutation observer implementation (#1535)
- chore: update dependency versions (#1534)
- chore: remove custom exceptions endpoint (#1513)
1.186.2 - 2024-11-18
- fix: angular change detection mutation observer (#1531)
- chore: Added CSP headers to next app for testing what we document (#1528)
1.186.1 - 2024-11-15
- fix: XHR req method capture (#1527)
1.186.0 - 2024-11-15
- feat: allow triggering sessions when events occur (#1523)
1.185.0 - 2024-11-15
- feat: Add customization to add all person profile properties as setPersonPropertiesForFlags (#1517)
1.184.2 - 2024-11-13
- fix(flags): support multiple children prop in PostHogFeature (#1516)
- fix: Don't use session storage in memory mode (#1521)
1.184.1 - 2024-11-12
- chore: add type to Sentry exception (#1520)
1.184.0 - 2024-11-12
- feat: deadclicks in heatmaps (#1510)
1.183.0 - 2024-11-12
- feat: add recording url blocklist (#1500)
1.182.0 - 2024-11-11
- chore: upgrade rrweb to alpha.17 (#1489)
1.181.0 - 2024-11-05
- chore: add stack type (#1511)
1.180.1 - 2024-11-01
- fix: dead click fixes from watching in prod (#1508)
1.180.0 - 2024-10-31
- feat: allow mutation rate limiter configuration (#1506)
1.179.0 - 2024-10-31
- feat: dead click detection (#1463)
- chore: refactor towards dead clicks autocapture (#1505)
1.178.0 - 2024-10-30
- feat: Add timezone to events (#1504)
- chore: update README to include missing steps for running local nextjs playground (#1455)
1.177.0 - 2024-10-28
- feat: Only set missing campaign params to null if there is at least one non-null (#1493)
1.176.1 - 2024-10-28
- fix: reduce keep alive threshold (#1501)
- fix: empty query param when calling external dependency toolbar.js (#1456)
- fix: careful now (#1497)
1.176.0 - 2024-10-24
- fix(surveys): Reset Survey storage after posthog.reset is called (#1494)
1.175.1 - 2024-10-24
- chore: set platform on stack frame (#1495)
1.175.0 - 2024-10-24
- fix: allow canvas local config (#1496)
1.174.4 - 2024-10-24
- fix: expose the last activity timestamp in session id check result (#1491)
1.174.3 - 2024-10-22
- chore: upgrade rrweb to alpha.16 (#1276)
- chore: test that autocapture allowlists are unioned (#1476)
1.174.2 - 2024-10-18
- fix: no need to swallow import errors (#1486)
1.174.1 - 2024-10-18
- fix: do not capture entire elements in web vitals (#1483)
1.174.0 - 2024-10-17
- Make entire cancel button area clickable (#1473)
- feat: swap the default to identified_only (#1468)
1.173.0 - 2024-10-17
- feat(web-analytics): Store nulls for unset campaign params (#1482)
1.172.1 - 2024-10-17
- chore: add crossOrigin='anonymous' to snippet script (#1481)
1.172.0 - 2024-10-17
- chore: build an es5 bundle and move main to es6 (#1480)
1.171.0 - 2024-10-17
- feat: start session recording on url trigger (#1451)
- chore: babel targets in rollup config (#1479)
1.170.1 - 2024-10-16
- feat: add stack to stacktraceless "exceptions" (#1472)
1.170.0 - 2024-10-16
- fix: web vitals delayed capture (#1474)
1.169.1 - 2024-10-16
- chore: skip if Array.from is missing (#1475)
1.169.0 - 2024-10-15
- feat: report reason for recording start (#1452)
- chore: improve exception autocapture (#1466)
1.168.0 - 2024-10-15
- fix(errors): Better define schema, align with python (#1460)
- chore: refactor some cypress setup (#1467)
1.167.1 - 2024-10-14
- fix: sanitize set_once properties (#1462)
1.167.0 - 2024-10-08
- feat(web experiments): Emit web_experiment_applied event and do not render experiments for bots (#1443)
1.166.2 - 2024-10-07
- fix: Remove posthog error capture from replay (#1454)
1.166.1 - 2024-10-01
- fix: skip addition of
srcattribute for HLS videos (#1446)
1.166.0 - 2024-10-01
- feat: default replay partial compression on (#1445)
- chore: Add test for reset() and anonymous users (#1444)
1.165.1 - 2024-09-30
- fix: no custom events when idle (#1438)
- chore: downgrade jest types (#1442)
1.165.0 - 2024-09-25
- feat: compress replay data (#1436)
1.164.3 - 2024-09-24
- fix: it's just rude to assign to date now (#1435)
1.164.2 - 2024-09-24
- fix: get computed style error (#1433)
- fix: changelog (#1431)
1.164.1 - 2024-09-23
- chore: build when publishing (#1430)
- feat: Bundle option without any external scripts (#1413)
1.163.1 - 2024-09-23
- fix: session idle timestamp correction (#1428)
1.163.0 - 2024-09-20
- feat: type safe posthog extensions (#1407)
1.162.0 - 2024-09-19
- fix(surveys): 7-point likert scale didn't work with branching logic (#1424)
1.161.6 - 2024-09-18
- fix: when capturing without performance entry we can capture manual initiator type (#1422)
- chore: auto publish alpha versions (#1414)
- chore: move test file into tests (#1418)
1.161.5 - 2024-09-16
- fix: teardown and restart recording on session id change (#1411)
1.161.4 - 2024-09-16
- fix: no keep alive for large payloads (#1416)
- feat(experiments): Apply no-code experiments to the webpage. (#1409)
1.161.3 - 2024-09-10
- fix: manage capture pageview hook lifecycle (#1408)
1.161.2 - 2024-09-09
- fix: some clients need web vitals directly on window (#1406)
1.161.1 - 2024-09-09
- fix: warn on unavailable lazy load not throw (#1400)
1.161.0 - 2024-09-09
- feat: web vitals 3000 (#1401)
1.160.3 - 2024-09-03
- fix: captured network requests must always have name property (#1398)
1.160.2 - 2024-09-03
- fix: report requests even without timing (#1386)
1.160.1 - 2024-09-02
- fix: flushing the buffer for debug signal while idle extends session activity (#1396)
- fix: network capture tests should fail if we exhaust the body (#1395)
- chore: clarify that tests are exercising our fetch wrapper (#1393)
1.160.0 - 2024-08-29
- feat: manually capture errors (#1374)
1.159.0 - 2024-08-29
- fix: capture a $pageview event on opting in (#1372)
1.158.3 - 2024-08-28
- fix(errors): Build endpoint for sentry integration & exception observer correctly (#1390)
1.158.2 - 2024-08-27
- chore: skip rate limiting of snapshot events (#1383)
- chore: Remove retries for testcafe tests but increase timeout. Wait for lag in parallel (#1380)
- feat: default api host to new ingestion domain (#1370)
1.158.1 - 2024-08-26
- fix: event listeners should obey start and stop (#1379)
1.158.0 - 2024-08-26
- fix(segment): Posthog can identify after segment identifies a user, not just during bootstrap. (#1373)
- fix: Revert cypress back to 13.6.3 (#1384)
1.157.2 - 2024-08-20
- feat: Use NavigatorUAData and navigator.webdriver to improve bot detection (#1359)
- chore: Move chrome tests off of browserstack, add firefox (#1369)
1.157.1 - 2024-08-20
- Revert "fix: pass original fetch args along (#1351)" (#1371)
1.157.0 - 2024-08-19
- feat: allow overriding linked flag (#1368)
1.156.1 - 2024-08-19
- fix: Move @types/web to dev dependencies (#1367)
1.156.0 - 2024-08-19
- fix: pass original fetch args along (#1351)
1.155.6 - 2024-08-19
- fix: only add to window when it exists (#1362)
1.155.5 - 2024-08-19
- fix: endpoint for is already called inside loadscript (#1365)
- chore: Run ts on test files (#1358)
1.155.4 - 2024-08-14
- fix: Expose version (#1357)
1.155.3 - 2024-08-14
- feat: default to gzip compression instead of base64 (#1355)
1.155.2 - 2024-08-13
- remove x-posthog-token header (#1354)
1.155.1 - 2024-08-13
- feat: Added token to headers (#1347)
1.155.0 - 2024-08-09
- feat: Add prev pageview duration (#1348)
1.154.6 - 2024-08-09
- chore: make password capture more explicit (#1345)
1.154.5 - 2024-08-06
- fix(surveys): style the link button with black text (#1343)
1.154.4 - 2024-08-05
- feat: Remove storage logging and add reset logging (#1342)
1.154.3 - 2024-08-05
- feat(surveys): added a customizable submit button text color (#1339)
- fix(surveys): textarea border box was being set in the preview but not in the surveys rendered on user websites (#1340)
1.154.2 - 2024-08-02
- Add instructions for cross subdomain development (#1336)
1.154.1 - 2024-08-01
- fix(surveys): fix textarea, and make it easier to query the survey question description in the DOM (#1337)
- feat: Add debug logging for the initial props that posthog was started with (#1335)
1.154.0 - 2024-07-31
- feat(flags): give users the ability to suppress override warning logs, if desired (#1328)
1.153.0 - 2024-07-31
- chore: mask password by default (#1334)
1.152.1 - 2024-07-31
- feat: Add debug messages around storage (#1333)
1.152.0 - 2024-07-31
- feat: add renderSurvey option (#1324)
1.151.2 - 2024-07-31
- feat: Add debug logic for set_config (#1330)
1.151.1 - 2024-07-31
- fix(surveys): Center the X (#1329)
1.151.0 - 2024-07-30
- Accept eventPayload in onEvent handler (#1331)
1.150.1 - 2024-07-29
- fix: Array.from override (#1322)
- chore: finally remove given (#1321)
1.150.0 - 2024-07-25
- feat(surveys): add support for a 7 point likert scale (#1319)
1.149.2 - 2024-07-24
- feat: add debug startup log message (#1318)
1.149.1 - 2024-07-24
- fix: web vitals ignored error on init (#1317)
- chore: fix the rollup bundle visualiser output (#1315)
1.149.0 - 2024-07-23
- fix: Fix the referrer changing mid-session (#1314)
1.148.2 - 2024-07-22
- fix: don't load preact until you have to (#1311)
- chore: one less posthog mock and two fewer given tests (#1312)
1.148.1 - 2024-07-22
- fix: ignore ridonculously large web vitals values (#1309)
- chore: move test file (#1306)
1.148.0 - 2024-07-16
- feat: split large replay buffers before sending (#1305)
1.147.0 - 2024-07-12
- feat: add url_ignorelist for autocapture config (#1302)
1.146.3 - 2024-07-12
- feat: add new google crawler (#1300)
- chore: add a test (#1299)
1.146.2 - 2024-07-11
- fix: warn when on xhr error used (#1298)
1.146.1 - 2024-07-11
- fix: add web vitals to array full (#1297)
- feat(Surveys): Activate surveys based on actions (#1295)
- feat(Surveys): Add ActionMatcher to match CaptureResult to any known actions (#1294)
1.146.0 - 2024-07-10
- feat: move heatmaps to their own event (#1287)
1.145.1 - 2024-07-10
- fix: capture network recording type (#1296)
- feat(surveys): added close button text customization feature (#1288)
- chore: fix error tests listener registration (#1291)
1.145.0 - 2024-07-08
- feat: send errors one way (#1289)
- chore: missing changelog entry (#1290)
1.144.2 - 2024-07-05
- fix(surveys): polishing the popup survey UI (#1279)
- add rdt_cid as a campaign parameter (#1286)
1.144.1 - 2024-07-04
- fix: only take scheduled full snapshots (#1285)
1.144.0 - 2024-07-03
- feat: add payload host denylist (#1282)
1.143.0 - 2024-07-02
- feat(survey): Allow events to repeatedly activate surveys (#1273)
1.142.1 - 2024-06-28
- feat: warn when distinct id invalid for replay (#1277)
1.142.0 - 2024-06-28
- feat: Improved various bundles (#1265)
1.141.4 - 2024-06-26
- fix: use includes over contains (#1275)
- chore: add browsertack build name (#1271)
1.141.3 - 2024-06-25
- fix: dropped styles on route transition (#1272)
1.141.2 - 2024-06-25
- feat: add lazily loaded web vitals collection (#1203)
1.141.1 - 2024-06-25
- fix: exception autocapture (#1261)
1.141.0 - 2024-06-24
- feat(surveys): add configurable delay to popup surveys (#1228)
- chore: update pnpm action setup worfklow version (#1268)
1.140.1 - 2024-06-21
- fix: unwind recent changes things seem less stable (#1267)
1.140.0 - 2024-06-21
- feat(web-analytics): Add property for autocapture link click (#1259)
- chore: add sanitization test to heatmaps tests (#1256)
1.139.8 - 2024-06-21
- fix(surveys branching): rename confirmation_message -> end (#1257)
1.139.7 - 2024-06-21
- fix(surveys): fix missing confirmation message state (#1263)
1.139.6 - 2024-06-20
- fix(surveys): handle missing getNextSurveyStep (#1260)
1.139.5 - 2024-06-20
- fix: Allow no capture of $opt_in event (#1250)
1.139.4 - 2024-06-20
- fix: no scheduled snapshots while idle (#1254)
- feat: Allow bootstrapping session id (#1251)
1.139.3 - 2024-06-18
- feat(surveys): add branching logic (#1247)
1.139.2 - 2024-06-14
- fix: only wrap once when patching (#1245)
- chore: add clarifying test (#1246)
- feat: allow not operators in survey url targeting (#1219)
1.139.1 - 2024-06-12
- fix: less strict idle event dropping (#1241)
- chore: add inlineStylesheet prop (#1237)
1.139.0 - 2024-06-10
- feat(personless-events): set_once more initial properties accurately when a person is created (#1236)
1.138.3 - 2024-06-10
- fix: circular refs shouldn't explode capture (#1230)
1.138.2 - 2024-06-10
- feat: Updated v8 sentry integration (#1224)
1.138.1 - 2024-06-07
- feat: wrap fetch and add tracing headers (#1186)
- feat(survey): Support identifying iterations of a repeatable survey (#1200)
1.138.0 - 2024-06-06
- feat(surveys):
posthog-jschanges to support valid HTML question rendering (#1206)
1.137.0 - 2024-06-05
- chore: Bump version to 1.137.0 (#1227)
- feat(survey): Event based survey: Show survey popup based on custom event (#1213)
1.137.0 - 2024-06-05
- feat(survey): Event based survey: Show survey popup based on custom event #1213
1.136.8 - 2024-06-05
- fix: flush on idle (#1225)
1.136.7 - 2024-06-04
- fix: no full snapshot while idle (#1222)
1.136.6 - 2024-06-04
- chore(surveys): refactor survey popup (vol. 1) (#1214)
1.136.5 - 2024-06-03
- feat: add an explicit in-memory buffer (#1217)
1.136.4 - 2024-06-03
- fix: do not start recording buffer without id (#1215)
1.136.3 - 2024-06-03
- fix: heatmaps with segment integration (#1218)
1.136.2 - 2024-05-30
- fix: reference canvas not client (#1212)
- fix: Add auto approver for JS prs (#1209)
1.136.1 - 2024-05-29
- fix: fallback size when resizing (#1208)
1.136.0 - 2024-05-28
- feat: Refactor GDPR stuff into a more readable consent class (#1176)
1.135.2 - 2024-05-24
- feat: Add tests and fix regex for some obscure android browsers (#1196)
1.135.1 - 2024-05-24
- fix: Add missing retry info and test (#1202)
- fix: Pass
retriesPerformedSoFarto keep count of retries (#1201)
1.135.0 - 2024-05-23
1.134.0 - 2024-05-23
- fix(survey): Retain question index if questions are shuffled (#1198)
1.133.0 - 2024-05-22
1.132.3 - 2024-05-22
- feat(survey): support internal_targeting_flag to show/hide survey popup (#1181)
1.132.2 - 2024-05-22
- feat(web-analytics): Add function for explictly enabling person processing (#1191)
1.132.1 - 2024-05-22
- fix: redact not hide headers (#1190)
1.132.0 - 2024-05-13
- chore: Bump release to 1.131.5 (#1183)
- fix issue with shuffling questions on every render (#1182)
- feat(survey): Randomize questions & choices in surveys (#1177)
1.131.5 - 2024-05-10
- feat: Support shuffling questions within a survey and options within a question (#1177)
1.131.4 - 2024-05-10
- fix: Update ui_host if using old app one (#1179)
1.131.3 - 2024-05-08
- feat: Added global state check for toolbar (#1173)
- fix: Retriable queued requests (#1171)
1.131.2 - 2024-05-08
- fix: remove transport method that doesn't work (#1167)
1.131.1 - 2024-05-08
- feat: Refactor request to make sure we only use available transports (#1166)
- fix: don't modify history state when loading toolbar (#1162)
- feat(surveys): add Vite devserver (#1164)
1.131.0 - 2024-05-07
- feat: Allow sending automatic pageleave with manual pageview (#1165)
- chore: Add script to deprecate old versions (#1161)
1.130.2 - 2024-05-02
- feat: Add rate limit info to events (#1160)
- chore: logging on start (#1158)
1.130.1 - 2024-04-29
- fix(surveys): use correct render method (#1157)
1.130.0 - 2024-04-26
- feat: Move heatmaps out of preview (#1156)
1.129.0 - 2024-04-24
- feat: Remotely enable heatmaps via decide (#1154)
1.128.5 - 2024-04-24
- chore: Fix duplicate string (#1153)
- chore: Update nextjs project to have more realistic controls (#1151)
1.128.4 - 2024-04-24
- fix: Don't track heatmaps of toolbar (#1152)
1.128.3 - 2024-04-22
- chore: upgrade rrweb to alpha-13 (#1149)
1.128.2 - 2024-04-22
- feat: add deepscan agent (#1145)
1.128.1 - 2024-04-18
- fix: Remove underscores from all functions (#1140)
1.128.0 - 2024-04-18
- feat: Heatmaps instrumentation (#1131)
1.127.0 - 2024-04-18
- feat: Added client side capture rate limiting (#1051)
- chore: add a test (#1144)
1.126.0 - 2024-04-17
- fix: Reacting to config changes (#1138)
1.125.0 - 2024-04-16
- Rename $process_person to $process_person_profile (#1143)
1.124.0 - 2024-04-16
- Update docs on versioning (#1142)
- feat: Update support for segment analytics (#1119)
1.123.1 - 2024-04-16
- feat: Update support for segment analytics (#1119)
1.123.0 - 2024-04-16
- feat: Rename process_person config option to person_profiles (#1141)
- feat: readonly event emitter (#1136)
- fix: Allow capturing
aria-labelattribute on sensitive elements (#1118) - chore: Autocapture refactor (#1126)
- chore: patch to fix broken worker (#1134)
- fix: continue recording after reset (#1135)
- fix: sampling typescript error (#1129)
- chore: no only tests are allowed (#1128)
1.122.0 - 2024-04-15
- feat: readonly event emitter (#1136)
- fix: Allow capturing
aria-labelattribute on sensitive elements (#1118)
1.121.4 - 2024-04-15
- chore: Autocapture refactor (#1126)
1.121.3 - 2024-04-15
- chore: patch to fix broken worker (#1134)
1.121.2 - 2024-04-12
- fix: continue recording after reset (#1135)
1.121.1 - 2024-04-10
- fix: sampling typescript error (#1129)
- chore: no only tests are allowed (#1128)
1.121.0 - 2024-04-10
- feat(surveys): Add disable config option (#1123)
- feat: Person Processing 3: Handle $initial props across sessions, send $initial props with all person processing events, remove __preview (#1127)
1.120.5 - 2024-04-10
- fix: missing parentNode protection (#1125)
1.120.4 - 2024-04-09
- feat: Person processing 2 - handle group and setPersonProperties (#1124)
1.120.3 - 2024-04-09
- fix: typing of maskTextFn (#1122)
1.120.2 - 2024-04-08
- Fix to include project in urls (#1098)
1.120.1 - 2024-04-08
- chore: Add workflow to update the posthog.com repo with new posthog-js versions (#1120)
1.120.0 - 2024-04-08
- feat: Add person processing mode preview (#1109)
1.119.2 - 2024-04-08
- chore: upgrade rrweb to 2.0.0-alpha.12 (#1115)
1.119.1 - 2024-04-08
- fix: Default api host to us.i.posthog.com (#1087)
1.119.0 - 2024-04-08
- feat: allow override sampling (#1105)
1.118.1 - 2024-04-05
- Fix nextjs playground version of posthog-js (#1117)
- Fix $is_identified (#1116)
1.118.0 - 2024-04-04
- feat: capture more sentry levels (#1104)
1.117.2 - 2024-04-03
- feat: measure identified events (#1114)
1.117.1 - 2024-04-03
- fix: block bytespider bot (#1113)
- fix: remove alpha comments from groups (#1111)
1.117.0 - 2024-04-03
- feat: Add __posthog_debug query string (#1108)
1.116.7 - 2024-04-03
- fix(decide): Respect disable_compression for flags (#1102)
1.116.6 - 2024-03-25
- fix: Reloading toolbar after closing (#1095)
1.116.5 - 2024-03-23
- fix: posthog init should reject invalid config in TypeScript (#1097)
1.116.4 - 2024-03-22
- fix: custom event on sampling decision (#1094)
- feat: signal we have wrapped fetch (#1083)
1.116.3 - 2024-03-20
- fix: Return this if already loaded (#1092)
1.116.2 - 2024-03-18
- feat: add property so we can check if a client is using a proxy (#1084)
1.116.1 - 2024-03-18
- chore: Remove v2 rrweb checks (#1080)
1.116.0 - 2024-03-15
- fix: allow payload scrubbing override (#1085)
1.115.2 - 2024-03-15
- fix: canvas recording patches (#1082)
- chore: remove cypress log noise (#1086)
1.115.1 - 2024-03-15
- chore: remove v1 rrweb loading (#1078)
1.115.0 - 2024-03-14
- feat: track recording URL without pageview capture (#1076)
- fix: return typing of global functions (#1081)
1.114.2 - 2024-03-12
- fix: patch rrweb zero width canvas bug (#1075)
1.114.1 - 2024-03-12
- fix: Disabled compression and application json (#1074)
1.114.0 - 2024-03-12
- feat: report browser visibility state in replay (#1071)
- fix: typo in deny list (#1073)
- fix(posthog-js): manually bump patch (#1072)
1.113.4 - 2024-03-12
- fix(posthog-js): manually bump patch (#1072)
- fix: no empty requests (#1063)
1.113.2 - 2024-03-11
- fix: Send beacon request encoding (#1068)
1.113.1 - 2024-03-11
- fix: clarify redaction message (#1069)
1.113.0 - 2024-03-11
- feat: scrub payloads with forbidden words (#1059)
- chore: remove unused path (#1066)
1.112.1 - 2024-03-11
- Fix compression (#1062)
1.112.0 - 2024-03-08
- feat: Refactor request logic (#1055)
- feat: Add more ad ids (#1057)
1.111.3 - 2024-03-07
- chore: Rework SDK initialisation (#1023)
1.111.2 - 2024-03-06
- feat: Ensure ingestion domains follow the same logic. (#1049)
1.111.1 - 2024-03-06
- chore: Removed jsc callbacks (#1052)
- fix: posthog path to ignore (#1054)
- chore: add some privacy examples to the copy autocapture demo (#1053)
1.111.0 - 2024-03-05
- feat: copy and cut autocapture (#1047)
- fix: timezones are fun (#1050)
1.110.0 - 2024-02-28
- feat: allow linked flag variants to control recording (#1040)
- feat: reecord when timestamp is overriden by caller (#1033)
- chore: deprecate property_blacklist in favor of property_denylist (#1044)
1.109.0 - 2024-02-27
- feat: improve user agent detection (#1038)
1.108.4 - 2024-02-26
- Fix (#1042)
1.108.3 - 2024-02-23
- feat: Rollout new ingestion endpoints (#1032)
1.108.2 - 2024-02-22
- fix: Path for site apps (#1037)
1.108.1 - 2024-02-22
- fix(surveys): fix emoji scale (#1036)
1.108.0 - 2024-02-20
- fix(surveys): Render feedback preview (#1030)
1.107.0 - 2024-02-20
- feat: Allow changing persistence (#1025)
1.106.3 - 2024-02-19
- fix(surveys): survey popover improvements (#1029)
1.106.2 - 2024-02-19
- fix: protect against parent is not element (#1027)
1.106.1 - 2024-02-19
- fix: body capture handling (#1026)
- ci: Use GITHUB_OUTPUT envvar instead of set-output command (#958)
1.106.0 - 2024-02-15
- feat(surveys): preact surveys components (#964)
1.105.9 - 2024-02-14
- fix: empty token should be invalid (#1022)
1.105.8 - 2024-02-13
- feat: Simplify to just -api and -assets (#1018)
- fix: for want of a v the war was lost (#1017)
1.105.7 - 2024-02-11
- fix: allow custom events when idle (#1013)
- chore: no need to account for performance raw (#1012)
- chore: add test case for ahrefs bot (#1011)
- chore: really really write changelog to release (#1008)
1.105.6 - 2024-02-08
- feat: save posthog config at start of session recording (#1005)
- chore: test stopping and starting (#1009)
1.105.5 - 2024-02-08
- feat: account for persistence for canvas recording (#1006)
- chore: improve template to account for backwards compatibility (#1007)
1.105.4 - 2024-02-07
- feat: Add dynamic routing of ingestion endpoints (#986)
- Update CHANGELOG.md (#1004)
1.105.3 - 2024-02-07
identical to 1.105.1 - bug in CI scripts
1.105.2 - 2024-02-07
identical to 1.105.1 - bug in CI scripts
1.105.1 - 2024-02-07
- fix: autocapture allowlist should consider the tree (#1000)
- chore: move posthog test instance helper (#999)
- chore: nit pick log message (#997)
- chore: copy most recent changelog entry when creating a release (#995)
1.105.0 - 2024-02-06
- fix: Add warning and conversion for number distinct_id (#993)
- fix: Remove
baseUrlfrom TypeScript compiler options (#996)
1.104.4 - 2024-02-02
- fix: very defensive body redaction (#988)
- fix: less eager timeout (#989)
1.104.3 - 2024-02-01
- feat: Fetch without window (#985)
1.104.2 - 2024-01-31
- fix: no throwing when reading the body (#984)
1.104.1 - 2024-01-31
- chore: make rate limiter error less scary (#983)
1.104.0 - 2024-01-31
- feat: Fetch support (#898)
- chore: Swap to main (#979)
1.103.2 - 2024-01-31
- fix: safer body processing (#980)
1.103.1 - 2024-01-28
- feat: safer rrweb events and regular full snapshots (#973)
- chore: update rollup (#974)
- chore: re-enable bundle checker now main and branches both use pnpm (#972)
1.103.0 - 2024-01-26
- feat: pnpm patch rrweb (#971)
- chore: convert to pnpm (#970)
1.102.1 - 2024-01-25
- chore: add debug logging for session id/recording (#969)
1.102.0 - 2024-01-24
- feat: send custom event when network status changes (#965)
- fix: integration test opting out (#959)
1.101.0 - 2024-01-22
- feat: canvas recording support (#946)
- refactor(surveys): Use Preact instead of vanilla JS (#963)
1.100.0 - 2024-01-15
- Enable scroll stats by default (#962)
1.99.0 - 2024-01-15
- feat: Support custom scroll selector (#961)
1.98.2 - 2024-01-11
- fix: Don't allow us.posthog.com to be used (#957)
1.98.1 - 2024-01-11
- fix: set the session id as soon as it changes (#956)
- fix: simplify test setup (#955)
1.98.0 - 2024-01-10
- feat: capture session options in a custom event (#954)
1.97.1 - 2024-01-09
- fix(surveys): fix feedback widget bugs (#953)
1.97.0 - 2024-01-09
- fix: add a comment explaining browser type prop (#952)
- feat: add opt_out_useragent_filter and $browser_type (#949)
- chore(surveys): add basic survey e2e tests (#948)
- Tidying and removing of old value (#941)
1.96.1 - 2023-12-15
- Add gas_source to campaign params (#934)
- feat: simplify payload config compared to rrweb proposal (#939)
- feat: remove given from another test file (#940)
1.96.0 - 2023-12-14
- make link survey link optional (#938)
- fix: import nuxt composables from #imports (#879)
1.95.1 - 2023-12-13
- Remove debug code from survey-utils (#937)
1.95.0 - 2023-12-12
- feat(surveys): custom and tab widget (#933)
1.94.4 - 2023-12-12
- Add a few more blocked uas (#936)
1.94.3 - 2023-12-12
- fix: class string separator (#935)
1.94.2 - 2023-12-11
- fix: cache subdomain discovery (#928)
- chore: corrects the changelog (#931)
1.94.1 - 2023-12-09
- fix: incorrect localhost handling (#930)
1.94.0 - 2023-12-08
- feat: Swap to localstorage+cookie as default (#927)
- fix: sanitize class string more (#925)
- chore: redirect users to the supportModal when implementation errors occur (#921)
- chore: Add comment to remind about updating the plugin-server (#924)
- add wbraid and gbraid to campaignParams (#923)
1.93.6 - 2023-12-05
- fix: Sanitize given api_host urls to not have a trailing slash (#920)
1.93.5 - 2023-12-05
- fix: handle newlines in classnames (#919)
1.93.4 - 2023-12-05
- feat: Show warning if identifying with "distinct_id" (#918)
1.93.3 - 2023-11-28
- fix: safer custom event on return from idle (#913)
- Add deprecation notice for disable_cookie (#912)
1.93.2 - 2023-11-23
- fix(flags): Make sure we don't override flags when decide is disabled (#911)
1.93.1 - 2023-11-23
- feat: send idle markers in session (#909)
1.93.0 - 2023-11-22
- feat(surveys): Add open-ended choices for multiple and single choice surveys (#910)
1.92.1 - 2023-11-21
- feat: payload capture - move timing into copied plugin (#902)
1.92.0 - 2023-11-20
- feat: Create elements chain string as we store it (#823)
- Move blocked UAs to own file (#905)
- chore: deflake a test (#904)
- chore: convert more tests to TS (#903)
- latest cypress action version (#900)
1.91.1 - 2023-11-15
- fix(surveys): button text field fix (#899)
1.91.0 - 2023-11-15
- fix: Window or document access across the code (#894)
1.90.2 - 2023-11-15
- chore: uniquify differently (#897)
- correct CHANGELOG.md (#896)
1.90.1 - 2023-11-15
- fix: seek subdomain correctly (#888)
- fix: merge server permissions for payload capture (#892)
1.90.0 - 2023-11-15
- fix(surveys): prioritize question button text field and thank you countdown is not automatic (#893)
1.89.2 - 2023-11-14
- fix: a little session buffering logic (#890)
- fix: make header comparison case insensitive (#891)
- fix: extend header denylist (#889)
1.89.1 - 2023-11-13
- fix(surveys): fix emoji rating scale bug (#887)
- feat: capture network payloads (internal alpha) (#886)
- fix: meaningful recordings integration tests (#885)
- fix(surveys): Send responded property with every type of survey (#883)
- Bump playground next yarn version (#874)
- chore: convert 2 more test files to remove given and switch to TS (#882)
- fix(surveys): whitelabel, input radio grouping, and auto text color bugs (#881)
- fix: session id should start null (#878)
- chore(deps): bump @babel/traverse from 7.11.0 to 7.23.2 (#835)
- chore(deps): bump @babel/traverse from 7.12.12 to 7.23.2 in /react (#836)
- chore(deps): bump next from 13.1.6 to 13.5.0 in /playground/nextjs (#855)
1.89.0 - 2023-11-13
- feat: capture network payloads (internal alpha) (#886)
- fix: meaningful recordings integration tests (#885)
1.88.4 - 2023-11-09
- fix(surveys): Send responded property with every type of survey (#883)
- Bump playground next yarn version (#874)
- chore: convert 2 more test files to remove given and switch to TS (#882)
1.88.3 - 2023-11-08
- fix(surveys): whitelabel, input radio grouping, and auto text color bugs (#881)
1.88.2 - 2023-11-08
- fix: session id should start null (#878)
- chore(deps): bump @babel/traverse from 7.11.0 to 7.23.2 (#835)
- chore(deps): bump @babel/traverse from 7.12.12 to 7.23.2 in /react (#836)
1.88.1 - 2023-11-02
- chore(deps): bump next from 13.1.6 to 13.5.0 in /playground/nextjs (#855)
- Tweak session prop names (#873)
1.88.0 - 2023-11-02
- feat(web-analytics): Add client-side session params (#869)
1.87.6 - 2023-10-31
- fix: add tests for browser and browser version detection (#870)
1.87.5 - 2023-10-30
- fix: include raw user agent in event properties (#868)
1.87.4 - 2023-10-30
- fix: logging pointless error when offline (#866)
1.87.3 - 2023-10-30
- feat: retry count in url (#864)
1.87.2 - 2023-10-27
- fix(surveys): Publish types in module (#863)
1.87.1 - 2023-10-26
- fix(surveys): clearer user property names (#861)
1.87.0 - 2023-10-26
- feat(surveys): Make selector targeting work, add user props (#858)
1.86.0 - 2023-10-26
- feat: allow backend to specify a custom analytics endpoint (#831)
1.85.4 - 2023-10-26
- fix: checkout every X minutes (#860)
- feat: lazily load exception autocapture (#856)
1.85.3 - 2023-10-25
- feat: Toolbar loading from state faster (#849)
1.85.2 - 2023-10-24
- fix(surveys): cancel listener should be on all questions (#854)
- Fix changelog.md (#853)
- fix: eslint does not fail build (#852)
1.85.1 - 2023-10-24
- fix: Disable the string reduction code until we can battle test it more. (#851)
1.85.0 - 2023-10-24
- feat: allow sampling based on decide response (#839)
1.84.4 - 2023-10-24
- log when browser offline (#850)
- chore: type checking in one place makes bundle smaller (#843)
1.84.3 - 2023-10-23
- fix: full snapshot every 10 minutes (#847)
- fix: really fix subdomain check to satisfy codeql (#845)
1.84.2 - 2023-10-23
- fix: heroku subdomain check (#842)
1.84.1 - 2023-10-19
- fix(surveys): fix multiple choice input unique ID bug (#841)
1.84.0 - 2023-10-18
- Fix bot user agent detection (#840)
1.83.3 - 2023-10-17
- fix(surveys): add listener to 0th element (#837)
1.83.2 - 2023-10-17
- chore: Make ratings start at 0 (#834)
1.83.1 - 2023-10-11
- feat: Move all logs everything over to logger (#830)
- Update DOMAIN_MATCH_REGEX (#787)
1.83.0 - 2023-10-10
- feat(surveys): Optional survey questions (#826)
1.82.3 - 2023-10-06
- fix: Typescript compilation of survey types (#827)
1.82.2 - 2023-10-05
- fix(surveys): open text value bug (#825)
1.82.1 - 2023-10-04
- fix(surveys): multiple choice survey submit button bug (#822)
1.82.0 - 2023-10-04
- feat: allow regex patterns and wildcards in survey url (#821)
1.81.4 - 2023-10-04
- fix(capture): Always update stored person props from $set (#820)
1.81.3 - 2023-10-02
- fix(surveys): Handle filtering on undefined (#810)
- feat(surveys): popup changes and multiple questions support (#819)
1.81.2 - 2023-09-28
- Fix config access (#816)
- fix: Remove complex get_config (#812)
- fix: Mask page URLs in session recordings (#811)
1.81.1 - 2023-09-26
- fix(types): Relative import to fix typescript compilation (#809)
1.81.0 - 2023-09-25
- feat(surveys): Make surveys site app native to posthog-js (#801)
1.80.0 - 2023-09-25
- Add root $el_text (#806)
1.79.1 - 2023-09-20
- fix: Increase timeout to 60 seconds (#803)
- chore: add tests on impact of empty autocapture config (#802)
1.79.0 - 2023-09-15
- feat: add an attribute denylist for autocapture (#800)
1.78.6 - 2023-09-15
- fix: toolbar cache busting (#798)
1.78.5 - 2023-09-14
- fix(flags): Enqueue follow up requests without dropping (#797)
1.78.4 - 2023-09-13
1.78.3 - 2023-09-13
- feat: different rate limiting handling (#765)
1.78.2 - 2023-09-12
- fix: Update rrweb (#793)
1.78.1 - 2023-09-07
- fix(flags): Re-enable reload only when request finishes (#791)
1.78.0 - 2023-09-07
- fix: Handle uninitialised helpers better (#767)
1.77.3 - 2023-09-05
- feat: test a better list of bots and allow users to configure the bot… (#788)
1.77.2 - 2023-08-25
- fix(autocapture): element properties tracked up to 1k bytes (#783)
1.77.1 - 2023-08-22
- feat: Add pathname to prev page events (#776)
- fix: Mitigate testcafe flakiness (#779)
- feat: Filter out events from GPTBot (#772)
1.77.0 - 2023-08-18
- feat: Add previous page properties to page events (#773)
- style: Tighten eslint rules (#775)
- chore: add media examples to playground (#771)
1.76.0 - 2023-08-10
- Fixed up tests to cover all cases (#770)
1.75.4 - 2023-08-09
- feat: remove old UUID code (#755)
1.75.3 - 2023-08-02
- chore: remove unused capture metrics (#766)
1.75.2 - 2023-07-26
1.75.1 - 2023-07-26
- fix: obey server side opt out for autocapture (#762)
1.75.0 - 2023-07-25
- feat: react to rate limiting responses (#757)
1.74.0 - 2023-07-25
- fix: Recording throttling for SVG-like things (#758)
- chore(deps): bump semver from 5.7.1 to 5.7.2 in /react (#732)
- chore(deps): bump semver from 6.3.0 to 6.3.1 in /playground/nextjs (#733)
- chore(deps): bump word-wrap from 1.2.3 to 1.2.4 in /react (#746)
- chore(deps): bump word-wrap from 1.2.3 to 1.2.4 (#747)
- chore(deps): bump word-wrap from 1.2.3 to 1.2.4 in /playground/nextjs (#750)
1.73.1 - 2023-07-21
- fix: protect against bundling bugs (#754)
1.73.0 - 2023-07-20
- feat: use uuidv7 everywhere (#742)
1.72.3 - 2023-07-19
- fix: defensive about unload logging (#751)
1.72.2 - 2023-07-19
- fix(flags): Don't return undefined for flags when decide is not hit but flags exist (#748)
1.72.1 - 2023-07-18
- fix(flags): Make sure flags are reloaded only once on identify calls (#744)
1.72.0 - 2023-07-18
- feat(flags): Allow disabling flags on first load (#740)
- chore: remove some slow tests that have served their purpose (#739)
1.71.0 - 2023-07-13
- chore: Removed people.set and mapped it to identify (#584)
1.70.2 - 2023-07-11
- feat: allow moving to UUID v7 by config in posthog-js (#731)
1.70.1 - 2023-07-10
- fix: UUIDs should not take literally forever to generate (#727)
1.70.0 - 2023-07-07
- feat: callback when session id changes (#725)
1.69.0 - 2023-07-05
- feat: capture page title with pageview (#721)
1.68.5 - 2023-06-28
- fix: invalid module d ts because computers are horrible (#715)
- fix(cd): use package manager field (#704)
1.68.4 - 2023-06-22
- feat(components): Give option to not track events on feature component (#708)
1.68.3 - 2023-06-22
- fix: PosthogProvider doesn't need to have the client be optional (#705)
1.68.2 - 2023-06-20
- feat: Group rrweb events into one capture (#694)
1.68.1 - 2023-06-15
1.68.0 - 2023-06-14
1.67.2 - 2023-06-12
- feat: allow decide response to configure errors to drop by pattern (#692)
- chore: no compatability testing for test files (#690)
1.67.1 - 2023-06-09
1.67.0 - 2023-06-07
- feat: get surveys api (#677)
1.66.1 - 2023-06-07
- Update utils.ts (#686)
1.66.0 - 2023-06-06
- chore: manual version bump (#684)
- feat: send event UUIDs (#672)
1.66.0 - 2023-06-06
Manual addition of version 1.66.0 because CI failed to automatically bump the version
- feat: send event UUIDs (#672)
1.65.0 - 2023-06-06
- feat: backoff with jitter (#678)
1.64.0 - 2023-06-06
- feat: Add missing maskTextFn for recordings (#679)
1.63.6 - 2023-06-06
1.63.5 - 2023-06-06
- add browserlist and eslint checking compatability using it (#673)
1.63.4 - 2023-06-05
- feat: default endpoint for session recordings is /s/ (#674)
1.63.3 - 2023-06-02
- fix: Typescript import issue with rrweb (#670)
1.63.2 - 2023-06-01
- fix: only allow exception capture on remote enabled (#659)
1.63.1 - 2023-05-31
- fix: performance observer is not always available (#663)
- chore: correct pnpm version (#662)
1.63.0 - 2023-05-31
- feat: remove lz compression (#654)
1.62.0 - 2023-05-31
- feat: Exception Autocapture (#649)
1.61.0 - 2023-05-30
- feat(react): Flag autocapture component (#622)
1.60.0 - 2023-05-30
- feat: Added support for cross origin iframe recording (#655)
1.59.0 - 2023-05-30
- feat: remove broken capture using img support (#651)
1.58.0 - 2023-05-26
- Add get_session_id and get_session_replay_url functions (#647)
1.57.4 - 2023-05-25
- fix: Session timeout overridden on reload (#645)
1.57.3 - 2023-05-23
- fix: properties with "length" value (#640)
- docs: Update README around releasing and development (#634)
- chore: add test for $identify events count optimization (#639)
- ci: consolidate library checks into one workflow (#638)
- ci: add prettier and eslint linting stage (#637)
- chore: add pre-commit to run lint staged. (#636)
- chore: add functional tests (#635)
1.57.2 - 2023-05-17
1.57.1 - 2023-05-17
- fix(decide): Make sure all stored properties are sent on first decide request (#633)
- fix(identify): actually send $set_once on identify calls (#629)
1.57.0 - 2023-05-15
- feat: Added OS version to the OS details (#624)
- fix: Don't delete existing flags on decide errors (#621)
1.56.0 - 2023-05-09
- feat: Allow custom masking of network events (#620)
1.55.2 - 2023-05-09
- feat: Added idle timer to recordings (#626)
- docs: Add Nuxt 3 demo (#623)
1.55.1 - 2023-05-03
- fix: Script loading before DOM is ready (#618)
- Expose options to mask text in session recording (#595)
1.55.0 - 2023-04-28
- feat(beta-management): Add opt-in and out functions (#616)
1.54.0 - 2023-04-26
- release new version (#617)
- feat(flags): Allow adding person and group property overrides for flags (#613)
1.53.4 - 2023-04-18
- feat: Allow masking of input by referencing the element (#611)
1.53.3 - 2023-04-17
- fix: Usage of sessionStorage even if memory persistence (#609)
1.53.2 - 2023-04-14
- fix: Don't enable web perf by default for localhost (#608)
1.53.1 - 2023-04-13
- chore: bump version (#607)
- feat: Swap over to storing network events in recordings (#606)
1.53.0 - 2023-04-12
- feat: Custom campaign param support (#603)
- chore(deps): Bump http-cache-semantics from 4.1.0 to 4.1.1 (#528)
- fix: change user_id -> $user_id in docstring (#525)
- Remove flag param from useActiveFeatureFlags (#599)
1.52.0 - 2023-04-05
- fix: Track referrer/search params per browser session (#496)
Note: This change improves the accuracy of properties
$referrerand$referring_domainin a major way. Previously, the values of these properties often represented pure backlinks in non-SPAs (non-single-page applications). Now those values will represent the true referrer for the current browser-level session (effectively: for the tab). Due to this, referrer data after this update _may look different. It will be significantly more accurate though._ - ci: Point out and close stale issues/PRs (#602)
- docs(testcafe): update docs removing posthog server requirements (#594)
1.51.5 - 2023-03-23
- fix(segment): handle race condition on loading segment integration (#586)
1.51.4 - 2023-03-20
- fix: fewer moving parts more like safe text (#590)
1.51.3 - 2023-03-17
- try/catch the bit that fails so we don't just eject the element (#585)
- fix(persistence): set SameSite=None explicitly (#578)
1.51.2 - 2023-03-15
- fix: Catch fullsnapshot error (#583)
1.51.1 - 2023-03-14
- fix: debug nested span text, part 3 (#582)
1.51.0 - 2023-03-14
- added types for PostHog provider
options(#581) - ci(testcafe): run browser tests in parallel (#579)
1.50.9 - 2023-03-13
- fix: debug nested span text (part 2) (#577)
- feat: use autocapture setting from decide (#575)
1.50.8 - 2023-03-10
- reinstate getNestedSpanText, but with no recursion (#576)
1.50.7 - 2023-03-09
- fix: debug return empty string on getNestedSpanText (#573)
1.50.6 - 2023-03-09
- fix: Only call capture snapshot if recording (#572)
1.50.5 - 2023-03-09
- Update rrweb (#570)
- fix: Race condition error with loading rrweb (#569)
- fix: remove warning of duplicate nextjs import (#566)
1.50.4 - 2023-03-06
- chore: Revert canvas recording option (#567)
- tolerate undefined target (#565)
1.50.3 - 2023-03-02
- fix: spans inside buttons (#563)
1.50.2 - 2023-03-02
- fix(bots): add "hubspot" and "crawler" to blocked user agents (#564)
1.50.1 - 2023-03-01
- feat: allow record canvas (#562)
- chore: remove old nextjs utils folder (#559)
1.50.0 - 2023-02-28
- feat: react library (#540)
1.49.0 - 2023-02-28
- feat: augment autocapture using data attributes (#551)
1.48.2 - 2023-02-28
- fix: safari iteration error on web performance server timing (#558)
1.48.1 - 2023-02-28
- chore: expose errors (#557)
- try the compressed-size-action GH action (#556)
1.48.0 - 2023-02-27
- fix: apply terser plugin to module.js and es.js (#555)
1.47.0 - 2023-02-27
- chore: no-op change to allow version bump (#554)
- feat(rrweb): implement rrweb2 dynamic loading on decide (#552)
1.46.2 - 2023-02-22
- no-op change to allow version bump (#549)
- more leniency for envs with 'window' undefined (#541)
1.46.1 - 2023-02-21
- chore: Remove Sentry types to reduce clashes (#546)
- fix: Removed Sentry types from compiled types (#545)
1.46.0 - 2023-02-21
- feat: Add optional loading of rrweb2 (#543)
- feat: Add rrweb2 support (experimental) (#536)
- chore: upgrade @sentry/types (#539)
1.45.1 - 2023-02-14
- fix: default persons to anonymous (#534)
1.45.0 - 2023-02-14
1.43.1 - 2023-02-07
- fix: correctly persist user state across page loads (#531)
1.43.0 - 2023-02-07
- feat: reset marks user anonymous (#524)
1.42.3 - 2023-01-31
- chore(feature-flag): only return truthy values for onFeatureFlag (#522)
1.42.2 - 2023-01-26
1.42.1 - 2023-01-26
- Revert status check
1.42.0 - 2023-01-26
- N/A
1.41.0 - 2023-01-24
- Use decide v3 and return defined JSON payloads with matching flags
- Optimistically save evaluated flags even if server has issues
1.40.2 - 2023-01-20
- Revert "chore: move types dependency from dependencies to devdependencies (#504)" (#509)
1.40.1 - 2023-01-19
- fix: Sentry URL for recording (#507)
1.40.0 - 2023-01-18
- feat: capture clicked elements on rageclicks (#506)
1.39.5 - 2023-01-13
- chore: move types dependency from dependencies to devdependencies (#504)
1.39.4 - 2023-01-12
- fix: use django cache for toolbar js (#503)
1.39.3 - 2023-01-11
- fix(toolbar): Load toolbar only in body for turbolink (#499)
- Install pnpm for usage in PR step (#502)
1.39.2 - 2023-01-06
- fix: page view ids didn't work with server side config (#501)
- chore(deps): Bump json5 from 2.1.3 to 2.2.3 in /react (#498)
1.39.1 - 2023-01-03
- feat: capture server timings (#497)
1.39.0 - 2022-12-23
- feat: Adds performance capture (#488)
- fix(options): Add capture_pageleave option (#491)
- fix(cd): use pnpm to install posthog-js version in main repo (#495)
1.38.1 - 2022-12-15
- fix: Reduce cookie modifications to stop infinite loops with CMP tools (#489)
1.38.0 - 2022-12-13
- feat: page view ids (#487)
1.37.0 - 2022-12-07
- feat: event_allowlist and url_allowlist for autocapture (#481)
- chore(deps): Bump qs from 6.5.2 to 6.5.3 (#484)
- chore(deps): Bump decode-uri-component from 0.2.0 to 0.2.2 (#485)
- chore(deps): Bump decode-uri-component from 0.2.0 to 0.2.2 in /react (#483)
- chore(deps): Bump minimatch from 3.0.4 to 3.1.2 (#469)
- feat(rageclicks): turn on rageclicks by default (#480)
1.36.1 - 2022-12-01
- update sentry types (#479)
- fix: support copying non-extensible objects (#478)
- feat(groups): allow resetting only user's groups (#476)
1.36.0 - 2022-11-22
- feat(sentry-integration): Add
ui_hostoption for reverse-proxying (#475) - chore(deps): Bump minimatch from 3.0.4 to 3.1.2 in /react (#468)
1.35.0 - 2022-11-15
- feat: Proper Segment plugin to enable Recordings and more (#471)
1.34.1 - 2022-11-14
- feat: allow disable compression in config (#467)
1.34.0 - 2022-10-25
- feat(toolbar): posthog.loadToolbar({ temporaryToken: 'key' }) (#464)
- chore(deps): Bump node-fetch from 2.6.1 to 2.6.7 (#361)
- chore(deps): bump glob-parent from 5.1.1 to 5.1.2 (#462)
- chore(deps): Bump browserslist from 4.16.1 to 4.21.4 (#463)
- chore(deps): Bump moment from 2.29.1 to 2.29.4 (#422)
- chore(deps): Bump tmpl from 1.0.4 to 1.0.5 (#329)
- chore(deps): Bump jsdom from 16.4.0 to 16.7.0 in /react (#415)
- chore(deps): Bump jsdom from 16.2.2 to 16.5.0 (#416)
- chore(deps): bump nanoid from 3.1.20 to 3.3.4 (#442)
- chore(deps): bump ansi-regex from 5.0.0 to 5.0.1 (#436)
- chore(deps): Bump async from 3.2.0 to 3.2.3 (#409)
- chore(deps): Bump minimist from 1.2.5 to 1.2.6 (#380)
- chore(deps): Bump minimist from 1.2.5 to 1.2.6 in /react (#379)
- chore(deps): Bump lodash from 4.17.19 to 4.17.21 (#353)
- Bump path-parse from 1.0.6 to 1.0.7 (#331)
1.33.0 - 2022-10-18
- feat(capture): Track
navigator.languageas$language(#460)
1.32.4 - 2022-10-11
- fix(apps): grab the correct global var (#459)
1.32.3 - 2022-10-11
- feat(apps): rename "inject" to "site apps" (#458)
1.32.2 - 2022-09-30
- feat(apps): load web apps from external scripts, no eval (#456)
1.32.1 - 2022-09-29
- feat(apps): add opt_in_web_app_injection (#454)
1.32.0 - 2022-09-29
- feat(apps): inject javascript from decide (#453)
1.31.1 - 2022-09-28
- feat(recordings): server side console log setting (#452)
1.31.0 - 2022-09-23
- feat: Improve SentryIntegration, include error message, type and tags at top level (#450)
- fix(recordings): unique window id on duplication (#446)
1.30.0 - 2022-09-12
- feat(feature-flags): Enable bootstrapping the library (#444)
1.29.3 - 2022-08-29
- fix(pageleave): Improve $pageleave reliability (#439)
1.29.2 - 2022-08-25
- fix(typing): rrweb types (#441)
1.29.1 - 2022-08-23
- fix(toolbar): Use apiURL from state if set (#438)
1.29.0 - 2022-08-16
- fix: Use rollup and fix define module issues (#434)
1.27.0 - 2022-08-01
- refactor: Dummy commit to trigger release (#431)
- chore(typescript): convert library to typescript (#425)
1.26.2 - 2022-07-28
- fix(session-id): reset session_id on reset() call (#430)
1.26.1 - 2022-07-28
- fix(storage): Fix cross subdomain cookies for localpluscookie (#429)
- fix: Testcafe using Posthog cloud (#428)
1.26.0 - 2022-07-19
- fix: dont set initial referrer (#426)
1.25.2 - 2022-07-12
- feat: Add msclkid param to campaign keywords (#424)
- chore(deps): Update @sentry/types for 7.2.0 (#412)
1.25.1 - 2022-06-29
- fix: Add facebook crawlers to blocked user agents (#417)
1.25.0 - 2022-06-28
- feat(feature-flags): Enable experience continuity (#404)
- chore: Update changelog for 1.24.0 (#411)
1.24.0 - 2022-06-01
- feat: Limit session recordings to 24 hours (#405)
- a new recording is immediately started and no data is lost
1.23.0 - 2022-06-01
- feat: Allow overriding device id generation (#401)
- Fix this.get_config undefined error (#397)
1.22.0 - 2022-05-31
- feat: add support to
fbclidcampaign parameter (#400)
1.21.1 - 2022-05-13
- chore(build): bumping to make release (#396)
- chore(dep): update rrweb to 1.1.3 (#395)
1.21.0 - 2022-05-11
- fix(recordings): mask all input fields for recordings (#388)
1.20.5 - 2022-05-10
- feat: add recording url to sentry integration (#371)
- fix(config): Case-insensitive persistence (#389)
1.20.4 - 2022-04-15
- fix(console-logs): handle undefined and null log (#385)
1.20.3 - 2022-04-11
- feat(recordings): add inline stylesheet option (#383)
- fix(config): Handle config undefined (#382)
1.20.2 - 2022-03-31
- fix(web-performance): clear resource timings after reading (#377)
1.20.1 - 2022-03-29
- feat(tracking): add ahrefsbot to list of ignored bots (#378)
1.20.0 - 2022-03-23
- feat: send library version outside of compressed body as a debug signal (#376)
1.19.2 - 2022-03-22
- Revert "feat: send library version outside of compressed body as a debug signal (#351)" (#375)
1.19.1 - 2022-03-22
- fix: truncate console logs (#372)
1.19.0 - 2022-03-22
- feat: send library version outside of compressed body as a debug signal (#351)
- ci: create new PRs in main repo with chore: (#370)
1.18.0 - 2022-03-16
- Add console log recording (#367)
- fix(properties): dont modify input properties (#369)
1.17.9 - 2022-03-04
- fix(web performance): calculate duration when it isn't present on navigation timing (#368)
- Upgrade jest to remove security vulnerability (#365)
1.17.8 - 2022-02-02
- Fix for enabling a disabled session recording (#364)
1.17.7 - 2022-02-01
- fix onFeatureFlag (#363)
1.17.6 - 2022-01-28
- Remove capture failed request (#362)
1.17.5 - 2022-01-27
- Only hit onFeatureFlags callback after decide (#360)
1.17.4 - 2022-01-27
- Fix featureflags not working when /decide is down (#359)
1.17.3 - 2022-01-20
- Add an allow list to skip truncating strings when capturing events (#355)
1.17.2 - 2022-01-20
- remove debug option (#357)
1.17.1 - 2022-01-13
- Reduce the size of the APM performance data payload (#354)
1.17.0 - 2022-01-10
- Send APM data so that we don't need a plugin (#352)
- Allow APM performance on all $pageview events (#350)
- Include browser performance values on $pageview (#347)
- add more advice to pull request template (#349)
- Update README.md (#348)
1.16.8 - 2021-12-21
- add resetSessionId function (#345)
1.16.7 - 2021-11-25
- Feature flags groups support & /decide refactor (#341)
1.16.6 - 2021-11-18
- Avoid needless double /decide calls (#340)
1.16.5 - 2021-11-18
- try sendbeacon (#337)
1.16.4 - 2021-11-16
- allow disabling toolbar tracking for self-hosted users (#335)
1.16.3 - 2021-11-12
- Bumping the build for a release (#334)
- Filter out _nghost attributes from autocapture (#332)
1.16.2 - 2021-11-07
- update rrweb (#328)
1.16.1 - 2021-11-02
- Add window_id and session_id to all events (#326)
1.16.0 - 2021-10-28
- Group analytics support (#325)
1.15.4 - 2021-10-27
- pass toolbar to posthog (#327)
1.15.3 - 2021-10-19
- Add localStorage+cookie as persistence type (#324)
1.15.2 - 2021-10-18
- drop data uri filter limit from 20mb to 5mb (#322)
1.15.1 - 2021-10-18
- Take a full recording snapshot when session ids update (a fix for missing recordings) (#318)
1.15.0 - 2021-10-18
- Revert "Add posthog.people.increment" (#320)
1.14.4 - 2021-10-14
- filter data urls out of large payloads (#317)
1.14.3 - 2021-10-12
- Expand allowed input types to 'button', 'checkbox', 'submit', 'reset' (#315)
1.14.2 - 2021-10-12
- dont mind me, just bumping versions (#316)
- fix: localStorage access denied error being thrown (#312)
1.14.1 - 2021-10-06
- Reduce code paths that could encode post data as the string undefined (#300)
1.14.0 - 2021-10-05
- Bump build and a readme change (#306)
- Add posthog.people.increment (#254)
- Send initial pageview immediately (#295)
- add a test for init-ing and reading the on xhr error handler (#308)
1.13.17 - 2021-10-04
- corrects exported type which got out of sync with core.js file (#307)
1.13.16 - 2021-10-04
- Allow injection from config of a function to call when xhr requests fail (#296)
- add instructions for developing with Yalc (#303)
- Revert "Speculative logging for PostHog/posthog#4816 (#293)" (#302)
- Filter out _ngcontent attributes in autocapture (#298)
- corrects a test where assertion and setup didn't match test name (#299)
1.13.15 - 2021-09-29
- Speculative logging for PostHog/posthog#4816 (#293)
- Bump tmpl from 1.0.4 to 1.0.5 in /react (#287)
- Bump ansi-regex from 5.0.0 to 5.0.1 in /react (#294)
1.13.14 - 2021-09-28
- Revert "Trigger onFeatureFlags on reset (#263)" (#292)
1.13.13 - 2021-09-17
- Trigger onFeatureFlags on reset (#263)
- Do not crash when calling capture() after skipping init(), fixes #281 (#282)
1.13.12 - 2021-09-15
- Change UTM tags from first touch to last touch (#286)
1.13.11 - 2021-09-14
- Do not load toobar only if autocapture enabled (#285)
1.13.9 - 2021-09-10
- Split feature flags into
$feature/*properties (#278)
1.13.8 - 2021-09-09
- Restore feature flag client-side override method (#280)
1.13.7 - 2021-09-06
- Revert "Do not load toolbar when disabled (#264)" (#276)
1.13.6 - 2021-09-06
- add gclid to campaign params (#277)
1.13.5 - 2021-09-02
- fix groupKey (#274)
1.13.4 - 2021-09-02
- console.warn to error (#273)
1.13.3 - 2021-09-02
- add posthog.group (#270)
1.13.2 - 2021-09-02
- fix "undefined is not an object" error (#272)
1.13.1 - 2021-09-02
- Deprecate client-side feature flag overrides (#271)
1.13.0 - 2021-09-01
- Feature flags API v2 (#268)
1.12.7 - 2021-08-29
- Update
rrwebto 1.0.3 (#269)
1.12.6 - 2021-08-20
- Update
@sentry/typesto 6.11 (#267)
1.12.5 - 2021-08-17
- Do not load toolbar when disabled (#264)
- Bump path-parse from 1.0.6 to 1.0.7 in /react (#266)
1.12.4 - 2021-08-16
- Fix deps containing types not being installed (#265)
1.12.3 - 2021-08-04
- Add
rrweb-snapshotto dev deps (#262) - Don't retry 500 responses (#260)
1.12.2 - 2021-08-02
- Update decide.js (#258)
1.12.1 - 2021-07-16
- Allow session recording reload (#253)
1.12.0 - 2021-07-15
- Remove deprecated methods and options (#255)
1.11.4 - 2021-06-24
- fix invalid cookie (#250)
1.11.3 - 2021-06-14
- Capture viewport height and width (#246)
- Add extra local development instructions (#235)
- Update README.md (#243)
1.11.2 - 2021-06-07
- Fix overridden request retry data (#241)
1.11.1 - 2021-06-04
- Fix: avoid directly accessing localStorage (#239)
1.11.0 - 2021-06-02
- Retry Queue (#226)
- Bump hosted-git-info from 2.8.8 to 2.8.9 in /react (#229)
- Bump lodash from 4.17.20 to 4.17.21 in /react (#225)
- Bump ws from 7.4.2 to 7.4.6 in /react (#237)
- Remove duplicates in CHANGELOG (#236)
1.10.2 - 2021-05-25
- Reconcile Server and Client side configurations for session recording and autocapture (#233)
1.10.1 - 2021-05-25
- Fix sessionRecording bug (#234)
- Update outdated releasing instructions (#224)
- changelog for 1.10.0 (#223)
- 1.10.0 (#222)
- Refactor /decide enpoint & allow recording without autocapture (#212)
- Add missing
disable_session_recordingproperty in Config interface (#221) - Update types, add missing reloadFeatureFlags (#219)
- Fix in-progress check for utils/deepCircularCopy (#216)
1.10.0 - 2021-05-07
- Refactor /decide endpoint & allow recording without autocapture (#212)
- Fix in-progress check for utils/deepCircularCopy (#216)
- Update types, add missing reloadFeatureFlags (#219)
- Add missing disable_session_recording property in Config interface (#221)
1.9.7 - 2021-04-09
- Config Additions: session_recording, mask_all_element_attributes, mask_all_text (#209)
1.9.6 - 2021-03-30
- Support rrweb mask all inputs (#207)
- fix: incorrect typing for isFeatureEnabled (#208)
1.9.3 - 2021-03-12
- Fix SentryIntegration optional param typing (#203)
1.9.2 - 2021-03-12
- Add SentryIntegration TS (#202)
- add SentryIntegration typing (#202)
1.9.1 - 2021-03-08
- Add posthog.debug() to types, remove bad docstring (#201)
- Fix ".identify" docstrings (#200)
1.9.0 - 2021-03-03
- Device Type (#198)
1.8.10 - 2021-03-02
- Add properties_string_max_length = 65535 (#197)
- Remove unused notification code (#191)
- Remove old upgrade code (never used) (#192)
- Support $set_once with identify (#190)
1.8.9 - 2021-03-02
- Add Yarn lock resiliency (#196)
- Update README.md (#194)
- Add debug function (#193)
- Fix auto changelog (#188)
- Fix auto new version (#187)
1.8.7 - 2021-02-11
- Fix internal metric unpacking error
1.8.6 - 2021-02-05
- When logging in as another user, don't link those two identities (#174)
- Testcafe E2E tests, IE11 fixes (#180)
1.8.5 - 2021-01-18
- Allow passing custom domain for sentry integration (#176)
- Update typing (#173)
1.8.3 - 2021-01-11
- Event names must be strings in
posthog.capture(#171)
1.8.1 - 2021-01-08
- Increase compatibility with IE 11 (#169)
1.8.0 - 2020-12-14
- Using gzip-based compression over lzstring using the fflate library: fflate. This reduces the amount of data transferred, and makes posthog servers respond faster (requires posthog 1.19.0). https://github.com/PostHog/posthog/issues/2560
- Support last touch $referrer and $referring_domain user properties https://github.com/PostHog/posthog-js/pull/139
- Publish a ES dist file https://github.com/PostHog/posthog-js/pull/157
- Publish a react integration for feature flags https://github.com/PostHog/posthog-js/pull/154
1.7.2 - 2020-11-28
- Fix issues with incorrect headers being set on decide
1.7.1 - 2020-11-27
- Force session recording to use lz64 compression (https://github.com/PostHog/posthog-js/pull/134)
- Bundle module.js in es5 (https://github.com/PostHog/posthog-js/pull/132)
1.7.0 - 2020-11-26
- Send session recording events to posthog in (short) batches, separate from rest of events to make sure we drop fewer events (#126)
- Send session recording events to a separate endpoint for newer versions of posthog (#118)
- Send correct LIB_VERSION to posthog with captures (#119)
- Handle capturing self-referential objects (#123)
- Make the library smaller by dropping unneeded code (#123, #128)
- Update request batching logic (#118, #126)
- Notify rrweb when $pageview events happen (#127)
- Fix 'this.people.delete_user is undefined' (issue #39, #113)
- Update rrweb block class to use
ph-no-captureandph-ignore-input(#112) - Deprecate calling posthog.capture with a callback (#129)
- Attempted to re-add support for including posthog-js in server-side rendering. (#131)
- Bugfix: Don't truncate session recording data (#121)
- Bugfix: Kill
posthog.capture_links()andposthog.capture_forms(). They were broken since initial release - you can use autocapture instead. (#128)
1.6.0 - 2020-11-05
- Allow updating user properties when calling
posthog.identify('identity, { some: 'value' })(#105) - Allow disabling $feature_flag_called event: `posthog.isFeatureEnabled('flag', { send_event: false }) (#100)
- Make cookieless analytics possible by passing
persistence: 'memory'to posthog.init (#82) - Avoid sending $pageleave events when
capture_pageview: falsepassed to posthog.init (#109) - Code cleanup, bug fixes, integration test suite and more tech debt work
1.5.2 - 2020-10-22
- Autocapture bugfix: Ignore extra spaces in classnames #99
- Improve typing of posthog-js (#103)
1.5.1 - 2020-10-22
- Improve typing of posthog.js #97 (thanks @stonesthatwhisper)
- Improve session recording, generate $session_id fields #91 #96
- Fix a bug with session recording events not being saved #95
- Improve test coverage #94
1.5.0 - 2020-09-08
- Add beta functionality to do session recording
- Add $feature_flag_called event
- Add beta Sentry integration
1.4.5 - 2020-09-08
- Fix clicks in shadowroot for Firefox and Safari
1.4.4 - 2020-08-26
- Fix clicks within shadowroot not being captured
- Fix type definition of loaded
1.4.3 - 2020-08-11
- Remove "?." to support older browsers
1.4.2 - 2020-08-11
- Capture actions even if toolbar is in used
1.4.1 - 2020-08-10
- Remove unused parameter for
.reloadFeatureFlags()
1.4.0 - 2020-08-10
- Have
.onFeatureFlags(callback)register multiple callbacks, which get called when feature flags are loaded or updated - Update feature flags when
identifyis called. - Add option
.reloadFeatureFlags(). Call it to trigger a reload of feature flags. (See #71) - Add config option
sanitize_propertiesthat accepts a function which sanitizes parameters of events (See #75)
1.3.8 - 2020-08-07
- Set
secure_cookieconfig totrueif the page is running over https
1.3.7 - 2020-07-28
- Store toolbar session in localStorage (instead of sessionStorage) so you don't need to authorize in every tab you have open
1.3.6 - 2020-07-27
- Fix a parameter in the type definition
1.3.5 - 2020-07-20
- Add flag to respect Do Not Track setting
1.3.4 - 2020-07-16
- Capture safe attributes (id, name and class) if the element is an input (#63)
1.3.3 - 2020-07-16
- Add payload compression support (with lz-string) (#48)
1.3.2 - 2020-07-16
- Fix request batching when loading the library from npm and running
.init()after DOM load.
1.3.1 - 2020-07-13
- Support loading the toolbar with a
__posthoghas param (was:state) andph_authorizeaction.
1.3.0 - 2020-07-03
- Add TypeScript defintions
1.2.4 - 2020-07-01
- Add support for feature flags (
posthog.isFeatureEnabled('keyword'))
1.2.3 - 2020-07-01
- Send $host and $pathname with $pageview requests (was just with $autocapture)
- Track clicks on elements which have
cursor:pointer - Better test suite
1.2.2 - 2020-06-15
- Allow setting properties on anonymous users
1.2.1 - 2020-06-09
- Simplify passing of API token to editor
1.2.0 - 2020-06-08
- Support passing various/dynamic parameters to the toolbar
1.1.2 - 2020-06-04
- Fix another error when using a new posthog-js version with an old posthog version
1.1.1 - 2020-06-04
- Show a error if calling
posthog.identifywithnulluser (#34 by @rushabhnagda11)
1.1.0 - 2020-06-04
- Support loading new PostHog toolbar
1.0.6 - 2020-03-09
- Send beacon on $pageleave
- Clean up a bunch of code
- Don't reset device id on reset
1.0.4 - 2020-03-04
- Fix Heroku App Cookie Bug
- Batch Event Posts
- Support TurboLinks
- Send Timestamp with events
1.0.0 - 2020-02-20
First Release.