Skip to content

Commit

Permalink
chore: add changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Jun 18, 2024
1 parent 1c14eb6 commit 37ef1dd
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"changes": [
{
"packageName": "@yume-chan/adb-scrcpy",
"comment": "Removed `AdbScrcpyClient#deviceMessageStream`. Use `ScrcpyOptions#clipboard` to watch clipboard changes.",
"comment": "Remove `AdbScrcpyClient#deviceMessageStream`. Use `ScrcpyOptions#clipboard` to watch clipboard changes.",
"type": "none"
}
],
Expand Down
10 changes: 10 additions & 0 deletions common/changes/@yume-chan/adb-scrcpy/main_2024-05-10-00-33.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yume-chan/adb-scrcpy",
"comment": "Allow `AdbScrcpyClient#pushServer` to accept `ReadableStream<Uint8Array>` as input",
"type": "none"
}
],
"packageName": "@yume-chan/adb-scrcpy"
}
10 changes: 10 additions & 0 deletions common/changes/@yume-chan/adb-scrcpy/main_2024-05-10-00-34.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yume-chan/adb-scrcpy",
"comment": "Add AV1 video size parsing support",
"type": "none"
}
],
"packageName": "@yume-chan/adb-scrcpy"
}
10 changes: 10 additions & 0 deletions common/changes/@yume-chan/adb-scrcpy/main_2024-05-10-00-35.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yume-chan/adb-scrcpy",
"comment": "Loosen type parameter constraints on `AdbScrcpyOptionsX_XX` classes, allow them to accept more option types",
"type": "none"
}
],
"packageName": "@yume-chan/adb-scrcpy"
}
2 changes: 1 addition & 1 deletion common/changes/@yume-chan/adb/main_2024-05-10-00-32.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"changes": [
{
"packageName": "@yume-chan/adb",
"comment": "Rename `debugSlowRead` option to `readTimeLimit`. Allow users to specify a timeout for read operations. The default value is still infinity.",
"comment": "Rename `AdbDaemonTransport`'s `debugSlowRead` option to `readTimeLimit`. Allow users to specify a custom timeout for read operations. It's still disabled by default.",
"type": "none"
}
],
Expand Down
2 changes: 1 addition & 1 deletion common/changes/@yume-chan/adb/main_2024-05-10-00-35.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"changes": [
{
"packageName": "@yume-chan/adb",
"comment": "Group `AdbServerClient` related types into the `AdbServerClient` namespace. In future, more types will be moved to namespaces.",
"comment": "Group `AdbServerClient`-relating types into `AdbServerClient` namespace. In future, more types will be moved to namespaces.",
"type": "none"
}
],
Expand Down
10 changes: 10 additions & 0 deletions common/changes/@yume-chan/adb/main_2024-05-10-00-36.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yume-chan/adb",
"comment": "Fix `Adb#reverse#list()` returning an extra empty object.",
"type": "none"
}
],
"packageName": "@yume-chan/adb"
}
10 changes: 10 additions & 0 deletions common/changes/@yume-chan/adb/main_2024-05-10-00-37.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yume-chan/adb",
"comment": "Fix reverse tunnel handler not invoked.",
"type": "none"
}
],
"packageName": "@yume-chan/adb"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yume-chan/scrcpy-decoder-tinyh264",
"comment": "Rename `frameRendered` and `frameSkipped` to `framesRendered` and `framesSkipped`",
"type": "none"
}
],
"packageName": "@yume-chan/scrcpy-decoder-tinyh264"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"changes": [
{
"packageName": "@yume-chan/scrcpy",
"comment": "Add support for `setClipboard` to wait for the clipboard to be updated (when `sequence` is not 0)",
"comment": "Make `ScrcpyControlMessageWriter#setClipboard` wait for the clipboard to be updated on device (when `sequence` is not 0)",
"type": "none"
}
],
Expand Down
17 changes: 9 additions & 8 deletions libraries/adb/src/commands/reverse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,15 @@ export class AdbReverseCommand extends AutoDisposable {
const stream = await this.createBufferedStream("reverse:list-forward");

const response = await AdbReverseStringResponse.deserialize(stream);
return response.content.split("\n").map((line) => {
const [deviceSerial, localName, remoteName] = line.split(" ") as [
string,
string,
string,
];
return { deviceSerial, localName, remoteName };
});
return response.content
.split("\n")
.filter((line) => !!line)
.map((line) => {
const [deviceSerial, localName, remoteName] = line.split(
" ",
) as [string, string, string];
return { deviceSerial, localName, remoteName };
});

// No need to close the stream, device will close it
}
Expand Down

0 comments on commit 37ef1dd

Please sign in to comment.