Skip to content

Commit

Permalink
feat: replace protocol-buffers with protons
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Sep 7, 2017
1 parent 2c20426 commit 4c0409c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ node_modules
.node_repl_history

dist

package-lock.js
yarn.lock
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: node_js

matrix:
include:
- node_js: 4
env: CXX=g++-4.8
- node_js: 6
env:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"release": "aegir release",
"release-minor": "aegir release --type minor",
"release-major": "aegir release --type major",
"coverage": "aegir coverage --ignore src/unixfs.proto.js"
"coverage": "aegir coverage"
},
"repository": {
"type": "git",
Expand All @@ -30,7 +30,7 @@
"url": "https://github.com/ipfs/js-ipfs-unixfs/issues"
},
"engines": {
"node": ">=4.0.0",
"node": ">=6.0.0",
"npm": ">=3.0.0"
},
"homepage": "https://github.com/ipfs/js-ipfs-unixfs#readme",
Expand All @@ -42,7 +42,7 @@
"safe-buffer": "^5.1.1"
},
"dependencies": {
"protocol-buffers": "^3.2.1"
"protons": "^1.0.0"
},
"pre-commit": [
"lint",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const protobuf = require('protocol-buffers')
const pb = protobuf(require('./unixfs.proto'))
const protons = require('protons')
const pb = protons(require('./unixfs.proto'))
// encode/decode
const unixfsData = pb.Data
// const unixfsMetadata = pb.MetaData // encode/decode
Expand Down

0 comments on commit 4c0409c

Please sign in to comment.