Skip to content

Commit

Permalink
fix: remove abort controller deps (#402)
Browse files Browse the repository at this point in the history
`AbortController` and `AbortSignal` are in browsers and LTS node so the `abort-controller` and `native-abort-controller` deps aren't required any more.
  • Loading branch information
achingbrain authored Jan 20, 2022
1 parent f59381e commit ef6c8ce
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@
},
"dependencies": {
"@vascosantos/moving-average": "^1.1.0",
"abort-controller": "^3.0.0",
"any-signal": "^2.1.2",
"any-signal": "^3.0.0",
"blockstore-core": "^1.0.2",
"debug": "^4.2.0",
"err-code": "^3.0.1",
Expand All @@ -177,7 +176,6 @@
"libp2p-interfaces": "^4.0.0",
"multiaddr": "^10.0.0",
"multiformats": "^9.0.4",
"native-abort-controller": "^1.0.3",
"protobufjs": "^6.10.2",
"readable-stream": "^3.6.0",
"uint8arrays": "^3.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/bitswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { DecisionEngine } from './decision-engine/index.js'
import { Notifications } from './notifications.js'
import { logger } from './utils/index.js'
import { Stats } from './stats/index.js'
import { AbortController } from 'native-abort-controller'
import { anySignal } from 'any-signal'
import { BaseBlockstore } from 'blockstore-core/base'
import { CID } from 'multiformats/cid'
Expand Down
1 change: 0 additions & 1 deletion test/bitswap-mock-internals.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import drain from 'it-drain'
import { BitswapMessage as Message } from '../src/message/index.js'
import { Bitswap } from '../src/bitswap.js'
import { CID } from 'multiformats/cid'
import { AbortController } from 'native-abort-controller'
import delay from 'delay'
import { base58btc } from 'multiformats/bases/base58'

Expand Down
1 change: 0 additions & 1 deletion test/notifications.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { expect } from 'aegir/utils/chai.js'
import { CID } from 'multiformats/cid'
import { base32 } from 'multiformats/bases/base32'
import { AbortController } from 'native-abort-controller'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
import { Notifications } from '../src/notifications.js'
import { makeBlocks } from './utils/make-blocks.js'
Expand Down

0 comments on commit ef6c8ce

Please sign in to comment.