Skip to content

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

Merged
achingbrain merged 1 commit intomainfrom
fix/unhandled-promise-rejection
May 30, 2024
Merged

fix: unhanded promise rejection in it-byte-stream#130
achingbrain merged 1 commit intomainfrom
fix/unhandled-promise-rejection

Conversation

@achingbrain
Copy link
Copy Markdown
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.
@codecov
Copy link
Copy Markdown

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
@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))
@github-actions
Copy link
Copy Markdown

🎉 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