Greenmask 0.2.26
Changes
- feat: add
--diff-mode=summaryto the validate command. It compares the same rows as--diffbut prints only counts per table and column — changed, unchanged and NULLs kept — with no original or transformed value and no primary key. This makesvalidateusable where production data may be read but must not be shown, such as kept CI logs, a shared terminal or an AI agent's transcript. Text and--format=jsonoutput are supported #495 #503 - feat: the summary warns when a transformed column keeps more than
--diff-unchanged-thresholdpercent of its non-NULL values (default90,100turns it off), which usually means a no-op transformer, and when a column changed although no transformer affects it. These are validation warnings: they print with--warningsor--strict, have a hash that can go intoresolved_warnings, and--strictexits non-zero on an unresolved one. The hash ignores row counts, so it stays the same when--rows-limit, the data or the threshold change #503 - fix: make the gender chosen by RandomPerson reproducible across runs. The list of genders was built from a map, so its order changed between runs and the deterministic engine could pick a different gender, and so a different name, for the same input #502. Closes #501
- docs: move the documentation site to Docusaurus and drop MkDocs #498 #500 #504
- docs: add the Save and reset test environments with arcave page: restore a masked dump into a Docker Compose project once, save it as an arcave savepoint and reset the whole environment in one command #499
- docs: add
make docs-serveandmake docs-buildto preview the documentation locally with the stock Docusaurus theme, and a CONTRIBUTING.md guide for contributors #505 - docs: correct the documented defaults of Hash
function, RandomNumericdecimal, RandomStringsymbolsand RandomPersongender_mappingto match the code #493
note
--diff-mode=values stays the default, so the existing validate --diff output is unchanged. --data with --diff-mode=summary and without --diff is an error, because plain --data prints every value. Without --data the mode is ignored, so diff_mode: summary can stay in a shared config.
Full Changelog: v0.2.25...v0.2.26
Links
Feel free to reach out to us if you have any questions or need assistance: