chore: update changelogs

This commit is contained in:
Simon Chan 2023-02-09 11:56:26 +08:00
parent dc0dcd03db
commit 9dc9684566
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
6 changed files with 47 additions and 30 deletions

View file

@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yume-chan/adb-backend-webusb",
"comment": "Add `usbManager` parameter to all methods to allow using `usb` NPM package for Node.js",
"type": "none"
}
],
"packageName": "@yume-chan/adb-backend-webusb"
}

View file

@ -2,7 +2,7 @@
"changes": [
{
"packageName": "@yume-chan/adb",
"comment": "Change to throw `AdbReverseNotSupportedError` if ADB daemon has bug creating reverse tunnel",
"comment": "Add `AdbReverseError` and `AdbReverseNotSupportedError` for better error handling in reverse tunnel command.",
"type": "none"
}
],

View file

@ -2,7 +2,7 @@
"changes": [
{
"packageName": "@yume-chan/android-bin",
"comment": "Add `OverlayDisplay` wrapper for creating overlay displays",
"comment": "Add `OverlayDisplay` wrapper for managing overlay displays",
"type": "none"
}
],

View file

@ -2,7 +2,7 @@
"changes": [
{
"packageName": "@yume-chan/scrcpy",
"comment": "Change `AdbScrcpyClient` to use forward tunnel automatically if reverse tunnel is not supported by device",
"comment": "Add `AdbReverseNotSupportedError` handling and automatically switch to forward tunnel in `AdbScrcpyClient`.",
"type": "none"
}
],

View file

@ -114,10 +114,17 @@ export class AdbReverseCommand extends AutoDisposable {
}
/**
* @param deviceAddress The address adbd on device is listening on. Can be `tcp:0` to let adbd choose an available TCP port by itself.
* @param localAddress Native ADB client will open a connection to this address when reverse connection received. In WebADB, it's only used to uniquely identify a reverse tunnel registry, `handler` will be called to handle the connection.
* @param deviceAddress
* The address to be listened on device by ADB daemon. Or `tcp:0` to choose an available TCP port.
* @param localAddress
* An identifier for the reverse tunnel.
*
* When a socket wants to connect to {@link deviceAddress}, native ADB client will forward that connection to {@link localAddress}.
* However in this library, the {@link handler} is invoked instead. So this parameter is only used to identify the reverse tunnel.
* @param handler A callback to handle incoming connections. It must return `true` if it accepts the connection.
* @returns `tcp:{ACTUAL_LISTENING_PORT}`, If `deviceAddress` is `tcp:0`; otherwise, `deviceAddress`.
* @throws {AdbReverseNotSupportedError} If ADB reverse tunnel is not supported on this device when connected wirelessly.
* @throws {AdbReverseError} If ADB daemon returns an error.
*/
public async add(
deviceAddress: string,