node-grpc-graphql-server

Generates GraphQL schemas from gRPC Protocol Buffers and creates the server or gRPC client.

MIT License

Downloads
501
Stars
11
Committers
3

Bot releases are hidden (Show)

node-grpc-graphql-server - v1.2.0

Published by single9 5 months ago

What's Changed in v1.2.0

  • chore(): bumped to version 1.2.0 by @single9
  • chore: add cliff by @single9
  • ci: update github action by @single9
  • ci: update github action by @single9
  • chore: update packages and fix deprecated code by @single9
  • chore(deps): bump @babel/traverse from 7.18.9 to 7.24.1 by @single9 in #13
  • chore(deps): bump @babel/traverse from 7.18.9 to 7.24.1 by @dependabot[bot]
  • chore(deps): bump protobufjs from 7.2.4 to 7.2.6 by @single9 in #12
  • chore(deps): bump protobufjs from 7.2.4 to 7.2.6 by @dependabot[bot]
node-grpc-graphql-server - v1.1.6 Latest Release

Published by single9 over 1 year ago

  • Update packages to fix security issues
node-grpc-graphql-server - v1.1.5

Published by single9 almost 2 years ago

  • Update packages to fix security issues
node-grpc-graphql-server - v1.1.4

Published by single9 almost 2 years ago

  • Update dev-dependencies
node-grpc-graphql-server - v1.1.3

Published by single9 about 2 years ago

Update @grpc/grpc-js to 1.6.10

node-grpc-graphql-server - v1.1.2

Published by single9 over 2 years ago

  • Update @grpc/grpc-js
node-grpc-graphql-server - v1.1.0

Published by single9 over 2 years ago

  • Update types
  • Update test scripts
  • Fix vulnerability issues
node-grpc-graphql-server - v1.0.0

Published by single9 over 2 years ago

Hi guys,

In this version, the major change is all source code is move from native JavaScript to TypeScript. Now, you can see more details in your IDE which have code intelligence.

BTW, I also use yarn instead of npm!

Changes:

  • Move to TypeScript
  • Add initRPCClient to instead of new RPCClient
  • Add tests
  • Fix bugs
  • Improve types

Migration

The RPCClient is no longer return the gRPC clitents after created. This is because of limitation of TypeScript[1]. So I add another function, initRPCClient, to create clients.

Just replace new RPCClient with initRPCClient and your program will work like before.

const { RPCClient } = require("grpc-graphql-server");
- const rpcClient = new RPCClient({
+ const rpcClient = initRPCClient({
  // protoFile: __dirname + '/protos', // Set this if your protobuf file doesn't located in the default directory.
  packages: [
    {
      name: "helloworld",
      services: [
        {
          name: "Greeter",
          // port: 50052,  // Uncomment this to set gRPC client port to 50052
        },
      ],
    },
  ],
});

[1]: Return type of constructor signature must be assignable to the instance type of the class.ts(2409)

Full Changelog: https://github.com/single9/node-grpc-graphql-server/compare/v0.6.2...v1.0.0

node-grpc-graphql-server - v0.6.2

Published by single9 almost 3 years ago

  • Support GraphQL subscription
  • Compatible with Apollo Server v3
node-grpc-graphql-server - v0.5.1

Published by single9 about 3 years ago

Changes

  • You can exclude the service function that you are not want to include in GraphQL

Updates

  • Update dependency
  • Update documentation
node-grpc-graphql-server - v0.5.0

Published by single9 about 3 years ago

Changes

  • You can control what service function appear in query or mutation type.
  • Closing connection while getting error.
  • Add some debug log. Set DEBUG='grpc-gql-server:*' to enable it.

Updates

  • Update documentation.
  • Update test for new types.
node-grpc-graphql-server - v0.4.0

Published by single9 over 3 years ago

In v0.4.0, we have three changes:

  1. Add gRPC JS runtime library support and its generator. (See Generate gRPC JS runtime library)
  2. Change parameters within RPC Server. (See Migration from v0.3.x)
  3. Refactor converter of Protocol Buffers (v3) to GraphQL.

You can install this version via npm:

npm i [email protected]

I will continue to develop this package and any feedback is welcome! :)

node-grpc-graphql-server -

Published by single9 over 3 years ago

node-grpc-graphql-server -

Published by single9 over 3 years ago

node-grpc-graphql-server -

Published by single9 almost 4 years ago

node-grpc-graphql-server -

Published by single9 almost 4 years ago

node-grpc-graphql-server -

Published by single9 almost 4 years ago

  • Add manually GraphQL schema and resolver

https://www.npmjs.com/package/grpc-graphql-server/v/0.2.0

node-grpc-graphql-server -

Published by single9 almost 4 years ago

node-grpc-graphql-server -

Published by single9 almost 4 years ago

node-grpc-graphql-server -

Published by single9 almost 4 years ago

Package Rankings
Top 14.57% on Npmjs.org
Badges
Extracted from project README
codecov