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

package update grpc to grpc-js #162

Merged
merged 3 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.1.0 (August 09, 2024)
- Client: Update grpc-js

## 1.1.0 (March 16, 2022)
- Client: queryContract now accepts an alternative calling signature: `queryContract(address, functionName, ...args)`

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"packages": [
"packages/*"
],
"version": "2.0.1",
"version": "2.1.0",
"useWorkspaces": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"chai-as-promised": "^7.1.1",
"crypto-js": "^3.1.9-1",
"eslint": "^8.9.0",
"grpc-tools": "^1.6.6",
"grpc-tools": "^1.12.4",
"lerna": "^3.20.0",
"mocha": "^7.1.0",
"nyc": "^15.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herajs/client",
"version": "2.0.1",
"version": "2.1.0",
"description": "Javascript client framework for aergo",
"main": "dist/herajs.common.js",
"module": "dist/herajs.esm.js",
Expand Down Expand Up @@ -31,11 +31,11 @@
},
"homepage": "https://github.com/aergoio/herajs#readme",
"dependencies": {
"@herajs/common": "^2.0.1",
"@grpc/grpc-js": "^1.11.1",
"@herajs/common": "^2.1.0",
"@improbable-eng/grpc-web": "^0.9.1",
"@types/google-protobuf": "^3.2.7",
"google-protobuf": "^3.21.2",
"grpc": "^1.24.3",
"hash.js": "^1.1.7",
"jsbi": "^3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/providers/grpc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AergoRPCServiceClient } from '../../types/rpc_grpc_pb';
import grpc from 'grpc';
import * as grpc from '@grpc/grpc-js';

interface GrpcProviderConfig {
url?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/client/test/aergo_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Aergo invalid config', () => {

describe('blockchain()', () => {
it('should return disconnected error', async () => {
return assert.isRejected(invalidAergo.blockchain(), Error, '14 UNAVAILABLE: DNS resolution failed');
return assert.isRejected(invalidAergo.blockchain(), Error, '14 UNAVAILABLE: Name resolution failed');
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/client/types/rpc_grpc_pb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// GENERATED CODE -- DO NOT EDIT!

'use strict';
var grpc = require('grpc');
var grpc = require('@grpc/grpc-js');
var rpc_pb = require('./rpc_pb.js');
var blockchain_pb = require('./blockchain_pb.js');
var account_pb = require('./account_pb.js');
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herajs/common",
"version": "2.0.1",
"version": "2.1.0",
"description": "Herajs common library",
"main": "dist/herajs-common.cjs.js",
"module": "dist/herajs-common.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herajs/crypto",
"version": "2.0.1",
"version": "2.1.0",
"description": "Cryptography tools for aergo",
"main": "dist/herajs-crypto.cjs.js",
"module": "dist/herajs-crypto.esm.js",
Expand All @@ -27,7 +27,7 @@
},
"homepage": "https://github.com/aergoio/herajs-crypto#readme",
"dependencies": {
"@herajs/common": "^2.0.1",
"@herajs/common": "^2.1.0",
"@herajs/hdkey": "^11.2.0",
"@types/elliptic": "^6.4.0",
"aes-js": "^3.1.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/ledger-hw-app-aergo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herajs/ledger-hw-app-aergo",
"version": "2.0.1",
"version": "2.1.0",
"description": "Ledger Hardware app for Aergo",
"main": "dist/herajs-ledger-hw-app-aergo.cjs.js",
"module": "dist/herajs-ledger-hw-app-aergo.esm.js",
Expand All @@ -27,9 +27,9 @@
},
"homepage": "https://github.com/aergoio/herajs#readme",
"dependencies": {
"@herajs/client": "^2.0.1",
"@herajs/common": "^2.0.1",
"@herajs/crypto": "^2.0.1"
"@herajs/client": "^2.1.0",
"@herajs/common": "^2.1.0",
"@herajs/crypto": "^2.1.0"
},
"devDependencies": {
"@ledgerhq/hw-transport": "^6.24.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/vue-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@herajs/vue-plugin",
"version": "2.0.1",
"version": "2.1.0",
"description": "Add Aergo controller to your Vue.js project",
"main": "plugin.js",
"scripts": {},
"author": "aergo team and contributors",
"license": "MIT",
"dependencies": {
"@herajs/client": "^2.0.1",
"@herajs/wallet": "^2.0.1"
"@herajs/client": "^2.1.0",
"@herajs/wallet": "^2.1.0"
},
"gitHead": "97d1b15d147bb1bbff6d70dbe4bb06a60a881bc1"
}
10 changes: 5 additions & 5 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herajs/wallet",
"version": "2.0.1",
"version": "2.1.0",
"description": "SDK for making Aergo wallet applications",
"scripts": {
"type-check": "tsc --noEmit",
Expand All @@ -24,10 +24,10 @@
"license": "MIT",
"dependencies": {
"@elderapo/typed-event-emitter": "^1.4.1",
"@herajs/client": "^2.0.1",
"@herajs/common": "^2.0.1",
"@herajs/crypto": "^2.0.1",
"@herajs/ledger-hw-app-aergo": "^2.0.1",
"@herajs/client": "^2.1.0",
"@herajs/common": "^2.1.0",
"@herajs/crypto": "^2.1.0",
"@herajs/ledger-hw-app-aergo": "^2.1.0",
"@types/google-protobuf": "^3.2.7",
"@types/hashmap": "^2.0.29",
"@types/leveldown": "^4.0.0",
Expand Down
Loading
Loading