@react-native/dev-middleware 0.85.0-nightly-20260223-352d73bef → 0.85.0-nightly-20260224-42cd0f041
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/inspector-proxy/Device.js +0 -18
- package/dist/inspector-proxy/DeviceEventReporter.d.ts +0 -2
- package/dist/inspector-proxy/DeviceEventReporter.js +0 -5
- package/dist/inspector-proxy/DeviceEventReporter.js.flow +0 -2
- package/dist/inspector-proxy/InspectorProxy.js +0 -1
- package/dist/inspector-proxy/__docs__/README.md +0 -2
- package/dist/inspector-proxy/types.d.ts +0 -6
- package/dist/inspector-proxy/types.js.flow +0 -7
- package/dist/middleware/openDebuggerMiddleware.d.ts +0 -3
- package/dist/middleware/openDebuggerMiddleware.js +1 -7
- package/dist/middleware/openDebuggerMiddleware.js.flow +0 -3
- package/dist/types/EventReporter.d.ts +23 -25
- package/dist/types/EventReporter.js.flow +0 -3
- package/dist/types/Experiments.d.ts +1 -1
- package/dist/types/Experiments.js.flow +1 -1
- package/dist/utils/getDevToolsFrontendUrl.d.ts +0 -2
- package/dist/utils/getDevToolsFrontendUrl.js +1 -4
- package/dist/utils/getDevToolsFrontendUrl.js.flow +0 -2
- package/package.json +4 -4
|
@@ -293,9 +293,6 @@ class Device {
|
|
|
293
293
|
this.#deviceEventReporter?.logRequest(debuggerRequest, "debugger", {
|
|
294
294
|
pageId: debuggerInfo.pageId,
|
|
295
295
|
frontendUserAgent: userAgent,
|
|
296
|
-
prefersFuseboxFrontend: this.#isPageFuseboxFrontend(
|
|
297
|
-
debuggerInfo.pageId,
|
|
298
|
-
),
|
|
299
296
|
});
|
|
300
297
|
let processedReq = debuggerRequest;
|
|
301
298
|
if (
|
|
@@ -482,7 +479,6 @@ class Device {
|
|
|
482
479
|
this.#deviceEventReporter?.logResponse(parsedPayload, "device", {
|
|
483
480
|
pageId,
|
|
484
481
|
frontendUserAgent: debuggerConnection.userAgent ?? null,
|
|
485
|
-
prefersFuseboxFrontend: this.#isPageFuseboxFrontend(pageId),
|
|
486
482
|
});
|
|
487
483
|
}
|
|
488
484
|
if (
|
|
@@ -547,7 +543,6 @@ class Device {
|
|
|
547
543
|
this.#deviceEventReporter?.logRequest(message, "proxy", {
|
|
548
544
|
pageId,
|
|
549
545
|
frontendUserAgent: reloadablePageDebugger.userAgent ?? null,
|
|
550
|
-
prefersFuseboxFrontend: this.#isPageFuseboxFrontend(pageId),
|
|
551
546
|
});
|
|
552
547
|
this.#sendMessageToDevice({
|
|
553
548
|
event: "wrappedEvent",
|
|
@@ -649,9 +644,6 @@ class Device {
|
|
|
649
644
|
this.#deviceEventReporter?.logRequest(resumeMessage, "proxy", {
|
|
650
645
|
pageId: debuggerInfo.pageId,
|
|
651
646
|
frontendUserAgent: debuggerInfo.userAgent ?? null,
|
|
652
|
-
prefersFuseboxFrontend: this.#isPageFuseboxFrontend(
|
|
653
|
-
debuggerInfo.pageId,
|
|
654
|
-
),
|
|
655
647
|
});
|
|
656
648
|
this.#sendMessageToDevice({
|
|
657
649
|
event: "wrappedEvent",
|
|
@@ -701,7 +693,6 @@ class Device {
|
|
|
701
693
|
this.#deviceEventReporter?.logResponse(response, "proxy", {
|
|
702
694
|
pageId,
|
|
703
695
|
frontendUserAgent: debuggerInfo.userAgent ?? null,
|
|
704
|
-
prefersFuseboxFrontend: this.#isPageFuseboxFrontend(pageId),
|
|
705
696
|
});
|
|
706
697
|
return null;
|
|
707
698
|
default:
|
|
@@ -758,7 +749,6 @@ class Device {
|
|
|
758
749
|
this.#deviceEventReporter?.logResponse(response, "proxy", {
|
|
759
750
|
pageId,
|
|
760
751
|
frontendUserAgent: debuggerInfo.userAgent ?? null,
|
|
761
|
-
prefersFuseboxFrontend: this.#isPageFuseboxFrontend(pageId),
|
|
762
752
|
});
|
|
763
753
|
};
|
|
764
754
|
const sendErrorResponse = (error) => {
|
|
@@ -776,7 +766,6 @@ class Device {
|
|
|
776
766
|
this.#deviceEventReporter?.logResponse(response, "proxy", {
|
|
777
767
|
pageId,
|
|
778
768
|
frontendUserAgent: debuggerInfo.userAgent ?? null,
|
|
779
|
-
prefersFuseboxFrontend: this.#isPageFuseboxFrontend(pageId),
|
|
780
769
|
});
|
|
781
770
|
};
|
|
782
771
|
const pathToSource = this.#scriptIdToSourcePathMapping.get(
|
|
@@ -850,13 +839,6 @@ class Device {
|
|
|
850
839
|
);
|
|
851
840
|
}
|
|
852
841
|
}
|
|
853
|
-
#isPageFuseboxFrontend(pageId) {
|
|
854
|
-
const page = pageId == null ? null : this.#pages.get(pageId);
|
|
855
|
-
if (page == null) {
|
|
856
|
-
return null;
|
|
857
|
-
}
|
|
858
|
-
return this.#pageHasCapability(page, "prefersFuseboxFrontend");
|
|
859
|
-
}
|
|
860
842
|
dangerouslyGetSocket() {
|
|
861
843
|
return this.#deviceSocket;
|
|
862
844
|
}
|
|
@@ -19,12 +19,10 @@ type DeviceMetadata = Readonly<{
|
|
|
19
19
|
type RequestMetadata = Readonly<{
|
|
20
20
|
pageId: string | null;
|
|
21
21
|
frontendUserAgent: string | null;
|
|
22
|
-
prefersFuseboxFrontend: boolean | null;
|
|
23
22
|
}>;
|
|
24
23
|
type ResponseMetadata = Readonly<{
|
|
25
24
|
pageId: string | null;
|
|
26
25
|
frontendUserAgent: string | null;
|
|
27
|
-
prefersFuseboxFrontend: boolean | null;
|
|
28
26
|
}>;
|
|
29
27
|
declare class DeviceEventReporter {
|
|
30
28
|
constructor(eventReporter: EventReporter, metadata: DeviceMetadata);
|
|
@@ -51,7 +51,6 @@ class DeviceEventReporter {
|
|
|
51
51
|
deviceName: this.#metadata.deviceName,
|
|
52
52
|
pageId: metadata.pageId,
|
|
53
53
|
frontendUserAgent: metadata.frontendUserAgent,
|
|
54
|
-
prefersFuseboxFrontend: metadata.prefersFuseboxFrontend,
|
|
55
54
|
connectionUptime: this.#deviceConnectedTimestamp - Date.now(),
|
|
56
55
|
});
|
|
57
56
|
return;
|
|
@@ -78,7 +77,6 @@ class DeviceEventReporter {
|
|
|
78
77
|
deviceName: this.#metadata.deviceName,
|
|
79
78
|
pageId: pendingCommand.metadata.pageId,
|
|
80
79
|
frontendUserAgent: pendingCommand.metadata.frontendUserAgent,
|
|
81
|
-
prefersFuseboxFrontend: metadata.prefersFuseboxFrontend,
|
|
82
80
|
connectionUptime: this.#deviceConnectedTimestamp - Date.now(),
|
|
83
81
|
});
|
|
84
82
|
return;
|
|
@@ -96,7 +94,6 @@ class DeviceEventReporter {
|
|
|
96
94
|
deviceName: this.#metadata.deviceName,
|
|
97
95
|
pageId: pendingCommand.metadata.pageId,
|
|
98
96
|
frontendUserAgent: pendingCommand.metadata.frontendUserAgent,
|
|
99
|
-
prefersFuseboxFrontend: metadata.prefersFuseboxFrontend,
|
|
100
97
|
connectionUptime: this.#deviceConnectedTimestamp - Date.now(),
|
|
101
98
|
});
|
|
102
99
|
}
|
|
@@ -145,7 +142,6 @@ class DeviceEventReporter {
|
|
|
145
142
|
deviceName: this.#metadata.deviceName,
|
|
146
143
|
pageId: pendingCommand.metadata.pageId,
|
|
147
144
|
frontendUserAgent: pendingCommand.metadata.frontendUserAgent,
|
|
148
|
-
prefersFuseboxFrontend: pendingCommand.metadata.prefersFuseboxFrontend,
|
|
149
145
|
connectionUptime: this.#deviceConnectedTimestamp - Date.now(),
|
|
150
146
|
});
|
|
151
147
|
}
|
|
@@ -181,7 +177,6 @@ class DeviceEventReporter {
|
|
|
181
177
|
deviceName: this.#metadata.deviceName,
|
|
182
178
|
pageId: pendingCommand.metadata.pageId,
|
|
183
179
|
frontendUserAgent: pendingCommand.metadata.frontendUserAgent,
|
|
184
|
-
prefersFuseboxFrontend: pendingCommand.metadata.prefersFuseboxFrontend,
|
|
185
180
|
connectionUptime: this.#deviceConnectedTimestamp - Date.now(),
|
|
186
181
|
});
|
|
187
182
|
}
|
|
@@ -21,13 +21,11 @@ type DeviceMetadata = Readonly<{
|
|
|
21
21
|
type RequestMetadata = Readonly<{
|
|
22
22
|
pageId: string | null,
|
|
23
23
|
frontendUserAgent: string | null,
|
|
24
|
-
prefersFuseboxFrontend: boolean | null,
|
|
25
24
|
}>;
|
|
26
25
|
|
|
27
26
|
type ResponseMetadata = Readonly<{
|
|
28
27
|
pageId: string | null,
|
|
29
28
|
frontendUserAgent: string | null,
|
|
30
|
-
prefersFuseboxFrontend: boolean | null,
|
|
31
29
|
}>;
|
|
32
30
|
|
|
33
31
|
declare class DeviceEventReporter {
|
|
@@ -127,7 +127,6 @@ interface Page {
|
|
|
127
127
|
capabilities?: {
|
|
128
128
|
nativePageReloads?: boolean; // Target keeps the socket open across reloads
|
|
129
129
|
nativeSourceCodeFetching?: boolean; // Target supports Network.loadNetworkResource
|
|
130
|
-
prefersFuseboxFrontend?: boolean; // Target is designed for React Native DevTools
|
|
131
130
|
supportsMultipleDebuggers?: boolean; // Supports concurrent debugger sessions
|
|
132
131
|
};
|
|
133
132
|
}
|
|
@@ -248,7 +247,6 @@ interface PageDescription {
|
|
|
248
247
|
logicalDeviceId: string; // Used for target matching
|
|
249
248
|
capabilities: {
|
|
250
249
|
nativePageReloads?: boolean; // Used for target filtering
|
|
251
|
-
prefersFuseboxFrontend?: boolean; // Used for frontend selection
|
|
252
250
|
};
|
|
253
251
|
};
|
|
254
252
|
}
|
|
@@ -29,12 +29,6 @@ export type TargetCapabilityFlags = Readonly<{
|
|
|
29
29
|
* In the proxy, this disables source fetching emulation and host rewrites.
|
|
30
30
|
*/
|
|
31
31
|
nativeSourceCodeFetching?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* The target supports the modern `rn_fusebox.html` entry point.
|
|
34
|
-
*
|
|
35
|
-
* In the launch flow, this controls the Chrome DevTools entrypoint that is used.
|
|
36
|
-
*/
|
|
37
|
-
prefersFuseboxFrontend?: boolean;
|
|
38
32
|
/**
|
|
39
33
|
* The target supports multiple concurrent debugger connections.
|
|
40
34
|
*
|
|
@@ -31,13 +31,6 @@ export type TargetCapabilityFlags = Readonly<{
|
|
|
31
31
|
*/
|
|
32
32
|
nativeSourceCodeFetching?: boolean,
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* The target supports the modern `rn_fusebox.html` entry point.
|
|
36
|
-
*
|
|
37
|
-
* In the launch flow, this controls the Chrome DevTools entrypoint that is used.
|
|
38
|
-
*/
|
|
39
|
-
prefersFuseboxFrontend?: boolean,
|
|
40
|
-
|
|
41
34
|
/**
|
|
42
35
|
* The target supports multiple concurrent debugger connections.
|
|
43
36
|
*
|
|
@@ -26,9 +26,6 @@ type Options = Readonly<{
|
|
|
26
26
|
/**
|
|
27
27
|
* Open the debugger frontend for a given CDP target.
|
|
28
28
|
*
|
|
29
|
-
* Currently supports React Native DevTools (rn_fusebox.html) and legacy Hermes
|
|
30
|
-
* (rn_inspector.html) targets.
|
|
31
|
-
*
|
|
32
29
|
* @see https://chromedevtools.github.io/devtools-protocol/
|
|
33
30
|
*/
|
|
34
31
|
declare function openDebuggerMiddleware(
|
|
@@ -102,8 +102,6 @@ function openDebuggerMiddleware({
|
|
|
102
102
|
});
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
|
-
const useFuseboxEntryPoint =
|
|
106
|
-
target.reactNative.capabilities?.prefersFuseboxFrontend ?? false;
|
|
107
105
|
try {
|
|
108
106
|
switch (launchType) {
|
|
109
107
|
case "launch": {
|
|
@@ -115,12 +113,11 @@ function openDebuggerMiddleware({
|
|
|
115
113
|
launchId: query.launchId,
|
|
116
114
|
telemetryInfo: query.telemetryInfo,
|
|
117
115
|
appId: target.appId,
|
|
118
|
-
useFuseboxEntryPoint,
|
|
119
116
|
panel: query.panel,
|
|
120
117
|
},
|
|
121
118
|
);
|
|
122
119
|
let shouldUseStandaloneFuseboxShell =
|
|
123
|
-
|
|
120
|
+
experiments.enableStandaloneFuseboxShell;
|
|
124
121
|
if (shouldUseStandaloneFuseboxShell) {
|
|
125
122
|
const shellPreparationResult = await shellPreparationPromise;
|
|
126
123
|
switch (shellPreparationResult.code) {
|
|
@@ -174,7 +171,6 @@ function openDebuggerMiddleware({
|
|
|
174
171
|
launchId: query.launchId,
|
|
175
172
|
telemetryInfo: query.telemetryInfo,
|
|
176
173
|
appId: target.appId,
|
|
177
|
-
useFuseboxEntryPoint,
|
|
178
174
|
},
|
|
179
175
|
),
|
|
180
176
|
});
|
|
@@ -191,7 +187,6 @@ function openDebuggerMiddleware({
|
|
|
191
187
|
pageId: target.id,
|
|
192
188
|
deviceName: target.deviceName,
|
|
193
189
|
targetDescription: target.description,
|
|
194
|
-
prefersFuseboxFrontend: useFuseboxEntryPoint,
|
|
195
190
|
});
|
|
196
191
|
return;
|
|
197
192
|
} catch (e) {
|
|
@@ -205,7 +200,6 @@ function openDebuggerMiddleware({
|
|
|
205
200
|
launchType,
|
|
206
201
|
status: "error",
|
|
207
202
|
error: e,
|
|
208
|
-
prefersFuseboxFrontend: useFuseboxEntryPoint,
|
|
209
203
|
});
|
|
210
204
|
return;
|
|
211
205
|
}
|
|
@@ -27,9 +27,6 @@ type Options = Readonly<{
|
|
|
27
27
|
/**
|
|
28
28
|
* Open the debugger frontend for a given CDP target.
|
|
29
29
|
*
|
|
30
|
-
* Currently supports React Native DevTools (rn_fusebox.html) and legacy Hermes
|
|
31
|
-
* (rn_inspector.html) targets.
|
|
32
|
-
*
|
|
33
30
|
* @see https://chromedevtools.github.io/devtools-protocol/
|
|
34
31
|
*/
|
|
35
32
|
declare export default function openDebuggerMiddleware(
|
|
@@ -17,7 +17,7 @@ type SuccessResult<Props extends {} | void = {}> =
|
|
|
17
17
|
any;
|
|
18
18
|
type ErrorResult<ErrorT = unknown, Props extends {} | void = {}> =
|
|
19
19
|
/**
|
|
20
|
-
* >
|
|
20
|
+
* > 21 | ...Props,
|
|
21
21
|
* | ^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
22
22
|
**/
|
|
23
23
|
any;
|
|
@@ -35,76 +35,74 @@ export type DebuggerSessionIDs = {
|
|
|
35
35
|
export type ConnectionUptime = { connectionUptime: number };
|
|
36
36
|
export type ReportableEvent =
|
|
37
37
|
| /**
|
|
38
|
-
* >
|
|
38
|
+
* > 45 | ...
|
|
39
39
|
* | ^^^
|
|
40
|
-
* >
|
|
40
|
+
* > 46 | | SuccessResult<{
|
|
41
41
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
42
|
-
* >
|
|
42
|
+
* > 47 | targetDescription: string,
|
|
43
43
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
44
|
-
* >
|
|
44
|
+
* > 48 | ...DebuggerSessionIDs,
|
|
45
45
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
46
|
-
* >
|
|
46
|
+
* > 49 | }>
|
|
47
47
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
48
|
-
* >
|
|
48
|
+
* > 50 | | ErrorResult<unknown>
|
|
49
49
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
50
|
-
* >
|
|
51
|
-
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
52
|
-
* > 53 | | CodedErrorResult<"NO_APPS_FOUND">,
|
|
50
|
+
* > 51 | | CodedErrorResult<"NO_APPS_FOUND">,
|
|
53
51
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
54
52
|
**/
|
|
55
53
|
any
|
|
56
54
|
| /**
|
|
57
|
-
* >
|
|
55
|
+
* > 55 | ...
|
|
58
56
|
* | ^^^
|
|
59
|
-
* >
|
|
57
|
+
* > 56 | | SuccessResult<{
|
|
60
58
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
61
|
-
* >
|
|
59
|
+
* > 57 | ...DebuggerSessionIDs,
|
|
62
60
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
63
|
-
* >
|
|
61
|
+
* > 58 | frontendUserAgent: string | null,
|
|
64
62
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
65
|
-
* >
|
|
63
|
+
* > 59 | }>
|
|
66
64
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
67
|
-
* >
|
|
65
|
+
* > 60 | | ErrorResult<unknown, DebuggerSessionIDs>,
|
|
68
66
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
69
67
|
**/
|
|
70
68
|
any
|
|
71
69
|
| /**
|
|
72
|
-
* >
|
|
70
|
+
* > 70 | ...DebuggerSessionIDs,
|
|
73
71
|
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
74
72
|
**/
|
|
75
73
|
any
|
|
76
74
|
| /**
|
|
77
|
-
* >
|
|
75
|
+
* > 86 | ...DebuggerSessionIDs,
|
|
78
76
|
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
79
77
|
**/
|
|
80
78
|
any
|
|
81
79
|
| /**
|
|
82
|
-
* >
|
|
80
|
+
* > 90 | ...DebuggerSessionIDs,
|
|
83
81
|
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
84
82
|
**/
|
|
85
83
|
any
|
|
86
84
|
| /**
|
|
87
|
-
* >
|
|
88
|
-
*
|
|
85
|
+
* > 99 | ...ConnectionUptime,
|
|
86
|
+
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
89
87
|
**/
|
|
90
88
|
any
|
|
91
89
|
| /**
|
|
92
|
-
* >
|
|
90
|
+
* > 106 | ...ConnectionUptime,
|
|
93
91
|
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
94
92
|
**/
|
|
95
93
|
any
|
|
96
94
|
| /**
|
|
97
|
-
* >
|
|
95
|
+
* > 113 | ...ConnectionUptime,
|
|
98
96
|
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
99
97
|
**/
|
|
100
98
|
any
|
|
101
99
|
| /**
|
|
102
|
-
* >
|
|
100
|
+
* > 121 | ...ConnectionUptime,
|
|
103
101
|
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
104
102
|
**/
|
|
105
103
|
any
|
|
106
104
|
| /**
|
|
107
|
-
* >
|
|
105
|
+
* > 129 | ...ConnectionUptime,
|
|
108
106
|
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
109
107
|
**/
|
|
110
108
|
any
|
|
@@ -18,7 +18,6 @@ type SuccessResult<Props: { ... } | void = {}> = {
|
|
|
18
18
|
type ErrorResult<ErrorT = unknown, Props: { ... } | void = {}> = {
|
|
19
19
|
status: "error",
|
|
20
20
|
error: ErrorT,
|
|
21
|
-
prefersFuseboxFrontend?: ?boolean,
|
|
22
21
|
...Props,
|
|
23
22
|
};
|
|
24
23
|
|
|
@@ -46,7 +45,6 @@ export type ReportableEvent =
|
|
|
46
45
|
...
|
|
47
46
|
| SuccessResult<{
|
|
48
47
|
targetDescription: string,
|
|
49
|
-
prefersFuseboxFrontend: boolean,
|
|
50
48
|
...DebuggerSessionIDs,
|
|
51
49
|
}>
|
|
52
50
|
| ErrorResult<unknown>
|
|
@@ -72,7 +70,6 @@ export type ReportableEvent =
|
|
|
72
70
|
...DebuggerSessionIDs,
|
|
73
71
|
...ConnectionUptime,
|
|
74
72
|
frontendUserAgent: string | null,
|
|
75
|
-
prefersFuseboxFrontend: boolean | null,
|
|
76
73
|
...
|
|
77
74
|
| SuccessResult<void>
|
|
78
75
|
| CodedErrorResult<
|
|
@@ -21,7 +21,7 @@ export type Experiments = Readonly<{
|
|
|
21
21
|
*/
|
|
22
22
|
enableNetworkInspector: boolean;
|
|
23
23
|
/**
|
|
24
|
-
* Launch the
|
|
24
|
+
* Launch the debugger frontend in a standalone shell instead of a browser.
|
|
25
25
|
* When this is enabled, we will use the optional unstable_showFuseboxShell
|
|
26
26
|
* method on the BrowserLauncher, or throw an error if the method is missing.
|
|
27
27
|
*
|
|
@@ -24,7 +24,7 @@ export type Experiments = Readonly<{
|
|
|
24
24
|
enableNetworkInspector: boolean,
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Launch the
|
|
27
|
+
* Launch the debugger frontend in a standalone shell instead of a browser.
|
|
28
28
|
* When this is enabled, we will use the optional unstable_showFuseboxShell
|
|
29
29
|
* method on the BrowserLauncher, or throw an error if the method is missing.
|
|
30
30
|
*
|
|
@@ -16,10 +16,7 @@ function getDevToolsFrontendUrl(
|
|
|
16
16
|
});
|
|
17
17
|
const appUrl =
|
|
18
18
|
(options?.relative === true ? "" : devServerUrl.origin) +
|
|
19
|
-
"/debugger-frontend/"
|
|
20
|
-
(options?.useFuseboxEntryPoint === true
|
|
21
|
-
? "rn_fusebox.html"
|
|
22
|
-
: "rn_inspector.html");
|
|
19
|
+
"/debugger-frontend/rn_fusebox.html";
|
|
23
20
|
const searchParams = new URLSearchParams([
|
|
24
21
|
[wsParam.key, wsParam.value],
|
|
25
22
|
["sources.hide_add_folder", "true"],
|
|
@@ -22,8 +22,6 @@ declare export default function getDevToolsFrontendUrl(
|
|
|
22
22
|
relative?: boolean,
|
|
23
23
|
launchId?: string,
|
|
24
24
|
telemetryInfo?: string,
|
|
25
|
-
/** Whether to use the modern `rn_fusebox.html` entry point. */
|
|
26
|
-
useFuseboxEntryPoint?: boolean,
|
|
27
25
|
appId?: string,
|
|
28
26
|
panel?: string,
|
|
29
27
|
}>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/dev-middleware",
|
|
3
|
-
"version": "0.85.0-nightly-
|
|
3
|
+
"version": "0.85.0-nightly-20260224-42cd0f041",
|
|
4
4
|
"description": "Dev server middleware for React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@isaacs/ttlcache": "^1.4.1",
|
|
29
|
-
"@react-native/debugger-frontend": "0.85.0-nightly-
|
|
30
|
-
"@react-native/debugger-shell": "0.85.0-nightly-
|
|
29
|
+
"@react-native/debugger-frontend": "0.85.0-nightly-20260224-42cd0f041",
|
|
30
|
+
"@react-native/debugger-shell": "0.85.0-nightly-20260224-42cd0f041",
|
|
31
31
|
"chrome-launcher": "^0.15.2",
|
|
32
32
|
"chromium-edge-launcher": "^0.3.0",
|
|
33
33
|
"connect": "^3.6.5",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"ws": "^7.5.10"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@react-native/debugger-shell": "0.85.0-nightly-
|
|
42
|
+
"@react-native/debugger-shell": "0.85.0-nightly-20260224-42cd0f041",
|
|
43
43
|
"selfsigned": "^4.0.0",
|
|
44
44
|
"undici": "^6.23.0",
|
|
45
45
|
"wait-for-expect": "^3.0.2"
|