Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit af1ddc5

Browse files
committed
chore: update IPLD to latest version
js-ipld 0.19 has breaking changes that affect this project. Therefore also update the corresponding code.
1 parent df6c526 commit af1ddc5

11 files changed

+11
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"ipfs": "~0.32.2",
4444
"ipfs-block-service": "~0.14.0",
4545
"ipfs-repo": "~0.24.0",
46-
"ipld": "~0.18.0",
46+
"ipld": "~0.19.0",
4747
"mkdirp": "~0.5.1",
4848
"multihashes": "~0.4.14",
4949
"ncp": "^2.0.0",

test/builder-dir-sharding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = (repo) => {
2424

2525
before(() => {
2626
const bs = new BlockService(repo)
27-
ipld = new Ipld(bs)
27+
ipld = new Ipld({blockService: bs})
2828
})
2929

3030
describe('basic dirbuilder', () => {

test/builder-only-hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = (repo) => {
1717

1818
before(() => {
1919
const bs = new BlockService(repo)
20-
ipld = new Ipld(bs)
20+
ipld = new Ipld({blockService: bs})
2121
})
2222

2323
it('will only chunk and hash if passed an "onlyHash" option', (done) => {

test/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = (repo) => {
2222

2323
before(() => {
2424
const bs = new BlockService(repo)
25-
ipld = new Ipld(bs)
25+
ipld = new Ipld({blockService: bs})
2626
})
2727

2828
it('allows multihash hash algorithm to be specified', (done) => {

test/exporter-subtree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = (repo) => {
2323

2424
before(() => {
2525
const bs = new BlockService(repo)
26-
ipld = new Ipld(bs)
26+
ipld = new Ipld({blockService: bs})
2727
})
2828

2929
it('export a file 2 levels down', (done) => {

test/exporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = (repo) => {
148148

149149
before(() => {
150150
const bs = new BlockService(repo)
151-
ipld = new Ipld(bs)
151+
ipld = new Ipld({blockService: bs})
152152
})
153153

154154
it('ensure hash inputs are sanitized', (done) => {

test/hash-parity-with-go-ipfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = (repo) => {
3535

3636
before(() => {
3737
const bs = new BlockService(repo)
38-
ipld = new Ipld(bs)
38+
ipld = new Ipld({blockService: bs})
3939
})
4040

4141
it('yields the same tree as go-ipfs', function (done) {

test/import-export-nested-dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = (repo) => {
1919

2020
before(() => {
2121
const bs = new BlockService(repo)
22-
ipld = new Ipld(bs)
22+
ipld = new Ipld({blockService: bs})
2323
})
2424

2525
it('imports', function (done) {

test/import-export.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = (repo) => {
4444

4545
before(() => {
4646
const bs = new BlockService(repo)
47-
ipld = new Ipld(bs)
47+
ipld = new Ipld({blockService: bs})
4848
})
4949

5050
it('import and export', (done) => {

test/importer-flush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = (repo) => {
1717

1818
before(() => {
1919
const bs = new BlockService(repo)
20-
ipld = new Ipld(bs)
20+
ipld = new Ipld({blockService: bs})
2121
})
2222

2323
it('can push a single root file and flush yields no dirs', (done) => {

test/importer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ module.exports = (repo) => {
243243

244244
before(() => {
245245
const bs = new BlockService(repo)
246-
ipld = new Ipld(bs)
246+
ipld = new Ipld({blockService: bs})
247247
})
248248

249249
it('fails on bad input', (done) => {

0 commit comments

Comments
 (0)