Skip to content

Commit

Permalink
fix sdk not working on node v12 (#282)
Browse files Browse the repository at this point in the history
* chore: upgrade node-grpc, and make this lib work with node.js v8.x or above

* chore: bump version
  • Loading branch information
wangshijun authored May 16, 2019
1 parent 41ab0d7 commit 6499e05
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 12 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_js:
- '8'
- '10'
- '11'
- '12'
install: false
branches:
only:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.27.1 (May 16, 2019)
- chore: upgrade node-grpc, and make this lib work with node.js v8.x or above
- update readme

## 0.27.0 (May 16, 2019)
- chore: upgrade sdk-util dependency version
- chore: update dts and cleanup test case
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

> Javascript SDK for [forge](https://docs.arcblock.io/forge/latest/), which is an awesome framework to write distributed blockchain applications.
> Last updated at 2019-5-16 03:30:37
> Last updated at 5/16/2019, 12:01:57 PM
## Packages Included


- [@arcblock/did v0.27.0](./packages/did)
- [@arcblock/did-auth v0.27.0](./packages/did-auth)
- [@arcblock/did-util v0.27.0](./packages/did-util)
Expand All @@ -21,6 +22,7 @@
- [@arcblock/grpc-client v0.27.0](./packages/grpc-client)
- [@arcblock/mcrypto v0.27.0](./packages/mcrypto)
- [@arcblock/tcp-server v0.27.0](./packages/tcp-server)

- [@arcblock/forge-cli v0.27.0](./apps/forge-cli)

## Documentation
Expand All @@ -31,6 +33,10 @@

Checkout [CONTRIBUTION.md](./CONTRIBUTION.md)

## Compatibility

Forge javascript sdk works with node.js v8.x or above, checkout [Travis](https://travis-ci.com/ArcBlock/forge-js/builds) for status.

## Report a Bug?

Bugs and feature requests please create new issues [here](https://github.com/ArcBlock/forge-js/issues)
Expand Down
2 changes: 1 addition & 1 deletion packages/grpc-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@arcblock/forge-util": "^0.27.0",
"camelcase": "^5.0.0",
"debug": "^4.1.1",
"grpc": "^1.18.0"
"grpc": "^1.20.2"
},
"devDependencies": {
"jest": "^23.5.0",
Expand Down
4 changes: 4 additions & 0 deletions tools/update-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ ${packageList.concat(appList).join('\n')}
Checkout [CONTRIBUTION.md](./CONTRIBUTION.md)
## Compatibility
Forge javascript sdk works with node.js v8.x or above, checkout [Travis](https://travis-ci.com/ArcBlock/forge-js/builds) for status.
## Report a Bug?
Bugs and feature requests please create new issues [here](https://github.com/ArcBlock/forge-js/issues)
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.27.0
0.27.1
20 changes: 11 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4564,14 +4564,15 @@ growly@^1.3.0:
version "1.3.0"
resolved "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"

grpc@^1.18.0:
version "1.19.0"
resolved "https://registry.npmjs.org/grpc/-/grpc-1.19.0.tgz#129fb30923ea2fa7a9b2623f9e7930eda91a242f"
grpc@^1.20.2:
version "1.20.3"
resolved "https://registry.npmjs.org/grpc/-/grpc-1.20.3.tgz#a74d36718f1e89c4a64f2fb9441199c3c8f78978"
integrity sha512-GsEsi0NVj6usS/xor8pF/xDbDiwZQR59aZl5NUZ59Sy2bdPQFZ3UePr5wevZjHboirRCIQCKRI1cCgvSWUe2ag==
dependencies:
lodash.camelcase "^4.3.0"
lodash.clone "^4.5.0"
nan "^2.0.0"
node-pre-gyp "^0.12.0"
nan "^2.13.2"
node-pre-gyp "^0.13.0"
protobufjs "^5.0.3"

gzip-size@^5.0.0:
Expand Down Expand Up @@ -7543,7 +7544,7 @@ mute-stream@~0.0.4:
version "0.0.8"
resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"

nan@^2.0.0, nan@^2.11.0, nan@^2.9.2:
nan@^2.11.0, nan@^2.13.2, nan@^2.9.2:
version "2.13.2"
resolved "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz#f51dc7ae66ba7d5d55e1e6d4d8092e802c9aefe7"

Expand Down Expand Up @@ -7705,9 +7706,10 @@ node-pre-gyp@^0.10.0:
semver "^5.3.0"
tar "^4"

node-pre-gyp@^0.12.0:
version "0.12.0"
resolved "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz#39ba4bb1439da030295f899e3b520b7785766149"
node-pre-gyp@^0.13.0:
version "0.13.0"
resolved "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.13.0.tgz#df9ab7b68dd6498137717838e4f92a33fc9daa42"
integrity sha512-Md1D3xnEne8b/HGVQkZZwV27WUi1ZRuZBij24TNaZwUPU3ZAFtvT6xxJGaUVillfmMKnn5oD1HoGsp2Ftik7SQ==
dependencies:
detect-libc "^1.0.2"
mkdirp "^0.5.1"
Expand Down

0 comments on commit 6499e05

Please sign in to comment.