-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create dev-middleware package #38194
Conversation
This pull request was exported from Phabricator. Differential Revision: D46283818 |
Base commit: e075a3f |
Summary: Pull Request resolved: facebook#38194 ## Context RFC: Decoupling Flipper from React Native core: react-native-community/discussions-and-proposals#641 ## Changes Inits the `react-native/dev-middleware` package. Contains an initial implementation of `/open-debugger`, migrated from react-native-community/cli@2535dbe. ## Attribution This implementation is greatly inspired by `expo/dev-server`: https://github.com/expo/expo/blob/1120c716f35cb28d88800e8f5d963d2b2ac94705/packages/%40expo/dev-server/src/JsInspector.ts#L18 Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D46283818 fbshipit-source-id: 84cd5a958e32d7c20fd3aef56eaa01547e4ae192
This pull request was exported from Phabricator. Differential Revision: D46283818 |
Summary: Pull Request resolved: facebook#38194 ## Context RFC: Decoupling Flipper from React Native core: react-native-community/discussions-and-proposals#641 ## Changes Inits the `react-native/dev-middleware` package. Contains an initial implementation of `/open-debugger`, migrated from react-native-community/cli@2535dbe. ## Attribution This implementation is greatly inspired by `expo/dev-server`: https://github.com/expo/expo/blob/1120c716f35cb28d88800e8f5d963d2b2ac94705/packages/%40expo/dev-server/src/JsInspector.ts#L18 Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D46283818 fbshipit-source-id: 5a6c27082387b5c3ffc0962ebecc6f57ed24b9ed
This pull request was exported from Phabricator. Differential Revision: D46283818 |
Summary: Pull Request resolved: facebook#38194 ## Context RFC: Decoupling Flipper from React Native core: react-native-community/discussions-and-proposals#641 ## Changes Inits the `react-native/dev-middleware` package. Contains an initial implementation of `/open-debugger`, migrated from react-native-community/cli@2535dbe. ## Attribution This implementation is greatly inspired by `expo/dev-server`: https://github.com/expo/expo/blob/1120c716f35cb28d88800e8f5d963d2b2ac94705/packages/%40expo/dev-server/src/JsInspector.ts#L18 Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D46283818 fbshipit-source-id: 4eb8e3e09d0ce05418c98526d5d136e6aad0143e
This pull request was exported from Phabricator. Differential Revision: D46283818 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D46283818 |
Summary: Pull Request resolved: facebook#38194 ## Context RFC: Decoupling Flipper from React Native core: react-native-community/discussions-and-proposals#641 ## Changes Inits the `react-native/dev-middleware` package. Contains an initial implementation of `/open-debugger`, migrated from react-native-community/cli@2535dbe. ## Attribution This implementation is greatly inspired by `expo/dev-server`: https://github.com/expo/expo/blob/1120c716f35cb28d88800e8f5d963d2b2ac94705/packages/%40expo/dev-server/src/JsInspector.ts#L18 Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D46283818 fbshipit-source-id: c113a773e5f28cfa1723db5a9c51ea4f47fa91bb
Summary: Pull Request resolved: facebook#38194 ## Context RFC: Decoupling Flipper from React Native core: react-native-community/discussions-and-proposals#641 ## Changes Inits the `react-native/dev-middleware` package. Contains an initial implementation of `/open-debugger`, migrated from react-native-community/cli@2535dbe. ## Attribution This implementation is greatly inspired by `expo/dev-server`: https://github.com/expo/expo/blob/1120c716f35cb28d88800e8f5d963d2b2ac94705/packages/%40expo/dev-server/src/JsInspector.ts#L18 Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D46283818 fbshipit-source-id: 298ea6cba663b3946c785e2c2220c809cf554978
This pull request was exported from Phabricator. Differential Revision: D46283818 |
Summary: X-link: facebook/react-native#38194 ## Context RFC: Decoupling Flipper from React Native core: react-native-community/discussions-and-proposals#641 ## Changes Inits the `react-native/dev-middleware` package. Contains an initial implementation of `/open-debugger`, migrated from react-native-community/cli@2535dbe. ## Attribution This implementation is greatly inspired by `expo/dev-server`: https://github.com/expo/expo/blob/1120c716f35cb28d88800e8f5d963d2b2ac94705/packages/%40expo/dev-server/src/JsInspector.ts#L18 Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D46283818 fbshipit-source-id: 7b38ad2f6d7346366a7c599d16e289e04b7bd88d
This pull request was successfully merged by @huntie in a991ff3. When will my fix make it into a release? | Upcoming Releases |
This pull request has been merged in a991ff3. |
Summary:
Context
RFC: Decoupling Flipper from React Native core: react-native-community/discussions-and-proposals#641
Changes
Inits the
@react-native/dev-middleware
package. Contains an initial implementation of/open-debugger
, migrated from react-native-community/cli@2535dbe.Motivation + Design
@react-native/dev-middleware
is a focused new package to support new HTTP endpoints on React Native dev servers (e.g. RN CLI), initially to implement two planned new endpoints to support debugging actions in the Dev Menu for the One-click Hermes debugger flow.Logically, this package can be seen as a subset of
@react-native-community/cli-server-api
— which we are gradually reintegrating into thereact-native
repo. It implements debugging actions in the Dev Menu, and interfaces asconnect
middleware, which is plugged in to Metro's server under the hood.Notes
build
step (targeting Node.js).chrome-launcher
only.Attribution
This implementation is greatly inspired by
@expo/dev-server
: https://github.com/expo/expo/blob/1120c716f35cb28d88800e8f5d963d2b2ac94705/packages/%40expo/dev-server/src/JsInspector.ts#L18Changelog: [Internal]
Reviewed By: motiz88
Differential Revision: D46283818