Skip to content

package:protoc_plugin v22.2.0

Choose a tag to compare

@devoncarew devoncarew released this 19 May 18:43
· 76 commits to master since this release
deda288
  • Bump protobuf constraint to ^4.1.0

  • Read default_host and oauth_scopes options from gRPC service definitions
    and write that information to the generated gRPC clients.

  • Adjust the deprecation messages for the message clone() and copyWith()
    methods (#998).

  • Generate dartdocs for grpc services (#973).
    We now parse and generate code cooresponding to the proto options
    google.api.default_host and google.api.oauth_scopes:

    service Firestore {
      option (google.api.default_host) = "firestore.googleapis.com";
      option (google.api.oauth_scopes) =
          "https://www.googleapis.com/auth/cloud-platform,"
          "https://www.googleapis.com/auth/datastore";
    
      ...

    Will generate as:

    class FirestoreClient extends $grpc.Client {
      /// The hostname for this service.
      static const $core.String defaultHost = 'firestore.googleapis.com';
    
      /// OAuth scopes needed for the client.
      static const $core.List<$core.String> oauthScopes = [
        'https://www.googleapis.com/auth/cloud-platform',
        'https://www.googleapis.com/auth/datastore',
      ];
    
      ...
  • Minimum SDK dependency bumped from 3.3.0 to 3.6.0. (#1001)