mirror of https://github.com/grpc/grpc.io.git
38 lines
1.4 KiB
Markdown
38 lines
1.4 KiB
Markdown
---
|
|
title: Announcing gRPC-JS 1.0
|
|
date: 2020-04-20
|
|
author:
|
|
name: Michael Lumish
|
|
link: https://github.com/murgatroid99
|
|
---
|
|
|
|
We are excited to announce the release of version 1.0 of gRPC-JS
|
|
([@grpc/grpc-js](https://www.npmjs.com/package/@grpc/grpc-js)),
|
|
a pure-TypeScript reimplementation of the original Node gRPC library,
|
|
[grpc](https://www.npmjs.com/package/grpc).
|
|
|
|
## Features
|
|
|
|
gRPC-JS supports the following features, which should cover most use cases:
|
|
|
|
+ Clients
|
|
+ Automatic reconnection
|
|
+ Servers
|
|
+ Streaming
|
|
+ Metadata
|
|
+ Partial compression support: clients can decompress response messages
|
|
+ Pick first and round robin load balancing policies
|
|
+ Client Interceptors
|
|
+ Connection Keepalives
|
|
+ HTTP Connect support (proxies)
|
|
|
|
## Should I use `@grpc/grpc-js` or `grpc`?
|
|
|
|
The original Node.js gRPC library ([grpc](https://www.npmjs.com/package/grpc)) has been deprecated,
|
|
so we recommend that you use ([@grpc/grpc-js](https://www.npmjs.com/package/@grpc/grpc-js)).
|
|
|
|
However, some advanced features haven't been ported to gRPC-JS yet,
|
|
such as full compression support or support for other load balancing policies.
|
|
If you need one of these features, you should use the original Node `grpc` library,
|
|
but file a [feature request](https://github.com/grpc/grpc-node/issues/new?template=feature_request.md)
|
|
for gRPC-JS to let us know which features you are missing the most. |