diff --git a/Cargo.lock b/Cargo.lock index 31ba8f86e..94c2f374e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4298,9 +4298,9 @@ dependencies = [ [[package]] name = "yerpc" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1baa6fce4cf16d1cff91b557baceac3e363106f66e555fff906a7f82dce8153" +checksum = "3d383dfbc1842f5b915a01deeaea3523eef8653fcd734f79f6c696d51521c70f" dependencies = [ "anyhow", "async-channel", @@ -4320,9 +4320,9 @@ dependencies = [ [[package]] name = "yerpc_derive" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e70f944ca6789bc55ddc86839478f6d49c9d2a66e130f69fd1f8d171b3108990" +checksum = "cd5e0da8e7a58236986d9032bad52f30995999f94cd39142aa1144b5875e8bce" dependencies = [ "convert_case", "darling 0.14.1", diff --git a/deltachat-jsonrpc/Cargo.toml b/deltachat-jsonrpc/Cargo.toml index 45a4f6ba1..16360b2f8 100644 --- a/deltachat-jsonrpc/Cargo.toml +++ b/deltachat-jsonrpc/Cargo.toml @@ -21,7 +21,7 @@ log = "0.4" async-channel = { version = "1.8.0" } futures = { version = "0.3.26" } serde_json = "1.0.91" -yerpc = { version = "^0.3.1", features = ["anyhow_expose"] } +yerpc = { version = "^0.4.0", features = ["anyhow_expose"] } typescript-type-def = { version = "0.5.5", features = ["json_value"] } tokio = { version = "1.25.0" } sanitize-filename = "0.4" diff --git a/deltachat-jsonrpc/typescript/src/client.ts b/deltachat-jsonrpc/typescript/src/client.ts index fce45bb19..2ed6435ff 100644 --- a/deltachat-jsonrpc/typescript/src/client.ts +++ b/deltachat-jsonrpc/typescript/src/client.ts @@ -120,7 +120,7 @@ export class StdioTransport extends BaseTransport { }); } - _send(message: RPC.Message): void { + _send(message: any): void { const serialized = JSON.stringify(message); this.input.write(serialized + "\n"); } diff --git a/deltachat-rpc-server/Cargo.toml b/deltachat-rpc-server/Cargo.toml index a08bdd965..2cda17b60 100644 --- a/deltachat-rpc-server/Cargo.toml +++ b/deltachat-rpc-server/Cargo.toml @@ -22,4 +22,4 @@ log = "0.4" serde_json = "1.0.91" serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.25.0", features = ["io-std"] } -yerpc = { version = "0.3.1", features = ["anyhow_expose"] } +yerpc = { version = "0.4.0", features = ["anyhow_expose"] }