Skip to content

Releases

v0.3.0

Choose a tag to compare

@senanurcetin senanurcetin released this 20 Nov 07:28
08e478f

Added

  • --report-all for jsonl_utf8_guard.py: keeps scanning past the first invalid line and prints one JSON summary, {"status": "invalid", "records": N, "errors": [{"line": L, "reason": "..."}], "truncated": false, "max_bytes": ...}, exit code 2. At most MAX_REPORTED_ERRORS (100) errors are listed and "truncated": true marks a longer list; records counts valid objects across the whole file. An over-long line is still rejected before decoding and is drained in fixed-size chunks so later lines can be checked. The default single-error behavior, messages and exit codes are unchanged (#33).

Fixed

  • Non-object JSONL records name their JSON type without including input values: Line N: expected a JSON object, got an array (also a string, a number, true, false, null) (#47).
  • --max-bytes is validated by argparse, so 0 and negative values are a usage error naming the argument (must be a positive integer, got 0, exit 2) instead of a Validation failed: line that read like bad input. The library check in iter_jsonl_records is unchanged for direct callers; a non-number keeps argparse's own message (#41).
  • Rejections that already had their own cause now say so instead of the generic invalid JSON: a repeated object key reports Line N: duplicate JSON object key, and NaN / Infinity / -Infinity report Line N: non-finite number (NaN or Infinity) is not allowed. Neither message includes the key or any record content; real parse errors keep invalid JSON (#40).

Thanks to @rise11hx-cmyk and @jwalith4418-Mj for this release.

v0.2.0

Choose a tag to compare

@senanurcetin senanurcetin released this 18 Nov 18:25
0e4138a

What's new

  • --version flag for the CLI and the jsonl-utf8-guard console script (#8).
  • A file starting with a UTF-8 BOM now gets a clear error instead of invalid JSON (#31, thanks @P1LOTRX).
  • A bare carriage return (for example a CR-only file) now gets a clear error instead of invalid JSON (#32, thanks @P1LOTRX).

The first community contributions to this project. Thank you.

Install: pip install -U jsonl-utf8-guard

Looking for a first contribution? See #40 and #41.

v0.1.0

Choose a tag to compare

@senanurcetin senanurcetin released this 04 Nov 18:23
92b7635

Added

  • Packaging as jsonl-utf8-guard (pyproject.toml, jsonl-utf8-guard console script, no runtime dependencies), a CI job that builds the wheel and runs it from a clean venv, and a PyPI Trusted Publishing release workflow (docs/RELEASING.md).
  • Offline SHA-256 release verification CLI (verify_release.py) with ZIP verification without extraction and trusted SHA-256 sidecar support.
  • Cross-platform CI (Ubuntu and Windows, Python 3.10/3.12/3.13) and AGENTS.md (#6).
  • CLI exit-code and privacy tests (#7).
  • docs/AI_ASSISTANCE_LOG.md recording AI-assisted changes (#11).
  • CI quality job: ruff, mypy --strict and a 75% coverage floor (#21); Actions pinned to commit SHAs with Dependabot updates (#18, #19, #20).
  • Seeded boundary and property tests (#22).
  • Further seeded edge-case tests for issue #15: every byte limit around multibyte characters, invalid UTF-8 sequences, CR-only and mixed line endings, \uXXXX escapes and surrogates, escaped duplicate keys at any depth, and nesting around the recursion limit.

Fixed

  • Byte-exact manifest preserved across Windows checkouts via .gitattributes.
  • Corrupted DEFLATE and LZMA ZIP streams are handled (#5).
  • Deeply nested JSON no longer crashes the validator with an uncaught RecursionError; it is reported as a validation error (exit 2) (#12).

Changed

  • Removed accidentally committed __pycache__/*.pyc files and added .gitignore (#21).

Documentation

  • Bilingual (TR/EN) JSONL UTF-8 validation workshop, runbook, contributor onboarding (#4) and security policy.

Install: pip install jsonl-utf8-guard