Skip to content

Commit 08e851e

Browse files
authoredMay 27, 2022
fix: update deps (#220)
Update interface-blockstore deps and remove @types/mocha as we don't need it.
1 parent f119eb4 commit 08e851e

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed
 

‎packages/ipfs-unixfs-exporter/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,17 @@
156156
"@multiformats/murmur3": "^1.0.3",
157157
"err-code": "^3.0.1",
158158
"hamt-sharding": "^2.0.0",
159-
"interface-blockstore": "^1.0.0",
159+
"interface-blockstore": "^2.0.3",
160160
"ipfs-unixfs": "^6.0.0",
161161
"it-last": "^1.0.5",
162162
"multiformats": "^9.4.2",
163163
"uint8arrays": "^3.0.0"
164164
},
165165
"devDependencies": {
166-
"@types/mocha": "^8.2.1",
167166
"@types/sinon": "^10.0.0",
168167
"abort-controller": "^3.0.0",
169168
"aegir": "^36.2.3",
169+
"blockstore-core": "^1.0.5",
170170
"copy": "^0.3.2",
171171
"crypto-browserify": "^3.12.0",
172172
"events": "^3.3.0",

‎packages/ipfs-unixfs-exporter/test/helpers/block.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import errCode from 'err-code'
2-
import { BlockstoreAdapter } from 'interface-blockstore'
2+
import { BaseBlockstore } from 'blockstore-core'
33
import { base58btc } from 'multiformats/bases/base58'
44

55
/**
66
* @typedef {import('multiformats/cid').CID} CID
77
*/
88

99
function createBlockApi () {
10-
class MockBlockstore extends BlockstoreAdapter {
10+
class MockBlockstore extends BaseBlockstore {
1111
constructor () {
1212
super()
1313

‎packages/ipfs-unixfs-importer/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"clean": "rimraf ./dist",
148148
"lint": "aegir ts -p check && aegir lint",
149149
"coverage": "nyc -s npm run test -t node && nyc report --reporter=html",
150-
"de-pcheck": "aegir dep-check -i @types/mocha -i nyc -i rimraf -i copy -i util -i crypto-browserify -i events -i readable-stream -i assert",
150+
"de-pcheck": "aegir dep-check -i @types/mocha -i nyc -i rimraf -i copy -i util -i crypto-browserify -i events -i readable-stream -i assert -i interface-blockstore",
151151
"release": "semantic-release"
152152
},
153153
"dependencies": {
@@ -156,7 +156,7 @@
156156
"bl": "^5.0.0",
157157
"err-code": "^3.0.1",
158158
"hamt-sharding": "^2.0.0",
159-
"interface-blockstore": "^1.0.0",
159+
"interface-blockstore": "^2.0.3",
160160
"ipfs-unixfs": "^6.0.0",
161161
"it-all": "^1.0.5",
162162
"it-batch": "^1.0.8",
@@ -168,9 +168,9 @@
168168
"uint8arrays": "^3.0.0"
169169
},
170170
"devDependencies": {
171-
"@types/mocha": "^8.2.1",
172171
"aegir": "^36.2.3",
173172
"assert": "^2.0.0",
173+
"blockstore-core": "^1.0.5",
174174
"copy": "^0.3.2",
175175
"crypto-browserify": "^3.12.0",
176176
"events": "^3.3.0",

‎packages/ipfs-unixfs-importer/test/helpers/block.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import errCode from 'err-code'
2-
import { BlockstoreAdapter } from 'interface-blockstore'
2+
import { BaseBlockstore } from 'blockstore-core'
33
import { base58btc } from 'multiformats/bases/base58'
44

55
/**
66
* @typedef {import('multiformats/cid').CID} CID
77
*/
88

99
function createBlockApi () {
10-
class MockBlockstore extends BlockstoreAdapter {
10+
class MockBlockstore extends BaseBlockstore {
1111
constructor () {
1212
super()
1313

‎packages/ipfs-unixfs/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@
159159
"protobufjs": "^6.10.2"
160160
},
161161
"devDependencies": {
162-
"@types/mocha": "^8.2.1",
163162
"aegir": "^36.2.3",
164163
"copy": "^0.3.2",
165164
"mkdirp": "^1.0.4",

0 commit comments

Comments
 (0)
Please sign in to comment.