-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: return null from bytestream when stream closes #158
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #158 +/- ##
==========================================
+ Coverage 96.88% 96.97% +0.08%
==========================================
Files 107 107
Lines 9761 9782 +21
Branches 1474 1482 +8
==========================================
+ Hits 9457 9486 +29
+ Misses 304 296 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bc679f6
to
fcb6ab1
Compare
If a required number of bytes is not specified, and the underlying stream closes without yielding any bytes, return `null` instead of throwing `EOF`. BREAKING CHANGE: if the underlying stream closes without yielding any bytes and we are not waiting for a required number of bytes, `byteStream.read` will now return `null` instead of an empty `Uint8ArrayList`
2b87067
to
db1b24e
Compare
## [it-byte-stream-v2.0.0](it-byte-stream-1.1.1...it-byte-stream-2.0.0) (2025-03-19) ### ⚠ BREAKING CHANGES * if the underlying stream closes without yielding any bytes and we are not waiting for a required number of bytes, `byteStream.read` will now return `null` instead of an empty `Uint8ArrayList` * the `AbortOptions` interface is no longer exported, use the one from `abort-error` instead ### Features * return null from bytestream when stream closes ([#158](#158)) ([df88a9d](df88a9d)) ### Bug Fixes * remove AbortOptions exports ([#156](#156)) ([34b18fb](34b18fb))
🎉 This PR is included in version it-byte-stream-v2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [it-length-prefixed-stream-v2.0.0](it-length-prefixed-stream-1.2.1...it-length-prefixed-stream-2.0.0) (2025-03-19) ### ⚠ BREAKING CHANGES * if the underlying stream closes without yielding any bytes and we are not waiting for a required number of bytes, `byteStream.read` will now return `null` instead of an empty `Uint8ArrayList` * the `AbortOptions` interface is no longer exported, use the one from `abort-error` instead ### Features * return null from bytestream when stream closes ([#158](#158)) ([df88a9d](df88a9d)) ### Bug Fixes * remove AbortOptions exports ([#156](#156)) ([34b18fb](34b18fb))
🎉 This PR is included in version it-length-prefixed-stream-v2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
If a required number of bytes is not specified, and the underlying stream closes without yielding any bytes, return
null
instead of throwingEOF
.BREAKING CHANGE: if the underlying stream closes without yielding any bytes and we are not waiting for a required number of bytes,
byteStream.read
will now returnnull
instead of an emptyUint8ArrayList