-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop Node 6 / Replace grpc w/ @grpc/grpc-js #2856
Conversation
9b4cd43
to
309a105
Compare
309a105
to
e0fb73d
Compare
Binary Size ReportAffected SDKs
Test Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval for @firebase/testing
.
packages/testing/package.json
Outdated
@@ -20,7 +23,7 @@ | |||
"@firebase/logger": "0.2.1", | |||
"@firebase/util": "0.2.44", | |||
"@types/request": "2.48.4", | |||
"grpc": "1.24.2", | |||
"firebase": "7.13.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is redundant. firebase
is already a dependency.
Was grpc a redundant dependency anyway regardless of this change?
@@ -25,8 +25,7 @@ import { | |||
import firebase from '@firebase/app'; | |||
const SDK_VERSION = firebase.SDK_VERSION; | |||
|
|||
// eslint-disable-next-line @typescript-eslint/no-require-imports | |||
const grpcVersion = require('@grpc/grpc-js/package.json').version; | |||
const grpcVersion = import('@grpc/grpc-js/package.json').version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also use a normal import, then add a plugin in the rollup.config.js.
import { version } from '@grpc/grpc-js/package.json'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already use this build setting, but since we don't use rollup
for our unit tests, this breaks the unit test.
@grpc/grpc-js
grpc
, replaces all usages with@grpc/grpc-js
@types/node
, which is required to make@grpc/grpc-js
compile. This also addsfinally
to the Promise API, which requires a small code change.Note that there are currently two version of
@grpc/grpc-js
in our repo, which should go away once firebase/firebase-tools#2093 is released.