Skip to content

Version 1.1.0#6

Merged
tilo merged 4 commits into
mainfrom
version-1.1.0
Jun 9, 2026
Merged

Version 1.1.0#6
tilo merged 4 commits into
mainfrom
version-1.1.0

Conversation

@tilo

@tilo tilo commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Adds SmarterJSON.foreach(source), the streaming, composable sibling of process_file.

  • source is a file path or any IO (socket, StringIO, open File).
  • No block → a plain Enumerator (like CSV.foreach, not lazy) that reads one
    document at a time, so you can .select / .map / .lazy / .first over a
    large NDJSON / JSONL stream in bounded memory.
  • With a block → streams and returns the document count, like process_file.

Purely additive — no frozen 1.0 contract changes. 32 new specs (C + Ruby parity); suite 1,070 green, 100% coverage. Docs: README features section, foreach reference in basic_read_api.md, filter/rewrite example in examples.md, CHANGELOG, version → 1.1.0.

tilo and others added 3 commits June 9, 2026 09:15
… process_file

Without a block it returns a plain Enumerator (like CSV.foreach) that reads one
document at a time from disk; with a block it streams and returns the document
count, like process_file. 22 specs (C + Ruby parity).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.83%. Comparing base (c393456) to head (0d594c1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   99.83%   99.83%           
=======================================
  Files           7        7           
  Lines        1187     1193    +6     
=======================================
+ Hits         1185     1191    +6     
  Misses          2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Summarizes the full capability surface (read / multi-doc / streaming +
foreach / recovery / generate / precision / on_warning / speed) near the
top, and documents that HJSON support is a deliberate non-conflicting
subset (no unquoted multi-line strings).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tilo tilo merged commit a5f3eac into main Jun 9, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant