@react-native/dev-middleware 0.89.0-nightly-20261025-7fc911afd → 0.89.0-nightly-20261027-7225d43c3

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.
@@ -14,7 +14,10 @@ import type { DebuggerShellPreparationResult } from "../types/DevToolLauncher";
14
14
  * local machine.
15
15
  */
16
16
  declare const DefaultToolLauncher: {
17
- launchDebuggerAppWindow: (url: string) => Promise<void>;
17
+ launchDebuggerAppWindow: (
18
+ url: string,
19
+ options?: Readonly<{ allowInTests?: boolean | undefined }>,
20
+ ) => Promise<void>;
18
21
  launchDebuggerShell(url: string, windowKey: string): Promise<void>;
19
22
  prepareDebuggerShell(
20
23
  prebuiltBinaryPath?: null | undefined | string,
@@ -11,8 +11,8 @@ const {
11
11
  const open = require("open");
12
12
  const { apps, openApp } = open;
13
13
  const DefaultToolLauncher = {
14
- launchDebuggerAppWindow: async (url) => {
15
- if (process.env.NODE_ENV === "test") {
14
+ launchDebuggerAppWindow: async (url, options) => {
15
+ if (process.env.NODE_ENV === "test" && options?.allowInTests !== true) {
16
16
  assertMockedInTests();
17
17
  }
18
18
  try {
@@ -15,7 +15,12 @@ import type { DebuggerShellPreparationResult } from "../types/DevToolLauncher";
15
15
  * local machine.
16
16
  */
17
17
  declare const DefaultToolLauncher: {
18
- launchDebuggerAppWindow: (url: string) => Promise<void>,
18
+ launchDebuggerAppWindow: (
19
+ url: string,
20
+ options?: Readonly<{
21
+ allowInTests?: boolean,
22
+ }>,
23
+ ) => Promise<void>,
19
24
  launchDebuggerShell(url: string, windowKey: string): Promise<void>,
20
25
  prepareDebuggerShell(
21
26
  prebuiltBinaryPath?: ?string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/dev-middleware",
3
- "version": "0.89.0-nightly-20261025-7fc911afd",
3
+ "version": "0.89.0-nightly-20261027-7225d43c3",
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.89.0-nightly-20261025-7fc911afd",
30
- "@react-native/debugger-shell": "0.89.0-nightly-20261025-7fc911afd",
29
+ "@react-native/debugger-frontend": "0.89.0-nightly-20261027-7225d43c3",
30
+ "@react-native/debugger-shell": "0.89.0-nightly-20261027-7225d43c3",
31
31
  "connect": "^3.6.5",
32
32
  "debug": "^4.4.0",
33
33
  "invariant": "^2.2.4",
@@ -37,7 +37,7 @@
37
37
  "ws": "^7.5.10"
38
38
  },
39
39
  "devDependencies": {
40
- "@react-native/debugger-shell": "0.89.0-nightly-20261025-7fc911afd",
40
+ "@react-native/debugger-shell": "0.89.0-nightly-20261027-7225d43c3",
41
41
  "selfsigned": "^5.5.0",
42
42
  "undici": "^6.23.0",
43
43
  "wait-for-expect": "^3.0.2"