Skip to content
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

bump @grpc/grpc-js to a static version #164

Merged
merged 2 commits into from
Jan 13, 2023

Conversation

nick-w-nick
Copy link
Contributor

@nick-w-nick nick-w-nick commented Jan 11, 2023

Due to a bug with @grpc/grpc-js v1.8.2, the dgraph-js library fails to properly close GRPC calls causing mass failures across any applications utilizing this library to perform queries against DGraph.

Since dgraph-js opts into patch version updates via the caret symbol ^ for this specific dependency, this caused an issue for any new deployments that utilize the package.

This change is a suggestion to set the @grpc/grpc-js version to a static 1.8.1 for the time being. A patch for this issue has already been deployed in v1.8.3 of the library, but we decided against utilizing this version until it has had time to be further tested and verified as working.


This change is Reviewable

@MichelDiz MichelDiz merged commit 3a28015 into hypermodeinc:master Jan 13, 2023
shivaji-kharse pushed a commit that referenced this pull request Nov 5, 2024
Currently, the `grpc` dependency is causing the issue shown in issue
#231 due to an incompatibility with the most recent version of `grpc`
and any platform other than Linux based on our testing. We've also shown
reports that the prebuilt binaries downloaded by `gprc` are causing
massive bloat _**(nearly a 5x increase in size)**_ to our bundles that
are generated with the dependency included.

Upon investigation, we noticed that `grpc` isn't actually used by
anything in the library anymore, and was seemingly [added back by
mistake](#183) during the
most recent release, as `@grpc/grpc-js` is used in place of it.

Sources:
[Original PR](#125) to remove
`grpc`
[PR I made last year](#164),
where `grpc` was not in the list of dependencies at the time,
reinforcing the fact that it was added back by mistake
[The README of this very
repo](https://github.com/dgraph-io/dgraph-js?tab=readme-ov-file#install),
which has instructions to install `@grpc/grpc-js` and not `grpc`, and
[here is the PR](#182) where
that change was made

This PR is to remove the `grpc` dependency from the package to
accomplish the following:
- remedy the installation issue
- reduce install sizes
- get rid of an unused dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants