Skip to content

Commit

Permalink
Merge pull request #1739 from murgatroid99/grpc-js_no_version_check
Browse files Browse the repository at this point in the history
grpc-js: Remove explicit version compatibility check
  • Loading branch information
murgatroid99 committed Apr 6, 2021
2 parents 5d40517 + 72136bc commit 48afaf1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 1 addition & 3 deletions packages/grpc-js/package.json
Expand Up @@ -22,7 +22,6 @@
"@types/mocha": "^5.2.6",
"@types/ncp": "^2.0.1",
"@types/pify": "^3.0.2",
"@types/semver": "^6.0.1",
"@types/yargs": "^15.0.5",
"clang-format": "^1.0.55",
"execa": "^2.0.3",
Expand Down Expand Up @@ -57,8 +56,7 @@
"posttest": "npm run check"
},
"dependencies": {
"@types/node": ">=12.12.47",
"semver": "^6.2.0"
"@types/node": ">=12.12.47"
},
"files": [
"src/**/*.ts",
Expand Down
7 changes: 0 additions & 7 deletions packages/grpc-js/src/index.ts
Expand Up @@ -15,8 +15,6 @@
*
*/

import * as semver from 'semver';

import {
ClientDuplexStream,
ClientReadableStream,
Expand Down Expand Up @@ -66,11 +64,6 @@ import {
ServerDuplexStream,
} from './server-call';

const supportedNodeVersions = require('../../package.json').engines.node;
if (!semver.satisfies(process.version, supportedNodeVersions)) {
throw new Error(`@grpc/grpc-js only works on Node ${supportedNodeVersions}`);
}

export { OAuth2Client };

/**** Client Credentials ****/
Expand Down

0 comments on commit 48afaf1

Please sign in to comment.