Skip to content

Commit e05a31e

Browse files
authored
feat: go-ipfs 0.7.0 compatibility (#549)
Removes `bits` option when initting go-ipfs repos as the move to ed25519 keys makes it throw when `bits` is passed.
1 parent ce517ce commit e05a31e

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

.aegir.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ module.exports = {
4545
path: true,
4646

4747
// needed by abstract-leveldown
48-
Buffer: true
48+
Buffer: true,
49+
50+
// needed by nofilter
51+
stream: true
4952
}
5053
}
5154
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
"devDependencies": {
6666
"aegir": "^26.0.0",
6767
"benchmark": "^2.1.4",
68-
"go-ipfs": "^0.6.0",
68+
"go-ipfs": "^0.7.0",
6969
"husky": "^4.2.5",
70-
"ipfs": "^0.49.1",
71-
"ipfs-http-client": "^46.0.1",
70+
"ipfs": "^0.50.2",
71+
"ipfs-http-client": "^47.0.1",
7272
"ipfs-unixfs": "^2.0.3",
7373
"lint-staged": "^10.1.6"
7474
},

test/benchmark.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ suite
1111
defer: true,
1212
fn: async (deferred) => {
1313
const node = await createNodeTests({
14-
type: 'go',
15-
ipfsOptions: {
16-
init: {
17-
bits: 2048
18-
}
19-
}
14+
type: 'go'
2015
})
2116

2217
await node.stop()

test/controller.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,12 @@ describe('Controller API', function () {
110110
if (opts.type === 'js') {
111111
await expect(ctl.init({
112112
emptyRepo: true,
113-
bits: 2048,
114113
profile: ['test'],
115114
pass: 'QmfPjo1bKmpcdWxpQnGAKjeae9F9aCxTDiS61t9a3hmvRi'
116115
})).to.be.fulfilled()
117116
} else {
118117
await expect(ctl.init({
119118
emptyRepo: true,
120-
bits: 2048,
121119
profile: ['test']
122120
})).to.be.fulfilled()
123121
}

0 commit comments

Comments
 (0)