Skip to content

Releases: cloudflare/capnweb

v0.6.1

09 Mar 23:05
cfa1b95

Choose a tag to compare

Patch Changes

  • #148 189fa79 Thanks @kentonv! - Fixed type overrides for Uint8Array's toBase64 and fromBase64 leaking into capnweb's public interface.

v0.6.0

09 Mar 20:21
03c82e8

Choose a tag to compare

Minor Changes

  • #145 5667226 Thanks @kentonv! - When Node's Buffer is available, Cap'n Web will now serialize it the same as Uint8Array, and will deserialize all byte arrays as Buffer by default. Buffer is a subclass of Uint8Array, so this should be compatible while being convenient in Node apps.

  • #142 60be60d Thanks @VastBlast! - Major improvements to type definitions, fixing bugs and making them more accurate.

Patch Changes

  • #145 5667226 Thanks @kentonv! - Fixed base64 encoding of very large byte arrays on platforms that don't support Uint8Array.toBase64().

v0.5.0

18 Feb 23:09
844e2ec

Choose a tag to compare

Minor Changes

  • #132 c2bb17b Thanks @kentonv! - Added support for sending ReadableStream and WritableStream over RPC, with automatic flow control.

Patch Changes

  • #129 10abaf3 Thanks @dmmulroy! - Fix RpcCompatible type to filter out symbol keys instead of mapping them to never

v0.4.0

24 Dec 14:59
db952ec

Choose a tag to compare

Minor Changes

  • #121 32e362f Thanks @kentonv! - Improved compatibility with Cloudflare Workers' built-in RPC, particularly when proxying from one to the other.

v0.3.0

16 Dec 21:35
76fdff1

Choose a tag to compare

Minor Changes

  • #78 8a47045 Thanks @itaylor! - The package now exports the type RpcCompatible<T> (previously called Serializable<T>, but not exported), which is needed when writing generic functions on RpcStub / RpcPromise.

Patch Changes

v0.2.0

05 Nov 14:30
6d805d4

Choose a tag to compare

Minor Changes

  • #105 f4275f5 Thanks @kentonv! - Fixed incompatibility with bundlers that don't support top-level await. The top-level await was used for a conditional import; it has been replaced with an approach based on "exports" in package.json instead.

  • #105 f4275f5 Thanks @kentonv! - Support serializing Infinity, -Infinity, and NaN.

Patch Changes

  • #105 f4275f5 Thanks @kentonv! - Attempting to remotely access an instance property of an RpcTarget will now throw an exception rather than returning undefined, in order to help people understand what went wrong.

  • #107 aa4fe30 Thanks @threepointone! - chore: generate commonjs build

  • #105 f4275f5 Thanks @kentonv! - Polyfilled Promise.withResolvers() to improve compatibility with old Safari versions and Hermes (React Native).