Repository navigation
Releases
Releases · senanurcetin/offline-jsonl-workshop
v0.3.0
Added
--report-allforjsonl_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 code2. At mostMAX_REPORTED_ERRORS(100) errors are listed and"truncated": truemarks a longer list;recordscounts 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(alsoa string,a number,true,false,null) (#47). --max-bytesis validated by argparse, so0and negative values are a usage error naming the argument (must be a positive integer, got 0, exit 2) instead of aValidation failed:line that read like bad input. The library check initer_jsonl_recordsis 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 reportsLine N: duplicate JSON object key, andNaN/Infinity/-InfinityreportLine N: non-finite number (NaN or Infinity) is not allowed. Neither message includes the key or any record content; real parse errors keepinvalid JSON(#40).
Thanks to @rise11hx-cmyk and @jwalith4418-Mj for this release.
v0.2.0
What's new
--versionflag for the CLI and thejsonl-utf8-guardconsole 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
v0.1.0
Added
- Packaging as
jsonl-utf8-guard(pyproject.toml,jsonl-utf8-guardconsole 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.mdrecording AI-assisted changes (#11).- CI
qualityjob: ruff,mypy --strictand 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,
\uXXXXescapes 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__/*.pycfiles 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