Skip to content

Releases: single9/node-grpc-graphql-server

v1.2.0

31 May 03:39
v1.2.0
6386e28
Compare
Choose a tag to compare

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]

v1.1.6

11 Jul 03:06
v1.1.6
ef485c0
Compare
Choose a tag to compare
  • Update packages to fix security issues

v1.1.5

12 Jan 01:40
v1.1.5
401cb6a
Compare
Choose a tag to compare
  • Update packages to fix security issues

v1.1.4

29 Oct 14:41
v1.1.4
95efe01
Compare
Choose a tag to compare
  • Update dev-dependencies

v1.1.3

21 Aug 05:29
v1.1.3
b3d62b0
Compare
Choose a tag to compare

Update @grpc/grpc-js to 1.6.10

v1.1.2

19 Jul 02:59
v1.1.2
0afa732
Compare
Choose a tag to compare
  • Update @grpc/grpc-js

v1.1.0

14 Jun 03:30
v1.1.0
f610eb5
Compare
Choose a tag to compare
  • Update types
  • Update test scripts
  • Fix vulnerability issues

v1.0.0

20 Jan 09:04
v1.0.0
ad4958f
Compare
Choose a tag to compare

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: v0.6.2...v1.0.0

v0.6.2

17 Nov 06:00
v0.6.2
fa5be89
Compare
Choose a tag to compare
  • Support GraphQL subscription
  • Compatible with Apollo Server v3

v0.5.1

14 Sep 01:33
v0.5.1
3e73ee1
Compare
Choose a tag to compare

Changes

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

Updates

  • Update dependency
  • Update documentation