Skip to content

Commit

Permalink
deps: bump aegir from 40.0.13 to 41.0.2 (#2137)
Browse files Browse the repository at this point in the history
Bumps [aegir](https://github.com/ipfs/aegir) from 40.0.13 to 41.0.2.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](ipfs/aegir@v40.0.13...v41.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: achingbrain <alex@achingbrain.net>
  • Loading branch information
dependabot[bot] and achingbrain committed Oct 6, 2023
1 parent 7d8b155 commit f105315
Show file tree
Hide file tree
Showing 93 changed files with 270 additions and 270 deletions.
2 changes: 1 addition & 1 deletion doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@libp2p/mplex": "^9.0.0",
"@libp2p/prometheus-metrics": "^2.0.0",
"@libp2p/tcp": "^8.0.0",
"aegir": "^40.0.1",
"aegir": "^41.0.2",
"libp2p": "^0.46.0",
"prom-client": "^14.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/auto-relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"libp2p": "^0.46.0"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"execa": "^8.0.1",
"p-defer": "^4.0.0",
"uint8arrays": "^4.0.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"execa": "^8.0.1",
"p-defer": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/connection-encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
2 changes: 1 addition & 1 deletion examples/delegated-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"react-scripts": "^5.0.1"
},
"devDependencies": {
"aegir": "^40.0.8"
"aegir": "^41.0.2"
},
"browserslist": [
">0.2%",
Expand Down
2 changes: 1 addition & 1 deletion examples/discovery-mechanisms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"libp2p": "^0.46.0"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"execa": "^8.0.1",
"p-wait-for": "^5.0.2",
"uint8arrays": "^4.0.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"execa": "^8.0.1",
"p-defer": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/peer-and-content-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"multiformats": "^12.0.1"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
2 changes: 1 addition & 1 deletion examples/pnet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
2 changes: 1 addition & 1 deletion examples/protocol-and-stream-muxing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
2 changes: 1 addition & 1 deletion examples/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"execa": "^8.0.1",
"p-defer": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/transports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
2 changes: 1 addition & 1 deletion interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@libp2p/webtransport": "^3.1.1",
"@multiformats/mafmt": "^12.1.2",
"@multiformats/multiaddr": "^12.1.5",
"aegir": "^40.0.12",
"aegir": "^41.0.2",
"libp2p": "^0.46.12",
"redis": "^4.5.1"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"docs:no-publish": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs --publish false -- --exclude interop --exclude examples/auto-relay --exclude examples/chat --exclude examples/connection-encryption --exclude examples/delegated-routing --exclude examples/discovery-mechanisms --exclude examples/echo --exclude examples/peer-and-content-routing --exclude examples/pnet --exclude examples/protocol-and-stream-muxing --exclude examples/pubsub --exclude examples/transports --exclude doc"
},
"devDependencies": {
"aegir": "^40.0.1"
"aegir": "^41.0.2"
},
"eslintConfig": {
"extends": "ipfs",
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
},
"devDependencies": {
"@types/mocha": "^10.0.0",
"aegir": "^40.0.8",
"aegir": "^41.0.2",
"benchmark": "^2.1.4",
"protons": "^7.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/aes/ciphers-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'

export interface Cipher {
update: (data: Uint8Array) => Uint8Array
update(data: Uint8Array): Uint8Array
}

export function createCipheriv (mode: any, key: Uint8Array, iv: Uint8Array): Cipher {
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/src/aes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { cipherMode } from './cipher-mode.js'
import * as ciphers from './ciphers.js'

export interface AESCipher {
encrypt: (data: Uint8Array) => Promise<Uint8Array>
decrypt: (data: Uint8Array) => Promise<Uint8Array>
encrypt(data: Uint8Array): Promise<Uint8Array>
decrypt(data: Uint8Array): Promise<Uint8Array>
}

export async function create (key: Uint8Array, iv: Uint8Array): Promise<AESCipher> {
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/src/ciphers/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export interface CreateOptions {
}

export interface AESCipher {
encrypt: (data: Uint8Array, password: string | Uint8Array) => Promise<Uint8Array>
decrypt: (data: Uint8Array, password: string | Uint8Array) => Promise<Uint8Array>
encrypt(data: Uint8Array, password: string | Uint8Array): Promise<Uint8Array>
decrypt(data: Uint8Array, password: string | Uint8Array): Promise<Uint8Array>
}
2 changes: 1 addition & 1 deletion packages/crypto/src/hmac/index-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const sign = async (key: CryptoKey, data: Uint8Array): Promise<Uint8Array> => {
return new Uint8Array(buf, 0, buf.byteLength)
}

export async function create (hashType: 'SHA1' | 'SHA256' | 'SHA512', secret: Uint8Array): Promise<{ digest: (data: Uint8Array) => Promise<Uint8Array>, length: number }> {
export async function create (hashType: 'SHA1' | 'SHA256' | 'SHA512', secret: Uint8Array): Promise<{ digest(data: Uint8Array): Promise<Uint8Array>, length: number }> {
const hash = hashTypes[hashType]

const key = await webcrypto.get().subtle.importKey(
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/hmac/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import crypto from 'crypto'
import lengths from './lengths.js'

export interface HMAC {
digest: (data: Uint8Array) => Promise<Uint8Array>
digest(data: Uint8Array): Promise<Uint8Array>
length: number
}

Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/keys/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface ECDHKeyPair {

export interface ECDHKey {
key: Uint8Array
genSharedKey: (theirPub: Uint8Array, forcePrivate?: ECDHKeyPair) => Promise<Uint8Array>
genSharedKey(theirPub: Uint8Array, forcePrivate?: ECDHKeyPair): Promise<Uint8Array>
}

export interface JWKEncodedPublicKey { kty: string, crv: 'P-256' | 'P-384' | 'P-521', x: string, y: string, ext: boolean }
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/src/keys/jwk2pem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import forge from 'node-forge/lib/forge.js'
import { base64urlToBigInteger } from '../util.js'

export interface JWK {
encrypt: (msg: string) => string
decrypt: (msg: string) => string
encrypt(msg: string): string
decrypt(msg: string): string
}

function convert (key: any, types: string[]): Array<typeof forge.jsbn.BigInteger> {
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/keys/rsa-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Explanation:
*/

function convertKey (key: JsonWebKey, pub: boolean, msg: Uint8Array, handle: (msg: string, key: { encrypt: (msg: string) => string, decrypt: (msg: string) => string }) => string): Uint8Array {
function convertKey (key: JsonWebKey, pub: boolean, msg: Uint8Array, handle: (msg: string, key: { encrypt(msg: string): string, decrypt(msg: string): string }) => string): Uint8Array {
const fkey = pub ? jwk2pub(key) : jwk2priv(key)
const fmsg = uint8ArrayToString(Uint8Array.from(msg), 'ascii')
const fomsg = handle(fmsg, fkey)
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'

export function bigIntegerToUintBase64url (num: { abs: () => any }, len?: number): string {
export function bigIntegerToUintBase64url (num: { abs(): any }, len?: number): string {
// Call `.abs()` to convert to unsigned
let buf = Uint8Array.from(num.abs().toByteArray()) // toByteArray converts to big endian

Expand Down
2 changes: 1 addition & 1 deletion packages/interface-compliance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"@libp2p/peer-id-factory": "^3.0.4",
"@multiformats/multiaddr": "^12.1.5",
"abortable-iterator": "^5.0.1",
"aegir": "^40.0.11",
"aegir": "^41.0.2",
"delay": "^6.0.0",
"it-all": "^3.0.2",
"it-drain": "^3.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/interface-compliance-tests/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface TestSetup<T, SetupArgs = Record<string, unknown>> {
setup: (args?: SetupArgs) => Promise<T>
teardown: () => Promise<void>
setup(args?: SetupArgs): Promise<T>
teardown(): Promise<void>
}
4 changes: 2 additions & 2 deletions packages/interface-compliance-tests/src/transport/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import type { Transport } from '@libp2p/interface/transport'
import type { Multiaddr } from '@multiformats/multiaddr'

export interface Connector {
delay: (ms: number) => void
restore: () => void
delay(ms: number): void
restore(): void
}

export interface TransportTestFixtures {
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@
"uint8arraylist": "^2.4.3"
},
"devDependencies": {
"aegir": "^40.0.8"
"aegir": "^41.0.2"
}
}
14 changes: 7 additions & 7 deletions packages/interface-internal/src/address-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,40 @@ export interface AddressManager {
/**
* Get peer listen multiaddrs
*/
getListenAddrs: () => Multiaddr[]
getListenAddrs(): Multiaddr[]

/**
* Get peer announcing multiaddrs
*/
getAnnounceAddrs: () => Multiaddr[]
getAnnounceAddrs(): Multiaddr[]

/**
* Get observed multiaddrs - these addresses may not have been confirmed as
* publicly dialable yet
*/
getObservedAddrs: () => Multiaddr[]
getObservedAddrs(): Multiaddr[]

/**
* Signal that we have confidence an observed multiaddr is publicly dialable -
* this will make it appear in the output of getAddresses()
*/
confirmObservedAddr: (addr: Multiaddr) => void
confirmObservedAddr(addr: Multiaddr): void

/**
* Signal that we do not have confidence an observed multiaddr is publicly dialable -
* this will remove it from the output of getObservedAddrs()
*/
removeObservedAddr: (addr: Multiaddr) => void
removeObservedAddr(addr: Multiaddr): void

/**
* Add peer observed addresses. These will then appear in the output of getObservedAddrs
* but not getAddresses() until their dialability has been confirmed via a call to
* confirmObservedAddr.
*/
addObservedAddr: (addr: Multiaddr) => void
addObservedAddr(addr: Multiaddr): void

/**
* Get the current node's addresses
*/
getAddresses: () => Multiaddr[]
getAddresses(): Multiaddr[]
}
14 changes: 7 additions & 7 deletions packages/interface-internal/src/connection-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface ConnectionManager {
* // []
* ```
*/
getConnections: (peerId?: PeerId) => Connection[]
getConnections(peerId?: PeerId): Connection[]

/**
* Return a map of all connections with their associated PeerIds
Expand All @@ -41,7 +41,7 @@ export interface ConnectionManager {
* const connectionsMap = libp2p.connectionManager.getConnectionsMap()
* ```
*/
getConnectionsMap: () => PeerMap<Connection[]>
getConnectionsMap(): PeerMap<Connection[]>

/**
* Open a connection to a remote peer
Expand All @@ -52,25 +52,25 @@ export interface ConnectionManager {
* const connection = await libp2p.connectionManager.openConnection(peerId)
* ```
*/
openConnection: (peer: PeerId | Multiaddr | Multiaddr[], options?: OpenConnectionOptions) => Promise<Connection>
openConnection(peer: PeerId | Multiaddr | Multiaddr[], options?: OpenConnectionOptions): Promise<Connection>

/**
* Close our connections to a peer
*/
closeConnections: (peer: PeerId, options?: AbortOptions) => Promise<void>
closeConnections(peer: PeerId, options?: AbortOptions): Promise<void>

/**
* Invoked after an incoming connection is opened but before PeerIds are
* exchanged, this lets the ConnectionManager check we have sufficient
* resources to accept the connection in which case it will return true,
* otherwise it will return false.
*/
acceptIncomingConnection: (maConn: MultiaddrConnection) => Promise<boolean>
acceptIncomingConnection(maConn: MultiaddrConnection): Promise<boolean>

/**
* Invoked after upgrading a multiaddr connection has finished
*/
afterUpgradeInbound: () => void
afterUpgradeInbound(): void

/**
* Return the list of in-progress or queued dials
Expand All @@ -81,5 +81,5 @@ export interface ConnectionManager {
* const dials = libp2p.connectionManager.getDialQueue()
* ```
*/
getDialQueue: () => PendingDial[]
getDialQueue(): PendingDial[]
}
10 changes: 5 additions & 5 deletions packages/interface-internal/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export interface Record {
/**
* Marshal a record to be used in an envelope.
*/
marshal: () => Uint8Array
marshal(): Uint8Array
/**
* Verifies if the other provided Record is identical to this one.
*/
equals: (other: Record) => boolean
equals(other: Record): boolean
}

export interface Envelope {
Expand All @@ -29,7 +29,7 @@ export interface Envelope {
payload: Uint8Array
signature: Uint8Array | Uint8ArrayList

marshal: () => Uint8Array
validate: (domain: string) => Promise<boolean>
equals: (other: Envelope) => boolean
marshal(): Uint8Array
validate(domain: string): Promise<boolean>
equals(other: Envelope): boolean
}
Loading

0 comments on commit f105315

Please sign in to comment.