Repository navigation
5.46.0
·
59 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Minor Changes
- 39bd554: Add
sessionReplayConfig.textMaskPolicyto mask text at glyph precision instead of all-or-nothing. A policy is aPostHogTextMask 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 withPostHogTextMaskPolicies.digits(),.redact(RegExp)and.reveal(RegExp). Applies toText,RichText, and non-sensitive text inputs; sensitive inputs,PostHogMaskWidget, andPostHogUnmaskWidgetkeep precedence, and the policy fails closed by masking the whole node when it throws or returns a range outside the text.