Skip to content

Commit

Permalink
fix: remove abort-controller dep (#1095)
Browse files Browse the repository at this point in the history
The `AbortController` class is supported by browsers and node 14+ - we only support node 16+ (e.g. LTS+Current) so the `abort-controller` module isn't needed any more.
  • Loading branch information
achingbrain committed Jan 20, 2022
1 parent c3700f5 commit 0a4dc54
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
},
"dependencies": {
"@vascosantos/moving-average": "^1.1.0",
"abort-controller": "^3.0.0",
"abortable-iterator": "^3.0.0",
"aggregate-error": "^3.1.0",
"any-signal": "^2.1.1",
Expand Down
1 change: 0 additions & 1 deletion test/dialing/dial-request.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const { expect } = require('aegir/utils/chai')
const sinon = require('sinon')

const { AbortError } = require('libp2p-interfaces/src/transport/errors')
const AbortController = require('abort-controller')
const AggregateError = require('aggregate-error')
const pDefer = require('p-defer')
const delay = require('delay')
Expand Down
1 change: 0 additions & 1 deletion test/utils/mockMultiaddrConn.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const duplexPair = require('it-pair/duplex')
const abortable = require('abortable-iterator')
const AbortController = require('abort-controller')

/**
* Returns both sides of a mocked MultiaddrConnection
Expand Down

0 comments on commit 0a4dc54

Please sign in to comment.