diff --git a/.changeset/non-post-early-return.md b/.changeset/non-post-early-return.md deleted file mode 100644 index 739b11c..0000000 --- a/.changeset/non-post-early-return.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"capnweb": patch ---- - -Fix nodeHttpBatchRpcResponse leaving the connection open and crashing with -ERR_HTTP_HEADERS_SENT on non-POST requests. It now returns 405 immediately. diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ab9549..2398924 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,17 @@ # capnweb +## 0.9.1 + +### Patch Changes + +- [#195](https://github.com/cloudflare/capnweb/pull/195) [`78744ca`](https://github.com/cloudflare/capnweb/commit/78744ca99df8c93443556351b5849329765a930c) Thanks [@aleister1102](https://github.com/aleister1102)! - Fix nodeHttpBatchRpcResponse leaving the connection open and crashing with + ERR_HTTP_HEADERS_SENT on non-POST requests. It now returns 405 immediately. + ## 0.9.0 ### Minor Changes -- [#186](https://github.com/cloudflare/capnweb/pull/186) [`c70bbb7`](https://github.com/cloudflare/capnweb/commit/c70bbb77ee5b25672f77d7befef7e711f4a98836) Thanks [@teamchong](https://github.com/teamchong)! - Add transport encoding levels so custom RPC transports can work with `jsonCompatible` values, `jsonCompatibleWithBytes` values, or `structuredClonable` messages instead of always receiving JSON strings. +- [#186](https://github.com/cloudflare/capnweb/pull/186) [`c70bbb7`](https://github.com/cloudflare/capnweb/commit/c70bbb77ee5b25672f77d7befef7e711f4a98836) Thanks [@ashkalor](https://github.com/ashkalor)! - Add transport encoding levels so custom RPC transports can work with `jsonCompatible` values, `jsonCompatibleWithBytes` values, or `structuredClonable` messages instead of always receiving JSON strings. Note: `MessagePort` sessions now post structured-clonable objects over the port instead of JSON strings. This changes the wire format between the two ends of the port, so both ends of a `MessagePort` session must upgrade to this version together. diff --git a/package-lock.json b/package-lock.json index b1de5e6..a7061af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "capnweb", - "version": "0.9.0", + "version": "0.9.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "capnweb", - "version": "0.9.0", + "version": "0.9.1", "license": "MIT", "workspaces": [ ".", diff --git a/package.json b/package.json index 63ea918..e9f37e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "capnweb", - "version": "0.9.0", + "version": "0.9.1", "description": "JavaScript/TypeScript-native RPC library with Promise Pipelining", "main": "dist/index.js", "types": "dist/index.d.ts",