@react-native/dev-middleware 0.88.0-nightly-20260715-ef54f74de → 0.88.0-nightly-20260716-dd5dc6b23
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/createDevMiddleware.d.ts +1 -0
- package/dist/createDevMiddleware.js.flow +1 -0
- package/dist/inspector-proxy/CdpDebugLogging.d.ts +1 -4
- package/dist/inspector-proxy/CdpDebugLogging.js.flow +1 -4
- package/dist/inspector-proxy/types.d.ts +5 -11
- package/dist/inspector-proxy/types.js.flow +2 -7
- package/dist/types/EventReporter.d.ts +62 -62
- package/package.json +4 -4
|
@@ -15,6 +15,7 @@ import type { ExperimentsConfig } from "./types/Experiments";
|
|
|
15
15
|
import type { Logger } from "./types/Logger";
|
|
16
16
|
import type { ReadonlyURL } from "./types/ReadonlyURL";
|
|
17
17
|
import type { NextHandleFunction } from "connect";
|
|
18
|
+
import path from "path";
|
|
18
19
|
type Options = Readonly<{
|
|
19
20
|
/**
|
|
20
21
|
* The base URL to the dev server, as reachable from the machine on which
|
|
@@ -16,6 +16,7 @@ import type { Logger } from "./types/Logger";
|
|
|
16
16
|
import type { ReadonlyURL } from "./types/ReadonlyURL";
|
|
17
17
|
import type { NextHandleFunction } from "connect";
|
|
18
18
|
|
|
19
|
+
import path from "path";
|
|
19
20
|
type Options = Readonly<{
|
|
20
21
|
/**
|
|
21
22
|
* The base URL to the dev server, as reachable from the machine on which
|
|
@@ -9,10 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
export type CDPMessageDestination =
|
|
12
|
-
| "
|
|
13
|
-
| "ProxyToDebugger"
|
|
14
|
-
| "DeviceToProxy"
|
|
15
|
-
| "ProxyToDevice";
|
|
12
|
+
"DebuggerToProxy" | "ProxyToDebugger" | "DeviceToProxy" | "ProxyToDevice";
|
|
16
13
|
declare class CdpDebugLogging {
|
|
17
14
|
constructor();
|
|
18
15
|
log(destination: CDPMessageDestination, message: string): void;
|
|
@@ -9,10 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
export type CDPMessageDestination =
|
|
12
|
-
| "
|
|
13
|
-
| "ProxyToDebugger"
|
|
14
|
-
| "DeviceToProxy"
|
|
15
|
-
| "ProxyToDevice";
|
|
12
|
+
"DebuggerToProxy" | "ProxyToDebugger" | "DeviceToProxy" | "ProxyToDevice";
|
|
16
13
|
|
|
17
14
|
declare export default class CdpDebugLogging {
|
|
18
15
|
constructor(): void;
|
|
@@ -50,10 +50,9 @@ export type PageFromDevice = Readonly<{
|
|
|
50
50
|
capabilities?: TargetCapabilityFlags;
|
|
51
51
|
}>;
|
|
52
52
|
export type Page = Readonly<
|
|
53
|
-
Omit<
|
|
54
|
-
PageFromDevice
|
|
55
|
-
|
|
56
|
-
> & { capabilities: NonNullable<PageFromDevice["capabilities"]> }
|
|
53
|
+
Omit<PageFromDevice, "capabilities"> & {
|
|
54
|
+
capabilities: NonNullable<PageFromDevice["capabilities"]>;
|
|
55
|
+
}
|
|
57
56
|
>;
|
|
58
57
|
export type WrappedEventFromDevice = Readonly<{
|
|
59
58
|
event: "wrappedEvent";
|
|
@@ -85,14 +84,9 @@ export type GetPagesResponse = {
|
|
|
85
84
|
payload: ReadonlyArray<PageFromDevice>;
|
|
86
85
|
};
|
|
87
86
|
export type MessageFromDevice =
|
|
88
|
-
|
|
|
89
|
-
| WrappedEventFromDevice
|
|
90
|
-
| DisconnectRequest;
|
|
87
|
+
GetPagesResponse | WrappedEventFromDevice | DisconnectRequest;
|
|
91
88
|
export type MessageToDevice =
|
|
92
|
-
|
|
|
93
|
-
| WrappedEventToDevice
|
|
94
|
-
| ConnectRequest
|
|
95
|
-
| DisconnectRequest;
|
|
89
|
+
GetPagesRequest | WrappedEventToDevice | ConnectRequest | DisconnectRequest;
|
|
96
90
|
export type PageDescription = Readonly<{
|
|
97
91
|
id: string;
|
|
98
92
|
title: string;
|
|
@@ -107,16 +107,11 @@ export type GetPagesResponse = {
|
|
|
107
107
|
|
|
108
108
|
// Union type for all possible messages sent from device to Inspector Proxy.
|
|
109
109
|
export type MessageFromDevice =
|
|
110
|
-
|
|
|
111
|
-
| WrappedEventFromDevice
|
|
112
|
-
| DisconnectRequest;
|
|
110
|
+
GetPagesResponse | WrappedEventFromDevice | DisconnectRequest;
|
|
113
111
|
|
|
114
112
|
// Union type for all possible messages sent from Inspector Proxy to device.
|
|
115
113
|
export type MessageToDevice =
|
|
116
|
-
|
|
|
117
|
-
| WrappedEventToDevice
|
|
118
|
-
| ConnectRequest
|
|
119
|
-
| DisconnectRequest;
|
|
114
|
+
GetPagesRequest | WrappedEventToDevice | ConnectRequest | DisconnectRequest;
|
|
120
115
|
|
|
121
116
|
// Page description object that is sent in response to /json HTTP request from debugger.
|
|
122
117
|
export type PageDescription = Readonly<{
|
|
@@ -35,77 +35,77 @@ export type DebuggerSessionIDs = {
|
|
|
35
35
|
export type ConnectionUptime = { connectionUptime: number };
|
|
36
36
|
export type ReportableEvent =
|
|
37
37
|
| /**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
38
|
+
* > 45 | ...
|
|
39
|
+
* | ^^^
|
|
40
|
+
* > 46 | | SuccessResult<{
|
|
41
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
42
|
+
* > 47 | targetDescription: string,
|
|
43
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
44
|
+
* > 48 | ...DebuggerSessionIDs,
|
|
45
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
46
|
+
* > 49 | }>
|
|
47
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
48
|
+
* > 50 | | ErrorResult<unknown>
|
|
49
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
50
|
+
* > 51 | | CodedErrorResult<"NO_APPS_FOUND">,
|
|
51
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
52
|
+
**/
|
|
53
|
+
any
|
|
54
54
|
| /**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
55
|
+
* > 55 | ...
|
|
56
|
+
* | ^^^
|
|
57
|
+
* > 56 | | SuccessResult<{
|
|
58
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
59
|
+
* > 57 | ...DebuggerSessionIDs,
|
|
60
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
61
|
+
* > 58 | frontendUserAgent: string | null,
|
|
62
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
63
|
+
* > 59 | }>
|
|
64
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
65
|
+
* > 60 | | ErrorResult<unknown, DebuggerSessionIDs>,
|
|
66
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
67
|
+
**/
|
|
68
|
+
any
|
|
69
69
|
| /**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
* > 70 | ...DebuggerSessionIDs,
|
|
71
|
+
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
72
|
+
**/
|
|
73
|
+
any
|
|
74
74
|
| /**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
* > 86 | ...DebuggerSessionIDs,
|
|
76
|
+
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
77
|
+
**/
|
|
78
|
+
any
|
|
79
79
|
| /**
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
* > 90 | ...DebuggerSessionIDs,
|
|
81
|
+
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
82
|
+
**/
|
|
83
|
+
any
|
|
84
84
|
| /**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
* > 99 | ...ConnectionUptime,
|
|
86
|
+
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
87
|
+
**/
|
|
88
|
+
any
|
|
89
89
|
| /**
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
* > 106 | ...ConnectionUptime,
|
|
91
|
+
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
92
|
+
**/
|
|
93
|
+
any
|
|
94
94
|
| /**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
* > 113 | ...ConnectionUptime,
|
|
96
|
+
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
97
|
+
**/
|
|
98
|
+
any
|
|
99
99
|
| /**
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
* > 121 | ...ConnectionUptime,
|
|
101
|
+
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
102
|
+
**/
|
|
103
|
+
any
|
|
104
104
|
| /**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
* > 129 | ...ConnectionUptime,
|
|
106
|
+
* | ^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
107
|
+
**/
|
|
108
|
+
any
|
|
109
109
|
| {
|
|
110
110
|
type: "fusebox_shell_preparation_attempt";
|
|
111
111
|
result: DebuggerShellPreparationResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/dev-middleware",
|
|
3
|
-
"version": "0.88.0-nightly-
|
|
3
|
+
"version": "0.88.0-nightly-20260716-dd5dc6b23",
|
|
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.88.0-nightly-
|
|
30
|
-
"@react-native/debugger-shell": "0.88.0-nightly-
|
|
29
|
+
"@react-native/debugger-frontend": "0.88.0-nightly-20260716-dd5dc6b23",
|
|
30
|
+
"@react-native/debugger-shell": "0.88.0-nightly-20260716-dd5dc6b23",
|
|
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.88.0-nightly-
|
|
42
|
+
"@react-native/debugger-shell": "0.88.0-nightly-20260716-dd5dc6b23",
|
|
43
43
|
"selfsigned": "^5.5.0",
|
|
44
44
|
"undici": "^6.23.0",
|
|
45
45
|
"wait-for-expect": "^3.0.2"
|