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

Commit 3893bc3

Browse files
committed
chore: remove ipld-dag-cbor dependency
The `ipld-dag-cbor` module isn't used anywhere, hence remove it as a direct dependency.
1 parent 9a37ac0 commit 3893bc3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Diff for: src/core/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const BlockService = require('ipfs-block-service')
44
const Ipld = require('ipld')
55
const PeerId = require('peer-id')
66
const PeerInfo = require('peer-info')
7-
const dagCBOR = require('ipld-dag-cbor')
87
const dagPB = require('ipld-dag-pb')
98
const crypto = require('libp2p-crypto')
109
const isIPFS = require('is-ipfs')
@@ -75,8 +74,7 @@ class IPFS extends EventEmitter {
7574
multibase: multibase,
7675
multihash: multihash,
7776
CID: CID,
78-
dagPB: dagPB,
79-
dagCBOR: dagCBOR
77+
dagPB: dagPB
8078
}
8179

8280
// IPFS Core Internals

Diff for: test/core/init.spec.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const isNode = require('detect-node')
1010
const hat = require('hat')
1111
const PeerId = require('peer-id')
1212
const PeerInfo = require('peer-info')
13-
const dagCBOR = require('ipld-dag-cbor')
1413
const dagPB = require('ipld-dag-pb')
1514
const crypto = require('libp2p-crypto')
1615
const isIPFS = require('is-ipfs')
@@ -123,8 +122,7 @@ describe('init', () => {
123122
multibase: multibase,
124123
multihash: multihash,
125124
CID: CID,
126-
dagPB: dagPB,
127-
dagCBOR: dagCBOR
125+
dagPB: dagPB
128126
})
129127
})
130128

0 commit comments

Comments
 (0)