Skip to content

refactor(community-cli-plugin): use node builtin fetch - #47397

Closed
jbroma wants to merge 1 commit into
react:mainfrom
jbroma:refactor/use-builtin-fetch-in-community-cli-plugin
Closed

refactor(community-cli-plugin): use node builtin fetch #47397
jbroma wants to merge 1 commit into
react:mainfrom
jbroma:refactor/use-builtin-fetch-in-community-cli-plugin

Conversation

@jbroma

Copy link
Copy Markdown
Contributor

Summary:

Removed node-fetch in favour of node builtin fetch to get rid of the deprecated punycode warning when using Node 22.

@react-native/community-cli-plugin already requires Node >= 18 where it was made available by default (without --experimental-fetch flag).

This change is similar to the one made in #45227

Changelog:

[GENERAL] [CHANGED] - Drop node-fetch in favor of Node's built-in fetch from undici in @react-native/community-cli-plugin

Test Plan:

tests pass

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Callstack Partner: Callstack Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Nov 4, 2024

@thymikeethymikee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍. Any way we can help advance this?

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Nov 27, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@NickGerleman merged this pull request in 881d8a7.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @jbroma in 881d8a7

When will my fix make it into a release? | How to file a pick request?

robhogan pushed a commit that referenced this pull request Dec 2, 2024
Summary:
Removed `node-fetch` in favour of node builtin fetch to get rid of the deprecated `punycode` warning when using Node 22.
`react-native/community-cli-plugin` already requires Node >= 18 where it was made available by default (without `--experimental-fetch` flag).
This change is similar to the one made in #45227
## Changelog:
[GENERAL] [CHANGED] - Drop node-fetch in favor of Node's built-in fetch from undici in `react-native/community-cli-plugin`
Pull Request resolved: #47397
Test Plan: tests pass
Reviewed By: blakef
Differential Revision: D66512595
Pulled By: NickGerleman
fbshipit-source-id: c4e01baf388f9fae8cea7b4bfe25034bff28b461
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @jbroma in 184da89

When will my fix make it into a release? | How to file a pick request?

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.p: CallstackPartner: CallstackPartnerShared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jbroma@facebook-github-bot@react-native-bot@thymikee