Skip to content

5.46.0

Choose a tag to compare

@github-actions github-actions released this 22 Sep 14:50
· 59 commits to main since this release
Immutable release. Only release title and notes can be modified.
eddbd6d

Minor Changes

  • 39bd554: Add sessionReplayConfig.textMaskPolicy to mask text at glyph precision instead of all-or-nothing. A policy is a PostHogTextMask Function(String text, Widget widget) that decides per text node whether to mask all of it, none of it, only some character ranges, or everything except some ranges — using the node's rendered string, the widget that produced it, or both — so an app can hide amounts and card numbers while the labels around them stay readable. Ships with PostHogTextMaskPolicies.digits(), .redact(RegExp) and .reveal(RegExp). Applies to Text, RichText, and non-sensitive text inputs; sensitive inputs, PostHogMaskWidget, and PostHogUnmaskWidget keep precedence, and the policy fails closed by masking the whole node when it throws or returns a range outside the text.