Skip to content

v4.0.0

Choose a tag to compare

@beningreenjam beningreenjam released this 07 Jun 15:47
· 25 commits to main since this release

What's new in v4.0.0

This is a complete rewrite with a new composable, function-first API and rule-driven traversal engine.

New features

  • Rule-driven traversal engine with exact paths, single-level wildcards (*), and recursive double wildcards (**)
  • Function censors with full FunctionCensorContext (matched path, rule path, root input)
  • Fuzzy and case-insensitive literal key matching
  • Substring redaction in nested strings via stringTests
  • Regex-based path segments
  • Optional console adapter (@hackylabs/deep-redact/adapters/console)
  • Security guardrails: max depth and max node budget
  • Graceful degradation of runtime failures with diagnostics

Migration