Skip to content

Commit 4c0409c

Browse files
feat: replace protocol-buffers with protons
Ref ipfs/js-ipfs#991
1 parent 2c20426 commit 4c0409c

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ node_modules
3333
.node_repl_history
3434

3535
dist
36+
37+
package-lock.js
38+
yarn.lock

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: node_js
33

44
matrix:
55
include:
6-
- node_js: 4
76
env: CXX=g++-4.8
87
- node_js: 6
98
env:

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"release": "aegir release",
1616
"release-minor": "aegir release --type minor",
1717
"release-major": "aegir release --type major",
18-
"coverage": "aegir coverage --ignore src/unixfs.proto.js"
18+
"coverage": "aegir coverage"
1919
},
2020
"repository": {
2121
"type": "git",
@@ -30,7 +30,7 @@
3030
"url": "https://github.com/ipfs/js-ipfs-unixfs/issues"
3131
},
3232
"engines": {
33-
"node": ">=4.0.0",
33+
"node": ">=6.0.0",
3434
"npm": ">=3.0.0"
3535
},
3636
"homepage": "https://github.com/ipfs/js-ipfs-unixfs#readme",
@@ -42,7 +42,7 @@
4242
"safe-buffer": "^5.1.1"
4343
},
4444
"dependencies": {
45-
"protocol-buffers": "^3.2.1"
45+
"protons": "^1.0.0"
4646
},
4747
"pre-commit": [
4848
"lint",

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

3-
const protobuf = require('protocol-buffers')
4-
const pb = protobuf(require('./unixfs.proto'))
3+
const protons = require('protons')
4+
const pb = protons(require('./unixfs.proto'))
55
// encode/decode
66
const unixfsData = pb.Data
77
// const unixfsMetadata = pb.MetaData // encode/decode

0 commit comments

Comments
 (0)