You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: v0.3.2 - HeuristicMode enum and custom patterns dict support
BREAKING CHANGE: Replace flag_suspicious parameter with heuristics: HeuristicMode
This release adds fine-grained control over heuristic detection behavior with
three modes (DISABLED, FLAG, REDACT) and enables custom patterns from dict.
Added:
- HeuristicMode enum (DISABLED/FLAG/REDACT) for controlling heuristic behavior
- hash_sensitive_value() method for category-aware hashing
- Custom patterns from dict support (no temp files needed)
- 22 new tests for HeuristicMode functionality
Changed:
- BREAKING: Replace flag_suspicious bool with heuristics: HeuristicMode
- Custom patterns now applied first (precedence over generic patterns)
- Account ID and heuristics skip already-redacted values
Fixed:
- Custom patterns were loaded but never applied
- Account ID pattern re-hashing custom-redacted values
- Heuristics re-detecting values with multi-underscore prefixes
Closes#17
0 commit comments