Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/promise-stubhook-disposal.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/result-stub-elision.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/writable-stream-arg-disposal.md

This file was deleted.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# capnweb

## 0.12.0

### Minor Changes

- [#253](https://github.com/cloudflare/capnweb/pull/253) [`46de5a7`](https://github.com/cloudflare/capnweb/commit/46de5a7503e09242755c1bc59e67bdac37a5e8ab) Thanks [@ndisidore](https://github.com/ndisidore)! - Fixed methods declared to return `Promise<RpcStub<T>>` producing broken stub-of-stub result types; they now type the same as `Promise<T>`. If you annotated such a result as `RpcPromise<RpcStub<T>>`, write `RpcPromise<T>` instead.

### Patch Changes

- [#241](https://github.com/cloudflare/capnweb/pull/241) [`2de5871`](https://github.com/cloudflare/capnweb/commit/2de5871421d852c8d5a3db241ce6f5648db3104a) Thanks [@ndisidore](https://github.com/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.

- [#243](https://github.com/cloudflare/capnweb/pull/243) [`7e864a8`](https://github.com/cloudflare/capnweb/commit/7e864a872bab9f810f24f43c478af64c6c773b00) Thanks [@ndisidore](https://github.com/ndisidore)! - Fix WritableStream stubs leaking call arguments when the stub was already disposed or the call path was invalid. All failure paths in `WritableStreamStubHook.call()` now dispose the copied arguments, matching ReadableStream behavior.

## 0.11.1

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capnweb",
"version": "0.11.1",
"version": "0.12.0",
"description": "JavaScript/TypeScript-native RPC library with Promise Pipelining",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/capnweb-validate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# capnweb-validate

## 0.3.0

### Minor Changes

- [#253](https://github.com/cloudflare/capnweb/pull/253) [`46de5a7`](https://github.com/cloudflare/capnweb/commit/46de5a7503e09242755c1bc59e67bdac37a5e8ab) Thanks [@ndisidore](https://github.com/ndisidore)! - Fixed methods declared to return `Promise<RpcStub<T>>` producing broken stub-of-stub result types; they now type the same as `Promise<T>`. If you annotated such a result as `RpcPromise<RpcStub<T>>`, write `RpcPromise<T>` instead.

## 0.2.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/capnweb-validate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capnweb-validate",
"version": "0.2.4",
"version": "0.3.0",
"description": "Build-time TypeScript validation transform for capnweb RPC.",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -79,7 +79,7 @@
},
"devDependencies": {
"@typescript/vfs": "^1.6.4",
"capnweb": "^0.11.1",
"capnweb": "^0.12.0",
"tsdown": "^0.22.0"
},
"publishConfig": {
Expand Down