Repository navigation
refactor(deps): remove stream-events dependency - #2022
Conversation
shaffeeullah
left a comment
There was a problem hiding this comment.
Looks straightforward enough! @danielbankhead pls take a look as well though
danielbankhead
left a comment
There was a problem hiding this comment.
Looks good so far
| private shouldEmitReading = true; | ||
| private shouldEmitWriting = true; |
There was a problem hiding this comment.
Looking at this further, 'reading' and 'writing' are called on every _read and _write event - to be fully backwards-compatible this class should do the same
There was a problem hiding this comment.
Ah good catch, I misread the stream-events / stubs code. Will fix.
There was a problem hiding this comment.
Actually I do believe it is only called once: https://github.com/stephenplusplus/stubs/blob/580b4d8b3a34c1193d5ec10e0db0d6ea4b4c0ec5/index.js#L30 it looks like after the number of calls is exhausted we revert to the cached function and stream-events would stop emitting reading / writing.
6a62184 to
46494ce
Compare
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #1916 🦕