You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1455667226 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.
#14260be60d Thanks @VastBlast! - Major improvements to type definitions, fixing bugs and making them more accurate.
Patch Changes
#1455667226 Thanks @kentonv! - Fixed base64 encoding of very large byte arrays on platforms that don't support Uint8Array.toBase64().
#788a47045 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.
#105f4275f5 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.
#105f4275f5 Thanks @kentonv! - Support serializing Infinity, -Infinity, and NaN.
Patch Changes
#105f4275f5 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.