Skip to content

@posthog/core@1.56.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 13:42
Immutable release. Only release title and notes can be modified.
a0c6dc5

1.56.0

Minor Changes

  • #5083 d576bec Thanks @61465! - Opt-in WebView bot heuristic for #2921.
    • posthog-js/customizations exports a new isLikelyWebViewBot(ua) helper that flags the UA pattern described in #2921 (a Chrome/... token without the usual AppleWebKit/* + Safari/* co-markers that real Chrome always sends). Wire it into before_send to tag or drop the matching events — see isLikelyWebViewBot JSDoc for a usage example. Default SDK behaviour is unchanged; the helper is tree-shaken out unless you import it.
    • @posthog/core keeps isBlockedUA and DEFAULT_BLOCKED_UA_STRS byte-for-byte compatible, and gains session-level memoisation of isBlockedUA results keyed on (ua, customBlockedUserAgents), so repeat calls within the same session are O(1). (2026-10-05)