Skip to content

Commit 1664f69

Browse files
authored
chore: update peer-id dep (#47)
BREAKING CHANGE: requires node 15
1 parent 974b634 commit 1664f69

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
strategy:
2323
matrix:
2424
os: [windows-latest, ubuntu-latest, macos-latest]
25-
node: [14, 15]
25+
node: [16]
2626
fail-fast: true
2727
steps:
2828
- uses: actions/checkout@v2
29-
- uses: actions/setup-node@v1
29+
- uses: actions/setup-node@v2
3030
with:
3131
node-version: ${{ matrix.node }}
3232
# modules with pre-built binaries may not have deployed versions for bleeding-edge node so this lets us fall back to building from source
@@ -39,12 +39,18 @@ jobs:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- uses: actions/checkout@v2
42+
- uses: actions/setup-node@v2
43+
with:
44+
node-version: lts/*
4245
- run: npm install
4346
- run: npx aegir test -t browser -t webworker --bail
4447
test-firefox:
4548
needs: check
4649
runs-on: ubuntu-latest
4750
steps:
4851
- uses: actions/checkout@v2
52+
- uses: actions/setup-node@v2
53+
with:
54+
node-version: lts/*
4955
- run: npm install
5056
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
"coverage": "aegir coverage"
2424
},
2525
"devDependencies": {
26-
"aegir": "^33.0.0",
27-
"go-ipfs": "^0.8.0",
28-
"ipfs-http-client": "^50.1.0",
29-
"ipfs-utils": "^8.1.2",
30-
"ipfsd-ctl": "^8.0.2",
26+
"aegir": "^36.0.2",
27+
"go-ipfs": "^0.10.0",
28+
"ipfs-http-client": "^54.0.2",
29+
"ipfs-utils": "^9.0.2",
30+
"ipfsd-ctl": "^10.0.5",
3131
"it-all": "^1.0.2"
3232
},
3333
"dependencies": {
3434
"debug": "^4.3.1",
3535
"multiformats": "^9.0.2",
3636
"p-defer": "^3.0.0",
3737
"p-queue": "^6.3.0",
38-
"peer-id": "^0.15.0"
38+
"peer-id": "^0.16.0"
3939
},
4040
"browser": {
4141
"go-ipfs": false

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class DelegatedPeerRouting {
122122
break
123123
case 2: // Final Peer
124124
yield peers.get(result.id.string) || {
125-
id: PeerId.createFromCID(result.id),
125+
id: PeerId.parse(result.id),
126126
multiaddrs: []
127127
}
128128
break

0 commit comments

Comments
 (0)