SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

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

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 https://github.com/facebook/react-native/pull/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: https://github.com/facebook/react-native/pull/47397

Test Plan: tests pass

Reviewed By: blakef

Differential Revision: D66512595

Pulled By: NickGerleman

fbshipit-source-id: c4e01baf388f9fae8cea7b4bfe25034bff28b461
J
Jakub Romanczyk committed
881d8a720fb24241d7b2127273ca6116833bf176
Parent: 1d909ef
Committed by Facebook GitHub Bot <[email protected]> on 11/27/2024, 6:39:39 PM