Skip to content

Commit

Permalink
deps(dev)!: bump aegir from 37.12.1 to 38.1.0 (#82)
Browse files Browse the repository at this point in the history
Bumps [aegir](https://github.com/ipfs/aegir) from 37.12.1 to 38.1.0.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](ipfs/aegir@v37.12.1...v38.1.0)

---
updated-dependencies:
- dependency-name: aegir
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marin Petrunic <[email protected]>
Co-authored-by: Alex Potsides <[email protected]>
  • Loading branch information
3 people authored Feb 1, 2023
1 parent b1d6785 commit 4255edc
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 48 deletions.
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@
"dependencies": {
"@libp2p/daemon-client": "^4.0.0",
"@libp2p/interface-peer-info": "^1.0.7",
"@libp2p/logger": "^2.0.0",
"@libp2p/peer-id": "^2.0.0",
"@multiformats/multiaddr": "^11.0.0",
"it-all": "^2.0.0",
"it-first": "^2.0.0",
"it-pipe": "^2.0.4",
Expand All @@ -146,9 +143,9 @@
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"aegir": "^37.2.0"
"aegir": "^38.1.0"
},
"peerDependencies": {
"aegir": "^37.2.0"
"aegir": "^38.1.0"
}
}
6 changes: 3 additions & 3 deletions src/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect } from 'aegir/chai'
import type { Daemon, NodeType, SpawnOptions, DaemonFactory, PeerIdType } from './index.js'
import { keys } from './resources/keys/index.js'

export function connectTests (factory: DaemonFactory) {
export function connectTests (factory: DaemonFactory): void {
const keyTypes: PeerIdType[] = ['ed25519', 'rsa', 'secp256k1']
const impls: NodeType[] = ['js', 'go']

Expand All @@ -20,7 +20,7 @@ export function connectTests (factory: DaemonFactory) {
}
}

function runConnectTests (name: string, factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions) {
function runConnectTests (name: string, factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
describe(`connect using ${name}`, () => {
let daemons: Daemon[]

Expand All @@ -38,7 +38,7 @@ function runConnectTests (name: string, factory: DaemonFactory, optionsA: SpawnO
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async (daemon) => { await daemon.stop() })
)
}
})
Expand Down
6 changes: 3 additions & 3 deletions src/dht/content-fetching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const record = {
value: uint8ArrayFromString('080012a60230820122300d06092a864886f70d01010105000382010f003082010a0282010100c2588f998971dac9e3eef76a311bf9159505aff69ea3b664c55a36aa28ee08de1127228a4d431bb9c0840240c75f6e98a0843a78d945491a3ea5e1f7cee2bc71383510db5290702383975b7bffae9fb40c84cc1220fb4a7db862fffb0de42f8fd8fb33a17deb20f30e2d0f194791fe69355a392f77df35f101e08a2fc95b2c018768938814fcb52482f899f5e90a1905e8abbcdbb1647ad80a5b0417e1ce8320d64197a6ba3848926375c63adebabdf6eb82109bcadfee13b62bf922bbb6f74c1a26c9bc6122d1436787e0e6de3c152b1959701092abef84599f73eaedb2fcef9f87293e1bbe8e0fef3f1a7fd2e8b94c7e633f88473644a63cb948e4d25c54490203010001', 'hex')
}

export function contentFetchingTests (factory: DaemonFactory) {
export function contentFetchingTests (factory: DaemonFactory): void {
const nodeTypes: NodeType[] = ['js', 'go']

for (const typeA of nodeTypes) {
Expand All @@ -27,7 +27,7 @@ export function contentFetchingTests (factory: DaemonFactory) {
}
}

function runContentFetchingTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions) {
function runContentFetchingTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
describe('dht.contentFetching', () => {
let daemons: Daemon[]

Expand All @@ -53,7 +53,7 @@ function runContentFetchingTests (factory: DaemonFactory, optionsA: SpawnOptions
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async (daemon) => { await daemon.stop() })
)
}
})
Expand Down
6 changes: 3 additions & 3 deletions src/dht/content-routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import all from 'it-all'
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import type { IdentifyResult } from '@libp2p/daemon-client'

export function contentRoutingTests (factory: DaemonFactory) {
export function contentRoutingTests (factory: DaemonFactory): void {
const nodeTypes: NodeType[] = ['js', 'go']

for (const typeA of nodeTypes) {
Expand All @@ -25,7 +25,7 @@ export function contentRoutingTests (factory: DaemonFactory) {
}
}

function runContentRoutingTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions) {
function runContentRoutingTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
describe('dht.contentRouting', () => {
let daemons: Daemon[]
let identify: IdentifyResult[]
Expand Down Expand Up @@ -55,7 +55,7 @@ function runContentRoutingTests (factory: DaemonFactory, optionsA: SpawnOptions,
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async (daemon) => { await daemon.stop() })
)
}
})
Expand Down
8 changes: 4 additions & 4 deletions src/dht/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { contentFetchingTests } from './content-fetching.js'
import { contentRoutingTests } from './content-routing.js'
import { peerRoutingTests } from './peer-routing.js'

export async function dhtTests (factory: DaemonFactory) {
await contentFetchingTests(factory)
await contentRoutingTests(factory)
await peerRoutingTests(factory)
export async function dhtTests (factory: DaemonFactory): Promise<void> {
contentFetchingTests(factory)
contentRoutingTests(factory)
peerRoutingTests(factory)
}
6 changes: 3 additions & 3 deletions src/dht/peer-routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import pRetry from 'p-retry'
import type { PeerInfo } from '@libp2p/interface-peer-info'

export function peerRoutingTests (factory: DaemonFactory) {
export function peerRoutingTests (factory: DaemonFactory): void {
const nodeTypes: NodeType[] = ['js', 'go']

for (const typeA of nodeTypes) {
Expand All @@ -19,7 +19,7 @@ export function peerRoutingTests (factory: DaemonFactory) {
}
}

function runPeerRoutingTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions) {
function runPeerRoutingTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
describe('dht.peerRouting', () => {
let daemons: Daemon[]

Expand All @@ -38,7 +38,7 @@ function runPeerRoutingTests (factory: DaemonFactory, optionsA: SpawnOptions, op
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async (daemon) => { await daemon.stop() })
)
}
})
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export interface DaemonFactory {
spawn: (options: SpawnOptions) => Promise<Daemon>
}

export async function interopTests (factory: DaemonFactory) {
await connectTests(factory)
export async function interopTests (factory: DaemonFactory): Promise<void> {
connectTests(factory)
await dhtTests(factory)
await pubsubTests(factory)
await streamTests(factory)
Expand Down
10 changes: 5 additions & 5 deletions src/pubsub/floodsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import first from 'it-first'

export function floodsubTests (factory: DaemonFactory) {
export function floodsubTests (factory: DaemonFactory): void {
const nodeTypes: NodeType[] = ['js', 'go']

for (const typeA of nodeTypes) {
Expand All @@ -19,7 +19,7 @@ export function floodsubTests (factory: DaemonFactory) {
}
}

function runFloodsubTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions) {
function runFloodsubTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
describe('pubsub.floodSub', () => {
let daemons: Daemon[]

Expand All @@ -40,7 +40,7 @@ function runFloodsubTests (factory: DaemonFactory, optionsA: SpawnOptions, optio
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async (daemon) => { await daemon.stop() })
)
}
})
Expand All @@ -50,14 +50,14 @@ function runFloodsubTests (factory: DaemonFactory, optionsA: SpawnOptions, optio
const data = uint8ArrayFromString('test-data')

const subscribeIterator = daemons[1].client.pubsub.subscribe(topic)
const subscriber = async () => {
const subscriber = async (): Promise<void> => {
const message = await first(subscribeIterator)

expect(message).to.exist()
expect(message).to.have.property('data').that.equalBytes(data)
}

const publisher = async () => {
const publisher = async (): Promise<void> => {
// wait for subscription stream
await new Promise(resolve => setTimeout(resolve, 800))
await daemons[0].client.pubsub.publish(topic, data)
Expand Down
10 changes: 5 additions & 5 deletions src/pubsub/gossipsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import first from 'it-first'

export function gossipsubTests (factory: DaemonFactory) {
export function gossipsubTests (factory: DaemonFactory): void {
const nodeTypes: NodeType[] = ['js', 'go']

for (const typeA of nodeTypes) {
Expand All @@ -19,7 +19,7 @@ export function gossipsubTests (factory: DaemonFactory) {
}
}

function runGossipsubTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions) {
function runGossipsubTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
describe('pubsub.gossipsub', () => {
let daemons: Daemon[]

Expand All @@ -40,7 +40,7 @@ function runGossipsubTests (factory: DaemonFactory, optionsA: SpawnOptions, opti
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async (daemon) => { await daemon.stop() })
)
}
})
Expand All @@ -50,14 +50,14 @@ function runGossipsubTests (factory: DaemonFactory, optionsA: SpawnOptions, opti
const data = uint8ArrayFromString('test-data')

const subscribeIterator = daemons[1].client.pubsub.subscribe(topic)
const subscriber = async () => {
const subscriber = async (): Promise<void> => {
const message = await first(subscribeIterator)

expect(message).to.exist()
expect(message).to.have.property('data').that.equalBytes(data)
}

const publisher = async () => {
const publisher = async (): Promise<void> => {
// wait for subscription stream
await new Promise(resolve => setTimeout(resolve, 800))
await daemons[0].client.pubsub.publish(topic, data)
Expand Down
10 changes: 5 additions & 5 deletions src/pubsub/hybrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import first from 'it-first'

export function hybridTests (factory: DaemonFactory) {
export function hybridTests (factory: DaemonFactory): void {
const nodeTypes: NodeType[] = ['js', 'go']

for (const typeA of nodeTypes) {
Expand All @@ -19,7 +19,7 @@ export function hybridTests (factory: DaemonFactory) {
}
}

function runHybridTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions) {
function runHybridTests (factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
describe('pubsub.hybrid', () => {
let daemons: Daemon[]

Expand All @@ -40,7 +40,7 @@ function runHybridTests (factory: DaemonFactory, optionsA: SpawnOptions, options
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async (daemon) => { await daemon.stop() })
)
}
})
Expand All @@ -50,14 +50,14 @@ function runHybridTests (factory: DaemonFactory, optionsA: SpawnOptions, options
const data = uint8ArrayFromString('test-data')

const subscribeIterator = daemons[1].client.pubsub.subscribe(topic)
const subscriber = async () => {
const subscriber = async (): Promise<void> => {
const message = await first(subscribeIterator)

expect(message).to.exist()
expect(message).to.have.property('data').that.equalBytes(data)
}

const publisher = async () => {
const publisher = async (): Promise<void> => {
// wait for subscription stream
await new Promise(resolve => setTimeout(resolve, 800))
await daemons[0].client.pubsub.publish(topic, data)
Expand Down
8 changes: 4 additions & 4 deletions src/pubsub/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { floodsubTests } from './floodsub.js'
import { gossipsubTests } from './gossipsub.js'
import { hybridTests } from './hybrid.js'

export async function pubsubTests (factory: DaemonFactory) {
await floodsubTests(factory)
await gossipsubTests(factory)
await hybridTests(factory)
export async function pubsubTests (factory: DaemonFactory): Promise<void> {
floodsubTests(factory)
gossipsubTests(factory)
hybridTests(factory)
}
6 changes: 3 additions & 3 deletions src/streams/echo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { pipe } from 'it-pipe'
import all from 'it-all'
import defer from 'p-defer'

export function echoStreamTests (factory: DaemonFactory, muxer: Muxer) {
export function echoStreamTests (factory: DaemonFactory, muxer: Muxer): void {
const nodeTypes: NodeType[] = ['js', 'go']

for (const typeA of nodeTypes) {
Expand All @@ -22,7 +22,7 @@ export function echoStreamTests (factory: DaemonFactory, muxer: Muxer) {
}
}

function runEchoStreamTests (factory: DaemonFactory, muxer: Muxer, optionsA: SpawnOptions, optionsB: SpawnOptions) {
function runEchoStreamTests (factory: DaemonFactory, muxer: Muxer, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
describe(`echo streams - ${muxer}`, () => {
let daemons: Daemon[]

Expand All @@ -48,7 +48,7 @@ function runEchoStreamTests (factory: DaemonFactory, muxer: Muxer, optionsA: Spa
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async (daemon) => { await daemon.stop() })
)
}
})
Expand Down
6 changes: 3 additions & 3 deletions src/streams/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { echoStreamTests } from './echo.js'
import type { DaemonFactory } from '../index.js'

export async function streamTests (factory: DaemonFactory) {
await echoStreamTests(factory, 'mplex')
await echoStreamTests(factory, 'yamux')
export async function streamTests (factory: DaemonFactory): Promise<void> {
echoStreamTests(factory, 'mplex')
echoStreamTests(factory, 'yamux')
}

0 comments on commit 4255edc

Please sign in to comment.