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

feat(node): Make Undici a default integration. #7967

Merged
merged 2 commits into from
Apr 26, 2023

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, mydea and Lms24 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!

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.

None yet

2 participants