close
Skip to content

feat(streams/unstable): add BatchStream#7110

Open
tomas-zijdemans wants to merge 1 commit intodenoland:mainfrom
tomas-zijdemans:feat/streams-batch-stream
Open

feat(streams/unstable): add BatchStream#7110
tomas-zijdemans wants to merge 1 commit intodenoland:mainfrom
tomas-zijdemans:feat/streams-batch-stream

Conversation

@tomas-zijdemans
Copy link
Copy Markdown
Contributor

This covers a pattern I use a lot in my own code, so I think it would be valuable in std.

BatchStream is a stream transform that groups incoming values into fixed-size arrays. It emits a full batch when the batch size is reached, and emits the last smaller batch when the stream ends.

Useful for grouping streamed XML records, JSON objects, CSV rows, queue messages, or other values before sending them to bulk APIs or batch processing.

@tomas-zijdemans tomas-zijdemans changed the title feat(streams/unstable): add BatchStream feat(streams/unstable): add BatchStream Apr 25, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.61%. Comparing base (0796a25) to head (a83e33e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7110   +/-   ##
=======================================
  Coverage   94.60%   94.61%           
=======================================
  Files         633      634    +1     
  Lines       51777    51800   +23     
  Branches     9324     9328    +4     
=======================================
+ Hits        48986    49010   +24     
  Misses       2216     2216           
+ Partials      575      574    -1     

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant