Skip to content

v0.1.9

  • v0.1.9
  • 7822389
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • v0.1.9
  • 7822389
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@drewstone drewstone tagged this 04 Jun 15:41
Two additive capabilities so a consumer's richer redactor can de-fork without
regressing:
- `stringMode: 'mask-spans'` replaces only matched substrings (each →
  `[REDACTED:<kind>]`), preserving surrounding non-PII context — for an
  analyst loop that reads prose. Default stays 'collapse' (whole-string),
  byte-identical to before. Exposed standalone as `maskSpans(text, patterns)`,
  built on detectSpans so matching/validate/non-overlap are shared.
- cycle guard in the object walk: a circular payload previously recursed
  forever; now a re-encountered object/array is returned untouched. Fixes a
  latent hang for every consumer.
Assets 2
Loading