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

Commit 26cd857

Browse files
authored
fix: remove abort controller deps (#276)
`AbortController` and `AbortSignal` are in browsers and LTS node so the `abort-controller` and `native-abort-controller` deps aren't required any more.
1 parent 24c7116 commit 26cd857

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"dep-check": "aegir dep-check"
144144
},
145145
"dependencies": {
146-
"any-signal": "^2.1.2",
146+
"any-signal": "^3.0.0",
147147
"datastore-core": "^6.0.7",
148148
"debug": "^4.3.1",
149149
"err-code": "^3.0.0",
@@ -165,15 +165,14 @@
165165
"libp2p-record": "^0.10.4",
166166
"multiaddr": "^10.0.0",
167167
"multiformats": "^9.4.5",
168-
"native-abort-controller": "^1.0.4",
169168
"p-defer": "^3.0.0",
170169
"p-map": "^4.0.0",
171170
"p-queue": "^6.6.2",
172171
"peer-id": "^0.16.0",
173172
"private-ip": "^2.3.3",
174173
"protobufjs": "^6.10.2",
175174
"streaming-iterables": "^6.0.0",
176-
"timeout-abort-controller": "^2.0.0",
175+
"timeout-abort-controller": "^3.0.0",
177176
"uint8arrays": "^3.0.0",
178177
"varint": "^6.0.0"
179178
},

src/query/manager.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict'
22

3-
const { AbortController } = require('native-abort-controller')
43
const { TimeoutController } = require('timeout-abort-controller')
54
const { anySignal } = require('any-signal')
65
const {

test/query.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const { QueryManager } = require('../src/query/manager')
88
const createPeerId = require('./utils/create-peer-id')
99
const all = require('it-all')
1010
const drain = require('it-drain')
11-
const { AbortController, AbortSignal } = require('native-abort-controller')
1211
const { sortClosestPeers } = require('./utils/sort-closest-peers')
1312
const { convertBuffer } = require('../src/utils')
1413
const {

0 commit comments

Comments
 (0)