-
Notifications
You must be signed in to change notification settings - Fork 295
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): fix npm (grpc) build on NodeJS v20.4.0 #2563
build(deps): fix npm (grpc) build on NodeJS v20.4.0 #2563
Conversation
6db9daf
to
46c8e9d
Compare
46c8e9d
to
4973ca9
Compare
Hi @petermetz, I've corrected |
4973ca9
to
73c85ff
Compare
@sandeepnRES The protos-js folder's package.json still had a |
73c85ff
to
35942c8
Compare
@petermetz the below test case fails |
252909d
to
563d73f
Compare
@jagpreetsinghsasan Thanks for catching that! I've removed the failing code for now just to get it moving along. @takeutak Apologies but I had to make some further modifications so please take a look at the new diff if you have the chance! |
563d73f
to
c75fc56
Compare
...s/cactus-plugin-ledger-connector-fabric-socketio/src/main/typescript/connector/sign-utils.ts
Outdated
Show resolved
Hide resolved
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.
LGTM. Just had a suggestion below for a refactoring instead of a deletion. See if that works. Otherwise, if you don't want to spend the time to refactor code right now, I'll approve.
@VRamakrishna Thank you, this helps a lot! What you suggest makes a lot of sense to me and I agree it should be done. With that said, this pull request has been pending for a while and due to it being a fix for critical severity vulnerabilities I would suggest to merge it now and send a separate pull request later with the refactor as you described (I'd go with re-using the code not copying it unless it somehow introduces a circular dependency among the packages that we cannot get out of). |
1. Eliminates all uses of the old `grpc` dependency from the codebase. 1.1. Upgraded all outdated fabirc-network, fabric-client and fabric-ca-client dependencies to the latest stable 2.2.x version which is 2.2.19 at the time. 1.2. Also outright swapped `grpc` declarations with `@grpc/grpc-js`. The rest of the diff is due to the incompatibility of the two mentioned. Fixes hyperledger-cacti#2562 Fixes hyperledger-cacti#1507 Signed-off-by: Sandeep Nishad <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
c75fc56
to
a11825c
Compare
grpc
dependency from the codebase.1.1. Upgraded all outdated fabirc-network, fabric-client and fabric-ca-client
dependencies to the latest stable 2.2.x version which is 2.2.18 at the time.
1.2. Also outrighted swapped
grpc
declarations with@grpc/grpc-js
.The rest of the diff is due to the incompatibility of the two mentioned.
Fixes #2562
Fixes #1507
Signed-off-by: Peter Somogyvari [email protected]