Skip to content

Commit d5b7e23

Browse files
dignifiedquiredaviddias
authored andcommitted
feat: replace protocol-buffers with protons (#48)
* feat: replace protocol-buffers with protons Ref ipfs/js-ipfs#991 * chore: ignore lockfiles
1 parent b0ea3ea commit d5b7e23

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ node_modules
3333

3434
dist
3535

36-
docs
36+
docs
37+
38+
package-lock.json
39+
yarn.lock

package.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,24 @@
4444
"devDependencies": {
4545
"aegir": "^11.0.2",
4646
"benchmark": "^2.1.4",
47-
"chai": "^4.1.0",
47+
"chai": "^4.1.2",
4848
"dirty-chai": "^2.0.1",
49-
"pre-commit": "^1.2.2",
49+
"libp2p": "~0.12.3",
50+
"libp2p-secio": "~0.8.1",
51+
"libp2p-spdy": "~0.11.0",
52+
"libp2p-tcp": "~0.11.0",
5053
"lodash.times": "^4.3.2",
51-
"libp2p": "~0.11.0",
52-
"libp2p-secio": "~0.7.1",
53-
"libp2p-spdy": "~0.10.6",
54-
"libp2p-tcp": "~0.10.2",
55-
"peer-id": "~0.9.0",
56-
"peer-info": "~0.10.0"
54+
"peer-id": "~0.10.0",
55+
"peer-info": "~0.11.0",
56+
"pre-commit": "^1.2.2"
5757
},
5858
"dependencies": {
5959
"async": "^2.5.0",
60-
"debug": "^2.6.8",
60+
"debug": "^3.0.1",
6161
"length-prefixed-stream": "^1.5.1",
62-
"libp2p-crypto": "~0.9.4",
62+
"libp2p-crypto": "~0.10.3",
6363
"lodash.values": "^4.3.0",
64+
"protons": "^1.0.0",
6465
"pull-pushable": "^2.1.1",
6566
"time-cache": "~0.3.0"
6667
},
@@ -74,4 +75,4 @@
7475
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>",
7576
"wanderer <[email protected]>"
7677
]
77-
}
78+
}

src/message/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict'
22

3-
const protobuf = require('protocol-buffers')
3+
const protons = require('protons')
44

5-
const rpcProto = protobuf(require('./rpc.proto.js'))
6-
const topicDescriptorProto = protobuf(require('./topic-descriptor.proto.js'))
5+
const rpcProto = protons(require('./rpc.proto.js'))
6+
const topicDescriptorProto = protons(require('./topic-descriptor.proto.js'))
77

88
exports = module.exports
99
exports.rpc = rpcProto

0 commit comments

Comments
 (0)