Skip to content

v0.12.0

Latest
Compare
Choose a tag to compare
@Justintime50 Justintime50 released this 21 Apr 20:40
· 3 commits to master since this release
e72e083
  • Add support for censoring XML, HTML and plain text bodies
  • [BREAKING CHANGE] CensorElement now abstract base class, cannot be used directly
    • Three types of CensorElement options available:
      • KeyCensorElement: Censor the value of a specified key (will be ignored if used for plain text/HTML data)
      • RegexCensorElement: Censor any string that matches a specified regex pattern (will check the value of a key-value pair if used for JSON/XML data)
      • TextCensorElement: Censor a specified string (will check the value of a key-value pair if used for JSON/XML data; requires the whole body to match the specified string if used for plain text/HTML data)
    • Body censoring: KeyCensorElement (recommended for JSON/XML if key is known), TextCensorElement (recommended for JSON/XML if value is known), and RegexCensorElement (recommended for plain text/HTML)
    • Path element censoring: Use RegexCensorElement
    • Query parameter censoring: Use KeyCensorElement
    • Header censoring: Use KeyCensorElement
  • [BREAKING CHANGE] CensorHeadersByKeys, CensorBodyElementsByKeys, CensorQueryParametersByKeys and CensorPathElementsByPatterns removed
    • Use CensorHeaders, CensorBodyElements, CensorQueryParameters and CensorPathElements instead
  • Add .NET 9.0 support