diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d622da..e67cd03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * 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. ## 3.1.0 diff --git a/lib/grpc.dart b/lib/grpc.dart index 09ececc..d87836d 100644 --- a/lib/grpc.dart +++ b/lib/grpc.dart @@ -38,7 +38,8 @@ export 'src/client/options.dart' export 'src/client/transport/http2_credentials.dart' show BadCertificateHandler, allowBadCertificates, ChannelCredentials; -/// Status detail types +/// Status detail types and error codes +export 'src/generated/google/rpc/code.pbenum.dart'; export 'src/generated/google/rpc/error_details.pb.dart'; export 'src/server/call.dart' show ServiceCall; export 'src/server/interceptor.dart' show Interceptor;