Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

feat: replace protocol-buffers with protons #48

Merged
merged 2 commits into from
Sep 7, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,24 @@
"devDependencies": {
"aegir": "^11.0.2",
"benchmark": "^2.1.4",
"chai": "^4.1.0",
"chai": "^4.1.2",
"dirty-chai": "^2.0.1",
"pre-commit": "^1.2.2",
"libp2p": "~0.12.3",
"libp2p-secio": "~0.8.1",
"libp2p-spdy": "~0.11.0",
"libp2p-tcp": "~0.11.0",
"lodash.times": "^4.3.2",
"libp2p": "~0.11.0",
"libp2p-secio": "~0.7.1",
"libp2p-spdy": "~0.10.6",
"libp2p-tcp": "~0.10.2",
"peer-id": "~0.9.0",
"peer-info": "~0.10.0"
"peer-id": "~0.10.0",
"peer-info": "~0.11.0",
"pre-commit": "^1.2.2"
},
"dependencies": {
"async": "^2.5.0",
"debug": "^2.6.8",
"debug": "^3.0.1",
"length-prefixed-stream": "^1.5.1",
"libp2p-crypto": "~0.9.4",
"libp2p-crypto": "~0.10.3",
"lodash.values": "^4.3.0",
"protons": "^1.0.0",
"pull-pushable": "^2.1.1",
"time-cache": "~0.3.0"
},
Expand All @@ -74,4 +75,4 @@
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>",
"wanderer <mjbecze@gmail.com>"
]
}
}
6 changes: 3 additions & 3 deletions src/message/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict'

const protobuf = require('protocol-buffers')
const protons = require('protons')

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

exports = module.exports
exports.rpc = rpcProto
Expand Down
Loading