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

Support Node 22 and drop Node <18.17.0 #41

Merged
merged 1 commit into from
May 4, 2024
Merged

Support Node 22 and drop Node <18.17.0 #41

merged 1 commit into from
May 4, 2024

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented May 4, 2024

This runs tests on Node 22.

Node 22 uses a new default value for highWaterMark: 64KB instead of 16KB. (nodejs/node#52037). We should keep the default value. This means we need to use stream.getDefaultHighWaterMark().

However, that method was introduced in 18.17.0. We had some issues a couple of months ago with using that method: #16.

Therefore, I think we might want to do a major release to avoid that same issue, i.e. where we explicitly state that we drop support for Node <18.17.0.

@sindresorhus sindresorhus merged commit 7487ea7 into sindresorhus:main May 4, 2024
2 checks passed
@ehmicky ehmicky deleted the node-22 branch May 4, 2024 19:45
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.

2 participants