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

remove dev dependency: node-fetch #1138

Merged
merged 3 commits into from May 7, 2024

Conversation

alxndrsn
Copy link
Contributor

@alxndrsn alxndrsn commented May 7, 2024

fetch() global has been available since node v18. It is still officially "experimental" until node v21, but it seems reasonable to use it in development before then.

See: https://nodejs.org/api/globals.html#fetch

This avoids node-fetch/node-fetch#1735, which I've seen locally when working with e2e tests. However, it does seem like global fetch can exhibit a similar but much less frequent issue.

alxndrsn added 3 commits May 6, 2024 21:21
fetch() global has been available since node v18.  It is still officially
"experimental" until node v21, but it seems reasonable to use it in
development before then.

See: https://nodejs.org/api/globals.html#fetch
@alxndrsn alxndrsn changed the title remove node-fetch dev dependency remove dev dependency: node-fetch May 7, 2024
@alxndrsn alxndrsn requested a review from ktuite May 7, 2024 10:02
@alxndrsn alxndrsn merged commit 4fd9ac7 into getodk:master May 7, 2024
1 check passed
@alxndrsn alxndrsn deleted the eliminate-node-fetch branch May 7, 2024 20:29
matthew-white pushed a commit that referenced this pull request May 8, 2024
fetch() global has been available since node v18. It is still officially "experimental" until node v21, but it seems reasonable to use it in development before then.

See: https://nodejs.org/api/globals.html#fetch

This avoids node-fetch/node-fetch#1735, which I've seen locally when working with e2e tests. However, it does seem like global fetch can exhibit a similar but much less frequent issue.
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