Skip to content

posthog-react-native@4.65.0

Choose a tag to compare

@github-actions github-actions released this 26 Aug 10:56
Immutable release. Only release title and notes can be modified.
d17403b

4.65.0

Minor Changes

  • #4643 35dcb94 Thanks @ioannisj! - Autocapture touches and clicks on React Native Web (including expo-router on web). Touch events there carry no _targetInst and every touch was silently dropped, so the element chain is now resolved by walking up from e.target to the nearest node carrying a React fiber. captureTouches also registers a capture-phase click listener on the document on web, emitted with $event_type: 'click', since browsers fire touchend only for touch input (react-native-web's Pressable stops propagation, and Modal renders outside the provider's subtree). Autocapture no longer lets an exception escape into the host app's event dispatch.
    (2026-08-26)

Patch Changes

  • #4650 e03f5d1 Thanks @marandaneto! - Accept CSS-style survey positions such as bottom-right and align them with their canonical SurveyPosition values.
    (2026-08-26)

  • #4654 aad1494 Thanks @marandaneto! - Deduplicate unknown survey position warnings after normalizing equivalent position names.
    (2026-08-26)

  • #4649 ec78dec Thanks @github-actions! - Respect ph-no-capture on any ancestor of a touched or clicked element. Previously an interaction deep inside an opted-out subtree could still send an $autocapture event carrying that subtree's element text and props, so apps relying on a high-level ph-no-capture may see fewer $autocapture events after upgrading. Interactions more than 1000 elements deep in the view hierarchy now produce no $autocapture event rather than a truncated one. A non-numeric maxElementsCaptured now falls back to the default of 20 instead of being treated as no cap at all.
    (2026-08-26)

  • Updated dependencies [ab1383a, 0d2cf49]:

    • @posthog/types@1.406.2