@lynx-js/devtool-connector 0.16.2 → 0.16.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @lynx-js/devtool-connector
2
2
 
3
+ ## 0.16.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependency `dprint` to `^0.63.0`.
8
+
9
+ ## 0.16.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependency `@yume-chan/adb-server-node-tcp` to `3.0.0-beta.4`.
14
+ - Updated dependency `@yume-chan/adb` to `3.0.0-beta.4`.
15
+ - Updated dependency `@yume-chan/stream-extra` to `3.0.0-beta.4`.
16
+ - Updated dependency `dprint` to `^0.62.0`.
17
+ - Updated dependency `@types/node` to `^24.19.2`.
18
+ - Updated dependency `ws` to `^8.22.0`.
19
+ - Use Node's stream read-result type in ReactLynx sessions to avoid declaration-build failures caused by mixing Node and DOM stream types. Runtime behavior is unchanged.
20
+ - Share the Connector, HDT transports, command engine and daemon lifecycle between the public and internal distributions. Align the public implementation with version 0.16.2 and allow cross-origin version discovery while retaining loopback control protections.
21
+
22
+ Use the Connector namespace for the Android app icon helper, including its embedded DEX artifact.
23
+
24
+ Keep host-specific protocol declarations in the internal facade while sharing the generic Customized response parser and request correlation logic.
25
+
26
+ The `/transport` entry point no longer exports `wsStreams`, `WsWebSocketStream` or `createWebSocketReadable`. Keep the WebSocket implementation internal and bundled for daemon and HDT transports so consumers do not need `ws` types.
27
+
3
28
  ## 0.13.2
4
29
 
5
30
  ### Patch Changes
package/dist/2.js CHANGED
@@ -1659,7 +1659,7 @@ const DAEMON_SHUTDOWN_PATH = `${DAEMON_WS_PATH}/shutdown`;
1659
1659
  const DAEMON_INSPECTOR_PATH = `${DAEMON_WS_PATH}/inspector`;
1660
1660
  const DAEMON_COMMAND_PATH_PREFIX = "/command/";
1661
1661
  var package_namespaceObject = {
1662
- rE: "0.16.2"
1662
+ rE: "0.16.4"
1663
1663
  };
1664
1664
  const CONNECTOR_VERSION = package_namespaceObject.rE;
1665
1665
  const node_modules_semver = __webpack_require__("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js");
package/dist/h.js CHANGED
@@ -7914,7 +7914,7 @@ function utils_getGlobalValue(key) {
7914
7914
  }
7915
7915
  const streams_ReadableStream = /* #__PURE__ */ (()=>{
7916
7916
  const ReadableStream = utils_getGlobalValue("ReadableStream");
7917
- if (!ReadableStream.from) ReadableStream.from = function(iterable) {
7917
+ ReadableStream.from ??= function(iterable) {
7918
7918
  const iterator = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
7919
7919
  return new ReadableStream({
7920
7920
  async pull (controller) {
@@ -7927,22 +7927,20 @@ const streams_ReadableStream = /* #__PURE__ */ (()=>{
7927
7927
  }
7928
7928
  });
7929
7929
  };
7930
- if (!ReadableStream.prototype[Symbol.asyncIterator] || !ReadableStream.prototype.values) {
7931
- ReadableStream.prototype.values = async function*(options) {
7932
- const reader = this.getReader();
7933
- try {
7934
- while(true){
7935
- const { done, value } = await reader.read();
7936
- if (done) return;
7937
- yield value;
7938
- }
7939
- } finally{
7940
- if (!options?.preventCancel) await tryCancel(reader);
7941
- reader.releaseLock();
7930
+ ReadableStream.prototype.values ??= async function*(options) {
7931
+ const reader = this.getReader();
7932
+ try {
7933
+ while(true){
7934
+ const { done, value } = await reader.read();
7935
+ if (done) return;
7936
+ yield value;
7942
7937
  }
7943
- };
7944
- ReadableStream.prototype[Symbol.asyncIterator] = ReadableStream.prototype.values;
7945
- }
7938
+ } finally{
7939
+ if (!options?.preventCancel) await tryCancel(reader);
7940
+ reader.releaseLock();
7941
+ }
7942
+ };
7943
+ ReadableStream.prototype[Symbol.asyncIterator] ??= ReadableStream.prototype.values;
7946
7944
  return ReadableStream;
7947
7945
  })();
7948
7946
  const WritableStream = utils_getGlobalValue("WritableStream");
@@ -8479,7 +8477,7 @@ function getServerPort() {
8479
8477
  if (void 0 === port || port <= 0 || port > 65535) throw new Error(`$ANDROID_ADB_SERVER_PORT must be a positive number less than 65535: got "${value}"`);
8480
8478
  return port;
8481
8479
  }
8482
- class AdbServerNodeTcpConnector {
8480
+ class AdbServerNodeJsTcpConnector {
8483
8481
  spec;
8484
8482
  #listeners = new Map();
8485
8483
  constructor(spec){
@@ -8851,7 +8849,7 @@ class AndroidTransport {
8851
8849
  ...spec,
8852
8850
  host: spec.host ?? "127.0.0.1"
8853
8851
  } : spec;
8854
- const connector = "path" in resolvedSpec ? new AdbServerNodeTcpConnector(resolvedSpec) : new AdbServerNodeTcpConnector(resolvedSpec);
8852
+ const connector = "path" in resolvedSpec ? new AdbServerNodeJsTcpConnector(resolvedSpec) : new AdbServerNodeJsTcpConnector(resolvedSpec);
8855
8853
  this.client = new AdbServerClient(connector);
8856
8854
  }
8857
8855
  async connect(options) {
package/dist/main.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/devtool-connector",
3
- "version": "0.16.2",
3
+ "version": "0.16.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lynx-community/skills.git",
@@ -50,23 +50,23 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@lynx-js/debug-metadata": "0.1.0",
53
- "@yume-chan/adb": "3.0.0-beta.2"
53
+ "@yume-chan/adb": "3.0.0-beta.4"
54
54
  },
55
55
  "devDependencies": {
56
- "@rslib/core": "1.0.1",
57
- "@types/node": "^24.13.5",
56
+ "@rslib/core": "1.0.3",
57
+ "@types/node": "^24.19.2",
58
58
  "@types/semver": "^7.8.0",
59
- "@types/ws": "^8.18.1",
60
- "@yume-chan/adb-server-node-tcp": "3.0.0-beta.2",
61
- "@yume-chan/stream-extra": "3.0.0-beta.2",
62
- "dprint": "^0.57.4",
59
+ "@types/ws": "^8.18.2",
60
+ "@yume-chan/adb-server-node-tcp": "3.0.0-beta.4",
61
+ "@yume-chan/stream-extra": "3.0.0-beta.4",
62
+ "dprint": "^0.63.0",
63
63
  "jpeg-js": "^0.4.4",
64
64
  "obug": "^2.2.1",
65
65
  "plist": "^5.0.0",
66
66
  "rsbuild-plugin-publint": "^1.0.0",
67
67
  "semver": "^7.8.5",
68
68
  "typescript": "^7.0.2",
69
- "ws": "^8.21.3"
69
+ "ws": "^8.22.0"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=18.19"
@@ -74,7 +74,7 @@
74
74
  "license": "Apache-2.0",
75
75
  "scripts": {
76
76
  "build": "rslib build",
77
- "test": "node --test --test-concurrency=1 'test/**/*.test.ts'",
77
+ "test": "node --test --test-concurrency=1 \"test/**/*.test.ts\"",
78
78
  "test:e2e": "node --test --test-concurrency=1 'e2e/**/*.test.ts'",
79
79
  "test:e2e:public": "node --test --test-concurrency=1 'e2e/public/**/*.test.ts'",
80
80
  "format:check": "dprint check --config dprint.jsonc",