{"action":"opened","issue":{"url":"https://api.github.com/repos/grpc/grpc-node/issues/550","repository_url":"https://api.github.com/repos/grpc/grpc-node","labels_url":"https://api.github.com/repos/grpc/grpc-node/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc-node/issues/550/comments","events_url":"https://api.github.com/repos/grpc/grpc-node/issues/550/events","html_url":"https://github.com/grpc/grpc-node/issues/550","id":360436086,"node_id":"MDU6SXNzdWUzNjA0MzYwODY=","number":550,"title":"createPackageDefinition without doing file I/O?","user":{"login":"dckc","id":150986,"node_id":"MDQ6VXNlcjE1MDk4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/150986?v=4","gravatar_id":"","url":"https://api.github.com/users/dckc","html_url":"https://github.com/dckc","followers_url":"https://api.github.com/users/dckc/followers","following_url":"https://api.github.com/users/dckc/following{/other_user}","gists_url":"https://api.github.com/users/dckc/gists{/gist_id}","starred_url":"https://api.github.com/users/dckc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dckc/subscriptions","organizations_url":"https://api.github.com/users/dckc/orgs","repos_url":"https://api.github.com/users/dckc/repos","events_url":"https://api.github.com/users/dckc/events{/privacy}","received_events_url":"https://api.github.com/users/dckc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-14T20:01:04Z","updated_at":"2018-09-14T20:01:04Z","closed_at":null,"author_association":"NONE","body":"### Is your feature request related to a problem? Please describe.\r\n\r\nI have a service `DeployService` that uses types such as `Par`. I'm using `Par.create()` and such in one part of my app where I'm not doing any I/O, and making calls to `DeployService` in other parts of the app.\r\n\r\nI can make a `Protobuf.Root` from the .json version of my message types that I get from `pbjs`. This is fine for `Par.create()` and such. But I don't see how to get a `PackageDefinition` from this root. The only option I see is `loadPackageDefinition` that does all the work of pbjs again, only at runtime.\r\n\r\n### Describe the solution you'd like\r\n\r\nexport `createPackageDefinition`.\r\n\r\nOr at least make the `Protobuf.Root` available from the `PackageDefinition`.\r\n\r\n### Describe alternatives you've considered\r\n\r\nI considered forking this code and adding the export declaration.\r\n\r\nBut out of expediency: I'm loading the message types twice: once for `Par.create()` and such, and again for gRPC calls.\r\n\r\n\r\n### Additional context\r\n\r\nfor reference, the project I'm working on is https://github.com/JoshOrndorff/RChain-API\r\n\r\ncc @JoshOrndorff\r\n"}}
{"actor":{"display_login":"dckc"}}