Skip to content

Commit

Permalink
fix: remove @libp2p/interfaces dep
Browse files Browse the repository at this point in the history
The `@libp2p/interfaces` module was deprecated in favour of
`@libp2p/interface` so use that instead.
  • Loading branch information
achingbrain committed Sep 6, 2024
1 parent ac4bdb8 commit acf8d06
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/bitswap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"dependencies": {
"@helia/interface": "^4.3.1",
"@helia/utils": "^0.3.3",
"@libp2p/interface": "^1.1.2",
"@libp2p/interface": "^1.1.4",
"@libp2p/logger": "^4.0.5",
"@libp2p/peer-collections": "^5.1.6",
"@libp2p/utils": "^5.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/car/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"dependencies": {
"@helia/interface": "^4.3.1",
"@ipld/car": "^5.3.0",
"@libp2p/interfaces": "^3.3.2",
"@libp2p/interface": "^1.1.4",
"@libp2p/utils": "^5.4.6",
"interface-blockstore": "^5.2.10",
"it-drain": "^3.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/car/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import PQueue from 'p-queue'
import type { DAGWalker } from '@helia/interface'
import type { GetBlockProgressEvents, PutManyBlocksProgressEvents } from '@helia/interface/blocks'
import type { CarReader } from '@ipld/car'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Filter } from '@libp2p/utils/filters'
import type { Blockstore } from 'interface-blockstore'
import type { CID } from 'multiformats/cid'
Expand Down
2 changes: 1 addition & 1 deletion packages/dag-cbor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"dependencies": {
"@helia/interface": "^4.3.1",
"@ipld/dag-cbor": "^9.2.0",
"@libp2p/interfaces": "^3.3.2",
"@libp2p/interface": "^1.1.4",
"interface-blockstore": "^5.2.10",
"multiformats": "^13.1.0",
"progress-events": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/dag-cbor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import * as codec from '@ipld/dag-cbor'
import { CID } from 'multiformats/cid'
import { sha256 } from 'multiformats/hashes/sha2'
import type { GetBlockProgressEvents, PutBlockProgressEvents } from '@helia/interface/blocks'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Blockstore } from 'interface-blockstore'
import type { BlockCodec } from 'multiformats/codecs/interface'
import type { MultihashHasher } from 'multiformats/hashes/interface'
Expand Down
2 changes: 1 addition & 1 deletion packages/dag-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"dependencies": {
"@helia/interface": "^4.3.1",
"@ipld/dag-json": "^10.2.0",
"@libp2p/interfaces": "^3.3.2",
"@libp2p/interface": "^1.1.4",
"interface-blockstore": "^5.2.10",
"multiformats": "^13.1.0",
"progress-events": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/dag-json/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import * as codec from '@ipld/dag-json'
import { CID } from 'multiformats/cid'
import { sha256 } from 'multiformats/hashes/sha2'
import type { GetBlockProgressEvents, PutBlockProgressEvents } from '@helia/interface/blocks'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Blockstore } from 'interface-blockstore'
import type { BlockCodec } from 'multiformats/codecs/interface'
import type { MultihashHasher } from 'multiformats/hashes/interface'
Expand Down
2 changes: 1 addition & 1 deletion packages/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
},
"dependencies": {
"@helia/interface": "^4.3.1",
"@libp2p/interfaces": "^3.3.2",
"@libp2p/interface": "^1.1.4",
"interface-blockstore": "^5.2.10",
"multiformats": "^13.1.0",
"progress-events": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/json/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { CID } from 'multiformats/cid'
import * as jsonCodec from 'multiformats/codecs/json'
import { sha256 } from 'multiformats/hashes/sha2'
import type { GetBlockProgressEvents, PutBlockProgressEvents } from '@helia/interface/blocks'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Blockstore } from 'interface-blockstore'
import type { BlockCodec } from 'multiformats/codecs/interface'
import type { MultihashHasher } from 'multiformats/hashes/interface'
Expand Down
2 changes: 1 addition & 1 deletion packages/mfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
},
"dependencies": {
"@helia/unixfs": "^3.0.7",
"@libp2p/interfaces": "^3.3.2",
"@libp2p/interface": "^1.1.4",
"@libp2p/logger": "^4.0.7",
"interface-blockstore": "^5.2.10",
"interface-datastore": "^8.2.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/mfs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { UnixFS as IPFSUnixFS, type Mtime } from 'ipfs-unixfs'
import { CID } from 'multiformats/cid'
import { basename } from './utils/basename.js'
import type { AddOptions, CatOptions, ChmodOptions, CpOptions, LsOptions, MkdirOptions as UnixFsMkdirOptions, RmOptions as UnixFsRmOptions, StatOptions, TouchOptions, UnixFS, UnixFSStats } from '@helia/unixfs'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Blockstore } from 'interface-blockstore'
import type { Datastore } from 'interface-datastore'
import type { UnixFSEntry } from 'ipfs-unixfs-exporter'
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
},
"dependencies": {
"@helia/interface": "^4.3.1",
"@libp2p/interfaces": "^3.3.2",
"@libp2p/interface": "^1.1.4",
"interface-blockstore": "^5.2.10",
"multiformats": "^13.1.0",
"progress-events": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/strings/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { sha256 } from 'multiformats/hashes/sha2'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
import type { GetBlockProgressEvents, PutBlockProgressEvents } from '@helia/interface/blocks'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Blockstore } from 'interface-blockstore'
import type { BlockCodec } from 'multiformats/codecs/interface'
import type { MultihashHasher } from 'multiformats/hashes/interface'
Expand Down

0 comments on commit acf8d06

Please sign in to comment.