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: update Socket for Node 18 compat #2467

Merged
merged 2 commits into from Apr 27, 2023
Merged

fix: update Socket for Node 18 compat #2467

merged 2 commits into from Apr 27, 2023

Conversation

mastermatt
Copy link
Member

In Node 18+, Write Stream detection has changed. We needed to add a dummy write method to our Socket class in order to avoid the following error:

The "stream" argument must be an instance of ReadableStream, WritableStream, or Stream. Received an instance of Socket

The minimum requirements for SSL certs also increased, so I was forced to update our certs used in testing.

Fixes #2466

In Node 18+, Write Stream detection has changed. We needed to add a dummy `write` method to our `Socket` class in order to avoid the following error:
> The "stream" argument must be an instance of ReadableStream, WritableStream, or Stream. Received an instance of Socket

The minimum requirements for SSL certs also increased, so I was forced to update our certs used in testing.
@mastermatt
Copy link
Member Author

@nock/maintainers could I get an approval on this?

@mastermatt mastermatt changed the title feat: update Socket for Node 18 compat fix: update Socket for Node 18 compat Apr 27, 2023
@RichardLitt
Copy link
Member

Approved.

@mastermatt mastermatt merged commit f904406 into main Apr 27, 2023
16 checks passed
@mastermatt mastermatt deleted the node18-compat branch April 27, 2023 14:57
@github-actions
Copy link

🎉 This PR is included in version 13.3.1 🎉

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.

Incompatible with node 18
2 participants