Skip to content

Releases: grpc/grpc-dart

package:grpc v4.0.0

17 Jul 12:14
b999b64
Compare
Choose a tag to compare
  • Set compressed flag correctly for grpc-encoding = identity. Fixes #669 (#693)
  • Remove generated status codes.
  • Remove dependency on package:archive.
  • Move codec.dart.
  • Work around hang during Flutter hot restart by adding default case handler in _GrpcWebConversionSink.add.

package:grpc v3.2.4

08 Sep 15:41
c1fa949
Compare
Choose a tag to compare
  • Forward internal GrpcError on when throwing while sending a request.
  • Add support for proxies, see #33.
  • Remove canceled ServerHandlers from tracking list.
  • Fix regression on fetching the remote address of a closed socket.

package:grpc v3.2.3

13 Jul 10:06
c7e07a0
Compare
Choose a tag to compare
  • Add const constructor to GrpcError fixing #606.
  • Make GrpcError non-final to allow implementations.
  • Only send keepalive pings on open connections.
  • Fix interop tests.

package:grpc v3.2.0

13 Jun 13:45
ceb879d
Compare
Choose a tag to compare
  • ChannelOptions now exposes connectTimeout, which is used on the
    socket connect. This is used to specify the maximum allowed time to wait
    for a connection to be established. If connectTime is longer than the system
    level timeout duration, a timeout may occur sooner than specified in
    connectTimeout. On timeout, a SocketException is thrown.
  • Require Dart 2.17 or greater.
  • Fix issue #51, add support for custom error handling.
  • Expose client IP address to server
  • Add a channelShutdownHandler argument to ClientChannel and the subclasses.
    This callback can be used to react to channel shutdown or termination.
  • Export the Code protobuf enum from the grpc.dart library.
  • Require Dart 3.0.0 or greater.

package:grpc v3.2.0

13 Jun 10:48
3894d5a
Compare
Choose a tag to compare
  • ChannelOptions now exposes connectTimeout, which is used on the
    socket connect. This is used to specify the maximum allowed time to wait
    for a connection to be established. If connectTime is longer than the system
    level timeout duration, a timeout may occur sooner than specified in
    connectTimeout. On timeout, a SocketException is thrown.
  • Require Dart 2.17 or greater.
  • Fix issue #51, add support for custom error handling.
  • Expose client IP address to server
  • Add a channelShutdownHandler argument to ClientChannel and the subclasses.
    This callback can be used to react to channel shutdown or termination.
  • Export the Code protobuf enum from the grpc.dart library.
  • Require Dart 3.0.0 or greater.

3.1.0

27 Oct 11:56
e97711a
Compare
Choose a tag to compare
  • 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
    :authority value for UDS connections to localhost instead of using
    UDS path. Using path triggers checks in HTTP2 servers which
    attempt to validate :authority value.

3.0.2

16 Aug 12:53
7cced92
Compare
Choose a tag to compare
  • Fix compilation on the Web with DDC.

3.0.1

10 Aug 10:04
c2fb47c
Compare
Choose a tag to compare
  • 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-Type header to be present, as well
    as grpc-status: 0 header. When handling malformed responses make effort to translate HTTP statuses into gRPC statuses.
  • Add GrpcOrGrpcWebClientChannel which uses gRPC on all platforms except web, on which it uses gRPC-web.
  • GrpcError now exposes response trailers via GrpcError.trailers.

3.0.0

10 Aug 10:06
def1a19
Compare
Choose a tag to compare
  • Migrate library and tests to null safety.
  • Require Dart 2.12 or greater.

2.9.0

28 Jan 12:19
d3f0ec7
Compare
Choose a tag to compare
  • Added support for compression/decompression, which can be configured through
    ChannelOptions constructor's codecRegistry parameter or adding the
    grpc-accept-encoding to metadata parameter of CallOptions on the client
    side and codecRegistry parameter to Server on the server side.
    Outgoing rpc can be compressed using the compression parameter 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.