Skip to content

Drop legacy cli-server-api reference in dev server (#57653) - #57653

Closed
huntie wants to merge 3 commits into
react:mainfrom
huntie:export-D113412986
Closed

Drop legacy cli-server-api reference in dev server (#57653)#57653
huntie wants to merge 3 commits into
react:mainfrom
huntie:export-D113412986

Conversation

@huntie

@huntiehuntie commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary:

Actions TODO comment dependant on react-native-community/cli#2605 (landed).

This drops our local dependency on react-native-community/cli-server-api Flow types, as well as avoiding this transient dependency in end user projects.

Other changes

  • Promote debug log to a user-facing warn — several features in RN will break/degrade in this case and we want to flag explicitly.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D113412986

@meta-clameta-claBot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 23, 2026
@meta-codesync

Copy link
Copy Markdown

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D113412986.

huntie added a commit to huntie/react-native that referenced this pull request Jul 23, 2026
Summary:
Pull Request resolved: react#57653
Actions TODO comment dependant on react-native-community/cli#2605 (landed).
This drops our local dependency on `react-native-community/cli-server-api` Flow types, as well as avoiding this transient dependency in end user projects.
**Other changes**
- Promote `debug` log to a user-facing `warn` — several features in RN will break/degrade in this case and we want to flag explicitly.
Changelog: [Internal]
Differential Revision: D113412986
@huntie
huntieforce-pushed the export-D113412986 branch from ce43ec1 to 2211935CompareJuly 23, 2026 16:49
@meta-codesyncmeta-codesyncBot changed the title Drop legacy cli-server-api reference in dev serverDrop legacy cli-server-api reference in dev server (#57653)Jul 23, 2026
huntie added a commit to huntie/react-native that referenced this pull request Jul 23, 2026
Summary:
Pull Request resolved: react#57653
Actions TODO comment dependant on react-native-community/cli#2605 (landed).
This drops our local dependency on `react-native-community/cli-server-api` Flow types, as well as avoiding this transient dependency in end user projects.
**Other changes**
- Promote `debug` log to a user-facing `warn` — several features in RN will break/degrade in this case and we want to flag explicitly.
Changelog: [Internal]
Differential Revision: D113412986
@huntie
huntieforce-pushed the export-D113412986 branch 2 times, most recently from 1d3240d to 3f2a6f2CompareJuly 24, 2026 09:01
huntie added a commit to huntie/react-native that referenced this pull request Jul 24, 2026
Summary:
Pull Request resolved: react#57653
Actions TODO comment dependant on react-native-community/cli#2605 (landed).
This drops our local dependency on `react-native-community/cli-server-api` Flow types, as well as avoiding this transient dependency in end user projects.
**Other changes**
- Promote `debug` log to a user-facing `warn` — several features in RN will break/degrade in this case and we want to flag explicitly.
Changelog: [Internal]
Differential Revision: D113412986
huntie added a commit to huntie/react-native that referenced this pull request Jul 24, 2026
Summary:
Pull Request resolved: react#57653
Actions TODO comment dependant on react-native-community/cli#2605 (landed).
This drops our local dependency on `react-native-community/cli-server-api` Flow types, as well as avoiding this transient dependency in end user projects.
**Other changes**
- Promote `debug` log to a user-facing `warn` — several features in RN will break/degrade in this case and we want to flag explicitly.
Changelog: [Internal]
Differential Revision: D113412986
@huntie
huntieforce-pushed the export-D113412986 branch from 3f2a6f2 to beb876bCompareJuly 24, 2026 09:05

@cortinicocortinico 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.

Review automatically exported from Phabricator review in Meta.

huntie added a commit to huntie/react-native that referenced this pull request Jul 24, 2026
Summary:
Pull Request resolved: react#57653
Actions TODO comment dependant on react-native-community/cli#2605 (landed).
This drops our local dependency on `react-native-community/cli-server-api` Flow types, as well as avoiding this transient dependency in end user projects.
**Other changes**
- Promote `debug` log to a user-facing `warn` — several features in RN will break/degrade in this case and we want to flag explicitly.
Changelog: [Internal]
Reviewed By: cortinico
Differential Revision: D113412986
@huntie
huntieforce-pushed the export-D113412986 branch from beb876b to 6f36c0eCompareJuly 24, 2026 14:32
huntie added 3 commits July 25, 2026 04:40
Summary:
Migrate the `codegen` and `spm` command implementations out of `react-native.config.js` and into the `react-native/community-cli-plugin` package, alongside the existing `bundleCommand` and `startCommand`.
This continues moving command definitions into the plugin so `react-native.config.js` becomes a thin routing layer, as the file's own comment already calls for.
**Changes**
- Add `src/commands/spm/index.js` and `src/commands/codegen/index.js`, each defining and default-exporting its command (unchanged `name`, `description`, and `options`) plus an exported args type — mirroring the `bundle`/`start` command structure.
- Export `spmCommand` and `codegenCommand` from `src/index.flow.js`.
- Drop the inline `spmCommand` and `codegenCommand` definitions from `react-native.config.js`.
Changelog: [Internal]
Differential Revision: D113412987
Summary:
Reorganise these modules under a `src/dev-server/` directory, more clearly identifying this unit of the codebase.
No public API change: the package still exports `startCommand` unchanged.
Renames inside this directory:
- `middleware.js` → `loadCommunityMiddleware.js`
- `runServer.js` → `runDevServer.js`
Changelog: [Internal]
Differential Revision: D113412985
Summary:
Pull Request resolved: react#57653
Actions TODO comment dependant on react-native-community/cli#2605 (landed).
This drops our local dependency on `react-native-community/cli-server-api` Flow types, as well as avoiding this transient dependency in end user projects.
**Other changes**
- Promote `debug` log to a user-facing `warn` — several features in RN will break/degrade in this case and we want to flag explicitly.
Changelog: [Internal]
Reviewed By: cortinico
Differential Revision: D113412986
@meta-codesync

Copy link
Copy Markdown

This pull request has been merged in 14c3bd8.

@meta-codesyncmeta-codesyncBot added the Merged This PR has been merged. label Jul 25, 2026
@huntie
huntie deleted the export-D113412986 branch July 25, 2026 17:55
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.meta-exportedp: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@huntie@cortinico