Skip to content

capnweb@0.11.0

Choose a tag to compare

@github-actions github-actions released this 12 Aug 16:31
· 3 commits to main since this release
5055cb0

Minor Changes

  • #212 1cca1a2 Thanks @codehz! - Support RpcTargets (and other RPC stubs) as ReadableStream/WritableStream chunks without disposing their capabilities when write() returns. Stream chunk payloads now keep lifecycle tied to the chunk (via Symbol.dispose when needed) so methods on streamed stubs remain usable after the write resolves.

  • #201 7325f9d Thanks @ttmx! - Support exact ArrayBuffer, DataView, and typed array serialization over RPC.

  • #224 064b0f3 Thanks @dimitropoulos! - Support serializing URL objects over RPC.

Patch Changes

  • #220 43aa384 Thanks @ndisidore! - Remove the ~1ms per-batch latency floor in the HTTP batch client on Node and Bun by flushing via setImmediate instead of the clamped setTimeout(0).

  • #214 2a02db9 Thanks @ndisidore! - The RPC ReadableStream type accepts any RPC-compatible chunk type, matching WritableStream.

  • #238 1a1f0d4 Thanks @Maximo-Guk! - Share one RpcPromise alias between Result and the public export. Deeply-nested RPC interfaces no longer blow the checker's depth budget: this fixes all "excessively deep" / "excessive stack depth" (TS2589/TS2321) errors under TypeScript 7 (tsgo) and reduces TypeScript 5.9 type instantiations by ~13%. RpcPromise<T> for primitive T now also carries the pipelining Provider<T> surface, matching what stub calls already returned.