Skip to content

Releases: chakhsu/grpcity

v2.1.0

09 Jan 03:22
Compare
Choose a tag to compare

Overview

  • build-in grpc reflection api
  • adjust loader & server api
  • add grpcity logo
  • adjust readme

Loader

  • add initReflection() & export ReflectionOptions
  • adjust initServer() options
  • fix packageDefinition()

Server

  • new serverRelfection.ts
  • add inject()
  • add & export type CustomServcie

Other

  • add reflection example

v2.0.0

08 Jan 02:25
21e48fb
Compare
Choose a tag to compare

Completely rewritten in TypeScript.

Break Change

Loader

  • no-module-default
  • use import { Protoloader } from 'grpcity' instead of import GrpcLoader from 'grpcity'
  • remove closeClients()
  • move client() to class Client
  • move realClient to class Client
  • remove clientWithoutCache()
  • use makeClientCredentials() instead of makeCredentials()
  • add makeServerCredentials()
  • remove message()
  • init() no longer support services option
  • initClients() is async func and return new class Client
  • initServer is async func and return new class Server

Client

  • new class Client
  • use get() instead of loader.client()
  • use getReal() instead of loader.clientReal()
  • support clear() to clear client proxy cache and factory cache
  • support client middleware
    • new client context for middleware
    • use use() on add middleware func
    • unary method support middleware
    • async stream support middleware
  • cache loader.initClient() options credentials
  • custom type for method call option

Server

  • use add() instead of addService()
  • use remove() instead of removeService()
  • move makeServerCredentials() to class ProtoLoader
  • use use() instead of addMiddleware()
  • new server middleware context
  • custom type for method call option

Other

  • export grpc status
  • full test for unaryCall and async stream call
  • use jest instead of mocha
  • add example

v1.0.0

18 Nov 15:49
Compare
Choose a tag to compare

Loader

  • .proto file load and path load
  • packageDefinition init cache
  • client cache
  • close clients
  • prefix support
  • multi .proto load
  • protobuf decode and encode api
  • metadata support
  • loadOptions support
  • channelOptions support

Client

  • client method proxy
  • unary method promisify
  • client stream method promisify
  • server stream method promisify
  • duplex stream method promisify
  • multi client support
  • certificates support
  • client .call keep original method
  • error handler

Server

  • server async method call proxy
  • unary method promisify
  • client stream method promisify
  • server stream method promisify
  • duplex stream method promisify
  • keep server callback method
  • certificates support
  • middleware support
  • gracefully shutdown support
  • error handler

Other

  • e2e test
  • benchmark
  • usage example