Releases: grpc/grpc-dart
Releases · grpc/grpc-dart
package:grpc v3.2.3
- Add const constructor to
GrpcErrorfixing #606. - Make
GrpcErrornon-final to allow implementations. - Only send keepalive pings on open connections.
- Fix interop tests.
package:grpc v3.2.0
ChannelOptionsnow exposesconnectTimeout, which is used on the
socket connect. This is used to specify the maximum allowed time to wait
for a connection to be established. IfconnectTimeis longer than the system
level timeout duration, a timeout may occur sooner than specified in
connectTimeout. On timeout, aSocketExceptionis thrown.- Require Dart 2.17 or greater.
- Fix issue #51, add support for custom error handling.
- Expose client IP address to server
- Add a
channelShutdownHandlerargument toClientChanneland the subclasses.
This callback can be used to react to channel shutdown or termination. - Export the
Codeprotobuf enum from thegrpc.dartlibrary. - Require Dart 3.0.0 or greater.
package:grpc v3.2.0
ChannelOptionsnow exposesconnectTimeout, which is used on the
socket connect. This is used to specify the maximum allowed time to wait
for a connection to be established. IfconnectTimeis longer than the system
level timeout duration, a timeout may occur sooner than specified in
connectTimeout. On timeout, aSocketExceptionis thrown.- Require Dart 2.17 or greater.
- Fix issue #51, add support for custom error handling.
- Expose client IP address to server
- Add a
channelShutdownHandlerargument toClientChanneland the subclasses.
This callback can be used to react to channel shutdown or termination. - Export the
Codeprotobuf enum from thegrpc.dartlibrary. - Require Dart 3.0.0 or greater.
3.1.0
- Expose a stream for connection state changes on ClientChannel to address
#428.
This allows users to react to state changes in the connection. - Fix #576: set default
:authorityvalue for UDS connections tolocalhostinstead of using
UDS path. Using path triggers checks in HTTP2 servers which
attempt to validate:authorityvalue.
3.0.2
3.0.1
- Require
package:googleapis_auth^1.1.0 - Fix issues #421 and #458. Validate responses according to gRPC/gRPC-Web protocol specifications: require 200 HTTP status and a supported
Content-Typeheader to be present, as well
asgrpc-status: 0header. When handling malformed responses make effort to translate HTTP statuses into gRPC statuses. - Add
GrpcOrGrpcWebClientChannelwhich uses gRPC on all platforms except web, on which it uses gRPC-web. GrpcErrornow exposes response trailers viaGrpcError.trailers.
3.0.0
2.9.0
- Added support for compression/decompression, which can be configured through
ChannelOptionsconstructor'scodecRegistryparameter or adding the
grpc-accept-encodingtometadataparameter ofCallOptionson the client
side andcodecRegistryparameter toServeron the server side.
Outgoing rpc can be compressed using thecompressionparameter on the
CallOptions. - Fix issue #206. Prevent an
exception to be thrown when a web connection stream is closed. - Add XHR raw response to the GrpcError for a better debugging
(PR #423).
Note: this is the last release supporting SDK < 2.12. Next release will
be nullsafe and thus require SDK >= 2.12.
2.8.0
- Added support for client interceptors, which can be configured through
Clientconstructor'sinterceptorsparameter. Interceptors will be
executed byClient.$createStreamingCallandClient.$createUnaryCall.
Using interceptors requires regenerating client stubs using version 19.2.0 or
newer of protobuf compiler plugin. Client.$createCallis deprecated because it does not invoke client
interceptors.- Fix issue #380 causing
incorrect duplicated headers in gRPC-Web requests. - Change minimum required Dart SDK to 2.8 to enable access to Unix domain sockets.
- Add support for Unix domain sockets in
Socket.serveandClientChannel. - Fix issue #331 causing
an exception inGrpcWebClientChannel.terminate().
2.7.0
2.7.0
- Added decoding/parsing of
grpc-status-details-binto pass all response
exception details to theGrpcErrorthrown in Dart, via
#349. - Dart SDK constraint is bumped to
>=2.3.0 <3.0.0due to language version
in the generated protobuf code.
2.6.0
- Create gRPC servers and clients with [Server|Client]TransportConnnection.
This allows callers to propvide their own transport configuration, such
as their own implementation of streams and sinks instead of sockets.
2.5.0
- Expose a
validateClientmethod for server credentials so gRPC server
users may know when clients are loopback addresses.
2.4.1
- Plumb stacktraces through request / response stream error handlers.
- Catch and forward any errors decoding the response.
2.4.0
- Add the ability to bypass CORS preflight requests.