Skip to content

Commit

Permalink
Remove old react-fetch, react-fs and react-pg libraries (#25577)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sebmarkbage authored Oct 27, 2022
1 parent 28a574e commit cf3932b
Show file tree
Hide file tree
Showing 34 changed files with 1 addition and 1,441 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ module.exports = {
'packages/react-dom/src/test-utils/**/*.js',
'packages/react-devtools-shared/**/*.js',
'packages/react-noop-renderer/**/*.js',
'packages/react-pg/**/*.js',
'packages/react-fs/**/*.js',
'packages/react-refresh/**/*.js',
'packages/react-server-dom-webpack/**/*.js',
'packages/react-test-renderer/**/*.js',
Expand Down
2 changes: 1 addition & 1 deletion ReactVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const stablePackages = {
// These packages do not exist in the @next or @latest channel, only
// @experimental. We don't use semver, just the commit sha, so this is just a
// list of package names instead of a map.
const experimentalPackages = ['react-fetch', 'react-fs', 'react-pg'];
const experimentalPackages = [];

module.exports = {
ReactVersion,
Expand Down
12 changes: 0 additions & 12 deletions packages/react-fetch/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions packages/react-fetch/index.browser.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/react-fetch/index.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/react-fetch/index.node.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-fetch/npm/index.browser.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react-fetch/npm/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-fetch/npm/index.node.js

This file was deleted.

24 changes: 0 additions & 24 deletions packages/react-fetch/package.json

This file was deleted.

169 changes: 0 additions & 169 deletions packages/react-fetch/src/ReactFetchBrowser.js

This file was deleted.

Loading

0 comments on commit cf3932b

Please sign in to comment.