Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 1c9079c

Browse files
authored
deps: update @multiformats/multaddr to 11.0.0 (#141)
Also updates project config
1 parent fed165c commit 1c9079c

File tree

4 files changed

+24
-17
lines changed

4 files changed

+24
-17
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ updates:
66
interval: daily
77
time: "10:00"
88
open-pull-requests-limit: 10
9+
commit-message:
10+
prefix: "deps"
11+
prefix-development: "deps(dev)"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- [Usage](#usage)
1515
- [Contribute](#contribute)
1616
- [License](#license)
17-
- [Contribution](#contribution)
17+
- [Contribute](#contribute-1)
1818

1919
## Install
2020

@@ -81,6 +81,6 @@ Licensed under either of
8181
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
8282
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
8383

84-
## Contribution
84+
## Contribute
8585

8686
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

package.json

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@
6565
"release": "patch"
6666
},
6767
{
68-
"type": "chore",
68+
"type": "docs",
6969
"release": "patch"
7070
},
7171
{
72-
"type": "docs",
72+
"type": "test",
7373
"release": "patch"
7474
},
7575
{
76-
"type": "test",
76+
"type": "deps",
7777
"release": "patch"
7878
},
7979
{
@@ -103,7 +103,11 @@
103103
},
104104
{
105105
"type": "docs",
106-
"section": "Trivial Changes"
106+
"section": "Documentation"
107+
},
108+
{
109+
"type": "deps",
110+
"section": "Dependencies"
107111
},
108112
{
109113
"type": "test",
@@ -134,17 +138,17 @@
134138
"release": "aegir release"
135139
},
136140
"dependencies": {
137-
"@libp2p/interface-peer-discovery": "^1.0.0",
138-
"@libp2p/interface-peer-info": "^1.0.1",
139-
"@libp2p/interfaces": "^3.0.2",
141+
"@libp2p/interface-peer-discovery": "^1.0.1",
142+
"@libp2p/interface-peer-info": "^1.0.3",
143+
"@libp2p/interfaces": "^3.0.3",
140144
"@libp2p/logger": "^2.0.0",
141-
"@libp2p/peer-id": "^1.1.9",
142-
"@multiformats/mafmt": "^11.0.2",
143-
"@multiformats/multiaddr": "^10.1.7"
145+
"@libp2p/peer-id": "^1.1.15",
146+
"@multiformats/mafmt": "^11.0.3",
147+
"@multiformats/multiaddr": "^11.0.0"
144148
},
145149
"devDependencies": {
146-
"@libp2p/interface-peer-discovery-compliance-tests": "^1.0.0",
147-
"@libp2p/interface-peer-id": "^1.0.2",
148-
"aegir": "^37.2.0"
150+
"@libp2p/interface-peer-discovery-compliance-tests": "^1.0.2",
151+
"@libp2p/interface-peer-id": "^1.0.4",
152+
"aegir": "^37.5.3"
149153
}
150154
}

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Multiaddr } from '@multiformats/multiaddr'
1+
import { multiaddr } from '@multiformats/multiaddr'
22
import { P2P } from '@multiformats/mafmt'
33
import { CustomEvent, EventEmitter } from '@libp2p/interfaces/events'
44
import { logger } from '@libp2p/logger'
@@ -46,7 +46,7 @@ export class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements Peer
4646
continue
4747
}
4848

49-
const ma = new Multiaddr(candidate)
49+
const ma = multiaddr(candidate)
5050
const peerIdStr = ma.getPeerId()
5151

5252
if (peerIdStr == null) {

0 commit comments

Comments
 (0)