Skip to content

Conversation

@swapnil-nagar
Copy link
Contributor

@swapnil-nagar swapnil-nagar commented Nov 25, 2025

Description:

Removed undici dependency completely
Replaced all undici usage with native Node.js fetch API (Request, Response, Headers, FormData, File).

Reason:

Headers is now a global type from Node.js's built-in fetch API (available in Node.js 18+). When we removed undici, we didn't need to change the Headers type reference because Node.js provides the same Headers class natively - it's automatically available in the global scope just like Request, Response, and FormData. The type definition comes from @types/node@^20.0.0 which includes all the native fetch API types, so TypeScript recognizes it without any imports.

@swapnil-nagar swapnil-nagar requested a review from a team as a code owner November 25, 2025 21:48
@swapnil-nagar swapnil-nagar enabled auto-merge (squash) December 2, 2025 21:14
auto-merge was automatically disabled December 2, 2025 21:33

Repository rule violations found

@swapnil-nagar swapnil-nagar merged commit 7853590 into v4.x Dec 2, 2025
12 checks passed
@swapnil-nagar swapnil-nagar deleted the swapnil/removeUndici branch December 2, 2025 21:33
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