@react-native/dev-middleware 0.74.80 → 0.74.82
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) {
|
|
@@ -54,12 +54,23 @@ const DefaultBrowserLauncher = {
|
|
|
54
54
|
`react-native-debugger-frontend-${browserType}`
|
|
55
55
|
);
|
|
56
56
|
const launchedChrome = await ChromeLauncher.launch({
|
|
57
|
-
chromePath,
|
|
58
57
|
chromeFlags: [
|
|
58
|
+
...ChromeLauncher.Launcher.defaultFlags().filter(
|
|
59
|
+
/**
|
|
60
|
+
* This flag controls whether Chrome treats a visually covered (occluded) tab
|
|
61
|
+
* as "backgrounded". We launch CDT as a single tab/window via `--app`, so we
|
|
62
|
+
* do want Chrome to treat our tab as "backgrounded" when the UI is covered.
|
|
63
|
+
* Omitting this flag allows "visibilitychange" events to fire properly.
|
|
64
|
+
*/
|
|
65
|
+
(flag) => flag !== "--disable-backgrounding-occluded-windows"
|
|
66
|
+
),
|
|
59
67
|
`--app=${url}`,
|
|
60
68
|
`--user-data-dir=${userDataDir}`,
|
|
61
69
|
"--window-size=1200,600",
|
|
70
|
+
"--guest",
|
|
62
71
|
],
|
|
72
|
+
chromePath,
|
|
73
|
+
ignoreDefaultFlags: true,
|
|
63
74
|
});
|
|
64
75
|
return {
|
|
65
76
|
kill: async () => launchedChrome.kill(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/dev-middleware",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.82",
|
|
4
4
|
"description": "Dev server middleware for React Native",
|
|
5
5
|
"keywords": ["react-native", "tools"],
|
|
6
6
|
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/dev-middleware#readme",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"files": ["dist"],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@isaacs/ttlcache": "^1.4.1",
|
|
18
|
-
"@react-native/debugger-frontend": "0.74.
|
|
18
|
+
"@react-native/debugger-frontend": "0.74.82",
|
|
19
19
|
"@rnx-kit/chromium-edge-launcher": "^1.0.0",
|
|
20
20
|
"chrome-launcher": "^0.15.2",
|
|
21
21
|
"connect": "^3.6.5",
|