Skip to content

Remove make-fetch-happen and replace with native fetch#956

Merged
bdehamer merged 7 commits intotheupdateframework:mainfrom
odehamer:remove-make-fetch-happen
Mar 12, 2026
Merged

Remove make-fetch-happen and replace with native fetch#956
bdehamer merged 7 commits intotheupdateframework:mainfrom
odehamer:remove-make-fetch-happen

Conversation

@odehamer
Copy link
Copy Markdown
Contributor

@odehamer odehamer commented Mar 2, 2026

Replaces make-fetch-happen with the native fetch. Also updated nock to allow the tests to work with native fetch. This simplifies the codebase and reduces external dependencies.
Native fetch does not have a retry mechanism, so that was removed.
Also, the way timeouts are being handled with native fetch using the AbortSignal class did not work well with nock in the testing, so one test had to be skipped.

@odehamer odehamer requested a review from a team as a code owner March 2, 2026 08:46
Comment thread packages/client/tests/fetcher.test.ts Outdated
Comment thread packages/client/tests/fetcher.test.ts Outdated
Comment thread packages/client/tests/updater.test.ts Outdated
Comment thread package.json Outdated
Comment thread packages/client/src/fetcher.ts Outdated
@odehamer odehamer requested a review from bdehamer March 11, 2026 05:48
Copy link
Copy Markdown
Collaborator

@ejahnGithub ejahnGithub left a comment

Choose a reason for hiding this comment

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

Look good to me! Thanks for submitting you first PR to TUF-JS 🚀

@bdehamer bdehamer merged commit f0dddf1 into theupdateframework:main Mar 12, 2026
16 checks passed
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