Skip to content

Commit 9cbf36f

Browse files
authoredDec 2, 2021
chore: update peer id and libp2p crypto (#1042)
BREAKING CHANGE: requires node 15+
1 parent 3a9d5f6 commit 9cbf36f

File tree

5 files changed

+30
-19
lines changed

5 files changed

+30
-19
lines changed
 

‎.github/workflows/main.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v2
1616
with:
17-
node-version: 14
17+
node-version: 16
1818
- run: npm install
1919
- run: npx aegir lint
2020
- run: npx aegir build
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
matrix:
3131
os: [windows-latest, ubuntu-latest, macos-latest]
32-
node: [14, 16]
32+
node: [16]
3333
fail-fast: true
3434
steps:
3535
- uses: actions/checkout@v2
@@ -44,26 +44,38 @@ jobs:
4444
runs-on: ubuntu-latest
4545
steps:
4646
- uses: actions/checkout@v2
47+
- uses: actions/setup-node@v2
48+
with:
49+
node-version: lts/*
4750
- run: npm install
4851
- run: npx aegir test -t browser -t webworker --bail
4952
test-firefox:
5053
needs: check
5154
runs-on: ubuntu-latest
5255
steps:
5356
- uses: actions/checkout@v2
57+
- uses: actions/setup-node@v2
58+
with:
59+
node-version: lts/*
5460
- run: npm install
5561
- run: npx aegir test -t browser -t webworker --bail -- --browser firefox
5662
test-ts:
5763
needs: check
5864
runs-on: ubuntu-latest
5965
steps:
6066
- uses: actions/checkout@v2
67+
- uses: actions/setup-node@v2
68+
with:
69+
node-version: lts/*
6170
- run: npm install
6271
- run: npm run test:ts
6372
test-interop:
6473
needs: check
6574
runs-on: ubuntu-latest
6675
steps:
6776
- uses: actions/checkout@v2
77+
- uses: actions/setup-node@v2
78+
with:
79+
node-version: lts/*
6880
- run: npm install
6981
- run: npm run test:interop -- --bail -- --exit

‎examples/webrtc-direct/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"libp2p-mplex": "^0.10.4",
2525
"@chainsafe/libp2p-noise": "^4.1.0",
2626
"libp2p-webrtc-direct": "^0.7.0",
27-
"peer-id": "^0.15.4"
27+
"peer-id": "^0.16.0"
2828
},
2929
"browser": {
3030
"ipfs": "ipfs/dist/index.min.js"

‎package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"homepage": "https://libp2p.io",
6767
"license": "MIT",
6868
"engines": {
69-
"node": ">=14.0.0"
69+
"node": ">=15.0.0"
7070
},
7171
"browser": {
7272
"@motrix/nat-api": false
@@ -80,10 +80,10 @@
8080
]
8181
},
8282
"dependencies": {
83-
"abortable-iterator": "^3.0.0",
8483
"@motrix/nat-api": "^0.3.1",
8584
"@vascosantos/moving-average": "^1.1.0",
8685
"abort-controller": "^3.0.0",
86+
"abortable-iterator": "^3.0.0",
8787
"aggregate-error": "^3.1.0",
8888
"any-signal": "^2.1.1",
8989
"bignumber.js": "^9.0.1",
@@ -105,8 +105,8 @@
105105
"it-merge": "^1.0.0",
106106
"it-pipe": "^1.1.0",
107107
"it-take": "^1.0.0",
108-
"libp2p-crypto": "^0.20.0",
109-
"libp2p-interfaces": "^1.3.1",
108+
"libp2p-crypto": "^0.21.0",
109+
"libp2p-interfaces": "^2.0.1",
110110
"libp2p-utils": "^0.4.0",
111111
"mafmt": "^10.0.0",
112112
"merge-options": "^3.0.4",
@@ -119,14 +119,14 @@
119119
"p-fifo": "^1.0.0",
120120
"p-retry": "^4.4.0",
121121
"p-settle": "^4.1.1",
122-
"peer-id": "^0.15.4",
122+
"peer-id": "^0.16.0",
123123
"private-ip": "^2.1.0",
124124
"protobufjs": "^6.10.2",
125125
"retimer": "^3.0.0",
126126
"sanitize-filename": "^1.6.3",
127127
"set-delayed-interval": "^1.0.0",
128128
"streaming-iterables": "^6.0.0",
129-
"timeout-abort-controller": "^1.1.1",
129+
"timeout-abort-controller": "^2.0.0",
130130
"uint8arrays": "^3.0.0",
131131
"varint": "^6.0.0",
132132
"wherearewe": "^1.0.0",
@@ -149,25 +149,25 @@
149149
"it-pair": "^1.0.0",
150150
"it-pushable": "^1.4.0",
151151
"libp2p": ".",
152-
"libp2p-bootstrap": "^0.13.0",
152+
"libp2p-bootstrap": "^0.14.0",
153153
"libp2p-delegated-content-routing": "^0.11.0",
154-
"libp2p-delegated-peer-routing": "^0.10.0",
154+
"libp2p-delegated-peer-routing": "^0.11.0",
155155
"libp2p-floodsub": "^0.27.0",
156156
"libp2p-gossipsub": "^0.11.0",
157-
"libp2p-interfaces-compliance-tests": "^1.2.1",
157+
"libp2p-interfaces-compliance-tests": "^2.0.1",
158158
"libp2p-interop": "^0.5.0",
159-
"libp2p-kad-dht": "^0.26.6",
160-
"libp2p-mdns": "^0.17.0",
159+
"libp2p-kad-dht": "^0.27.1",
160+
"libp2p-mdns": "^0.18.0",
161161
"libp2p-mplex": "^0.10.1",
162162
"libp2p-tcp": "^0.17.0",
163-
"libp2p-webrtc-star": "^0.24.0",
163+
"libp2p-webrtc-star": "^0.25.0",
164164
"libp2p-websockets": "^0.16.0",
165165
"nock": "^13.0.3",
166166
"p-defer": "^3.0.0",
167167
"p-times": "^3.0.0",
168168
"p-wait-for": "^3.2.0",
169169
"rimraf": "^3.0.2",
170-
"sinon": "^11.1.1",
170+
"sinon": "^12.0.1",
171171
"util": "^0.12.3"
172172
},
173173
"contributors": [

‎src/dialer/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ const log = Object.assign(debug('libp2p:dialer'), {
66
})
77
const errCode = require('err-code')
88
const { Multiaddr } = require('multiaddr')
9-
// @ts-ignore timeout-abourt-controles does not export types
10-
const TimeoutController = require('timeout-abort-controller')
9+
const { TimeoutController } = require('timeout-abort-controller')
1110
const { AbortError } = require('abortable-iterator')
1211
const { anySignal } = require('any-signal')
1312

‎test/ts-use/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"libp2p-record": "^0.10.4",
1717
"libp2p-tcp": "^0.17.1",
1818
"libp2p-websockets": "^0.16.1",
19-
"peer-id": "^0.15.4"
19+
"peer-id": "^0.16.0"
2020
},
2121
"scripts": {
2222
"build": "npx tsc",

0 commit comments

Comments
 (0)
Please sign in to comment.