redhoyasa/grpc-reflection-js

Consider @grpc/grpc-js

Closed this issue ยท 5 comments

Hey. This is a cool library!

I was recently trying to integrate this into ardatan/graphql-mesh#1086 and had some conflicts when passing @grpc/grpc-js CredentialsChannel to your Client constructor. See the relevant comment in ardatan/graphql-mesh#1086

There is a conflict when using grpc-reflection-js. The CredentialsChannel type used by it is different than the CredentialsChannel type used by @grpc/grpc-js. This is why I swapped in grpc. However, on the grpc package README, it states that this package is deprecated (presumably in favor of @grpc/grpc-node? ๐Ÿค” ๐Ÿคทโ€โ™‚๏ธ)
I find this odd, because when using the JS protoc plugin, all of the generated gRPC server/client code uses the grpc package.
I suppose until protoc updates it's output dependency, then using grpc should be ok. Alternatively, we can submit a PR to grpc-reflection-js to update that dependency to use @grpc/grpc-js. Whew ๐Ÿ˜…

Hey, thanks for your interest.

I have reviewed your changes. Originally, I was using grpc because I want to create some changes to uw-labs/bloomrpc.

I think we can migrate to @grpc/grpc-js since protoc also supports @grpc/grpc-js (see this for the detail).

But I will not available in a few weeks. If you're in hurry, don't hesitate to create PR for this.

Hey @tatemz, I just published your changes in version 0.0.7

๐Ÿ’ฏ Awesome!

Are the release/tagged versions in git synchronized with the versions in the NPM registry?

Not yet, I was getting problems when publishing changes to NPM registry via Github Action and ended up making many unused tags and releases. Will fix it someday later.

I just made them synchronized.