refactor(create-react-router): use native Fetch#14929
refactor(create-react-router): use native Fetch#14929MichaelDeBoey wants to merge 1 commit intoupdate-Node-versionfrom
Conversation
|
There was a problem hiding this comment.
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-fetchandproxy-agentdependencies fromcreate-react-router. - Updated template download logic to use the global
fetchwithout passing anagent.
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.
efae0a4 to
7659fc0
Compare
5bf2592 to
48981f2
Compare
48981f2 to
3a402ec
Compare
Resubmission of #14140