You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE
* feat: use @grpc/grpc-js instead of grpc
* no need to have client libs test since end-to-end exists
* use any instead of ts-ignore
* no need to console.error
* fix windows builds
Copy file name to clipboardExpand all lines: README.md
+11
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,17 @@ Application code will rarely need to use most of the classes within this library
15
15
$ npm install google-gax
16
16
```
17
17
18
+
## Supporting older version of Node.js
19
+
20
+
This library uses [grpc-js](https://www.npmjs.com/package/@grpc/grpc-js) package for communicating with API server, and it uses HTTP/2 functionality
21
+
that is only available in Node.js v8.13.0 or newer. If you need to use this library with older versions of Node.js, you need to make your code depend
22
+
on a legacy gRPC library ([grpc](https://www.npmjs.com/package/grpc)) and pass the instance of gRPC to the client constructor:
23
+
24
+
```js
25
+
constgrpc=require('grpc');
26
+
constclient=newAPIClient({ grpc }); // APIClient is the client class you use, e.g. SpeechClient, etc.
27
+
```
28
+
18
29
## Contributing
19
30
Contributions to this library are always welcome and highly encouraged. See the [CONTRIBUTING][contributing] documentation for more information on how to get started.
0 commit comments