Skip to content
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
14 changes: 3 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directories:
- "/"
- "/benchmarks/*"
- "/docs/*"
- "/examples/*"
- "/interop/*"
- "/packages/*"
directory: "/"
schedule:
interval: daily
time: "10:00"
Expand All @@ -16,16 +10,14 @@ updates:
prefix: "deps"
prefix-development: "chore"
groups:
helia-deps: # group all deps that should be updated when Helia deps need updated
interplanetary-deps: # Helia/libp2p deps
patterns:
- "*helia*"
- "*libp2p*"
- "*multiformats*"
store-deps: # group all blockstore and datastore updates (interface & impl)
patterns:
- "*blockstore*"
- "*datastore*"
kubo-deps: # group kubo, kubo-rpc-client, and ipfsd-ctl updates
kubo-deps: # kubo deps
patterns:
- "*kubo*"
- "ipfsd-ctl"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Close Stale Issues
name: Close and mark stale issue

on:
schedule:
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": "aegir docs --publish false"
},
"dependencies": {
"aegir": "^46.0.2",
"aegir": "^47.0.21",
"any-signal": "^4.1.1",
"npm-run-all": "^4.1.5"
},
Expand Down
29 changes: 11 additions & 18 deletions packages/libp2p-daemon-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "ipfs",
"parserOptions": {
"project": true,
"sourceType": "module"
}
},
"release": {
"branches": [
"main"
Expand Down Expand Up @@ -144,21 +137,21 @@
},
"dependencies": {
"@libp2p/daemon-protocol": "^7.0.0",
"@libp2p/interface": "^2.10.0",
"@libp2p/logger": "^5.1.16",
"@libp2p/peer-id": "^5.1.3",
"@libp2p/tcp": "^10.1.11",
"@multiformats/multiaddr": "^12.4.0",
"it-protobuf-stream": "^2.0.2",
"multiformats": "^13.3.4"
"@libp2p/interface": "^2.10.5",
"@libp2p/logger": "^5.1.21",
"@libp2p/peer-id": "^5.1.8",
"@libp2p/tcp": "^10.1.18",
"@multiformats/multiaddr": "^12.5.1",
"it-protobuf-stream": "^2.0.3",
"multiformats": "^13.4.0"
},
"devDependencies": {
"@chainsafe/libp2p-gossipsub": "^14.1.1",
"@libp2p/daemon-server": "^8.0.0",
"@libp2p/interface-compliance-tests": "^6.4.6",
"@libp2p/kad-dht": "^15.1.0",
"aegir": "^46.0.3",
"it-all": "^3.0.8",
"@libp2p/interface-compliance-tests": "^6.4.16",
"@libp2p/kad-dht": "^15.1.10",
"aegir": "^47.0.21",
"it-all": "^3.0.9",
"it-pipe": "^3.0.1",
"sinon": "^20.0.0",
"sinon-ts": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/libp2p-daemon-client/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"readme": "none",
"entryPoints": [
"./src/index.ts"
]
Expand Down
19 changes: 6 additions & 13 deletions packages/libp2p-daemon-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@
"import": "./dist/src/upgrader.js"
}
},
"eslintConfig": {
"extends": "ipfs",
"parserOptions": {
"project": true,
"sourceType": "module"
}
},
"release": {
"branches": [
"main"
Expand Down Expand Up @@ -163,15 +156,15 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/interface": "^2.10.0",
"@libp2p/logger": "^5.1.16",
"@libp2p/interface": "^2.10.5",
"@libp2p/logger": "^5.1.21",
"any-signal": "^4.1.1",
"it-length-prefixed-stream": "^2.0.2",
"protons-runtime": "^5.5.0",
"it-length-prefixed-stream": "^2.0.3",
"protons-runtime": "^5.6.0",
"uint8arraylist": "^2.4.8"
},
"devDependencies": {
"aegir": "^46.0.3",
"protons": "^7.6.0"
"aegir": "^47.0.21",
"protons": "^7.7.0"
}
}
6 changes: 0 additions & 6 deletions packages/libp2p-daemon-protocol/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/* eslint-disable import/export */
/* eslint-disable complexity */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable @typescript-eslint/no-unnecessary-boolean-literal-compare */
/* eslint-disable @typescript-eslint/no-empty-interface */

import { enumeration, encodeMessage, decodeMessage, message } from 'protons-runtime'
import type { Codec } from 'protons-runtime'
import type { Uint8ArrayList } from 'uint8arraylist'
Expand Down
1 change: 1 addition & 0 deletions packages/libp2p-daemon-protocol/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"readme": "none",
"entryPoints": [
"./src/index.ts",
"./src/stream-handler.ts",
Expand Down
31 changes: 12 additions & 19 deletions packages/libp2p-daemon-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "ipfs",
"parserOptions": {
"project": true,
"sourceType": "module"
}
},
"release": {
"branches": [
"main"
Expand Down Expand Up @@ -144,25 +137,25 @@
},
"dependencies": {
"@chainsafe/libp2p-gossipsub": "^14.1.1",
"@libp2p/crypto": "^5.1.2",
"@libp2p/crypto": "^5.1.7",
"@libp2p/daemon-protocol": "^7.0.0",
"@libp2p/interface": "^2.10.0",
"@libp2p/kad-dht": "^15.1.0",
"@libp2p/logger": "^5.1.16",
"@libp2p/peer-id": "^5.1.3",
"@libp2p/tcp": "^10.1.11",
"@multiformats/multiaddr": "^12.4.0",
"it-drain": "^3.0.9",
"@libp2p/interface": "^2.10.5",
"@libp2p/kad-dht": "^15.1.10",
"@libp2p/logger": "^5.1.21",
"@libp2p/peer-id": "^5.1.8",
"@libp2p/tcp": "^10.1.18",
"@multiformats/multiaddr": "^12.5.1",
"it-drain": "^3.0.10",
"it-length-prefixed": "^10.0.1",
"it-length-prefixed-stream": "^2.0.2",
"it-length-prefixed-stream": "^2.0.3",
"it-pipe": "^3.0.1",
"it-protobuf-stream": "^2.0.2",
"it-protobuf-stream": "^2.0.3",
"it-pushable": "^3.2.3",
"multiformats": "^13.3.4",
"multiformats": "^13.4.0",
"uint8arrays": "^5.1.0"
},
"devDependencies": {
"aegir": "^46.0.3",
"aegir": "^47.0.21",
"sinon-ts": "^2.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/libp2p-daemon-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export class Server implements Libp2pServer {
*/
handleConnection (maConn: MultiaddrConnection): void {
void Promise.resolve().then(async () => {
const daemon = this // eslint-disable-line @typescript-eslint/no-this-alias
const daemon = this

const pb = pbStream(maConn, {
maxDataLength: LIMIT
Expand Down
1 change: 1 addition & 0 deletions packages/libp2p-daemon-server/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"readme": "none",
"entryPoints": [
"./src/index.ts"
]
Expand Down
14 changes: 4 additions & 10 deletions packages/libp2p-daemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "ipfs",
"parserOptions": {
"project": true,
"sourceType": "module"
}
},
"release": {
"branches": [
"main"
Expand Down Expand Up @@ -146,13 +139,14 @@
},
"dependencies": {
"@libp2p/daemon-server": "^8.0.0",
"@multiformats/multiaddr": "^12.4.0",
"es-main": "^1.3.0",
"@multiformats/multiaddr": "^12.5.1",
"es-main": "^1.4.0",
"yargs": "^17.7.2",
"yargs-promise": "^1.1.0"
},
"devDependencies": {
"aegir": "^46.0.3",
"@types/yargs": "^17.0.33",
"aegir": "^47.0.21",
"sinon": "^20.0.0"
}
}
4 changes: 1 addition & 3 deletions packages/libp2p-daemon/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export default async function main (processArgs: string[]): Promise<void> {
}

if (args.length > 0) {
// eslint-disable-next-line
log(msg)
}

Expand All @@ -108,7 +107,7 @@ export default async function main (processArgs: string[]): Promise<void> {

if (data != null) {
// Log help and exit
// eslint-disable-next-line

log(data)
process.exit(0)
}
Expand All @@ -117,7 +116,6 @@ export default async function main (processArgs: string[]): Promise<void> {
await daemon.start()

if (argv.quiet !== true) {
// eslint-disable-next-line
log('daemon has started')
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/libp2p-daemon/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"readme": "none",
"entryPoints": [
"./src/index.ts"
]
Expand Down
9 changes: 9 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://typedoc.org/schema.json",
"name": "js-libp2p-daemon",
"readme": "./README.md",
"headings": {
"readme": false,
"document": false
}
}
Loading