Skip to content

Conversation

@AbhiPrasad
Copy link
Member

It's been default in Next.js and Sveltekit for a while now, let's make it a default for Node especially since Node 20 is released.

@AbhiPrasad AbhiPrasad requested review from a team, Lms24 and mydea and removed request for a team April 26, 2023 10:54
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't cause issues for older Node versions, right?

@AbhiPrasad
Copy link
Member Author

This won't cause issues for older Node versions, right?

It should not, we can confirm this since we run the unit tests on older Node versions.

We have version checks and try-catch guards also:

// Requires Node 16+ to use the diagnostics_channel API.
if (NODE_VERSION.major && NODE_VERSION.major < 16) {

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh I forgot about the version check. And good point about the tests. Let's go then!

@AbhiPrasad AbhiPrasad force-pushed the abhi-node-undici-default branch from 0a93f16 to fadd795 Compare April 26, 2023 12:04
@AbhiPrasad AbhiPrasad merged commit 1683caf into develop Apr 26, 2023
@AbhiPrasad AbhiPrasad deleted the abhi-node-undici-default branch April 26, 2023 12:31
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.

3 participants