Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

deps: bump aegir from 38.1.8 to 39.0.5 #393

Merged
merged 3 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"release": "npm run docs:no-publish && aegir run release && npm run docs"
},
"dependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"workspaces": [
"packages/*"
Expand Down
3 changes: 1 addition & 2 deletions packages/interface-address-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,10 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/interfaces": "^3.0.0",
"@multiformats/multiaddr": "^12.0.0"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
5 changes: 0 additions & 5 deletions packages/interface-address-manager/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@
},
"include": [
"src"
],
"references": [
{
"path": "../interfaces"
}
]
}
2 changes: 1 addition & 1 deletion packages/interface-compliance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"release": "aegir release"
},
"dependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-compliance-tests/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

export interface TestSetup<T, SetupArgs = {}> {
export interface TestSetup<T, SetupArgs = Record<string, unknown>> {
setup: (args?: SetupArgs) => Promise<T>
teardown: () => Promise<void>
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"dependencies": {
"@libp2p/interface-compliance-tests": "^3.0.0",
"@libp2p/interface-connection": "^5.0.0",
"aegir": "^38.1.0",
"aegir": "^39.0.5",
"sinon": "^15.0.0",
"ts-sinon": "^2.0.2"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/peer-id-factory": "^2.0.0",
"@multiformats/multiaddr": "^12.0.0",
"aegir": "^38.1.0",
"aegir": "^39.0.5",
"it-all": "^3.0.1",
"it-pair": "^2.0.2",
"it-pipe": "^3.0.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { expect } from 'aegir/chai'
import { pipe } from 'it-pipe'
import peers from '@libp2p/interface-compliance-tests/peers'
import { UnexpectedPeerError } from '@libp2p/interface-connection-encrypter/errors'
import * as PeerIdFactory from '@libp2p/peer-id-factory'
import { expect } from 'aegir/chai'
import all from 'it-all'
import { pipe } from 'it-pipe'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import peers from '@libp2p/interface-compliance-tests/peers'
import { UnexpectedPeerError } from '@libp2p/interface-connection-encrypter/errors'
import { createMaConnPair } from './utils/index.js'
import type { TestSetup } from '@libp2p/interface-compliance-tests'
import type { ConnectionEncrypter } from '@libp2p/interface-connection-encrypter'
Expand Down Expand Up @@ -59,7 +59,7 @@ export default (common: TestSetup<ConnectionEncrypter>): void => {
const result = await pipe(
[input],
outboundResult.conn,
async (source) => await all(source)
async (source) => all(source)
)

expect(result).to.eql([input])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { duplexPair } from 'it-pair/duplex'
import { multiaddr } from '@multiformats/multiaddr'
import { duplexPair } from 'it-pair/duplex'
import type { MultiaddrConnection } from '@libp2p/interface-connection'
import type { Duplex, Source } from 'it-stream-types'

Expand Down
2 changes: 1 addition & 1 deletion packages/interface-connection-encrypter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"it-stream-types": "^2.0.1"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
12 changes: 3 additions & 9 deletions packages/interface-connection-encrypter/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export class UnexpectedPeerError extends Error {
this.code = UnexpectedPeerError.code
}

static get code (): string {
return 'ERR_UNEXPECTED_PEER'
}
static readonly code = 'ERR_UNEXPECTED_PEER'
}

export class InvalidCryptoExchangeError extends Error {
Expand All @@ -20,9 +18,7 @@ export class InvalidCryptoExchangeError extends Error {
this.code = InvalidCryptoExchangeError.code
}

static get code (): string {
return 'ERR_INVALID_CRYPTO_EXCHANGE'
}
static readonly code = 'ERR_INVALID_CRYPTO_EXCHANGE'
}

export class InvalidCryptoTransmissionError extends Error {
Expand All @@ -33,7 +29,5 @@ export class InvalidCryptoTransmissionError extends Error {
this.code = InvalidCryptoTransmissionError.code
}

static get code (): string {
return 'ERR_INVALID_CRYPTO_TRANSMISSION'
}
static readonly code = 'ERR_INVALID_CRYPTO_TRANSMISSION'
}
2 changes: 1 addition & 1 deletion packages/interface-connection-gater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"@multiformats/multiaddr": "^12.0.0"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
4 changes: 2 additions & 2 deletions packages/interface-connection-gater/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Multiaddr } from '@multiformats/multiaddr'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { MultiaddrConnection } from '@libp2p/interface-connection'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { Multiaddr } from '@multiformats/multiaddr'

export interface ConnectionGater {
/**
Expand Down
3 changes: 0 additions & 3 deletions packages/interface-connection-gater/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
},
{
"path": "../interface-peer-id"
},
{
"path": "../interfaces"
}
]
}
2 changes: 1 addition & 1 deletion packages/interface-connection-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"@multiformats/multiaddr": "^12.0.0"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
4 changes: 2 additions & 2 deletions packages/interface-connection-manager/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { AbortOptions } from '@libp2p/interfaces'
import type { Connection, MultiaddrConnection } from '@libp2p/interface-connection'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { Multiaddr } from '@multiformats/multiaddr'
import type { AbortOptions } from '@libp2p/interfaces'
import type { PeerMap } from '@libp2p/peer-collections'
import type { Multiaddr } from '@multiformats/multiaddr'

export type PendingDialStatus = 'queued' | 'active' | 'error' | 'success'

Expand Down
4 changes: 2 additions & 2 deletions packages/interface-connection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@
"@libp2p/interfaces": "^3.0.0",
"@multiformats/multiaddr": "^12.0.0",
"it-stream-types": "^2.0.1",
"uint8arraylist": "^2.1.2"
"uint8arraylist": "^2.4.3"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-connection/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Multiaddr } from '@multiformats/multiaddr'
import type { PeerId } from '@libp2p/interface-peer-id'
import type * as Status from './status.js'
import type { Duplex, Source } from 'it-stream-types'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { AbortOptions } from '@libp2p/interfaces'
import type { Multiaddr } from '@multiformats/multiaddr'
import type { Duplex, Source } from 'it-stream-types'
import type { Uint8ArrayList } from 'uint8arraylist'

export interface ConnectionTimeline {
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-content-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"multiformats": "^11.0.0"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
4 changes: 2 additions & 2 deletions packages/interface-content-routing/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { CID } from 'multiformats/cid'
import type { AbortOptions } from '@libp2p/interfaces'
import type { PeerInfo } from '@libp2p/interface-peer-info'
import type { AbortOptions } from '@libp2p/interfaces'
import type { CID } from 'multiformats/cid'

/**
* Any object that implements this Symbol as a property should return a
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-dht/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"multiformats": "^11.0.0"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
4 changes: 2 additions & 2 deletions packages/interface-dht/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { PeerDiscovery } from '@libp2p/interface-peer-discovery'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { CID } from 'multiformats/cid'
import type { PeerInfo } from '@libp2p/interface-peer-info'
import type { AbortOptions } from '@libp2p/interfaces'
import type { PeerDiscovery } from '@libp2p/interface-peer-discovery'
import type { CID } from 'multiformats/cid'

/**
* The types of events emitted during DHT queries
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"multiformats": "^11.0.0"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-keychain/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* ```
*/

import type { Multibase } from 'multiformats/bases/interface'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { Multibase } from 'multiformats/bases/interface'

export interface KeyInfo {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"release": "aegir release"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
4 changes: 1 addition & 3 deletions packages/interface-libp2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,19 @@
"dependencies": {
"@libp2p/interface-connection": "^5.0.0",
"@libp2p/interface-content-routing": "^2.0.0",
"@libp2p/interface-dht": "^2.0.0",
"@libp2p/interface-keychain": "^2.0.0",
"@libp2p/interface-metrics": "^4.0.0",
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interface-peer-info": "^1.0.0",
"@libp2p/interface-peer-routing": "^1.0.0",
"@libp2p/interface-peer-store": "^2.0.0",
"@libp2p/interface-pubsub": "^4.0.0",
"@libp2p/interface-registrar": "^2.0.0",
"@libp2p/interface-transport": "^4.0.0",
"@libp2p/interfaces": "^3.0.0",
"@multiformats/multiaddr": "^12.0.0"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
20 changes: 10 additions & 10 deletions packages/interface-libp2p/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
* ```
*/

import type { AbortOptions } from '@libp2p/interfaces'
import type { EventEmitter } from '@libp2p/interfaces/events'
import type { Startable } from '@libp2p/interfaces/startable'
import type { Multiaddr } from '@multiformats/multiaddr'
import type { Address, Peer, PeerStore } from '@libp2p/interface-peer-store'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { Connection, Stream } from '@libp2p/interface-connection'
import type { PeerRouting } from '@libp2p/interface-peer-routing'
import type { ContentRouting } from '@libp2p/interface-content-routing'
import type { StreamHandler, StreamHandlerOptions, Topology } from '@libp2p/interface-registrar'
import type { KeyChain } from '@libp2p/interface-keychain'
import type { Metrics } from '@libp2p/interface-metrics'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { PeerInfo } from '@libp2p/interface-peer-info'
import type { KeyChain } from '@libp2p/interface-keychain'
import type { PeerRouting } from '@libp2p/interface-peer-routing'
import type { Address, Peer, PeerStore } from '@libp2p/interface-peer-store'
import type { StreamHandler, StreamHandlerOptions, Topology } from '@libp2p/interface-registrar'
import type { Listener } from '@libp2p/interface-transport'
import type { AbortOptions } from '@libp2p/interfaces'
import type { EventEmitter } from '@libp2p/interfaces/events'
import type { Startable } from '@libp2p/interfaces/startable'
import type { Multiaddr } from '@multiformats/multiaddr'

/**
* Used by the connection manager to sort addresses into order before dialling
Expand Down Expand Up @@ -208,7 +208,7 @@ export interface PendingDial {
/**
* Libp2p nodes implement this interface.
*/
export interface Libp2p<T extends ServiceMap = {}> extends Startable, EventEmitter<Libp2pEvents> {
export interface Libp2p<T extends ServiceMap = Record<string, unknown>> extends Startable, EventEmitter<Libp2pEvents> {
/**
* The PeerId is a unique identifier for a node on the network.
*
Expand Down
7 changes: 2 additions & 5 deletions packages/interface-libp2p/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
{
"path": "../interface-content-routing"
},
{
"path": "../interface-dht"
},
{
"path": "../interface-keychain"
},
Expand All @@ -35,10 +32,10 @@
"path": "../interface-peer-store"
},
{
"path": "../interface-pubsub"
"path": "../interface-registrar"
},
{
"path": "../interface-registrar"
"path": "../interface-transport"
},
{
"path": "../interfaces"
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"@libp2p/interface-connection": "^5.0.0"
},
"devDependencies": {
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
4 changes: 2 additions & 2 deletions packages/interface-mocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@
"it-pushable": "^3.1.3",
"it-stream-types": "^2.0.1",
"merge-options": "^3.0.4",
"uint8arraylist": "^2.1.2",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"@libp2p/interface-connection-compliance-tests": "^2.0.0",
"@libp2p/interface-connection-encrypter-compliance-tests": "^5.0.0",
"@libp2p/interface-peer-discovery-compliance-tests": "^2.0.0",
"@libp2p/interface-stream-muxer-compliance-tests": "^7.0.0",
"aegir": "^38.1.0"
"aegir": "^39.0.5"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
Loading