connectrpc / connect-es

The TypeScript implementation of Connect: Protobuf RPC that works.
https://connectrpc.com/
Apache License 2.0
1.39k stars 81 forks source link

V2: Use `Stream{Request|Response}` types in interceptors for all streaming rpcs #1230

Closed srikrsna-buf closed 2 months ago

srikrsna-buf commented 2 months ago

In v1 the server used more exact types in interceptors, for example UnaryRequest for server streaming rpcs. The client always used streaming variants. This is inconsistent and was unintended.

This change unifies the behavior, now all streaming rpcs will use the StreamRequest and StreamResponse on the server as well. This is breaking change.