capnweb@0.12.0
Minor Changes
-
#253
46de5a7Thanks @ndisidore! - Fixed methods declared to returnPromise<RpcStub<T>>producing broken stub-of-stub result types; they now type the same asPromise<T>. If you annotated such a result asRpcPromise<RpcStub<T>>, writeRpcPromise<T>instead. -
#242
9751a4eThanks @ndisidore! -RpcPromisecan now be constructed from aPromise: pipelined calls queue in order until it settles, so you can publish a capability that doesn't exist yet.
Patch Changes
-
#241
2de5871Thanks @ndisidore! - Fix RPC argument and capture leaks on failure paths: call arguments are now reliably disposed when a call is rejected, delivered to a broken or disposed stub, or fails to serialize. -
#251
7a6e5daThanks @ndisidore! - TheRpcPromiseconstructor now applies the same stub elision as method result types: wrapping aPromise<RpcStub<T>>produces the sameRpcPromise<T>a method declared to return that stub would, plain-interface stub payloads keep their stub type, and promises resolving to inline object literals with methods now infer correctly. -
#243
7e864a8Thanks @ndisidore! - Fix WritableStream stubs leaking call arguments when the stub was already disposed or the call path was invalid. All failure paths inWritableStreamStubHook.call()now dispose the copied arguments, matching ReadableStream behavior.