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

Commit

Permalink
fix: remove abort controller dep (#151)
Browse files Browse the repository at this point in the history
AbortController is global everywhere we support so the polyfill isn't needed any more.
  • Loading branch information
achingbrain committed Jan 15, 2022
1 parent a63b118 commit 518bce1
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/libp2p-interface-compliance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@
"@libp2p/pubsub": "^1.0.0",
"@libp2p/topology": "^1.0.0",
"@multiformats/multiaddr": "^10.1.1",
"abort-controller": "^3.0.0",
"abortable-iterator": "^4.0.0",
"aegir": "^36.1.3",
"delay": "^5.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { pipe } from 'it-pipe'
import { duplexPair } from 'it-pair/duplex'
import { abortableSource, abortableDuplex } from 'abortable-iterator'
import AbortController from 'abort-controller'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import drain from 'it-drain'
import type { TestSetup } from '../index.js'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { isValidTick, mockUpgrader } from './utils/index.js'
import { goodbye } from 'it-goodbye'
import all from 'it-all'
import { pipe } from 'it-pipe'
import AbortController from 'abort-controller'
import { AbortError } from '@libp2p/interfaces/errors'
import sinon from 'sinon'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
Expand Down
1 change: 0 additions & 1 deletion packages/libp2p-interfaces/src/transport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ The dial may throw an `Error` instance if there was a problem connecting to the
Dials may be cancelled using an `AbortController`:

```Javascript
const AbortController = require('abort-controller')
const { AbortError } = require('libp2p-interfaces/src/transport/errors')
const controller = new AbortController()
try {
Expand Down
1 change: 0 additions & 1 deletion packages/libp2p-pubsub/src/peer-streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as lp from 'it-length-prefixed'
import { pushable } from 'it-pushable'
import { pipe } from 'it-pipe'
import { abortableSource } from 'abortable-iterator'
import AbortController from 'abort-controller'
import type { PeerId } from '@libp2p/interfaces/peer-id'
import type { MuxedStream } from '@libp2p/interfaces/stream-muxer'
import type { Pushable } from 'it-pushable'
Expand Down

0 comments on commit 518bce1

Please sign in to comment.