Packages

@posthog/types

1.427.1 · 23 Nov 2026MIT38.9M / weekRepositorynpmAtom feed

Upgrading @posthog/types From 1.404.1 to 1.427.1

49 releases in betweenevery note read

Reading releases, release notes and advisories…

  1. 1.404.1yours
  2. 48 releases
  3. 1.427.1target

Before you upgrade

Tick each one off as you go
  • Deprecated1.405.0

Release by release

  1. 1.427.1

    23 Nov 20261 fix
    • Fixed

      Capture the Snapchat click ID as sccid when the landing URL spells it ScCid or SsCid. When mask_personal_data_properties is on, also mask ScCid, SsCid and sscid in captured URLs, including landing URLs stored by older SDK versions. (2026-11-23)

  2. 1.427.0

    19 Nov 20261 new
    • New

      Add an explicit per-select session replay masking policy. (2026-11-19)

  3. 1.426.0

    19 Nov 20261 new
    • New

      Add opt-in require_subresource_integrity to 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)

  4. 1.425.1

    13 Nov 20261 fix
    • Fixed

      When the experimental metrics.flags option is on, the browser SDK splits each /flags attempt that gets a response into three histograms with the same attributes as posthog.flags.request.duration. posthog.flags.request.pre_send_duration runs from dispatch until the request starts, which includes body compression. posthog.flags.request.network_duration runs 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_duration runs 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 /flags request that this copy of the SDK sends to the same URL, so it may record the total without them. posthog.flags.request.duration is unchanged. The option, the metric names, and their attributes may change or be removed in any release. (2026-11-13)

  5. 1.425.0

    13 Nov 20261 new
    • New

      Add trace_propagation_targets: an opt-in allowlist of hostnames or origins that receive a W3C traceparent header on fetch and XMLHttpRequest requests, so backend traces can continue from the browser. Unlisted hosts never get the header, and a traceparent set by the app or by OpenTelemetry instrumentation is never overwritten or duplicated. (2026-11-13)

  6. 1.424.1

    12 Nov 20262 fixes
    • 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.flushIntervalMs still wins. (2026-11-12)

    • Fixed

      metrics: metrics.network no longer records server-sent event streams. A text/event-stream response 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)

  7. 1.424.0

    11 Nov 20261 new
    • New

      Add imageUrl to the EarlyAccessFeature type (2026-11-11)

  8. 1.423.0

    10 Nov 20261 new · 1 fix
    • New

      node: Expose traceId and spanId getters on the Span handle, for correlating logs from other loggers with a trace without parsing traceparent() (2026-11-10)

    • Fixed

      Warn once in the console, even outside debug mode, when the bot user agent filter drops events, and document that captureLog logs bypass the filter. (2026-11-10)

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.