Skip to content

breaking: Remove cli-server-api package - #2879

Draft
huntie wants to merge 1 commit into
pr2877from
pr2878
Draft

huntie wants to merge 1 commit into
pr2877from
pr2878

Conversation

@huntie

@huntie huntie commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Context

Migration of the remaining core dev server endpoints from @react-native-community/cli-server-api into core (community-cli-plugin).

See https://github.com/react/react-native/stack/59664.

This diff

Clean up intended to pair with react/react-native#59665, which stops start loading createDevServerMiddleware. Must land in the same React Native version, and is breaking on the CLI side.

Remove @react-native-community/cli-server-api, and the createDevServerMiddleware export from @react-native-community/cli. After the previous diffs, it holds only routes that nothing current depends on:

Piece What it does Why it goes
Index page Answers GET / with a static "React Native" HTML page Nothing depends on it
/systrace Writes a posted trace to /tmp/dump_*.json Old Systrace profiling; it answers 500 on every request, since nothing sets req.rawBody
errorhandler Formats errors from the routes above Goes with them
serveStatic per watch folder Serves any file under the project except dotfiles, such as /package.json or /Gemfile Metro serves the sources and assets that apps and DevTools load, and @react-native/dev-middleware serves the DevTools frontend
  • Deprecate cli-server-api on npm once this ships.

Test Plan

yarn build
yarn lint
yarn jest packages/cli

✅ Clean, and 298 tests pass; the one lint warning is in a file this change does not touch.

End to end with react/react-native#59665, start run from this CLI build: see that PR's test plan, which compares every removed route before and after on RNTester and checks that the routes core serves still answer.

Checklist

  • Documentation is up to date.
  • Follows commit message convention described in CONTRIBUTING.md.
  • For functional changes, my test plan has linked these CLI changes into a local react-native checkout (instructions).

@huntie
huntie changed the base branch from main to pr2877 October 30, 2026 11:31
@github-actions github-actions Bot added the docs Documentation change label Oct 30, 2026
@huntie huntie changed the title breaking: Remove cli-server-api package [RFC] breaking: Remove cli-server-api package Oct 30, 2026
@huntie
huntie added this pull request to stack #2878 October 30, 2026 11:32
@huntie huntie changed the title [RFC] breaking: Remove cli-server-api package breaking: Remove cli-server-api package Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant