Releases: cloudflare/capnweb
capnweb-validate@0.2.2
Patch Changes
- #197
0409821Thanks @teamchong! - Treat Workersfetchandconnectlifecycle methods as passthrough methods onWorkerEntrypointandDurableObjecttargets.
capnweb-validate@0.2.1
Patch Changes
- #194
4093556Thanks @teamchong! - Fix@validateRpc()breaking decorated classes that extend other decorated classes: prototype methods are now wrapped in place instead of returning a Proxy from the constructor, so subclass-only methods validate correctly, instances stay real brandedRpcTargets, and incoming callback stubs pass through as native stubs (opt in to validating them withvalidateStub<T>(stub)).
capnweb-validate@0.2.0
Minor Changes
- #169
2cb51ebThanks @teamchong! - Introduced capnweb-validate, a separate package that allows you to wrap your RPC interfaces in runtime type-checking based on your TypeScript interfaces.
v0.8.0
Minor Changes
- #155
48f4d49Thanks @G4brym! - AddBlobas a serializable type over RPC.Blobobjects can now be passed as call arguments and return values. The MIME type (blob.type) is preserved across the wire.
Patch Changes
-
#166
7413e43Thanks @aron-cf! - Errors properties, usingObject.keys(), are now preserved across the wire. Attach fields likecodeordetailsto anErrorand they propagate to the other side. Thecauseanderrors(forAggregateError) properties will also be preserved. -
#168
25baebfThanks @kentonv! - Fix memory leak that kept all messages received in a session pinned in memory until the session ended, due to surprising implementation details of JavaScript Promises. -
#152
9e499e2Thanks @VastBlast! - Fix serialization for Invalid/NaN dates
v0.7.0
v0.6.1
v0.6.0
Minor Changes
-
#145
5667226Thanks @kentonv! - When Node'sBufferis available, Cap'n Web will now serialize it the same asUint8Array, and will deserialize all byte arrays asBufferby default.Bufferis a subclass ofUint8Array, so this should be compatible while being convenient in Node apps. -
#142
60be60dThanks @VastBlast! - Major improvements to type definitions, fixing bugs and making them more accurate.