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

refactor!: change Stream to work directly with a Socket #8

Merged
merged 17 commits into from
Mar 5, 2023

Conversation

thetayloredman
Copy link
Owner

@thetayloredman thetayloredman commented Mar 4, 2023

This PR updates the Stream class to work directly with duplex streams instead of IO providers.

@thetayloredman thetayloredman changed the title refactor: new stream-oriented api refactor!: new stream-oriented api Mar 4, 2023
@thetayloredman thetayloredman changed the title refactor!: new stream-oriented api refactor!: change Stream to work directly with a Socket Mar 5, 2023
thetayloredman and others added 4 commits March 5, 2023 10:42
This deprecates StreamEvents.Close in favor of StreamEvents.End.

Co-authored-by: ei-pi <[email protected]>
this makes Shell's tests unit tests instead of integration tests
@codecov
Copy link

codecov bot commented Mar 5, 2023

Codecov Report

Merging #8 (1e30eb7) into main (779ec55) will increase coverage by 5.96%.
The diff coverage is 96.61%.

@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
+ Coverage   87.96%   93.93%   +5.96%     
==========================================
  Files           9        9              
  Lines         266      264       -2     
  Branches       38       44       +6     
==========================================
+ Hits          234      248      +14     
+ Misses         32       16      -16     
Impacted Files Coverage Δ
src/lib/ConnectedDuplex.ts 91.66% <91.66%> (ø)
src/DumbClient.ts 100.00% <100.00%> (ø)
src/lib/promisifiedStreamHelpers.ts 100.00% <100.00%> (ø)
src/shell/index.ts 100.00% <100.00%> (ø)
src/stream/index.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@thetayloredman thetayloredman merged commit dace779 into main Mar 5, 2023
@thetayloredman thetayloredman deleted the refactor/streams branch March 5, 2023 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant