Skip to content

Use native fetch#79

Merged
garlab merged 5 commits intomainfrom
chore/native-fetch
Mar 15, 2026
Merged

Use native fetch#79
garlab merged 5 commits intomainfrom
chore/native-fetch

Conversation

@garlab
Copy link
Contributor

@garlab garlab commented Mar 15, 2026

Replace node-fetch with native fetch (require min node v18).
Bump nock to support interception of fetch (unlike node-fetch which is based on http/https, fetch is a complete reimplementation based on undici so older versions of nock doesn't work well with it).
Add an option for a custom fetchFn, as a replacement of custom agent.

@garlab garlab merged commit a1e129d into main Mar 15, 2026
1 check passed
@garlab garlab deleted the chore/native-fetch branch March 15, 2026 22:05
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.

1 participant