Skip to content

refactor(create-react-router): use native Fetch#14929

Draft
MichaelDeBoey wants to merge 1 commit intoupdate-Node-versionfrom
use-native-fetch-in-crr
Draft

refactor(create-react-router): use native Fetch#14929
MichaelDeBoey wants to merge 1 commit intoupdate-Node-versionfrom
use-native-fetch-in-crr

Conversation

@MichaelDeBoey
Copy link
Copy Markdown
Member

Resubmission of #14140

As mentioned in remix-run/web-std-io#42 (comment), we probably don't need to use the agent option, so we can just use native Fetch API completely


I'm sure people from the wider @e18e ecosystem cleanup (like @43081j, @benmccann, @Fuzzyma, @outslept & @v1rtl) will be very happy to see these kind of changes as well

@MichaelDeBoey MichaelDeBoey added dependencies Pull requests that update a dependency file pkg:create-react-router labels Mar 26, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 26, 2026

⚠️ No Changeset found

Latest commit: 3a402ec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors create-react-router’s template download path to rely on Node’s native Fetch API (Node >=18) instead of @remix-run/web-fetch, simplifying dependencies and removing custom agent handling.

Changes:

  • Removed @remix-run/web-fetch and proxy-agent dependencies from create-react-router.
  • Updated template download logic to use the global fetch without passing an agent.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/create-react-router/package.json Drops fetch/proxy-related dependencies now that Node’s native fetch is used.
packages/create-react-router/copy-template.ts Removes custom ProxyAgent logic and switches fetch calls to native fetch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/create-react-router/copy-template.ts
@MichaelDeBoey MichaelDeBoey force-pushed the use-native-fetch-in-crr branch from 5bf2592 to 48981f2 Compare March 26, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed dependencies Pull requests that update a dependency file pkg:create-react-router v8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants