Skip to content
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

fix: unhanded promise rejection in it-byte-stream #130

Merged
merged 1 commit into from
May 30, 2024

Conversation

achingbrain
Copy link
Owner

If no consumer is listening for the next value, and the underlying stream aborts, an unhandled promise rejection can occur.

Instead, add a .catch listener so the UPR doesn't occur, the rejection will be processed next time a consumer tries to read a value.

If no consumer is listening for the next value, and the underlying
stream aborts, an unhandled promise rejection can occur.

Instead, add a `.catch` listener so the UPR doesn't occur, the
rejection will be processed next time a consumer tries to read a
value.
Copy link

codecov bot commented May 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 96.41%. Comparing base (df14ac7) to head (7acb666).
Report is 16 commits behind head on main.

Files Patch % Lines
packages/it-byte-stream/src/pushable.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #130      +/-   ##
==========================================
- Coverage   96.44%   96.41%   -0.04%     
==========================================
  Files          98       98              
  Lines        9051     9054       +3     
  Branches     1343     1343              
==========================================
  Hits         8729     8729              
- Misses        322      325       +3     
Flag Coverage Δ
chrome 96.18% <0.00%> (-0.10%) ⬇️
node 96.26% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@achingbrain achingbrain merged commit 23bc557 into main May 30, 2024
19 of 21 checks passed
@achingbrain achingbrain deleted the fix/unhandled-promise-rejection branch May 30, 2024 11:06
github-actions bot pushed a commit that referenced this pull request May 30, 2024
## [it-byte-stream-v1.0.11](it-byte-stream-1.0.10...it-byte-stream-1.0.11) (2024-05-30)

### Bug Fixes

* unhanded promise rejection in it-byte-stream ([#130](#130)) ([23bc557](23bc557))

### Trivial Changes

* update to the latest aegir release ([#131](#131)) ([a20e5b5](a20e5b5))
Copy link

🎉 This PR is included in version it-byte-stream-v1.0.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

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