posthog-js
1.450.1 · 17 Nov 2026(Apache-2.0 AND MIT)28.2M / weekRepositoryHomepagenpmAtom feed
Upgrading posthog-js From 1.439.2 to 1.450.1
45 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- Fixed
Send base64 beacon bodies as bare
text/plainso/i/v0/e/accepts page-unload events when gzip compression is disabled or unavailable (2026-11-17)
- Fixed
- New
Treat failed flag evaluations as unavailable: Node
getFeatureFlag()/isFeatureEnabled()returnundefined,getAllFlags()omits failed keys, and no failed values or payloads are exposed. (2026-11-15)
- New
- Fixed
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 no
scrollend). (2026-11-14)
- Fixed
1.449.1nothing new or fixed in the note
- New
When the experimental
metrics.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)
- New
- New
Add
trace_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)
- New
- Fixed
Fix dropdown selection masking without changing custom multiselect behavior. (2026-11-12)
- Fixed
- Fixed
Fix dropdown replay updates and blocked-value leaks, and preserve custom mask passthrough. (2026-11-12)
- Fixed
29 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.