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

Commit 518bce1

Browse files
authored
fix: remove abort controller dep (#151)
AbortController is global everywhere we support so the polyfill isn't needed any more.
1 parent a63b118 commit 518bce1

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

packages/libp2p-interface-compliance-tests/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@
198198
"@libp2p/pubsub": "^1.0.0",
199199
"@libp2p/topology": "^1.0.0",
200200
"@multiformats/multiaddr": "^10.1.1",
201-
"abort-controller": "^3.0.0",
202201
"abortable-iterator": "^4.0.0",
203202
"aegir": "^36.1.3",
204203
"delay": "^5.0.0",

packages/libp2p-interface-compliance-tests/src/stream-muxer/close-test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { pipe } from 'it-pipe'
33
import { duplexPair } from 'it-pair/duplex'
44
import { abortableSource, abortableDuplex } from 'abortable-iterator'
5-
import AbortController from 'abort-controller'
65
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
76
import drain from 'it-drain'
87
import type { TestSetup } from '../index.js'

packages/libp2p-interface-compliance-tests/src/transport/dial-test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { isValidTick, mockUpgrader } from './utils/index.js'
33
import { goodbye } from 'it-goodbye'
44
import all from 'it-all'
55
import { pipe } from 'it-pipe'
6-
import AbortController from 'abort-controller'
76
import { AbortError } from '@libp2p/interfaces/errors'
87
import sinon from 'sinon'
98
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'

packages/libp2p-interfaces/src/transport/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ The dial may throw an `Error` instance if there was a problem connecting to the
144144
Dials may be cancelled using an `AbortController`:
145145

146146
```Javascript
147-
const AbortController = require('abort-controller')
148147
const { AbortError } = require('libp2p-interfaces/src/transport/errors')
149148
const controller = new AbortController()
150149
try {

packages/libp2p-pubsub/src/peer-streams.ts

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as lp from 'it-length-prefixed'
44
import { pushable } from 'it-pushable'
55
import { pipe } from 'it-pipe'
66
import { abortableSource } from 'abortable-iterator'
7-
import AbortController from 'abort-controller'
87
import type { PeerId } from '@libp2p/interfaces/peer-id'
98
import type { MuxedStream } from '@libp2p/interfaces/stream-muxer'
109
import type { Pushable } from 'it-pushable'

0 commit comments

Comments
 (0)