|
| 1 | +# DataFog 4.12.0 |
| 2 | + |
| 3 | +DataFog 4.12.0 carries structured PII detection through every engine, legacy |
| 4 | +API and CLI anonymization path. Smart, spaCy and GLiNER modes retain the same |
| 5 | +native card, IP and credential findings as the regex mode, then add NER spans. |
| 6 | +TextService scans complete documents, and spaCy/GLiNER character offsets prevent |
| 7 | +an earlier substring or repeated name from receiving the wrong redaction. |
| 8 | + |
| 9 | +This release requires `datafog-core~=1.5.0` in the base package and the `rust` |
| 10 | +extra. Core 1.5 supplies complete IPv4-mapped IPv6 redaction, corrected email |
| 11 | +field boundaries and Unicode mailboxes, and phone-plus-ZIP classification that |
| 12 | +does not suppress the phone behind a false card finding. Native differences |
| 13 | +are recorded in `tests/contracts/rust-1.5.0.json`. Capability contract 1 remains |
| 14 | +unchanged; Python and Core have independent version numbers. |
| 15 | + |
| 16 | +Lone surrogate characters no longer disable native scans. Dense overlap |
| 17 | +suppression, Python fallback patterns and allowlist matching have bounded work; |
| 18 | +typoed entity labels, invalid ranges and invalid locales raise explicit errors. |
| 19 | +Anonymizing pipeline operations imply scanning. Async guardrail decorators |
| 20 | +await their result, and non-string results raise TypeError. |
| 21 | + |
| 22 | +LiteLLM scans nested tool/function arguments and prompt/input requests with a |
| 23 | +shared token assignment for the request. Repeated values reuse tokens, and |
| 24 | +existing markers do not collide. Streaming buffers the complete upstream |
| 25 | +response before emitting its first redacted chunk, including text and tool |
| 26 | +arguments split across deltas. This adds the full upstream completion latency |
| 27 | +to first output. Streams exceeding eight million text characters or 100,000 |
| 28 | +chunks are rejected. Engine errors retain the configured `open` or `closed` |
| 29 | +failure policy. Image and binary parts remain opaque and receive no OCR. |
| 30 | + |
| 31 | +The Claude Code hook asks for review, or denies according to configuration, |
| 32 | +when input exceeds its scan budget; it no longer silently permits an unscanned |
| 33 | +tail. Unexpected hook failures retain the documented fail-open policy. |
| 34 | + |
| 35 | +Hash APIs honor the selected algorithm while preserving existing plain-hash |
| 36 | +formats. Engine APIs, the DataFog class and CLI retain SHA-256 with 12 hex |
| 37 | +characters by default. Deprecated top-level `datafog.process(method="hash")` |
| 38 | +retains MD5 with eight hex characters. The legacy Anonymizer model retains its |
| 39 | +existing full plain digest. Explicit `hash_key` adds full-length HMAC with at |
| 40 | +least 32 key bytes; omitting the algorithm in keyed mode selects SHA-256. |
| 41 | +Unkeyed hashes remain guessable deterministic pseudonyms, not protection |
| 42 | +against enumerating SSNs, phone numbers or other low-entropy values. |
| 43 | + |
| 44 | +The minimum Pydantic version is 2.1. The `nlp-advanced` extra includes spaCy and |
| 45 | +permits Torch 2.x versions compatible with Core's GLiNER2 extra. Base installs |
| 46 | +show a CLI-extra installation hint instead of a missing-Typer traceback. |
| 47 | +Unused duplicate implementations are removed, source distributions include |
| 48 | +runnable tests and corpora, and CLI configuration output hides API keys. |
| 49 | + |
| 50 | +Scheduled release jobs qualify candidates without publishing. Manual jobs |
| 51 | +default to dry runs, reject stale or occupied versions, and record immutable |
| 52 | +release refs before uploading artifacts. |
| 53 | + |
| 54 | +The published Core 1.5.0 dependency passed installed-wheel qualification with |
| 55 | +this Python release, including the native bridge and compatibility contracts. |
| 56 | +The Python and Core versions are published independently. |
0 commit comments