Skip to content

feat(streams/unstable): add BatchStream#7110

Merged
bartlomieju merged 1 commit into
denoland:mainfrom
tomas-zijdemans:feat/streams-batch-stream
Apr 27, 2026
Merged

feat(streams/unstable): add BatchStream#7110
bartlomieju merged 1 commit into
denoland: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).
⚠️ Report is 7 commits behind head on main.

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.

@bartlomieju bartlomieju merged commit cd03740 into denoland:main Apr 27, 2026
20 checks passed
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.

2 participants