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

Consider removing readable-stream? #729

Closed
jimmywarting opened this issue Jun 25, 2023 · 6 comments
Closed

Consider removing readable-stream? #729

jimmywarting opened this issue Jun 25, 2023 · 6 comments

Comments

@jimmywarting
Copy link
Contributor

I would like it if readable-stream didn't have to be installed / downloaded.
they don't seem to be used much at all...
it looks like this everywhere:

require('stream').<x> || require('readable-stream/<x>') 

is it okey to remove it?

@cressie176
Copy link
Collaborator

I think you're right. I'll try removing and running with Node 10.

cressie176 added a commit that referenced this issue Nov 24, 2024
cressie176 added a commit that referenced this issue Nov 24, 2024
@cressie176
Copy link
Collaborator

Removed. Thanks @jimmywarting

@lobokoch
Copy link

lobokoch commented Dec 3, 2024

After I updated from version amqplib: 0.10.3 to amqplib: 0.10.5, when I run my application I got the error: (node:31412) UnhandledPromiseRejectionWarning: Error: Cannot find module 'readable-stream'.
NOTE: I'm using Node v20.15.0.

@cressie176
Copy link
Collaborator

Thanks for the report @lobokoch, I'll try running the tests with that node version and see what happens

@cressie176 cressie176 reopened this Dec 3, 2024
@cressie176
Copy link
Collaborator

cressie176 commented Dec 3, 2024

@lobokoch I've run the tests using node v20.15.0 and they run fine. I've also grep'd the code base and the string 'readable-stream' only appears in a single comment, so nothing in amqplib 0.10.5 can be requiring it. Is it possible some other code in your application is relying on readable-stream being installed by amqplib, and now that it is has been removed is failing?

What does the stacktrace show?

@cressie176
Copy link
Collaborator

Closing on assumption that the issue is something other than amqplib is dependent on readable-stream but has not declared it as a dependency.

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

No branches or pull requests

3 participants