Skip to content

Commit cf3932b

Browse files
authored
Remove old react-fetch, react-fs and react-pg libraries (#25577)
To avoid confusion. We are patching `fetch`, and only `fetch`, for a small fix scoped to react renders elsewhere, but this code is not it. This code was for the strategy used in the original [React Server Components demo](https://github.com/reactjs/server-components-demo). Which [we announced](https://reactjs.org/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.html) that we're moving away from in favor of [First class support for promises and async/await](reactjs/rfcs#229). We might explore using these package for other instrumentation in the future but not now and not like this.
1 parent 28a574e commit cf3932b

34 files changed

+1
-1441
lines changed

.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ module.exports = {
140140
'packages/react-dom/src/test-utils/**/*.js',
141141
'packages/react-devtools-shared/**/*.js',
142142
'packages/react-noop-renderer/**/*.js',
143-
'packages/react-pg/**/*.js',
144-
'packages/react-fs/**/*.js',
145143
'packages/react-refresh/**/*.js',
146144
'packages/react-server-dom-webpack/**/*.js',
147145
'packages/react-test-renderer/**/*.js',

ReactVersions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const stablePackages = {
4343
// These packages do not exist in the @next or @latest channel, only
4444
// @experimental. We don't use semver, just the commit sha, so this is just a
4545
// list of package names instead of a map.
46-
const experimentalPackages = ['react-fetch', 'react-fs', 'react-pg'];
46+
const experimentalPackages = [];
4747

4848
module.exports = {
4949
ReactVersion,

packages/react-fetch/README.md

-12
This file was deleted.

packages/react-fetch/index.browser.js

-12
This file was deleted.

packages/react-fetch/index.js

-12
This file was deleted.

packages/react-fetch/index.node.js

-12
This file was deleted.

packages/react-fetch/npm/index.browser.js

-7
This file was deleted.

packages/react-fetch/npm/index.js

-3
This file was deleted.

packages/react-fetch/npm/index.node.js

-7
This file was deleted.

packages/react-fetch/package.json

-24
This file was deleted.

packages/react-fetch/src/ReactFetchBrowser.js

-169
This file was deleted.

0 commit comments

Comments
 (0)