@react-native/dev-middleware 0.86.0-nightly-20260306-48b6f2dcc → 0.86.0-nightly-20260308-c0b10573e

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.
@@ -12,18 +12,18 @@ import type { JSONSerializable } from "../types";
12
12
  import type { Commands, Events } from "./protocol";
13
13
 
14
14
  // Note: A CDP event is a JSON-RPC notification with no `id` member.
15
- export type CDPEvent<TEvent: keyof Events = "unknown"> = {
15
+ export type CDPEvent<TEvent extends keyof Events = "unknown"> = {
16
16
  method: TEvent,
17
17
  params: Events[TEvent],
18
18
  };
19
19
 
20
- export type CDPRequest<TCommand: keyof Commands = "unknown"> = {
20
+ export type CDPRequest<TCommand extends keyof Commands = "unknown"> = {
21
21
  method: TCommand,
22
22
  params: Commands[TCommand]["paramsType"],
23
23
  id: number,
24
24
  };
25
25
 
26
- export type CDPResponse<TCommand: keyof Commands = "unknown"> =
26
+ export type CDPResponse<TCommand extends keyof Commands = "unknown"> =
27
27
  | {
28
28
  result: Commands[TCommand]["resultType"],
29
29
  id: number,
@@ -10,18 +10,18 @@
10
10
 
11
11
  import type { DebuggerShellPreparationResult } from "./DevToolLauncher";
12
12
 
13
- type SuccessResult<Props: { ... } | void = {}> = {
13
+ type SuccessResult<Props extends { ... } | void = {}> = {
14
14
  status: "success",
15
15
  ...Props,
16
16
  };
17
17
 
18
- type ErrorResult<ErrorT = unknown, Props: { ... } | void = {}> = {
18
+ type ErrorResult<ErrorT = unknown, Props extends { ... } | void = {}> = {
19
19
  status: "error",
20
20
  error: ErrorT,
21
21
  ...Props,
22
22
  };
23
23
 
24
- type CodedErrorResult<ErrorCode: string> = {
24
+ type CodedErrorResult<ErrorCode extends string> = {
25
25
  status: "coded_error",
26
26
  errorCode: ErrorCode,
27
27
  errorDetails?: string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/dev-middleware",
3
- "version": "0.86.0-nightly-20260306-48b6f2dcc",
3
+ "version": "0.86.0-nightly-20260308-c0b10573e",
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.86.0-nightly-20260306-48b6f2dcc",
30
- "@react-native/debugger-shell": "0.86.0-nightly-20260306-48b6f2dcc",
29
+ "@react-native/debugger-frontend": "0.86.0-nightly-20260308-c0b10573e",
30
+ "@react-native/debugger-shell": "0.86.0-nightly-20260308-c0b10573e",
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.86.0-nightly-20260306-48b6f2dcc",
42
+ "@react-native/debugger-shell": "0.86.0-nightly-20260308-c0b10573e",
43
43
  "selfsigned": "^5.5.0",
44
44
  "undici": "^6.23.0",
45
45
  "wait-for-expect": "^3.0.2"