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

build(deps): migrate from grpc to @grpc/grpc-js and make it a prod dependency #182

Merged

Conversation

petermetz
Copy link
Member

BREAKING CHANGE: When creating a gRPC Iroha service instance such as
CommandService or QueryService you have to make sure to create the
credentials object that you will use to construct the service instances
from the new gRPC library. Otherwise your code will throw, claiming that
you have not passed in a valid credentials object (even though you did,
just with the wrong version of the gRPC library)

Primary changes:

  1. Migrate over from the legacy and unmaintained grpc to @grpc/grpc-js
  2. Move from devDependencies to dependencies so that is a production
    dependency of the package.

Secondary changes:

  1. Ignored the .yarn/cache directory in git so that there aren't 400
    new files in the git index after a yarn install execution on the terminal.

Fixes #173

Signed-off-by: Peter Somogyvari [email protected]

…pendency

BREAKING CHANGE: When creating a gRPC Iroha service instance such as
`CommandService` or `QueryService` you have to make sure to create the
credentials object that you will use to construct the service instances
from the new gRPC library. Otherwise your code will throw, claiming that
you have not passed in a valid credentials object (even though you did,
just with the wrong version of the gRPC library)

Primary changes:
===============

1. Migrate over from the legacy and unmaintained grpc to @grpc/grpc-js
2. Move from `devDependencies` to `dependencies` so that is a production
dependency of the package.

Secondary changes:
==================

1. Ignored the .yarn/cache directory in git so that there aren't 400
new files in the git index after a `yarn install` execution on the terminal.

Fixes hyperledger#173

Signed-off-by: Peter Somogyvari <[email protected]>
Copy link
Member

@baziorek baziorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not javascript specialist, but changes looks OK for me. What is more in comment: #173 (comment) Peter wrote that after changes: everything is working with Cacti. I was one of mentors of integration between Iroha 1 and Cacti (another mentor was Peter) and I know that when everything is working in the connection it means that everything will work in iroha-javascript after changing (all commands and queries were integrated + integration was well tested).

Links:

@6r1d 6r1d merged commit 72ab5b6 into hyperledger:main Dec 2, 2023
1 check passed
@petermetz petermetz deleted the build-deps-migrateo-to-grpc-grpc-js branch December 2, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move grpc from devDependencies to dependencies
3 participants