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

Commit 1e15f2b

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 9a82b05 commit 1e15f2b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"ipfs-repo": "~0.24.0",
118118
"ipfs-unixfs": "~0.1.15",
119119
"ipfs-unixfs-engine": "~0.32.3",
120-
"ipld": "~0.17.3",
120+
"ipld": "https://github.com/ipld/js-ipld#options-api",
121121
"ipld-dag-cbor": "~0.12.1",
122122
"ipld-dag-pb": "~0.14.6",
123123
"ipns": "~0.2.0",

src/core/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ class IPFS extends EventEmitter {
8686
this._libp2pNode = undefined
8787
this._bitswap = undefined
8888
this._blockService = new BlockService(this._repo)
89-
this._ipld = new Ipld(this._blockService)
89+
this._ipld = new Ipld({
90+
blockService: this._blockService,
91+
formats: [dagCBOR, dagPB]
92+
})
9093
this._preload = preload(this)
9194
this._mfsPreload = mfsPreload(this)
9295
this._ipns = new IPNS(null, this)

0 commit comments

Comments
 (0)