Skip to content

Commit

Permalink
chore: update to new multiformats
Browse files Browse the repository at this point in the history
Depends on:

- [ ] multiformats/js-multiformats#91

BREAKING CHANGE: uses the CID class from the new multiformats module
  • Loading branch information
achingbrain committed Jun 2, 2021
1 parent a5aa25a commit 49919ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
"devDependencies": {
"aegir": "^33.0.0",
"go-ipfs": "^0.8.0",
"ipfs-http-client": "^49.0.4",
"ipfs-utils": "^6.0.6",
"ipfsd-ctl": "^7.2.0",
"ipfs-http-client": "^50.1.0",
"ipfs-utils": "^8.1.2",
"ipfsd-ctl": "^8.0.2",
"it-all": "^1.0.0",
"it-drain": "^1.0.0",
"peer-id": "^0.14.0",
"peer-id": "libp2p/js-peer-id#chore/update-to-new-multiformats",
"uint8arrays": "^2.1.4"
},
"dependencies": {
"debug": "^4.1.1",
"it-drain": "^1.0.3",
"multiaddr": "^9.0.1",
"multiaddr": "multiformats/js-multiaddr#chore/update-to-new-multiformats",
"p-defer": "^3.0.0",
"p-queue": "^6.2.1"
},
Expand Down
10 changes: 5 additions & 5 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('DelegatedContentRouting', function () {
})

it('should accept an http api client instance at construction time', () => {
const client = ipfsHttpClient({
const client = ipfsHttpClient.create({
protocol: 'http',
port: 8000,
host: 'localhost'
Expand Down Expand Up @@ -118,7 +118,7 @@ describe('DelegatedContentRouting', function () {

it('should be able to find providers through the delegate node', async function () {
const opts = delegateNode.apiAddr.toOptions()
const routing = new DelegatedContentRouting(selfId, ipfsHttpClient({
const routing = new DelegatedContentRouting(selfId, ipfsHttpClient.create({
protocol: 'http',
port: opts.port,
host: opts.host
Expand All @@ -134,7 +134,7 @@ describe('DelegatedContentRouting', function () {

it('should be able to specify a timeout', async () => {
const opts = delegateNode.apiAddr.toOptions()
const routing = new DelegatedContentRouting(selfId, ipfsHttpClient({
const routing = new DelegatedContentRouting(selfId, ipfsHttpClient.create({
protocol: 'http',
port: opts.port,
host: opts.host
Expand All @@ -149,7 +149,7 @@ describe('DelegatedContentRouting', function () {
describe('provide', () => {
it('should be able to register as a content provider to the delegate node', async () => {
const opts = delegateNode.apiAddr.toOptions()
const contentRouter = new DelegatedContentRouting(selfId, ipfsHttpClient({
const contentRouter = new DelegatedContentRouting(selfId, ipfsHttpClient.create({
protocol: 'http',
port: opts.port,
host: opts.host
Expand All @@ -167,7 +167,7 @@ describe('DelegatedContentRouting', function () {

it('should provide non-dag-pb nodes via the delegate node', async () => {
const opts = delegateNode.apiAddr.toOptions()
const contentRouter = new DelegatedContentRouting(selfId, ipfsHttpClient({
const contentRouter = new DelegatedContentRouting(selfId, ipfsHttpClient.create({
protocol: 'http',
port: opts.port,
host: opts.host
Expand Down

0 comments on commit 49919ad

Please sign in to comment.