@react-native/dev-middleware 0.75.0-nightly-20240427-e2ad6696d → 0.75.0-nightly-20240429-b7de91666
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.
|
@@ -38,6 +38,14 @@ function deprecated_openFlipperMiddleware({ logger }) {
|
|
|
38
38
|
"Flipper to be installed on your system to handle the " +
|
|
39
39
|
"'flipper://' URL scheme."
|
|
40
40
|
);
|
|
41
|
+
logger?.info(
|
|
42
|
+
"In React Native 0.74, Flipper is no longer included for new React " +
|
|
43
|
+
"Native projects. The Flipper React Native plugin is also " +
|
|
44
|
+
"unsupported. You can continue to use Flipper to debug " +
|
|
45
|
+
"your app's JavaScript code, however we recommend switching to " +
|
|
46
|
+
"a modern alternative.\nSee " +
|
|
47
|
+
"https://reactnative.dev/docs/debugging#opening-the-debugger."
|
|
48
|
+
);
|
|
41
49
|
await (0, _open.default)(FLIPPER_SELF_CONNECT_URL);
|
|
42
50
|
res.end();
|
|
43
51
|
} catch (e) {
|
|
@@ -7,7 +7,6 @@ exports.default = openDebuggerMiddleware;
|
|
|
7
7
|
var _getDevToolsFrontendUrl = _interopRequireDefault(
|
|
8
8
|
require("../utils/getDevToolsFrontendUrl")
|
|
9
9
|
);
|
|
10
|
-
var _crypto = _interopRequireDefault(require("crypto"));
|
|
11
10
|
var _url = _interopRequireDefault(require("url"));
|
|
12
11
|
function _interopRequireDefault(obj) {
|
|
13
12
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -46,7 +45,7 @@ function openDebuggerMiddleware({
|
|
|
46
45
|
(experiments.enableOpenDebuggerRedirect && req.method === "GET")
|
|
47
46
|
) {
|
|
48
47
|
const { query } = _url.default.parse(req.url, true);
|
|
49
|
-
const { appId, device } = query;
|
|
48
|
+
const { appId, device, launchId } = query;
|
|
50
49
|
const targets = inspectorProxy.getPageDescriptions().filter(
|
|
51
50
|
// Only use targets with better reloading support
|
|
52
51
|
(app) =>
|
|
@@ -89,7 +88,6 @@ function openDebuggerMiddleware({
|
|
|
89
88
|
});
|
|
90
89
|
return;
|
|
91
90
|
}
|
|
92
|
-
const launchId = _crypto.default.randomUUID();
|
|
93
91
|
const useFuseboxEntryPoint =
|
|
94
92
|
target.reactNative.capabilities?.prefersFuseboxFrontend;
|
|
95
93
|
try {
|
|
@@ -139,6 +137,8 @@ function openDebuggerMiddleware({
|
|
|
139
137
|
status: "success",
|
|
140
138
|
appId: appId ?? null,
|
|
141
139
|
deviceId: device ?? null,
|
|
140
|
+
resolvedTargetDescription: target.description,
|
|
141
|
+
prefersFuseboxFrontend: useFuseboxEntryPoint ?? false,
|
|
142
142
|
});
|
|
143
143
|
return;
|
|
144
144
|
} catch (e) {
|
|
@@ -30,36 +30,46 @@ export type ReportableEvent =
|
|
|
30
30
|
| /**
|
|
31
31
|
* > 38 | ...
|
|
32
32
|
* | ^^^
|
|
33
|
-
* > 39 | | SuccessResult<{
|
|
34
|
-
* |
|
|
35
|
-
* > 40 |
|
|
36
|
-
* |
|
|
37
|
-
* > 41 |
|
|
33
|
+
* > 39 | | SuccessResult<{
|
|
34
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
35
|
+
* > 40 | appId: string | null,
|
|
36
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
37
|
+
* > 41 | deviceId: string | null,
|
|
38
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
39
|
+
* > 42 | resolvedTargetDescription: string,
|
|
40
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
41
|
+
* > 43 | prefersFuseboxFrontend: boolean,
|
|
42
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
43
|
+
* > 44 | }>
|
|
44
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
45
|
+
* > 45 | | ErrorResult<mixed>
|
|
46
|
+
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
47
|
+
* > 46 | | CodedErrorResult<"NO_APPS_FOUND">,
|
|
38
48
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
39
49
|
**/
|
|
40
50
|
any
|
|
41
51
|
| /**
|
|
42
|
-
* >
|
|
52
|
+
* > 50 | ...
|
|
43
53
|
* | ^^^
|
|
44
|
-
* >
|
|
54
|
+
* > 51 | | SuccessResult<{
|
|
45
55
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
46
|
-
* >
|
|
56
|
+
* > 52 | ...DebuggerSessionIDs,
|
|
47
57
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
48
|
-
* >
|
|
58
|
+
* > 53 | frontendUserAgent: string | null,
|
|
49
59
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
50
|
-
* >
|
|
60
|
+
* > 54 | }>
|
|
51
61
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
52
|
-
* >
|
|
62
|
+
* > 55 | | ErrorResult<mixed>,
|
|
53
63
|
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
54
64
|
**/
|
|
55
65
|
any
|
|
56
66
|
| /**
|
|
57
|
-
* >
|
|
67
|
+
* > 65 | ...DebuggerSessionIDs,
|
|
58
68
|
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
59
69
|
**/
|
|
60
70
|
any
|
|
61
71
|
| /**
|
|
62
|
-
* >
|
|
72
|
+
* > 84 | ...DebuggerSessionIDs,
|
|
63
73
|
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
|
|
64
74
|
**/
|
|
65
75
|
any;
|
|
@@ -36,7 +36,12 @@ export type ReportableEvent =
|
|
|
36
36
|
type: "launch_debugger_frontend",
|
|
37
37
|
launchType: "launch" | "redirect",
|
|
38
38
|
...
|
|
39
|
-
| SuccessResult<{
|
|
39
|
+
| SuccessResult<{
|
|
40
|
+
appId: string | null,
|
|
41
|
+
deviceId: string | null,
|
|
42
|
+
resolvedTargetDescription: string,
|
|
43
|
+
prefersFuseboxFrontend: boolean,
|
|
44
|
+
}>
|
|
40
45
|
| ErrorResult<mixed>
|
|
41
46
|
| CodedErrorResult<"NO_APPS_FOUND">,
|
|
42
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/dev-middleware",
|
|
3
|
-
"version": "0.75.0-nightly-
|
|
3
|
+
"version": "0.75.0-nightly-20240429-b7de91666",
|
|
4
4
|
"description": "Dev server middleware for React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@isaacs/ttlcache": "^1.4.1",
|
|
26
|
-
"@react-native/debugger-frontend": "0.75.0-nightly-
|
|
26
|
+
"@react-native/debugger-frontend": "0.75.0-nightly-20240429-b7de91666",
|
|
27
27
|
"chrome-launcher": "^0.15.2",
|
|
28
28
|
"chromium-edge-launcher": "^0.2.0",
|
|
29
29
|
"connect": "^3.6.5",
|