@react-native/dev-middleware
Advanced tools
Comparing version 0.77.0-nightly-20241018-398512a4e to 0.77.0-nightly-20241019-f3e37e29e
@@ -21,5 +21,6 @@ /** | ||
* In the proxy, this disables legacy page reload emulation and the | ||
* additional '(Experimental)' target in `/json/list`. | ||
* additional 'React Native Experimental' target in `/json/list`. | ||
* | ||
* In the launch flow, this allows targets to be matched directly by `appId`. | ||
* In the launch flow, this allows targets to be matched directly by | ||
* `logicalDeviceId`. | ||
*/ | ||
@@ -26,0 +27,0 @@ nativePageReloads?: boolean; |
@@ -29,4 +29,4 @@ /** | ||
* | ||
* Currently supports Hermes targets, opening debugger websocket URL in Chrome | ||
* DevTools. | ||
* Currently supports React Native DevTools (rn_fusebox.html) and legacy Hermes | ||
* (rn_inspector.html) targets. | ||
* | ||
@@ -33,0 +33,0 @@ * @see https://chromedevtools.github.io/devtools-protocol/ |
@@ -14,2 +14,4 @@ "use strict"; | ||
} | ||
const LEGACY_SYNTHETIC_PAGE_TITLE = | ||
"React Native Experimental (Improved Chrome Reloads)"; | ||
function openDebuggerMiddleware({ | ||
@@ -34,4 +36,3 @@ serverBaseUrl, | ||
(app) => | ||
app.title === | ||
"React Native Experimental (Improved Chrome Reloads)" || | ||
app.title === LEGACY_SYNTHETIC_PAGE_TITLE || | ||
app.reactNative.capabilities?.nativePageReloads === true | ||
@@ -53,3 +54,5 @@ ); | ||
(targetId == null || _target.id === targetId) && | ||
(appId == null || _target.appId === appId) && | ||
(appId == null || | ||
(_target.appId === appId && | ||
_target.title === LEGACY_SYNTHETIC_PAGE_TITLE)) && | ||
(device == null || _target.reactNative.logicalDeviceId === device) | ||
@@ -56,0 +59,0 @@ ); |
{ | ||
"name": "@react-native/dev-middleware", | ||
"version": "0.77.0-nightly-20241018-398512a4e", | ||
"version": "0.77.0-nightly-20241019-f3e37e29e", | ||
"description": "Dev server middleware for React Native", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"@isaacs/ttlcache": "^1.4.1", | ||
"@react-native/debugger-frontend": "0.77.0-nightly-20241018-398512a4e", | ||
"@react-native/debugger-frontend": "0.77.0-nightly-20241019-f3e37e29e", | ||
"chrome-launcher": "^0.15.2", | ||
@@ -29,0 +29,0 @@ "chromium-edge-launcher": "^0.2.0", |
@@ -67,8 +67,12 @@ # @react-native/dev-middleware | ||
Open the JavaScript debugger for a given CDP target (direct Hermes debugging). | ||
Open the JavaScript debugger for a given CDP target. Must be provided with one of the following query params: | ||
- `device` — An ID unique to a combination of device and app, stable across installs. Implemented by `getInspectorDeviceId` on each native platform. | ||
- `target` — The target page ID as returned by `/json/list` for the current dev server session. | ||
- `appId` (deprecated, legacy only) — The application bundle identifier to match (non-unique across multiple connected devices). This param will only match legacy Hermes debugger targets. | ||
<details> | ||
<summary>Example</summary> | ||
curl -X POST 'http://localhost:8081/open-debugger?appId=com.meta.RNTester' | ||
curl -X POST 'http://localhost:8081/open-debugger?target=<targetId>' | ||
</details> | ||
@@ -75,0 +79,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98574
2258
94
+ Added@react-native/debugger-frontend@0.77.0-nightly-20241019-f3e37e29e(transitive)
+ Added@types/node@22.9.3(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@react-native/debugger-frontend@0.77.0-nightly-20241018-398512a4e(transitive)
- Removed@types/node@22.10.0(transitive)
- Removedundici-types@6.20.0(transitive)
Updated@react-native/debugger-frontend@0.77.0-nightly-20241019-f3e37e29e