@posthog/types
1.427.1 · 23 Nov 2026MIT38.9M / weekRepositorynpmAtom feed
Upgrading @posthog/types From 1.336.0 to 1.427.1
240 releases in betweennotes for 239
Reading releases, release notes and advisories…
- 4+
- changes to make
- 0
- advisories fixed
- 77+
- new
- 46+
- fixes
Counted from 239 of 240 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Deprecated1.405.0
- Deprecated1.384.3
- Deprecated1.384.2
- Deprecated1.383.3
Release by release
- Fixed
Capture the Snapchat click ID as
sccidwhen 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)
- Fixed
- New
Add an explicit per-select session replay masking policy. (2026-11-19)
- New
- New
Add opt-in
require_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)
- New
- Fixed
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)
- Fixed
- 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
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 explicit
metrics.flushIntervalMsstill wins. (2026-11-12) - Fixed
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)
- Fixed
- New
Add
imageUrlto theEarlyAccessFeaturetype (2026-11-11)
- New
- New
node: Expose
traceIdandspanIdgetters on theSpanhandle, for correlating logs from other loggers with a trace without parsingtraceparent()(2026-11-10) - Fixed
Warn once in the console, even outside debug mode, when the bot user agent filter drops events, and document that
captureLoglogs bypass the filter. (2026-11-10)
- New
5 other lines we could not sort, mostly version bumps
- 1.403.1
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. - 1.403.1
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. - 1.403.1
Deferred sheets are flushed synchronously when recording stops and on
pagehide; residual failure modes are counted via$sdk_debug_replay_deferred_stylesheets_failed/_abandoned. - 1.403.1
CSSOM-only styles (
insertRuleoutput,adoptedStyleSheets) no longer charge the budget, since deferring<link>sheets buys those pages nothing. - 1.403.1
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)
1 internal line (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.