@lynx-js/devtool-connector 0.16.2 → 0.16.3
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 +19 -0
- package/dist/2.js +1 -1
- package/dist/h.js +16 -18
- package/dist/main.js +0 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @lynx-js/devtool-connector
|
|
2
2
|
|
|
3
|
+
## 0.16.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependency `@yume-chan/adb-server-node-tcp` to `3.0.0-beta.4`.
|
|
8
|
+
- Updated dependency `@yume-chan/adb` to `3.0.0-beta.4`.
|
|
9
|
+
- Updated dependency `@yume-chan/stream-extra` to `3.0.0-beta.4`.
|
|
10
|
+
- Updated dependency `dprint` to `^0.62.0`.
|
|
11
|
+
- Updated dependency `@types/node` to `^24.19.2`.
|
|
12
|
+
- Updated dependency `ws` to `^8.22.0`.
|
|
13
|
+
- 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.
|
|
14
|
+
- 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.
|
|
15
|
+
|
|
16
|
+
Use the Connector namespace for the Android app icon helper, including its embedded DEX artifact.
|
|
17
|
+
|
|
18
|
+
Keep host-specific protocol declarations in the internal facade while sharing the generic Customized response parser and request correlation logic.
|
|
19
|
+
|
|
20
|
+
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.
|
|
21
|
+
|
|
3
22
|
## 0.13.2
|
|
4
23
|
|
|
5
24
|
### 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.
|
|
1662
|
+
rE: "0.16.3"
|
|
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
|
-
|
|
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
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.16.3",
|
|
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.
|
|
53
|
+
"@yume-chan/adb": "3.0.0-beta.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@rslib/core": "1.0.
|
|
57
|
-
"@types/node": "^24.
|
|
56
|
+
"@rslib/core": "1.0.3",
|
|
57
|
+
"@types/node": "^24.19.2",
|
|
58
58
|
"@types/semver": "^7.8.0",
|
|
59
|
-
"@types/ws": "^8.18.
|
|
60
|
-
"@yume-chan/adb-server-node-tcp": "3.0.0-beta.
|
|
61
|
-
"@yume-chan/stream-extra": "3.0.0-beta.
|
|
62
|
-
"dprint": "^0.
|
|
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.62.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.
|
|
69
|
+
"ws": "^8.22.0"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=18.19"
|