Skip to content

Commit 20ba9cf

Browse files
authored
fix: use non-deprecated factory function to create delegated client (#934)
The `create...` factory is going away so switch to the non-deprecated method.
1 parent 4c6f4e3 commit 20ba9cf

69 files changed

Lines changed: 30 additions & 141 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/block-brokers/test/trustless-gateway-sessions.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { generateKeyPair } from '@libp2p/crypto/keys'
42
import { defaultLogger } from '@libp2p/logger'
53
import { peerIdFromPrivateKey } from '@libp2p/peer-id'

packages/block-brokers/test/trustless-gateway.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { generateKeyPair } from '@libp2p/crypto/keys'
42
import { defaultLogger } from '@libp2p/logger'
53
import { peerIdFromPrivateKey } from '@libp2p/peer-id'

packages/car/test/export.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { unixfs } from '@helia/unixfs'
42
import { CarReader } from '@ipld/car'
53
import * as dagCbor from '@ipld/dag-cbor'

packages/car/test/fixtures/get-codec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import * as dagCbor from '@ipld/dag-cbor'
42
import * as dagPb from '@ipld/dag-pb'
53
import * as raw from 'multiformats/codecs/raw'

packages/car/test/index.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { mfs } from '@helia/mfs'
42
import { unixfs } from '@helia/unixfs'
53
import { CarReader } from '@ipld/car'

packages/dag-cbor/test/add.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { expect } from 'aegir/chai'
42
import { MemoryBlockstore } from 'blockstore-core'
53
import { identity } from 'multiformats/hashes/identity'

packages/dag-cbor/test/get.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { expect } from 'aegir/chai'
42
import { MemoryBlockstore } from 'blockstore-core'
53
import { CID } from 'multiformats/cid'

packages/dag-json/test/add.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { expect } from 'aegir/chai'
42
import { MemoryBlockstore } from 'blockstore-core'
53
import { identity } from 'multiformats/hashes/identity'

packages/dag-json/test/get.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { expect } from 'aegir/chai'
42
import { MemoryBlockstore } from 'blockstore-core'
53
import { CID } from 'multiformats/cid'

packages/dnslink/test/index.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { NotFoundError } from '@libp2p/interface'
42
import { defaultLogger } from '@libp2p/logger'
53
import { peerIdFromString } from '@libp2p/peer-id'

0 commit comments

Comments
 (0)