Skip to content

Commit

Permalink
Merge pull request #1725 from murgatroid99/grpc-tools_plugin_optional…
Browse files Browse the repository at this point in the history
…_fix

grpc-tools: make the plugin compatible with proto3 optional fields
  • Loading branch information
murgatroid99 committed Mar 23, 2021
2 parents ac96f5c + 661fae8 commit bc05778
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grpc-tools",
"version": "1.11.0",
"version": "1.11.1",
"author": "Google Inc.",
"description": "Tools for developing with gRPC on Node.js",
"homepage": "https://grpc.io/",
Expand Down
4 changes: 4 additions & 0 deletions packages/grpc-tools/src/node_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ class NodeGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
coded_out.WriteRaw(code.data(), code.size());
return true;
}

uint64_t GetSupportedFeatures() const override {
return FEATURE_PROTO3_OPTIONAL;
}
};

int main(int argc, char* argv[]) {
Expand Down

0 comments on commit bc05778

Please sign in to comment.