From d9f9912dac7ba6e330251d787c87cb08e15318c4 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Fri, 7 Aug 2020 17:07:34 +0100 Subject: [PATCH] chore: update deps (#134) * chore: update deps Upgrades to the latest multiaddrs with Uint8Arrays Also removes redundant deps. BREAKING CHANGES: - The multiaddr dep used by this module returns Uint8Arrays and may not be compatible with previous versions * chore: update utils * chore: remove gh dep url --- package.json | 6 ++---- test/connection.spec.js | 5 +---- test/filter.spec.js | 5 +---- test/listen-dial.spec.js | 5 +---- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index f58e038..05de3cd 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,6 @@ }, "devDependencies": { "aegir": "^25.0.0", - "chai": "^4.2.0", - "dirty-chai": "^2.0.1", "libp2p-interfaces": "^0.3.1", "it-pipe": "^1.1.0", "sinon": "^9.0.0", @@ -46,9 +44,9 @@ "class-is": "^1.1.0", "debug": "^4.1.1", "err-code": "^2.0.0", - "libp2p-utils": "^0.1.2", + "libp2p-utils": "^0.2.0", "mafmt": "^7.1.0", - "multiaddr": "^7.5.0", + "multiaddr": "^8.0.0", "stream-to-it": "^0.2.2" }, "contributors": [ diff --git a/test/connection.spec.js b/test/connection.spec.js index 870e0ac..3a750b4 100644 --- a/test/connection.spec.js +++ b/test/connection.spec.js @@ -1,10 +1,7 @@ /* eslint-env mocha */ 'use strict' -const chai = require('chai') -const dirtyChai = require('dirty-chai') -const expect = chai.expect -chai.use(dirtyChai) +const { expect } = require('aegir/utils/chai') const TCP = require('../src') const multiaddr = require('multiaddr') diff --git a/test/filter.spec.js b/test/filter.spec.js index 9539d1c..2eb81d9 100644 --- a/test/filter.spec.js +++ b/test/filter.spec.js @@ -1,10 +1,7 @@ /* eslint-env mocha */ 'use strict' -const chai = require('chai') -const dirtyChai = require('dirty-chai') -const expect = chai.expect -chai.use(dirtyChai) +const { expect } = require('aegir/utils/chai') const TCP = require('../src') const multiaddr = require('multiaddr') diff --git a/test/listen-dial.spec.js b/test/listen-dial.spec.js index 4e70168..4e48171 100644 --- a/test/listen-dial.spec.js +++ b/test/listen-dial.spec.js @@ -1,10 +1,7 @@ /* eslint-env mocha */ 'use strict' -const chai = require('chai') -const dirtyChai = require('dirty-chai') -const expect = chai.expect -chai.use(dirtyChai) +const { expect } = require('aegir/utils/chai') const TCP = require('../src') const net = require('net') const os = require('os')