diff --git a/package.json b/package.json index 79f4397..b64a19e 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "clean": "aegir clean", "lint": "aegir lint", "build": "aegir build", - "release": "semantic-release", + "release": "aegir release", "test": "aegir test", "test:node": "aegir test -t node", "test:chrome": "aegir test -t browser", @@ -152,7 +152,6 @@ "dep-check": "aegir dep-check -i rimraf" }, "dependencies": { - "@libp2p/interfaces": "^1.3.24", "@libp2p/logger": "^1.1.4", "datastore-core": "^7.0.0", "debug": "^4.2.0", @@ -161,20 +160,23 @@ "uint8arrays": "^3.0.0" }, "devDependencies": { - "@achingbrain/libp2p-gossipsub": "^0.13.5", - "@libp2p/interface-compliance-tests": "^1.1.27", + "@chainsafe/libp2p-gossipsub": "^1.0.1", + "@libp2p/interface-compliance-tests": "^2.0.3", + "@libp2p/interfaces": "^2.0.2", "@libp2p/peer-id-factory": "^1.0.9", "@libp2p/record": "^1.0.4", "@types/detect-node": "^2.0.0", "aegir": "^37.0.13", "detect-node": "^2.0.4", + "install": "^0.13.0", "ipfs-core-types": "^0.10.2", "it-pair": "^2.0.2", "libp2p": "next", + "npm": "^8.10.0", "p-wait-for": "^4.1.0", "peer-id": "^0.16.0", "rimraf": "^3.0.2", - "sinon": "^13.0.2", + "sinon": "^14.0.0", "util": "^0.12.4" } } diff --git a/test/index.spec.js b/test/index.spec.js index 1a3a709..3090f57 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -16,6 +16,7 @@ import { } from './utils.js' import { Libp2pRecord } from '@libp2p/record' import { keyToTopic, topicToKey } from '../src/utils.js' +import { stop } from '@libp2p/interfaces/startable' /** * @typedef {import('@libp2p/interfaces/pubsub').PubSub} PubSub @@ -100,8 +101,8 @@ describe('datastore-pubsub', function () { afterEach(() => { return Promise.all([ - pubsubA.stop(), - pubsubB.stop() + stop(pubsubA), + stop(pubsubB) ]) }) diff --git a/test/utils.js b/test/utils.js index e7e3f65..908f9a4 100644 --- a/test/utils.js +++ b/test/utils.js @@ -1,5 +1,5 @@ import pWaitFor from 'p-wait-for' -import { GossipSub } from '@achingbrain/libp2p-gossipsub' +import { GossipSub } from '@chainsafe/libp2p-gossipsub' import { createEd25519PeerId } from '@libp2p/peer-id-factory' import { connectionPair, mockRegistrar, mockConnectionManager } from '@libp2p/interface-compliance-tests/mocks' import { Components } from '@libp2p/interfaces/components'