From f7b34eb5c46141baa7e8f4a752c15adbd6c70bc6 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 21 Sep 2022 17:40:35 +0100 Subject: [PATCH] deps: update @multiformats/multiaddr to 11.0.0 (#411) --- .../ipfs-repo-migrations/migrations/migration-12/index.js | 4 ++-- packages/ipfs-repo-migrations/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ipfs-repo-migrations/migrations/migration-12/index.js b/packages/ipfs-repo-migrations/migrations/migration-12/index.js index d37dce78..58fb848a 100644 --- a/packages/ipfs-repo-migrations/migrations/migration-12/index.js +++ b/packages/ipfs-repo-migrations/migrations/migration-12/index.js @@ -10,7 +10,7 @@ import { Addresses } from './pb/address-book.js' import { Peer } from './pb/peer.js' import { Envelope } from './pb/envelope.js' import { PeerRecord } from './pb/peer-record.js' -import { Multiaddr } from 'multiaddr' +import { multiaddr } from '@multiformats/multiaddr' /** * @param {import('../../src/types').Backends} backends @@ -59,7 +59,7 @@ async function storePeerUnderSingleDatastoreKey (backends, onProgress = () => {} const addrs = Addresses.decode(value) peers[peerId].addresses = addrs.addrs.sort((a, b) => { - return new Multiaddr(a.multiaddr).toString().localeCompare(new Multiaddr(b.multiaddr).toString()) + return multiaddr(a.multiaddr).toString().localeCompare(multiaddr(b.multiaddr).toString()) }) if (addrs.certifiedRecord && addrs.certifiedRecord.raw) { diff --git a/packages/ipfs-repo-migrations/package.json b/packages/ipfs-repo-migrations/package.json index 69029583..8e56a131 100644 --- a/packages/ipfs-repo-migrations/package.json +++ b/packages/ipfs-repo-migrations/package.json @@ -172,6 +172,7 @@ }, "dependencies": { "@ipld/dag-pb": "^2.1.0", + "@multiformats/multiaddr": "^11.0.0", "cborg": "^1.3.4", "datastore-core": "^8.0.1", "debug": "^4.1.0", @@ -179,7 +180,6 @@ "interface-blockstore": "^3.0.0", "interface-datastore": "^7.0.0", "it-length": "^1.0.1", - "multiaddr": "^10.0.1", "multiformats": "^9.0.4", "protobufjs": "^7.0.0", "uint8arrays": "^3.0.0",