Skip to content

Remove node-fetch dependency#1613

Merged
Andarist merged 3 commits into
nextfrom
remove-node-fetch
Mar 19, 2025
Merged

Remove node-fetch dependency#1613
Andarist merged 3 commits into
nextfrom
remove-node-fetch

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented Mar 19, 2025

fetch() is builtin in node 18 now with the updated engine ranges

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 19, 2025

🦋 Changeset detected

Latest commit: e33d2f5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@changesets/get-github-info Patch
@changesets/changelog-github Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.03%. Comparing base (5c3dd20) to head (e33d2f5).
Report is 5 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1613      +/-   ##
==========================================
- Coverage   72.03%   72.03%   -0.01%     
==========================================
  Files          65       65              
  Lines        5007     5006       -1     
  Branches      873      873              
==========================================
- Hits         3607     3606       -1     
  Misses       1395     1395              
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread packages/get-github-info/src/index.ts Outdated
@Andarist Andarist merged commit 5b02e2f into next Mar 19, 2025
@Andarist Andarist deleted the remove-node-fetch branch March 19, 2025 21:31
@@ -1,5 +1,3 @@
// @ts-ignore
import fetch from "node-fetch";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I hope we won't run into any experimental warnings when using builtin fetch

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I believe the warnings are only before node 18 which we no longer support in next. The flag was removed in node 18.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm pretty sure I ran into experimental warnings for some features of "stable" fetch on node 18. It was really annoying as, in the end, it prevented me from using fetch - but we probably don't need anything non-basic here so it should be fine.

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.

2 participants