Version 1.1.0#6
Merged
Merged
Conversation
… 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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
SmarterJSON.foreach(source), the streaming, composable sibling ofprocess_file.sourceis a file path or any IO (socket, StringIO, open File).Enumerator(likeCSV.foreach, not lazy) that reads onedocument at a time, so you can
.select/.map/.lazy/.firstover alarge NDJSON / JSONL stream in bounded memory.
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.