Releases: vyshane/grpc-swift-combine
Releases · vyshane/grpc-swift-combine
0.19.0
0.18.0
This release contains backwards-incompatible API changes. Instead of GRPCStatus
, RPCs now signal failure through a new RPCError
type. The RPCError
type contains the GRPCStatus
as well as trailing metadata.
The RPC call
and handle
functions are now based on the following signatures:
RPC Style | Input and Output Types |
---|---|
Unary | Request -> AnyPublisher<Response, RPCError> |
Server streaming | Request -> AnyPublisher<Response, RPCError> |
Client streaming | AnyPublisher<Request, Error> -> AnyPublisher<Response, RPCError> |
Bidirectional streaming | AnyPublisher<Request, Error> -> AnyPublisher<Response, RPCError> |
RetryPolicy.when
also now provides RPCError
instead of GRPCStatus
to its predicate. I.e. when
now has the signature RPCError -> Bool
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
0.10.0
Update Swift gRPC to v1.0.0-alpha.11. This version of Swift gRPC has breaking API changes. You will need to regenerate Swift sources from your protobuf.
Since upstream has breaking changes, I have also taken the opportunity to rename the RetryPolicy.failedCall
onGiveUp
parameter to didGiveUp
, which is more idiomatic Swift.