From d853d1247f90317966bc95bd56f56dac0e9fee88 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Mon, 19 Jun 2023 13:15:40 +0200 Subject: [PATCH] chore: update project config --- .github/workflows/automerge.yml | 11 -- .github/workflows/js-test-and-release.yml | 183 ------------------ .../interface-address-manager/package.json | 89 +-------- .../interface-compliance-tests/package.json | 85 -------- .../package.json | 85 -------- .../package.json | 91 +-------- .../tsconfig.json | 3 + .../package.json | 87 +-------- .../interface-connection-gater/package.json | 89 +-------- .../interface-connection-manager/package.json | 91 +-------- .../tsconfig.json | 3 + packages/interface-connection/package.json | 89 +-------- .../interface-content-routing/package.json | 89 +-------- packages/interface-dht/package.json | 89 +-------- packages/interface-keychain/package.json | 89 +-------- packages/interface-keys/package.json | 87 +-------- packages/interface-libp2p/package.json | 89 +-------- packages/interface-metrics/package.json | 87 +-------- packages/interface-mocks/package.json | 97 +--------- packages/interface-mocks/tsconfig.json | 15 ++ .../package.json | 87 +-------- .../interface-peer-discovery/package.json | 87 +-------- packages/interface-peer-id/package.json | 89 +-------- packages/interface-peer-info/package.json | 89 +-------- packages/interface-peer-routing/package.json | 87 +-------- packages/interface-peer-store/package.json | 89 +-------- .../package.json | 89 +-------- .../tsconfig.json | 3 + packages/interface-pubsub/package.json | 87 +-------- .../package.json | 85 -------- packages/interface-record/package.json | 87 +-------- packages/interface-registrar/package.json | 87 +-------- .../package.json | 89 +-------- packages/interface-stream-muxer/package.json | 89 +-------- packages/interface-stream-muxer/tsconfig.json | 3 + .../package.json | 91 +-------- packages/interface-transport/package.json | 89 +-------- packages/interfaces/package.json | 87 +-------- packages/kad-dht/package.json | 147 +++----------- packages/kad-dht/tsconfig.json | 68 +++++++ packages/keychain/README.md | 8 +- packages/keychain/package.json | 118 ++--------- packages/keychain/src/index.ts | 4 +- packages/keychain/tsconfig.json | 23 +++ packages/libp2p/package.json | 48 ++--- packages/libp2p/tsconfig.json | 54 ++++++ packages/logger/README.md | 6 +- packages/logger/package.json | 108 +---------- packages/logger/src/index.ts | 4 +- packages/logger/test/index.spec.ts | 14 +- packages/logger/tsconfig.json | 8 + packages/metrics-prometheus/README.md | 6 +- packages/metrics-prometheus/package.json | 114 ++--------- packages/metrics-prometheus/tsconfig.json | 17 ++ packages/multistream-select/README.md | 6 +- packages/multistream-select/package.json | 118 ++--------- packages/multistream-select/tsconfig.json | 8 + packages/peer-collections/README.md | 6 +- packages/peer-collections/package.json | 102 +--------- packages/peer-collections/tsconfig.json | 11 ++ packages/peer-discovery-bootstrap/README.md | 10 +- .../peer-discovery-bootstrap/package.json | 116 ++--------- .../peer-discovery-bootstrap/tsconfig.json | 26 +++ packages/peer-discovery-mdns/README.md | 11 +- packages/peer-discovery-mdns/package.json | 122 ++---------- packages/peer-discovery-mdns/tsconfig.json | 29 +++ packages/peer-id-factory/CHANGELOG.md | 7 - packages/peer-id-factory/README.md | 12 +- packages/peer-id-factory/package.json | 108 +---------- packages/peer-id-factory/tsconfig.json | 11 +- packages/peer-id/CHANGELOG.md | 7 - packages/peer-id/README.md | 12 +- packages/peer-id/package.json | 106 +--------- packages/peer-id/tsconfig.json | 8 + packages/peer-record/README.md | 6 +- packages/peer-record/package.json | 114 ++--------- packages/peer-record/tsconfig.json | 26 +++ packages/peer-store/README.md | 6 +- packages/peer-store/package.json | 130 ++----------- packages/peer-store/tsconfig.json | 29 +++ packages/record/README.md | 6 +- packages/record/package.json | 112 ++--------- packages/record/tsconfig.json | 11 ++ packages/stream-multiplexer-mplex/README.md | 6 +- .../stream-multiplexer-mplex/package.json | 126 ++---------- .../stream-multiplexer-mplex/tsconfig.json | 17 ++ packages/topology/README.md | 6 +- packages/topology/package.json | 104 +--------- packages/topology/tsconfig.json | 8 + packages/tracked-map/README.md | 6 +- packages/tracked-map/package.json | 104 +--------- packages/tracked-map/tsconfig.json | 5 + packages/transport-tcp/README.md | 6 +- packages/transport-tcp/package.json | 116 ++--------- packages/transport-tcp/tsconfig.json | 26 +++ packages/transport-webrtc/.aegir.js | 14 +- packages/transport-webrtc/CHANGELOG.md | 13 -- packages/transport-webrtc/README.md | 11 +- packages/transport-webrtc/package.json | 142 +++----------- .../test/maconn.browser.spec.ts | 2 +- .../test/transport.browser.spec.ts | 4 +- packages/transport-webrtc/tsconfig.json | 46 ++++- packages/transport-websockets/.aegir.js | 8 +- packages/transport-websockets/README.md | 6 +- packages/transport-websockets/package.json | 120 ++---------- packages/transport-websockets/tsconfig.json | 23 +++ packages/transport-webtransport/README.md | 6 +- packages/transport-webtransport/package.json | 116 ++--------- packages/transport-webtransport/tsconfig.json | 23 +++ packages/utils/README.md | 6 +- packages/utils/package.json | 116 ++--------- packages/utils/tsconfig.json | 14 ++ 112 files changed, 994 insertions(+), 5191 deletions(-) delete mode 100644 .github/workflows/automerge.yml delete mode 100644 .github/workflows/js-test-and-release.yml diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml deleted file mode 100644 index 3833fc2291..0000000000 --- a/.github/workflows/automerge.yml +++ /dev/null @@ -1,11 +0,0 @@ -# File managed by web3-bot. DO NOT EDIT. -# See https://github.com/protocol/.github/ for details. - -name: Automerge -on: [ pull_request ] - -jobs: - automerge: - uses: protocol/.github/.github/workflows/automerge.yml@master - with: - job: 'automerge' diff --git a/.github/workflows/js-test-and-release.yml b/.github/workflows/js-test-and-release.yml deleted file mode 100644 index fc9a483d05..0000000000 --- a/.github/workflows/js-test-and-release.yml +++ /dev/null @@ -1,183 +0,0 @@ -# File managed by web3-bot. DO NOT EDIT. -# See https://github.com/protocol/.github/ for details. - -name: test & maybe release -on: - push: - branches: - - master - -jobs: - - check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npm run --if-present lint - - run: npm run --if-present dep-check - - test-node: - needs: check - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest, ubuntu-latest, macos-latest] - node: [lts/*] - fail-fast: true - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npm run --if-present test:node - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: node - - test-chrome: - needs: check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npm run --if-present test:chrome - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: chrome - - test-chrome-webworker: - needs: check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npm run --if-present test:chrome-webworker - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: chrome-webworker - - test-firefox: - needs: check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npm run --if-present test:firefox - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: firefox - - test-firefox-webworker: - needs: check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npm run --if-present test:firefox-webworker - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: firefox-webworker - - test-webkit: - needs: check - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - node: [lts/*] - fail-fast: true - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npm run --if-present test:webkit - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: webkit - - test-webkit-webworker: - needs: check - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - node: [lts/*] - fail-fast: true - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npm run --if-present test:webkit-webworker - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: webkit-webworker - - test-electron-main: - needs: check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npx xvfb-maybe npm run --if-present test:electron-main - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: electron-main - - test-electron-renderer: - needs: check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - run: npx xvfb-maybe npm run --if-present test:electron-renderer - - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1 - with: - flags: electron-renderer - - release: - needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-webkit, test-webkit-webworker, test-electron-main, test-electron-renderer] - runs-on: ubuntu-latest - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: actions/setup-node@v3 - with: - node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master - - uses: ipfs/aegir/actions/docker-login@master - with: - docker-token: ${{ secrets.DOCKER_TOKEN }} - docker-username: ${{ secrets.DOCKER_USERNAME }} - - run: npm run --if-present release - env: - GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN || github.token }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/packages/interface-address-manager/package.json b/packages/interface-address-manager/package.json index 9dacdafde4..7452506c40 100644 --- a/packages/interface-address-manager/package.json +++ b/packages/interface-address-manager/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -127,10 +42,10 @@ "build": "aegir build" }, "dependencies": { - "@multiformats/multiaddr": "^12.0.0" + "@multiformats/multiaddr": "^12.1.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-compliance-tests/package.json b/packages/interface-compliance-tests/package.json index 3513dc667d..22123fb6ae 100644 --- a/packages/interface-compliance-tests/package.json +++ b/packages/interface-compliance-tests/package.json @@ -59,91 +59,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", diff --git a/packages/interface-connection-compliance-tests/package.json b/packages/interface-connection-compliance-tests/package.json index ebc9e3d97c..4630b98670 100644 --- a/packages/interface-connection-compliance-tests/package.json +++ b/packages/interface-connection-compliance-tests/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", diff --git a/packages/interface-connection-encrypter-compliance-tests/package.json b/packages/interface-connection-encrypter-compliance-tests/package.json index c628c41665..2994e30dab 100644 --- a/packages/interface-connection-encrypter-compliance-tests/package.json +++ b/packages/interface-connection-encrypter-compliance-tests/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -132,13 +47,13 @@ "@libp2p/interface-connection-encrypter": "^4.0.0", "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/peer-id-factory": "^2.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@multiformats/multiaddr": "^12.1.3", "aegir": "^39.0.5", - "it-all": "^3.0.1", + "it-all": "^3.0.2", "it-pair": "^2.0.2", "it-pipe": "^3.0.1", "it-stream-types": "^2.0.1", - "uint8arrays": "^4.0.2" + "uint8arrays": "^4.0.3" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-connection-encrypter-compliance-tests/tsconfig.json b/packages/interface-connection-encrypter-compliance-tests/tsconfig.json index 77fd5244fb..e00ae1221b 100644 --- a/packages/interface-connection-encrypter-compliance-tests/tsconfig.json +++ b/packages/interface-connection-encrypter-compliance-tests/tsconfig.json @@ -19,6 +19,9 @@ }, { "path": "../interface-peer-id" + }, + { + "path": "../peer-id-factory" } ] } diff --git a/packages/interface-connection-encrypter/package.json b/packages/interface-connection-encrypter/package.json index 5d511231e1..812ec5e4ed 100644 --- a/packages/interface-connection-encrypter/package.json +++ b/packages/interface-connection-encrypter/package.json @@ -55,91 +55,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -151,7 +66,7 @@ "it-stream-types": "^2.0.1" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-connection-gater/package.json b/packages/interface-connection-gater/package.json index a048a32700..28ea0b4003 100644 --- a/packages/interface-connection-gater/package.json +++ b/packages/interface-connection-gater/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -129,10 +44,10 @@ "dependencies": { "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-peer-id": "^2.0.0", - "@multiformats/multiaddr": "^12.0.0" + "@multiformats/multiaddr": "^12.1.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-connection-manager/package.json b/packages/interface-connection-manager/package.json index 1d405ebb65..1f9076c2f4 100644 --- a/packages/interface-connection-manager/package.json +++ b/packages/interface-connection-manager/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -130,11 +45,11 @@ "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interfaces": "^3.0.0", - "@libp2p/peer-collections": "^3.0.1", - "@multiformats/multiaddr": "^12.0.0" + "@libp2p/peer-collections": "^3.0.0", + "@multiformats/multiaddr": "^12.1.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-connection-manager/tsconfig.json b/packages/interface-connection-manager/tsconfig.json index cbde3d05cb..3e21f519cc 100644 --- a/packages/interface-connection-manager/tsconfig.json +++ b/packages/interface-connection-manager/tsconfig.json @@ -15,6 +15,9 @@ }, { "path": "../interfaces" + }, + { + "path": "../peer-collections" } ] } diff --git a/packages/interface-connection/package.json b/packages/interface-connection/package.json index 8fbfb60ba0..9bde521b06 100644 --- a/packages/interface-connection/package.json +++ b/packages/interface-connection/package.json @@ -55,91 +55,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -149,12 +64,12 @@ "dependencies": { "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interfaces": "^3.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@multiformats/multiaddr": "^12.1.3", "it-stream-types": "^2.0.1", "uint8arraylist": "^2.4.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-content-routing/package.json b/packages/interface-content-routing/package.json index d73315f4de..e63a95f976 100644 --- a/packages/interface-content-routing/package.json +++ b/packages/interface-content-routing/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -129,10 +44,10 @@ "dependencies": { "@libp2p/interface-peer-info": "^1.0.0", "@libp2p/interfaces": "^3.0.0", - "multiformats": "^11.0.0" + "multiformats": "^11.0.2" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-dht/package.json b/packages/interface-dht/package.json index 69d381003e..46ac76cde9 100644 --- a/packages/interface-dht/package.json +++ b/packages/interface-dht/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -131,10 +46,10 @@ "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-peer-info": "^1.0.0", "@libp2p/interfaces": "^3.0.0", - "multiformats": "^11.0.0" + "multiformats": "^11.0.2" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-keychain/package.json b/packages/interface-keychain/package.json index 1d786072db..8facba1250 100644 --- a/packages/interface-keychain/package.json +++ b/packages/interface-keychain/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -128,10 +43,10 @@ }, "dependencies": { "@libp2p/interface-peer-id": "^2.0.0", - "multiformats": "^11.0.0" + "multiformats": "^11.0.2" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-keys/package.json b/packages/interface-keys/package.json index ff87fd33b5..8cc349bfe5 100644 --- a/packages/interface-keys/package.json +++ b/packages/interface-keys/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -127,7 +42,7 @@ "build": "aegir build" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-libp2p/package.json b/packages/interface-libp2p/package.json index 0057e4bd6b..1a97324de2 100644 --- a/packages/interface-libp2p/package.json +++ b/packages/interface-libp2p/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -138,10 +53,10 @@ "@libp2p/interface-registrar": "^2.0.0", "@libp2p/interface-transport": "^4.0.0", "@libp2p/interfaces": "^3.0.0", - "@multiformats/multiaddr": "^12.0.0" + "@multiformats/multiaddr": "^12.1.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-metrics/package.json b/packages/interface-metrics/package.json index 5e8774cacb..4d253595bd 100644 --- a/packages/interface-metrics/package.json +++ b/packages/interface-metrics/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -130,7 +45,7 @@ "@libp2p/interface-connection": "^5.0.0" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-mocks/package.json b/packages/interface-mocks/package.json index 0e2f4c096b..5a19d0d066 100644 --- a/packages/interface-mocks/package.json +++ b/packages/interface-mocks/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -148,12 +63,12 @@ "@libp2p/interface-stream-muxer": "^4.0.0", "@libp2p/interface-transport": "^4.0.0", "@libp2p/interfaces": "^3.0.0", - "@libp2p/logger": "^2.1.1", - "@libp2p/multistream-select": "^3.1.8", - "@libp2p/peer-collections": "^3.0.1", + "@libp2p/logger": "^2.0.0", + "@libp2p/multistream-select": "^3.0.0", + "@libp2p/peer-collections": "^3.0.0", "@libp2p/peer-id": "^2.0.0", "@libp2p/peer-id-factory": "^2.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@multiformats/multiaddr": "^12.1.3", "abortable-iterator": "^5.0.1", "any-signal": "^4.1.1", "it-handshake": "^4.1.3", @@ -165,14 +80,14 @@ "it-stream-types": "^2.0.1", "merge-options": "^3.0.4", "uint8arraylist": "^2.4.3", - "uint8arrays": "^4.0.2" + "uint8arrays": "^4.0.3" }, "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": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-mocks/tsconfig.json b/packages/interface-mocks/tsconfig.json index d49aa5945a..19360077a1 100644 --- a/packages/interface-mocks/tsconfig.json +++ b/packages/interface-mocks/tsconfig.json @@ -61,6 +61,21 @@ }, { "path": "../interfaces" + }, + { + "path": "../logger" + }, + { + "path": "../multistream-select" + }, + { + "path": "../peer-collections" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" } ] } diff --git a/packages/interface-peer-discovery-compliance-tests/package.json b/packages/interface-peer-discovery-compliance-tests/package.json index ceb756a488..5c541d6e09 100644 --- a/packages/interface-peer-discovery-compliance-tests/package.json +++ b/packages/interface-peer-discovery-compliance-tests/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -130,7 +45,7 @@ "@libp2p/interface-compliance-tests": "^3.0.0", "@libp2p/interface-peer-discovery": "^2.0.0", "@libp2p/interfaces": "^3.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@multiformats/multiaddr": "^12.1.3", "aegir": "^39.0.5", "delay": "^6.0.0", "p-defer": "^4.0.0" diff --git a/packages/interface-peer-discovery/package.json b/packages/interface-peer-discovery/package.json index ca70962919..28f2e12c49 100644 --- a/packages/interface-peer-discovery/package.json +++ b/packages/interface-peer-discovery/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -131,7 +46,7 @@ "@libp2p/interfaces": "^3.0.0" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-peer-id/package.json b/packages/interface-peer-id/package.json index bb29939d29..748a8c67c1 100644 --- a/packages/interface-peer-id/package.json +++ b/packages/interface-peer-id/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -127,10 +42,10 @@ "build": "aegir build" }, "dependencies": { - "multiformats": "^11.0.0" + "multiformats": "^11.0.2" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-peer-info/package.json b/packages/interface-peer-info/package.json index be47c49d99..fcdd888d93 100644 --- a/packages/interface-peer-info/package.json +++ b/packages/interface-peer-info/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -128,10 +43,10 @@ }, "dependencies": { "@libp2p/interface-peer-id": "^2.0.0", - "@multiformats/multiaddr": "^12.0.0" + "@multiformats/multiaddr": "^12.1.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-peer-routing/package.json b/packages/interface-peer-routing/package.json index cebeb953eb..5bb055b234 100644 --- a/packages/interface-peer-routing/package.json +++ b/packages/interface-peer-routing/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -132,7 +47,7 @@ "@libp2p/interfaces": "^3.0.0" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-peer-store/package.json b/packages/interface-peer-store/package.json index 99c0d436c6..d548cfffee 100644 --- a/packages/interface-peer-store/package.json +++ b/packages/interface-peer-store/package.json @@ -55,91 +55,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -148,10 +63,10 @@ }, "dependencies": { "@libp2p/interface-peer-id": "^2.0.0", - "@multiformats/multiaddr": "^12.0.0" + "@multiformats/multiaddr": "^12.1.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-pubsub-compliance-tests/package.json b/packages/interface-pubsub-compliance-tests/package.json index bf29959591..5fb951a1a3 100644 --- a/packages/interface-pubsub-compliance-tests/package.json +++ b/packages/interface-pubsub-compliance-tests/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -138,10 +53,10 @@ "aegir": "^39.0.5", "delay": "^6.0.0", "p-defer": "^4.0.0", - "p-event": "^5.0.1", + "p-event": "^6.0.0", "p-wait-for": "^5.0.0", "sinon": "^15.0.0", - "uint8arrays": "^4.0.2" + "uint8arrays": "^4.0.3" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-pubsub-compliance-tests/tsconfig.json b/packages/interface-pubsub-compliance-tests/tsconfig.json index e128c8d1e9..1a1ed83a7b 100644 --- a/packages/interface-pubsub-compliance-tests/tsconfig.json +++ b/packages/interface-pubsub-compliance-tests/tsconfig.json @@ -28,6 +28,9 @@ }, { "path": "../interfaces" + }, + { + "path": "../peer-id-factory" } ] } diff --git a/packages/interface-pubsub/package.json b/packages/interface-pubsub/package.json index 2e16c712cc..264136f0e5 100644 --- a/packages/interface-pubsub/package.json +++ b/packages/interface-pubsub/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -134,7 +49,7 @@ "uint8arraylist": "^2.4.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-record-compliance-tests/package.json b/packages/interface-record-compliance-tests/package.json index 83d8263247..0e73648f1b 100644 --- a/packages/interface-record-compliance-tests/package.json +++ b/packages/interface-record-compliance-tests/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", diff --git a/packages/interface-record/package.json b/packages/interface-record/package.json index 9a31a1c865..7df588efd1 100644 --- a/packages/interface-record/package.json +++ b/packages/interface-record/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -131,7 +46,7 @@ "uint8arraylist": "^2.4.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-registrar/package.json b/packages/interface-registrar/package.json index 35b81c65c5..eda94ddd25 100644 --- a/packages/interface-registrar/package.json +++ b/packages/interface-registrar/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -131,7 +46,7 @@ "@libp2p/interface-peer-id": "^2.0.0" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-stream-muxer-compliance-tests/package.json b/packages/interface-stream-muxer-compliance-tests/package.json index 7a2c836cb4..ed4b33eac7 100644 --- a/packages/interface-stream-muxer-compliance-tests/package.json +++ b/packages/interface-stream-muxer-compliance-tests/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -133,7 +48,7 @@ "abortable-iterator": "^5.0.1", "aegir": "^39.0.5", "delay": "^6.0.0", - "it-all": "^3.0.1", + "it-all": "^3.0.2", "it-drain": "^3.0.1", "it-map": "^3.0.2", "it-pair": "^2.0.2", @@ -142,7 +57,7 @@ "p-defer": "^4.0.0", "p-limit": "^4.0.0", "uint8arraylist": "^2.4.3", - "uint8arrays": "^4.0.2" + "uint8arrays": "^4.0.3" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-stream-muxer/package.json b/packages/interface-stream-muxer/package.json index 1f26ce0ba1..e238d958c2 100644 --- a/packages/interface-stream-muxer/package.json +++ b/packages/interface-stream-muxer/package.json @@ -55,91 +55,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -149,7 +64,7 @@ "dependencies": { "@libp2p/interface-connection": "^5.0.0", "@libp2p/interfaces": "^3.0.0", - "@libp2p/logger": "^2.1.1", + "@libp2p/logger": "^2.0.0", "abortable-iterator": "^5.0.1", "any-signal": "^4.1.1", "it-pushable": "^3.1.3", @@ -157,7 +72,7 @@ "uint8arraylist": "^2.4.3" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-stream-muxer/tsconfig.json b/packages/interface-stream-muxer/tsconfig.json index 181d553f61..30fd079a69 100644 --- a/packages/interface-stream-muxer/tsconfig.json +++ b/packages/interface-stream-muxer/tsconfig.json @@ -13,6 +13,9 @@ }, { "path": "../interfaces" + }, + { + "path": "../logger" } ] } diff --git a/packages/interface-transport-compliance-tests/package.json b/packages/interface-transport-compliance-tests/package.json index 20d73a23af..7e25d123d8 100644 --- a/packages/interface-transport-compliance-tests/package.json +++ b/packages/interface-transport-compliance-tests/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -133,15 +48,15 @@ "@libp2p/interface-registrar": "^2.0.0", "@libp2p/interface-transport": "^4.0.0", "@libp2p/interfaces": "^3.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@multiformats/multiaddr": "^12.1.3", "aegir": "^39.0.5", - "it-all": "^3.0.1", + "it-all": "^3.0.2", "it-drain": "^3.0.1", "it-pipe": "^3.0.1", "p-defer": "^4.0.0", "p-wait-for": "^5.0.0", "sinon": "^15.0.0", - "uint8arrays": "^4.0.2" + "uint8arrays": "^4.0.3" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interface-transport/package.json b/packages/interface-transport/package.json index 5195f574c6..96e5e13b0f 100644 --- a/packages/interface-transport/package.json +++ b/packages/interface-transport/package.json @@ -35,91 +35,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -130,11 +45,11 @@ "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-stream-muxer": "^4.0.0", "@libp2p/interfaces": "^3.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@multiformats/multiaddr": "^12.1.3", "it-stream-types": "^2.0.1" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/interfaces/package.json b/packages/interfaces/package.json index 7f5c8e2f83..6f01645347 100644 --- a/packages/interfaces/package.json +++ b/packages/interfaces/package.json @@ -63,91 +63,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -155,7 +70,7 @@ "build": "aegir build" }, "devDependencies": { - "aegir": "^39.0.5" + "aegir": "^39.0.10" }, "typedoc": { "entryPoint": "./src/index.ts" diff --git a/packages/kad-dht/package.json b/packages/kad-dht/package.json index 5cc305b537..d4feddee61 100644 --- a/packages/kad-dht/package.json +++ b/packages/kad-dht/package.json @@ -1,23 +1,19 @@ { "name": "@libp2p/kad-dht", - "version": "9.3.8", + "version": "9.3.6", "description": "JavaScript implementation of the Kad-DHT for libp2p", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-kad-dht#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/kad-dht#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-kad-dht.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-kad-dht/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -41,91 +37,6 @@ "src/message/dht.d.ts" ] }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -137,57 +48,55 @@ "test:chrome-webworker": "aegir test -t webworker", "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", - "dep-check": "aegir dep-check -i protons -i events", - "release": "aegir release", - "docs": "aegir docs" + "dep-check": "aegir dep-check -i protons -i events" }, "dependencies": { - "@libp2p/crypto": "^1.0.4", + "@libp2p/crypto": "^1.0.0", "@libp2p/interface-address-manager": "^3.0.0", - "@libp2p/interface-connection": "^5.0.1", + "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-connection-manager": "^3.0.0", - "@libp2p/interface-content-routing": "^2.1.0", + "@libp2p/interface-content-routing": "^2.0.0", "@libp2p/interface-metrics": "^4.0.0", "@libp2p/interface-peer-discovery": "^2.0.0", "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-peer-info": "^1.0.3", - "@libp2p/interface-peer-routing": "^1.1.0", + "@libp2p/interface-peer-info": "^1.0.0", + "@libp2p/interface-peer-routing": "^1.0.0", "@libp2p/interface-peer-store": "^2.0.0", - "@libp2p/interface-registrar": "^2.0.11", - "@libp2p/interfaces": "^3.2.0", - "@libp2p/logger": "^2.0.1", + "@libp2p/interface-registrar": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", + "@libp2p/logger": "^2.0.0", "@libp2p/peer-collections": "^3.0.0", "@libp2p/peer-id": "^2.0.0", "@libp2p/record": "^3.0.0", "@libp2p/topology": "^4.0.0", - "@multiformats/multiaddr": "^12.0.0", - "@types/sinon": "^10.0.14", + "@multiformats/multiaddr": "^12.1.3", + "@types/sinon": "^10.0.15", "abortable-iterator": "^5.0.1", "any-signal": "^4.1.1", "datastore-core": "^9.0.1", "events": "^3.3.0", "hashlru": "^2.3.0", - "interface-datastore": "^8.0.0", - "it-all": "^3.0.1", + "interface-datastore": "^8.2.0", + "it-all": "^3.0.2", "it-drain": "^3.0.1", "it-first": "^3.0.1", "it-length": "^3.0.1", - "it-length-prefixed": "^9.0.0", - "it-map": "^3.0.1", + "it-length-prefixed": "^9.0.1", + "it-map": "^3.0.2", "it-merge": "^3.0.0", "it-parallel": "^3.0.0", - "it-pipe": "^3.0.0", + "it-pipe": "^3.0.1", "it-stream-types": "^2.0.1", "it-take": "^3.0.1", - "multiformats": "^12.0.1", + "multiformats": "^11.0.2", "p-defer": "^4.0.0", "p-event": "^6.0.0", "p-queue": "^7.3.4", "private-ip": "^3.0.0", "progress-events": "^1.0.0", "protons-runtime": "^5.0.0", - "uint8arraylist": "^2.0.0", - "uint8arrays": "^4.0.2", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.3", "varint": "^6.0.0" }, "devDependencies": { @@ -199,7 +108,7 @@ "@types/lodash.range": "^3.2.6", "@types/varint": "^6.0.0", "@types/which": "^3.0.0", - "aegir": "^39.0.5", + "aegir": "^39.0.10", "datastore-level": "^10.0.0", "delay": "^6.0.0", "execa": "^7.0.0", @@ -210,16 +119,14 @@ "p-retry": "^5.0.0", "p-wait-for": "^5.0.0", "protons": "^7.0.2", - "sinon": "^15.0.0", + "sinon": "^15.1.0", "ts-sinon": "^2.0.2", "which": "^3.0.0" }, "browser": { "./dist/src/routing-table/generated-prefix-list.js": "./dist/src/routing-table/generated-prefix-list-browser.js" }, - "typedocs": { - "KadDHTComponents": "https://libp2p.github.io/js-libp2p-kad-dht/interfaces/KadDHTComponents.html", - "KadDHTInit": "https://libp2p.github.io/js-libp2p-kad-dht/interfaces/KadDHTInit.html", - "kadDHT": "https://libp2p.github.io/js-libp2p-kad-dht/functions/kadDHT.html" + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/kad-dht/tsconfig.json b/packages/kad-dht/tsconfig.json index 13a3599639..b0b4b2243b 100644 --- a/packages/kad-dht/tsconfig.json +++ b/packages/kad-dht/tsconfig.json @@ -6,5 +6,73 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../crypto" + }, + { + "path": "../interface-address-manager" + }, + { + "path": "../interface-connection" + }, + { + "path": "../interface-connection-manager" + }, + { + "path": "../interface-content-routing" + }, + { + "path": "../interface-libp2p" + }, + { + "path": "../interface-metrics" + }, + { + "path": "../interface-mocks" + }, + { + "path": "../interface-peer-discovery" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../interface-peer-info" + }, + { + "path": "../interface-peer-routing" + }, + { + "path": "../interface-peer-store" + }, + { + "path": "../interface-registrar" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + }, + { + "path": "../peer-collections" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" + }, + { + "path": "../peer-store" + }, + { + "path": "../record" + }, + { + "path": "../topology" + } ] } diff --git a/packages/keychain/README.md b/packages/keychain/README.md index 24f2dfe362..1998e1b7a1 100644 --- a/packages/keychain/README.md +++ b/packages/keychain/README.md @@ -1,11 +1,9 @@ -# 📁 Archived - this module has been merged into [js-libp2p](https://github.com/libp2p/js-libp2p/tree/master/packages/keychain) - # @libp2p/keychain [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-keychain.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-keychain) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-keychain/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-keychain/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Key management and cryptographically protected messages @@ -84,7 +82,7 @@ The actual physical storage of an encrypted key is left to implementations of [i ## API Docs -- +- ## License diff --git a/packages/keychain/package.json b/packages/keychain/package.json index 24e2a7459c..9bc7e246b0 100644 --- a/packages/keychain/package.json +++ b/packages/keychain/package.json @@ -3,13 +3,13 @@ "version": "2.0.1", "description": "Key management and cryptographically protected messages", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-keychain#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/keychain#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-keychain.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-keychain/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS", @@ -19,10 +19,6 @@ "libp2p", "secure" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -43,91 +39,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -139,26 +50,27 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^1.0.11", - "@libp2p/interface-keychain": "^2.0.3", - "@libp2p/interface-peer-id": "^2.0.1", - "@libp2p/interfaces": "^3.3.1", - "@libp2p/logger": "^2.0.5", - "@libp2p/peer-id": "^2.0.1", - "interface-datastore": "^8.0.0", + "@libp2p/crypto": "^1.0.0", + "@libp2p/interface-keychain": "^2.0.0", + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", + "@libp2p/logger": "^2.0.0", + "@libp2p/peer-id": "^2.0.0", + "interface-datastore": "^8.2.0", "merge-options": "^3.0.4", "sanitize-filename": "^1.6.3", "uint8arrays": "^4.0.3" }, "devDependencies": { - "@libp2p/peer-id-factory": "^2.0.1", + "@libp2p/peer-id-factory": "^2.0.0", "aegir": "^39.0.10", "datastore-core": "^9.0.1", "multiformats": "^11.0.1" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/keychain/src/index.ts b/packages/keychain/src/index.ts index 16b8d861a8..5c0a94ee3f 100644 --- a/packages/keychain/src/index.ts +++ b/packages/keychain/src/index.ts @@ -375,7 +375,9 @@ export class DefaultKeyChain implements KeyChain { const dek = cached.dek const privateKey = await importKey(pem, dek) - return await privateKey.export(password) + const keyString = await privateKey.export(password) + + return keyString } catch (err: any) { await randomDelay() throw err diff --git a/packages/keychain/tsconfig.json b/packages/keychain/tsconfig.json index f296f99426..f3aa4228a3 100644 --- a/packages/keychain/tsconfig.json +++ b/packages/keychain/tsconfig.json @@ -8,5 +8,28 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../crypto" + }, + { + "path": "../interface-keychain" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" + } ] } diff --git a/packages/libp2p/package.json b/packages/libp2p/package.json index 546978e727..83cb7e33c7 100644 --- a/packages/libp2p/package.json +++ b/packages/libp2p/package.json @@ -115,7 +115,7 @@ }, "dependencies": { "@achingbrain/nat-port-mapper": "^1.0.9", - "@libp2p/crypto": "^1.0.17", + "@libp2p/crypto": "^1.0.0", "@libp2p/interface-address-manager": "^3.0.0", "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-connection-encrypter": "^4.0.0", @@ -137,23 +137,23 @@ "@libp2p/interface-transport": "^4.0.0", "@libp2p/interfaces": "^3.0.0", "@libp2p/keychain": "^2.0.0", - "@libp2p/logger": "^2.1.1", - "@libp2p/multistream-select": "^3.1.8", - "@libp2p/peer-collections": "^3.0.1", + "@libp2p/logger": "^2.0.0", + "@libp2p/multistream-select": "^3.0.0", + "@libp2p/peer-collections": "^3.0.0", "@libp2p/peer-id": "^2.0.0", "@libp2p/peer-id-factory": "^2.0.0", "@libp2p/peer-record": "^5.0.0", - "@libp2p/peer-store": "^8.2.0", - "@libp2p/topology": "^4.0.1", + "@libp2p/peer-store": "^8.0.0", + "@libp2p/topology": "^4.0.0", "@libp2p/tracked-map": "^3.0.0", - "@libp2p/utils": "^3.0.10", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@libp2p/utils": "^3.0.0", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.3", "abortable-iterator": "^5.0.1", "any-signal": "^4.1.1", - "datastore-core": "^9.0.0", - "interface-datastore": "^8.0.0", - "it-all": "^3.0.1", + "datastore-core": "^9.0.1", + "interface-datastore": "^8.2.0", + "it-all": "^3.0.2", "it-drain": "^3.0.1", "it-filter": "^3.0.1", "it-first": "^3.0.1", @@ -167,7 +167,7 @@ "it-pipe": "^3.0.1", "it-stream-types": "^2.0.1", "merge-options": "^3.0.4", - "multiformats": "^11.0.0", + "multiformats": "^11.0.2", "p-defer": "^4.0.0", "p-queue": "^7.3.4", "p-retry": "^5.0.0", @@ -175,8 +175,8 @@ "protons-runtime": "^5.0.0", "rate-limiter-flexible": "^2.3.11", "uint8arraylist": "^2.4.3", - "uint8arrays": "^4.0.2", - "wherearewe": "^2.0.0", + "uint8arrays": "^4.0.3", + "wherearewe": "^2.0.1", "xsalsa20": "^1.1.0" }, "devDependencies": { @@ -192,27 +192,27 @@ "@libp2p/interface-connection-encrypter-compliance-tests": "^5.0.0", "@libp2p/interface-mocks": "^12.0.0", "@libp2p/interop": "^8.0.0", - "@libp2p/kad-dht": "^9.2.0", + "@libp2p/kad-dht": "^9.0.0", "@libp2p/mdns": "^8.0.0", - "@libp2p/mplex": "^8.0.1", + "@libp2p/mplex": "^8.0.0", "@libp2p/pubsub": "^7.0.1", - "@libp2p/tcp": "^7.0.1", - "@libp2p/websockets": "^6.0.1", + "@libp2p/tcp": "^7.0.0", + "@libp2p/websockets": "^6.0.0", "@types/varint": "^6.0.0", "@types/xsalsa20": "^1.1.0", - "aegir": "^39.0.5", - "cborg": "^1.8.1", + "aegir": "^39.0.10", + "cborg": "^2.0.1", "delay": "^6.0.0", "execa": "^7.0.0", - "go-libp2p": "^1.0.1", + "go-libp2p": "^1.1.1", "it-pushable": "^3.0.0", "it-to-buffer": "^4.0.1", "npm-run-all": "^4.1.5", - "p-event": "^5.0.1", + "p-event": "^6.0.0", "p-times": "^4.0.0", "p-wait-for": "^5.0.0", "protons": "^7.0.2", - "sinon": "^15.0.1", + "sinon": "^15.1.0", "sinon-ts": "^1.0.0" }, "browser": { diff --git a/packages/libp2p/tsconfig.json b/packages/libp2p/tsconfig.json index 9ac0d9429c..e4667a71b2 100644 --- a/packages/libp2p/tsconfig.json +++ b/packages/libp2p/tsconfig.json @@ -8,6 +8,9 @@ "test" ], "references": [ + { + "path": "../crypto" + }, { "path": "../interface-address-manager" }, @@ -79,6 +82,57 @@ }, { "path": "../interfaces" + }, + { + "path": "../kad-dht" + }, + { + "path": "../keychain" + }, + { + "path": "../logger" + }, + { + "path": "../multistream-select" + }, + { + "path": "../peer-collections" + }, + { + "path": "../peer-discovery-bootstrap" + }, + { + "path": "../peer-discovery-mdns" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" + }, + { + "path": "../peer-record" + }, + { + "path": "../peer-store" + }, + { + "path": "../stream-multiplexer-mplex" + }, + { + "path": "../topology" + }, + { + "path": "../tracked-map" + }, + { + "path": "../transport-tcp" + }, + { + "path": "../transport-websockets" + }, + { + "path": "../utils" } ] } diff --git a/packages/logger/README.md b/packages/logger/README.md index 042a59bb6c..def89c67a1 100644 --- a/packages/logger/README.md +++ b/packages/logger/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-logger.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-logger) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-logger/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-logger/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > A logging component for use in js-libp2p modules @@ -63,7 +63,7 @@ with this base32: bafyfoo ## API Docs -- +- ## License diff --git a/packages/logger/package.json b/packages/logger/package.json index 6d389541a3..0a24ab4199 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -3,21 +3,17 @@ "version": "2.1.1", "description": "A logging component for use in js-libp2p modules", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-logger#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/logger#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-logger.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-logger/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -38,91 +34,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -134,22 +45,23 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface-peer-id": "^2.0.2", + "@libp2p/interface-peer-id": "^2.0.0", "@multiformats/multiaddr": "^12.1.3", "debug": "^4.3.4", "interface-datastore": "^8.2.0", "multiformats": "^11.0.2" }, "devDependencies": { - "@libp2p/peer-id": "^2.0.3", + "@libp2p/peer-id": "^2.0.0", "@types/debug": "^4.1.7", - "aegir": "^38.1.7", + "aegir": "^39.0.10", "sinon": "^15.1.0", "uint8arrays": "^4.0.3" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/logger/src/index.ts b/packages/logger/src/index.ts index 26bca95a53..c50728146c 100644 --- a/packages/logger/src/index.ts +++ b/packages/logger/src/index.ts @@ -1,11 +1,11 @@ import debug from 'debug' -import { base58btc } from 'multiformats/bases/base58' import { base32 } from 'multiformats/bases/base32' +import { base58btc } from 'multiformats/bases/base58' import { base64 } from 'multiformats/bases/base64' import type { PeerId } from '@libp2p/interface-peer-id' -import type { CID } from 'multiformats/cid' import type { Multiaddr } from '@multiformats/multiaddr' import type { Key } from 'interface-datastore' +import type { CID } from 'multiformats/cid' // Add a formatter for converting to a base58 string debug.formatters.b = (v?: Uint8Array): string => { diff --git a/packages/logger/test/index.spec.ts b/packages/logger/test/index.spec.ts index 9ad39cc741..8b8b1b6731 100644 --- a/packages/logger/test/index.spec.ts +++ b/packages/logger/test/index.spec.ts @@ -1,15 +1,15 @@ +import { peerIdFromString } from '@libp2p/peer-id' +import { multiaddr } from '@multiformats/multiaddr' import { expect } from 'aegir/chai' -import { logger } from '../src/index.js' import debug from 'debug' -import { multiaddr } from '@multiformats/multiaddr' -import { peerIdFromString } from '@libp2p/peer-id' -import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string' -import { toString as unint8ArrayToString } from 'uint8arrays/to-string' -import { base58btc } from 'multiformats/bases/base58' +import { Key } from 'interface-datastore' import { base32 } from 'multiformats/bases/base32' +import { base58btc } from 'multiformats/bases/base58' import { base64 } from 'multiformats/bases/base64' -import { Key } from 'interface-datastore' import sinon from 'sinon' +import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string' +import { toString as unint8ArrayToString } from 'uint8arrays/to-string' +import { logger } from '../src/index.js' describe('logger', () => { it('creates a logger', () => { diff --git a/packages/logger/tsconfig.json b/packages/logger/tsconfig.json index 13a3599639..38a80e7a63 100644 --- a/packages/logger/tsconfig.json +++ b/packages/logger/tsconfig.json @@ -6,5 +6,13 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-peer-id" + }, + { + "path": "../peer-id" + } ] } diff --git a/packages/metrics-prometheus/README.md b/packages/metrics-prometheus/README.md index b48323a448..cd5a86c3b4 100644 --- a/packages/metrics-prometheus/README.md +++ b/packages/metrics-prometheus/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-prometheus-metrics.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-prometheus-metrics) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-prometheus-metrics/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p-prometheus-metrics/actions/workflows/js-test-and-release.yml?query=branch%3Amain) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Collect libp2p metrics for scraping by Prometheus or Graphana @@ -83,7 +83,7 @@ or ## API Docs -- +- ## License diff --git a/packages/metrics-prometheus/package.json b/packages/metrics-prometheus/package.json index 9fb3e981ad..a6c2fce62f 100644 --- a/packages/metrics-prometheus/package.json +++ b/packages/metrics-prometheus/package.json @@ -4,17 +4,13 @@ "description": "Collect libp2p metrics for scraping by Prometheus or Graphana", "author": "", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-prometheus-metrics#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/metrics-prometheus#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-prometheus-metrics.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-prometheus-metrics/issues" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.6.0" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "type": "module", "types": "./dist/src/index.d.ts", @@ -36,91 +32,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "main" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -128,25 +39,26 @@ "build": "aegir build", "test": "aegir test -t node", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main --cov", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main --cov" }, "dependencies": { - "@libp2p/interface-connection": "^5.0.2", - "@libp2p/interface-metrics": "^4.0.2", - "@libp2p/logger": "^2.0.2", + "@libp2p/interface-connection": "^5.0.0", + "@libp2p/interface-metrics": "^4.0.0", + "@libp2p/logger": "^2.0.0", "it-foreach": "^2.0.3", "it-stream-types": "^2.0.1", "prom-client": "^14.1.0" }, "devDependencies": { - "@libp2p/interface-mocks": "^12.0.1", - "@libp2p/peer-id-factory": "^2.0.3", + "@libp2p/interface-mocks": "^12.0.0", + "@libp2p/peer-id-factory": "^2.0.0", "@multiformats/multiaddr": "^12.1.3", - "aegir": "^39.0.6", + "aegir": "^39.0.10", "it-drain": "^3.0.2", "it-pipe": "^3.0.1", "p-defer": "^4.0.0" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/metrics-prometheus/tsconfig.json b/packages/metrics-prometheus/tsconfig.json index 13a3599639..20f43dc904 100644 --- a/packages/metrics-prometheus/tsconfig.json +++ b/packages/metrics-prometheus/tsconfig.json @@ -6,5 +6,22 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-connection" + }, + { + "path": "../interface-metrics" + }, + { + "path": "../interface-mocks" + }, + { + "path": "../logger" + }, + { + "path": "../peer-id-factory" + } ] } diff --git a/packages/multistream-select/README.md b/packages/multistream-select/README.md index 4797338414..e28849ffbe 100644 --- a/packages/multistream-select/README.md +++ b/packages/multistream-select/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-multistream-select.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-multistream-select) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-multistream-select/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-multistream-select/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > JavaScript implementation of multistream-select @@ -54,7 +54,7 @@ The caller will send "interactive" messages, expecting for some acknowledgement ## API Docs -- +- ## License diff --git a/packages/multistream-select/package.json b/packages/multistream-select/package.json index cafdf2070b..156907a437 100644 --- a/packages/multistream-select/package.json +++ b/packages/multistream-select/package.json @@ -3,13 +3,13 @@ "version": "3.1.9", "description": "JavaScript implementation of multistream-select", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-multistream-select#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/multistream-select#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-multistream-select.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-multistream-select/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "ipfs", @@ -18,10 +18,6 @@ "protocol", "stream" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -42,91 +38,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -138,33 +49,34 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interfaces": "^3.2.0", + "@libp2p/interfaces": "^3.0.0", "@libp2p/logger": "^2.0.0", - "abortable-iterator": "^5.0.0", + "abortable-iterator": "^5.0.1", "it-first": "^3.0.1", "it-handshake": "^4.1.3", - "it-length-prefixed": "^9.0.0", + "it-length-prefixed": "^9.0.1", "it-merge": "^3.0.0", - "it-pipe": "^3.0.0", - "it-pushable": "^3.1.0", + "it-pipe": "^3.0.1", + "it-pushable": "^3.1.3", "it-reader": "^6.0.1", "it-stream-types": "^2.0.1", - "uint8arraylist": "^2.3.1", - "uint8arrays": "^4.0.2" + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.3" }, "devDependencies": { "@types/varint": "^6.0.0", "aegir": "^39.0.10", "iso-random-stream": "^2.0.2", "it-all": "^3.0.1", - "it-map": "^3.0.2", + "it-map": "^3.0.3", "it-pair": "^2.0.6", "p-timeout": "^6.0.0", "varint": "^6.0.0" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/multistream-select/tsconfig.json b/packages/multistream-select/tsconfig.json index 13a3599639..4f2b857b3b 100644 --- a/packages/multistream-select/tsconfig.json +++ b/packages/multistream-select/tsconfig.json @@ -6,5 +6,13 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interfaces" + }, + { + "path": "../logger" + } ] } diff --git a/packages/peer-collections/README.md b/packages/peer-collections/README.md index a70858d081..9292ed7402 100644 --- a/packages/peer-collections/README.md +++ b/packages/peer-collections/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-peer-collections.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-peer-collections) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-peer-collections/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-peer-collections/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Stores values against a peer id @@ -38,7 +38,7 @@ PeerIds cache stringified versions of themselves so this should be a cheap opera ## API Docs -- +- ## License diff --git a/packages/peer-collections/package.json b/packages/peer-collections/package.json index 97fd95acc8..b2b2990ab3 100644 --- a/packages/peer-collections/package.json +++ b/packages/peer-collections/package.json @@ -3,21 +3,17 @@ "version": "3.0.2", "description": "Stores values against a peer id", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-peer-collections#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-collections#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-peer-collections.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-peer-collections/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -38,91 +34,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -134,9 +45,7 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@libp2p/interface-peer-id": "^2.0.0", @@ -145,5 +54,8 @@ "devDependencies": { "@libp2p/peer-id-factory": "^2.0.0", "aegir": "^39.0.10" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/peer-collections/tsconfig.json b/packages/peer-collections/tsconfig.json index 13a3599639..6a53317368 100644 --- a/packages/peer-collections/tsconfig.json +++ b/packages/peer-collections/tsconfig.json @@ -6,5 +6,16 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-peer-id" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" + } ] } diff --git a/packages/peer-discovery-bootstrap/README.md b/packages/peer-discovery-bootstrap/README.md index efddb7ce54..c48965d55c 100644 --- a/packages/peer-discovery-bootstrap/README.md +++ b/packages/peer-discovery-bootstrap/README.md @@ -1,13 +1,11 @@ -# 📁 Archived - this module has been merged into [js-libp2p](https://github.com/libp2p/js-libp2p/tree/master/packages/bootstrap) - # @libp2p/bootstrap [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-bootstrap.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-bootstrap) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-bootstrap/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-bootstrap/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) -> Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list +> Peer discovery via a list of bootstrap peers ## Table of contents @@ -91,7 +89,7 @@ start() ## API Docs -- +- ## License diff --git a/packages/peer-discovery-bootstrap/package.json b/packages/peer-discovery-bootstrap/package.json index f379f1b76b..792fcabd24 100644 --- a/packages/peer-discovery-bootstrap/package.json +++ b/packages/peer-discovery-bootstrap/package.json @@ -1,23 +1,19 @@ { "name": "@libp2p/bootstrap", "version": "8.0.0", - "description": "Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list", + "description": "Peer discovery via a list of bootstrap peers", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-bootstrap#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-discovery-bootstrap#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-bootstrap.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-bootstrap/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -38,91 +34,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -134,24 +45,25 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@libp2p/interface-peer-discovery": "^2.0.0", - "@libp2p/interface-peer-info": "^1.0.7", + "@libp2p/interface-peer-info": "^1.0.0", "@libp2p/interface-peer-store": "^2.0.0", - "@libp2p/interfaces": "^3.0.3", - "@libp2p/logger": "^2.0.1", + "@libp2p/interfaces": "^3.0.0", + "@libp2p/logger": "^2.0.0", "@libp2p/peer-id": "^2.0.0", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0" + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.3" }, "devDependencies": { "@libp2p/interface-peer-discovery-compliance-tests": "^2.0.0", "@libp2p/interface-peer-id": "^2.0.0", - "aegir": "^39.0.5", + "aegir": "^39.0.10", "sinon-ts": "^1.0.0" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/peer-discovery-bootstrap/tsconfig.json b/packages/peer-discovery-bootstrap/tsconfig.json index f296f99426..954f3f631c 100644 --- a/packages/peer-discovery-bootstrap/tsconfig.json +++ b/packages/peer-discovery-bootstrap/tsconfig.json @@ -8,5 +8,31 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-peer-discovery" + }, + { + "path": "../interface-peer-discovery-compliance-tests" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../interface-peer-info" + }, + { + "path": "../interface-peer-store" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + }, + { + "path": "../peer-id" + } ] } diff --git a/packages/peer-discovery-mdns/README.md b/packages/peer-discovery-mdns/README.md index b1f9ed820e..69be7f9185 100644 --- a/packages/peer-discovery-mdns/README.md +++ b/packages/peer-discovery-mdns/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-mdns.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-mdns) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-mdns/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-mdns/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Node.js libp2p mDNS discovery implementation for peer discovery @@ -14,7 +14,7 @@ - [MDNS messages](#mdns-messages) - [API Docs](#api-docs) - [License](#license) -- [Contribute](#contribute) +- [Contribution](#contribution) ## Install @@ -52,7 +52,6 @@ async function start () { - `interval` - query interval, default 10 \* 1000 (10 seconds) - `serviceTag` - name of the service announce , default 'ipfs.local\` - ## MDNS messages A query is sent to discover the IPFS nodes on the local network @@ -100,7 +99,7 @@ When a query is detected, each IPFS node sends an answer about itself ## API Docs -- +- ## License @@ -109,6 +108,6 @@ Licensed under either of - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / ) - MIT ([LICENSE-MIT](LICENSE-MIT) / ) -## Contribute +## Contribution Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. diff --git a/packages/peer-discovery-mdns/package.json b/packages/peer-discovery-mdns/package.json index ead2d6bccb..7c2969d741 100644 --- a/packages/peer-discovery-mdns/package.json +++ b/packages/peer-discovery-mdns/package.json @@ -3,21 +3,17 @@ "version": "8.0.0", "description": "Node.js libp2p mDNS discovery implementation for peer discovery", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-mdns#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-discovery-mdns#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-mdns.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-mdns/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -38,91 +34,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -130,28 +41,29 @@ "build": "aegir build", "test": "aegir test -t node", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@libp2p/interface-peer-discovery": "^2.0.0", - "@libp2p/interface-peer-info": "^1.0.8", - "@libp2p/interfaces": "^3.3.1", - "@libp2p/logger": "^2.0.5", - "@libp2p/peer-id": "^2.0.1", - "@multiformats/multiaddr": "^12.0.0", + "@libp2p/interface-peer-info": "^1.0.0", + "@libp2p/interfaces": "^3.0.0", + "@libp2p/logger": "^2.0.0", + "@libp2p/peer-id": "^2.0.0", + "@multiformats/multiaddr": "^12.1.3", "@types/multicast-dns": "^7.2.1", - "multicast-dns": "^7.2.5", - "dns-packet": "^5.4.0" + "dns-packet": "^5.4.0", + "multicast-dns": "^7.2.5" }, "devDependencies": { "@libp2p/interface-address-manager": "^3.0.0", - "@libp2p/interface-peer-discovery-compliance-tests": "^2.0.1", - "@libp2p/interface-peer-id": "^2.0.1", + "@libp2p/interface-peer-discovery-compliance-tests": "^2.0.0", + "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/peer-id-factory": "^2.0.0", - "aegir": "^39.0.5", + "aegir": "^39.0.10", "p-wait-for": "^5.0.0", "ts-sinon": "^2.0.2" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/peer-discovery-mdns/tsconfig.json b/packages/peer-discovery-mdns/tsconfig.json index 13a3599639..f89978dd99 100644 --- a/packages/peer-discovery-mdns/tsconfig.json +++ b/packages/peer-discovery-mdns/tsconfig.json @@ -6,5 +6,34 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-address-manager" + }, + { + "path": "../interface-peer-discovery" + }, + { + "path": "../interface-peer-discovery-compliance-tests" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../interface-peer-info" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" + } ] } diff --git a/packages/peer-id-factory/CHANGELOG.md b/packages/peer-id-factory/CHANGELOG.md index e702ca90b2..c674ac0dac 100644 --- a/packages/peer-id-factory/CHANGELOG.md +++ b/packages/peer-id-factory/CHANGELOG.md @@ -1,10 +1,3 @@ -## [@libp2p/peer-id-factory-v2.0.4](https://github.com/libp2p/js-libp2p-peer-id/compare/@libp2p/peer-id-factory-v2.0.3...@libp2p/peer-id-factory-v2.0.4) (2023-06-15) - - -### Dependencies - -* bump aegir from 38.1.8 to 39.0.10 ([#69](https://github.com/libp2p/js-libp2p-peer-id/issues/69)) ([617bc47](https://github.com/libp2p/js-libp2p-peer-id/commit/617bc471f11996c1f17b358ccd7da90b1b157c7c)) - ## [@libp2p/peer-id-factory-v2.0.3](https://github.com/libp2p/js-libp2p-peer-id/compare/@libp2p/peer-id-factory-v2.0.2...@libp2p/peer-id-factory-v2.0.3) (2023-03-20) diff --git a/packages/peer-id-factory/README.md b/packages/peer-id-factory/README.md index 1e9c30495b..7c353cd96b 100644 --- a/packages/peer-id-factory/README.md +++ b/packages/peer-id-factory/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-peer-id.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-peer-id) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-peer-id/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Create PeerId instances @@ -15,7 +15,7 @@ - [Example](#example) - [API Docs](#api-docs) - [License](#license) -- [Contribute](#contribute) +- [Contribution](#contribution) ## Install @@ -25,7 +25,7 @@ $ npm i @libp2p/peer-id-factory ### Browser ` @@ -54,7 +54,7 @@ console.log(id.toString()) ## API Docs -- +- ## License @@ -63,6 +63,6 @@ Licensed under either of - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / ) - MIT ([LICENSE-MIT](LICENSE-MIT) / ) -## Contribute +## Contribution Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. diff --git a/packages/peer-id-factory/package.json b/packages/peer-id-factory/package.json index 28cfa66f6b..8d03095bc8 100644 --- a/packages/peer-id-factory/package.json +++ b/packages/peer-id-factory/package.json @@ -1,23 +1,19 @@ { "name": "@libp2p/peer-id-factory", - "version": "2.0.4", + "version": "2.0.3", "description": "Create PeerId instances", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-peer-id/tree/master/packages/libp2p-peer-id-factory#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-id-factory#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-peer-id.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-peer-id/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -41,91 +37,6 @@ "proto.d.ts" ] }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -138,18 +49,17 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@libp2p/crypto": "^1.0.0", - "@libp2p/interface-keys": "^1.0.2", + "@libp2p/interface-keys": "^1.0.0", "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/peer-id": "^2.0.0", - "multiformats": "^11.0.0", + "multiformats": "^11.0.2", "protons-runtime": "^5.0.0", - "uint8arraylist": "^2.0.0", - "uint8arrays": "^4.0.2" + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.3" }, "devDependencies": { "aegir": "^39.0.10", diff --git a/packages/peer-id-factory/tsconfig.json b/packages/peer-id-factory/tsconfig.json index e13b39adb4..6338201752 100644 --- a/packages/peer-id-factory/tsconfig.json +++ b/packages/peer-id-factory/tsconfig.json @@ -9,7 +9,16 @@ ], "references": [ { - "path": "../libp2p-peer-id" + "path": "../crypto" + }, + { + "path": "../interface-keys" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../peer-id" } ] } diff --git a/packages/peer-id/CHANGELOG.md b/packages/peer-id/CHANGELOG.md index eef391b45c..c2d9a92914 100644 --- a/packages/peer-id/CHANGELOG.md +++ b/packages/peer-id/CHANGELOG.md @@ -1,10 +1,3 @@ -## [@libp2p/peer-id-v2.0.4](https://github.com/libp2p/js-libp2p-peer-id/compare/@libp2p/peer-id-v2.0.3...@libp2p/peer-id-v2.0.4) (2023-06-15) - - -### Dependencies - -* bump aegir from 38.1.8 to 39.0.10 ([#69](https://github.com/libp2p/js-libp2p-peer-id/issues/69)) ([617bc47](https://github.com/libp2p/js-libp2p-peer-id/commit/617bc471f11996c1f17b358ccd7da90b1b157c7c)) - ## [@libp2p/peer-id-v2.0.3](https://github.com/libp2p/js-libp2p-peer-id/compare/@libp2p/peer-id-v2.0.2...@libp2p/peer-id-v2.0.3) (2023-03-20) diff --git a/packages/peer-id/README.md b/packages/peer-id/README.md index e4d6ef1c45..7c2c8c23bc 100644 --- a/packages/peer-id/README.md +++ b/packages/peer-id/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-peer-id.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-peer-id) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-peer-id/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Implementation of @libp2p/interface-peer-id @@ -15,7 +15,7 @@ - [Example](#example) - [API Docs](#api-docs) - [License](#license) -- [Contribute](#contribute) +- [Contribution](#contribution) ## Install @@ -25,7 +25,7 @@ $ npm i @libp2p/peer-id ### Browser ` @@ -48,7 +48,7 @@ console.log(peer.toString()) // "12D3K..." ## API Docs -- +- ## License @@ -57,6 +57,6 @@ Licensed under either of - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / ) - MIT ([LICENSE-MIT](LICENSE-MIT) / ) -## Contribute +## Contribution Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. diff --git a/packages/peer-id/package.json b/packages/peer-id/package.json index 6e6d1ec13b..42a9d54bcd 100644 --- a/packages/peer-id/package.json +++ b/packages/peer-id/package.json @@ -1,23 +1,19 @@ { "name": "@libp2p/peer-id", - "version": "2.0.4", + "version": "2.0.3", "description": "Implementation of @libp2p/interface-peer-id", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-peer-id/tree/master/packages/libp2p-peer-id#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-id#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-peer-id.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-peer-id/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -38,91 +34,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -134,14 +45,13 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interfaces": "^3.2.0", - "multiformats": "^11.0.0", - "uint8arrays": "^4.0.2" + "@libp2p/interfaces": "^3.0.0", + "multiformats": "^11.0.2", + "uint8arrays": "^4.0.3" }, "devDependencies": { "aegir": "^39.0.10" diff --git a/packages/peer-id/tsconfig.json b/packages/peer-id/tsconfig.json index 13a3599639..ba25a6ed4a 100644 --- a/packages/peer-id/tsconfig.json +++ b/packages/peer-id/tsconfig.json @@ -6,5 +6,13 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-peer-id" + }, + { + "path": "../interfaces" + } ] } diff --git a/packages/peer-record/README.md b/packages/peer-record/README.md index b1bdf82073..358efe226b 100644 --- a/packages/peer-record/README.md +++ b/packages/peer-record/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-peer-record.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-peer-record) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-peer-record/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-peer-record/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Used to transfer signed peer data across the network @@ -173,7 +173,7 @@ When a subsystem wants to provide a record, it will get it from the AddressBook, ## API Docs -- +- ## License diff --git a/packages/peer-record/package.json b/packages/peer-record/package.json index 6d6affa348..b3fbd458e2 100644 --- a/packages/peer-record/package.json +++ b/packages/peer-record/package.json @@ -3,21 +3,17 @@ "version": "5.0.4", "description": "Used to transfer signed peer data across the network", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-peer-record#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-record#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-peer-record.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-peer-record/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -44,91 +40,6 @@ "src/peer-record/peer-record.js" ] }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -141,22 +52,20 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^1.0.11", + "@libp2p/crypto": "^1.0.0", "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-record": "^2.0.1", - "@libp2p/interfaces": "^3.2.0", + "@libp2p/interface-record": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", "@libp2p/peer-id": "^2.0.0", "@libp2p/utils": "^3.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@multiformats/multiaddr": "^12.1.3", "protons-runtime": "^5.0.0", "uint8-varint": "^1.0.2", - "uint8arraylist": "^2.1.0", - "uint8arrays": "^4.0.2" + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.3" }, "devDependencies": { "@libp2p/interface-record-compliance-tests": "^2.0.0", @@ -164,5 +73,8 @@ "@types/varint": "^6.0.0", "aegir": "^39.0.10", "protons": "^7.0.2" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/peer-record/tsconfig.json b/packages/peer-record/tsconfig.json index 13a3599639..27e810f549 100644 --- a/packages/peer-record/tsconfig.json +++ b/packages/peer-record/tsconfig.json @@ -6,5 +6,31 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../crypto" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../interface-record" + }, + { + "path": "../interface-record-compliance-tests" + }, + { + "path": "../interfaces" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" + }, + { + "path": "../utils" + } ] } diff --git a/packages/peer-store/README.md b/packages/peer-store/README.md index 6d7dffed06..41a310aad6 100644 --- a/packages/peer-store/README.md +++ b/packages/peer-store/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-peer-store.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-peer-store) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-peer-store/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-peer-store/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Stores information about peers libp2p knows on the network @@ -31,7 +31,7 @@ Loading this module through a script tag will make it's exports available as `Li ## API Docs -- +- ## License diff --git a/packages/peer-store/package.json b/packages/peer-store/package.json index 9965d333f1..9acd98b945 100644 --- a/packages/peer-store/package.json +++ b/packages/peer-store/package.json @@ -3,21 +3,17 @@ "version": "8.2.1", "description": "Stores information about peers libp2p knows on the network", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-peer-store#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-store#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-peer-store.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-peer-store/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -42,91 +38,6 @@ "src/pb/peer.js" ] }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -139,37 +50,38 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface-libp2p": "^3.1.0", + "@libp2p/interface-libp2p": "^3.0.0", "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-peer-store": "^2.0.4", - "@libp2p/interfaces": "^3.2.0", - "@libp2p/logger": "^2.0.7", - "@libp2p/peer-collections": "^3.0.1", + "@libp2p/interface-peer-store": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", + "@libp2p/logger": "^2.0.0", + "@libp2p/peer-collections": "^3.0.0", "@libp2p/peer-id": "^2.0.0", "@libp2p/peer-id-factory": "^2.0.0", - "@libp2p/peer-record": "^5.0.3", - "@multiformats/multiaddr": "^12.0.0", - "interface-datastore": "^8.0.0", + "@libp2p/peer-record": "^5.0.0", + "@multiformats/multiaddr": "^12.1.3", + "interface-datastore": "^8.2.0", "it-all": "^3.0.2", "mortice": "^3.0.1", - "multiformats": "^11.0.0", + "multiformats": "^11.0.2", "protons-runtime": "^5.0.0", - "uint8arraylist": "^2.1.1", - "uint8arrays": "^4.0.2" + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.3" }, "devDependencies": { - "@types/sinon": "^10.0.14", - "aegir": "^39.0.5", + "@types/sinon": "^10.0.15", + "aegir": "^39.0.10", "datastore-core": "^9.0.1", "delay": "^6.0.0", "p-defer": "^4.0.0", "p-event": "^6.0.0", "protons": "^7.0.2", - "sinon": "^15.0.1" + "sinon": "^15.1.0" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/peer-store/tsconfig.json b/packages/peer-store/tsconfig.json index 1cb8e2e5d5..7b195f0cb6 100644 --- a/packages/peer-store/tsconfig.json +++ b/packages/peer-store/tsconfig.json @@ -9,5 +9,34 @@ ], "exclude": [ "src/pb/peer.js" + ], + "references": [ + { + "path": "../interface-libp2p" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../interface-peer-store" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + }, + { + "path": "../peer-collections" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" + }, + { + "path": "../peer-record" + } ] } diff --git a/packages/record/README.md b/packages/record/README.md index eb9e5f7706..1f95184c88 100644 --- a/packages/record/README.md +++ b/packages/record/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-record.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-record) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-record/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-record/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > libp2p record implementation @@ -36,7 +36,7 @@ Implementation of [go-libp2p-record](https://github.com/libp2p/go-libp2p-record) ## API Docs -- +- ## License diff --git a/packages/record/package.json b/packages/record/package.json index 3c6f63b9a8..caa5a086cd 100644 --- a/packages/record/package.json +++ b/packages/record/package.json @@ -4,21 +4,17 @@ "description": "libp2p record implementation", "author": "Friedel Ziegelmayer ", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-record#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/record#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-record.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-record/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "typesVersions": { @@ -66,91 +62,6 @@ "src/record.d.ts" ] }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -162,21 +73,22 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "build": "aegir build", - "generate": "protons ./src/record.proto", - "release": "aegir release", - "docs": "aegir docs" + "generate": "protons ./src/record.proto" }, "dependencies": { "@libp2p/interface-dht": "^2.0.0", - "@libp2p/interfaces": "^3.2.0", - "multiformats": "^11.0.0", + "@libp2p/interfaces": "^3.0.0", + "multiformats": "^11.0.2", "protons-runtime": "^5.0.0", - "uint8arraylist": "^2.1.1", - "uint8arrays": "^4.0.2" + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.3" }, "devDependencies": { - "@libp2p/crypto": "^1.0.11", + "@libp2p/crypto": "^1.0.0", "aegir": "^39.0.10", "protons": "^7.0.2" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/record/tsconfig.json b/packages/record/tsconfig.json index 13a3599639..e59bf6ba31 100644 --- a/packages/record/tsconfig.json +++ b/packages/record/tsconfig.json @@ -6,5 +6,16 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../crypto" + }, + { + "path": "../interface-dht" + }, + { + "path": "../interfaces" + } ] } diff --git a/packages/stream-multiplexer-mplex/README.md b/packages/stream-multiplexer-mplex/README.md index d929c06407..ee8b856784 100644 --- a/packages/stream-multiplexer-mplex/README.md +++ b/packages/stream-multiplexer-mplex/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-mplex.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-mplex) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-mplex/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-mplex/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > JavaScript implementation of @@ -59,7 +59,7 @@ pipe([1, 2, 3], stream) ## API Docs -- +- ## License diff --git a/packages/stream-multiplexer-mplex/package.json b/packages/stream-multiplexer-mplex/package.json index c0680b74db..aaafc96a07 100644 --- a/packages/stream-multiplexer-mplex/package.json +++ b/packages/stream-multiplexer-mplex/package.json @@ -3,13 +3,13 @@ "version": "8.0.4", "description": "JavaScript implementation of https://github.com/libp2p/mplex", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-mplex#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/stream-multiplexer-mplex#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-mplex.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-mplex/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS", @@ -21,10 +21,6 @@ "muxer", "stream" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -45,91 +41,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -142,37 +53,35 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@libp2p/interface-connection": "^5.0.0", - "@libp2p/interface-stream-muxer": "^4.1.2", - "@libp2p/interfaces": "^3.2.0", + "@libp2p/interface-stream-muxer": "^4.0.0", + "@libp2p/interfaces": "^3.0.0", "@libp2p/logger": "^2.0.0", - "abortable-iterator": "^5.0.0", - "any-signal": "^4.0.1", + "abortable-iterator": "^5.0.1", + "any-signal": "^4.1.1", "benchmark": "^2.1.4", "it-batched-bytes": "^2.0.2", - "it-pushable": "^3.1.0", + "it-pushable": "^3.1.3", "it-stream-types": "^2.0.1", - "rate-limiter-flexible": "^2.3.9", - "uint8arraylist": "^2.1.1", - "uint8arrays": "^4.0.2", + "rate-limiter-flexible": "^2.3.11", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.3", "varint": "^6.0.0" }, "devDependencies": { - "@libp2p/interface-stream-muxer-compliance-tests": "^7.0.3", + "@libp2p/interface-stream-muxer-compliance-tests": "^7.0.0", "@types/varint": "^6.0.0", - "aegir": "^39.0.7", + "aegir": "^39.0.10", "cborg": "^2.0.1", "delay": "^6.0.0", "iso-random-stream": "^2.0.2", "it-all": "^3.0.1", - "it-drain": "^3.0.1", + "it-drain": "^3.0.2", "it-foreach": "^2.0.2", - "it-map": "^3.0.1", + "it-map": "^3.0.3", "it-pipe": "^3.0.1", "it-to-buffer": "^4.0.1", "p-defer": "^4.0.0", @@ -180,5 +89,8 @@ }, "browser": { "./dist/src/alloc-unsafe.js": "./dist/src/alloc-unsafe-browser.js" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/stream-multiplexer-mplex/tsconfig.json b/packages/stream-multiplexer-mplex/tsconfig.json index 13a3599639..5eeae73ed9 100644 --- a/packages/stream-multiplexer-mplex/tsconfig.json +++ b/packages/stream-multiplexer-mplex/tsconfig.json @@ -6,5 +6,22 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-connection" + }, + { + "path": "../interface-stream-muxer" + }, + { + "path": "../interface-stream-muxer-compliance-tests" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + } ] } diff --git a/packages/topology/README.md b/packages/topology/README.md index f681566997..915f0bc473 100644 --- a/packages/topology/README.md +++ b/packages/topology/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-topology.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-topology) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-topology/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-topology/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > libp2p network topology @@ -31,7 +31,7 @@ const topology = createTopology({ ... }) ## API Docs -- +- ## License diff --git a/packages/topology/package.json b/packages/topology/package.json index 45b927dbd7..055834a6bd 100644 --- a/packages/topology/package.json +++ b/packages/topology/package.json @@ -3,22 +3,18 @@ "version": "4.0.3", "description": "libp2p network topology", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-topology#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/topology#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-topology.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-topology/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "interface", "libp2p" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "typesVersions": { @@ -59,104 +55,20 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", "dep-check": "aegir dep-check", - "build": "aegir build", - "release": "aegir release", - "docs": "aegir docs" + "build": "aegir build" }, "dependencies": { "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-registrar": "^2.0.3" + "@libp2p/interface-registrar": "^2.0.0" }, "devDependencies": { "aegir": "^39.0.10" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/topology/tsconfig.json b/packages/topology/tsconfig.json index 13a3599639..c1017faac2 100644 --- a/packages/topology/tsconfig.json +++ b/packages/topology/tsconfig.json @@ -6,5 +6,13 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-peer-id" + }, + { + "path": "../interface-registrar" + } ] } diff --git a/packages/tracked-map/README.md b/packages/tracked-map/README.md index 39067a8e44..0766685453 100644 --- a/packages/tracked-map/README.md +++ b/packages/tracked-map/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-tracked-map.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-tracked-map) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-tracked-map/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-tracked-map/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Allows tracking of statistics while libp2p is running @@ -49,7 +49,7 @@ map.set('key', 'value') ## API Docs -- +- ## License diff --git a/packages/tracked-map/package.json b/packages/tracked-map/package.json index 2e90592a9e..427c7da0de 100644 --- a/packages/tracked-map/package.json +++ b/packages/tracked-map/package.json @@ -3,21 +3,17 @@ "version": "3.0.3", "description": "Allows tracking of statistics while libp2p is running", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-tracked-map#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/tracked-map#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-tracked-map.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-tracked-map/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -38,91 +34,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -134,9 +45,7 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@libp2p/interface-metrics": "^4.0.0" @@ -144,7 +53,10 @@ "devDependencies": { "@types/sinon": "^10.0.15", "aegir": "^39.0.10", - "sinon": "^15.0.1", + "sinon": "^15.1.0", "sinon-ts": "^1.0.0" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/tracked-map/tsconfig.json b/packages/tracked-map/tsconfig.json index 13a3599639..c60dfc7151 100644 --- a/packages/tracked-map/tsconfig.json +++ b/packages/tracked-map/tsconfig.json @@ -6,5 +6,10 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-metrics" + } ] } diff --git a/packages/transport-tcp/README.md b/packages/transport-tcp/README.md index 6b1efda37b..83fe40f6fc 100644 --- a/packages/transport-tcp/README.md +++ b/packages/transport-tcp/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-tcp.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-tcp) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-tcp/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-tcp/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > A TCP transport for libp2p @@ -73,7 +73,7 @@ Value: hello World! ## API Docs -- +- ## License diff --git a/packages/transport-tcp/package.json b/packages/transport-tcp/package.json index e4524a921e..3169f9a5b3 100644 --- a/packages/transport-tcp/package.json +++ b/packages/transport-tcp/package.json @@ -3,13 +3,13 @@ "version": "7.0.3", "description": "A TCP transport for libp2p", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-tcp#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/transport-tcp#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-tcp.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-tcp/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS", @@ -20,10 +20,6 @@ "peer", "peer-to-peer" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "files": [ @@ -44,122 +40,38 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", "dep-check": "aegir dep-check", "build": "aegir build", - "docs": "aegir docs", "test": "aegir test -t node -t electron-main", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-metrics": "^4.0.0", "@libp2p/interface-transport": "^4.0.0", - "@libp2p/interfaces": "^3.2.0", + "@libp2p/interfaces": "^3.0.0", "@libp2p/logger": "^2.0.0", - "@libp2p/utils": "^3.0.2", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@libp2p/utils": "^3.0.0", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.3", "@types/sinon": "^10.0.15", "stream-to-it": "^0.2.2" }, "devDependencies": { - "@libp2p/interface-mocks": "^12.0.1", + "@libp2p/interface-mocks": "^12.0.0", "@libp2p/interface-transport-compliance-tests": "^4.0.0", "aegir": "^39.0.10", "it-all": "^3.0.1", "it-pipe": "^3.0.1", "p-defer": "^4.0.0", - "sinon": "^15.0.0", - "uint8arrays": "^4.0.2" + "sinon": "^15.1.0", + "uint8arrays": "^4.0.3" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/transport-tcp/tsconfig.json b/packages/transport-tcp/tsconfig.json index 13a3599639..770ba81a1e 100644 --- a/packages/transport-tcp/tsconfig.json +++ b/packages/transport-tcp/tsconfig.json @@ -6,5 +6,31 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-connection" + }, + { + "path": "../interface-metrics" + }, + { + "path": "../interface-mocks" + }, + { + "path": "../interface-transport" + }, + { + "path": "../interface-transport-compliance-tests" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + }, + { + "path": "../utils" + } ] } diff --git a/packages/transport-webrtc/.aegir.js b/packages/transport-webrtc/.aegir.js index 19f3e50b4d..f19d27456f 100644 --- a/packages/transport-webrtc/.aegir.js +++ b/packages/transport-webrtc/.aegir.js @@ -1,10 +1,5 @@ -import { createLibp2p } from 'libp2p' -import { circuitRelayServer } from 'libp2p/circuit-relay' -import { identifyService } from 'libp2p/identify' -import { webSockets } from '@libp2p/websockets' -import { noise } from '@chainsafe/libp2p-noise' -import { yamux } from '@chainsafe/libp2p-yamux' +/** @type {import('aegir').PartialOptions} */ export default { build: { config: { @@ -14,6 +9,13 @@ export default { }, test: { before: async () => { + const { createLibp2p } = await import('libp2p') + const { circuitRelayServer } = await import('libp2p/circuit-relay') + const { identifyService } = await import('libp2p/identify') + const { webSockets } = await import('@libp2p/websockets') + const { noise } = await import('@chainsafe/libp2p-noise') + const { yamux } = await import('@chainsafe/libp2p-yamux') + // start a relay node for use in the tests const relay = await createLibp2p({ addresses: { diff --git a/packages/transport-webrtc/CHANGELOG.md b/packages/transport-webrtc/CHANGELOG.md index 526a2b9459..d4076ee6de 100644 --- a/packages/transport-webrtc/CHANGELOG.md +++ b/packages/transport-webrtc/CHANGELOG.md @@ -1,16 +1,3 @@ -## [2.0.11](https://github.com/libp2p/js-libp2p-webrtc/compare/v2.0.10...v2.0.11) (2023-06-15) - - -### Trivial Changes - -* Update .github/workflows/semantic-pull-request.yml [skip ci] ([2cb3586](https://github.com/libp2p/js-libp2p-webrtc/commit/2cb3586fb0818235083554d8581694a65b00b31f)) -* Update .github/workflows/stale.yml [skip ci] ([c80d4e9](https://github.com/libp2p/js-libp2p-webrtc/commit/c80d4e9cb2eae1ce721e0bcf8c78f79a0f49aea5)) - - -### Dependencies - -* bump p-event from 5.0.1 to 6.0.0 ([#182](https://github.com/libp2p/js-libp2p-webrtc/issues/182)) ([4df61fb](https://github.com/libp2p/js-libp2p-webrtc/commit/4df61fbdebb7ccd9c75408dc1d7fcc076a430433)) - ## [2.0.10](https://github.com/libp2p/js-libp2p-webrtc/compare/v2.0.9...v2.0.10) (2023-06-12) diff --git a/packages/transport-webrtc/README.md b/packages/transport-webrtc/README.md index d4edf70979..6b13043a49 100644 --- a/packages/transport-webrtc/README.md +++ b/packages/transport-webrtc/README.md @@ -1,11 +1,9 @@ -# 📁 Archived - this module has been merged into [js-libp2p](https://github.com/libp2p/js-libp2p/tree/master/packages/transport-webrtc) - # @libp2p/webrtc [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-webrtc.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-webrtc) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-webrtc/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc/actions/workflows/js-test-and-release.yml?query=branch%3Amain) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > A libp2p transport using WebRTC connections @@ -25,6 +23,7 @@ - [Lint](#lint) - [Clean](#clean) - [Check Dependencies](#check-dependencies) +- [API Docs](#api-docs) - [License](#license) - [Contribution](#contribution) @@ -173,6 +172,10 @@ npm run clean npm run deps-check ``` +## API Docs + +- + ## License Licensed under either of diff --git a/packages/transport-webrtc/package.json b/packages/transport-webrtc/package.json index 26dc3bd8b7..3a5543d2ad 100644 --- a/packages/transport-webrtc/package.json +++ b/packages/transport-webrtc/package.json @@ -1,20 +1,16 @@ { "name": "@libp2p/webrtc", - "version": "2.0.11", + "version": "2.0.10", "description": "A libp2p transport using WebRTC connections", "author": "", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-webrtc#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/transport-webrtc#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-webrtc.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-webrtc/issues" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.6.0" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "type": "module", "types": "./dist/src/index.d.ts", @@ -22,8 +18,7 @@ "src", "dist", "!dist/test", - "!**/*.tsbuildinfo", - "proto_ts" + "!**/*.tsbuildinfo" ], "exports": { ".": { @@ -37,91 +32,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "main" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "generate": "protons src/private-to-private/pb/message.proto src/pb/message.proto", "build": "aegir build", @@ -131,22 +41,21 @@ "lint": "aegir lint", "lint:fix": "aegir lint --fix", "clean": "aegir clean", - "dep-check": "aegir dep-check -i protons", - "release": "aegir release" + "dep-check": "aegir dep-check -i protons" }, "dependencies": { - "@chainsafe/libp2p-noise": "^12.0.0", - "@libp2p/interface-connection": "^5.0.2", - "@libp2p/interface-metrics": "^4.0.8", - "@libp2p/interface-peer-id": "^2.0.2", - "@libp2p/interface-registrar": "^2.0.12", - "@libp2p/interface-stream-muxer": "^4.1.2", - "@libp2p/interface-transport": "^4.0.3", - "@libp2p/interfaces": "^3.3.2", - "@libp2p/logger": "^2.0.7", - "@libp2p/peer-id": "^2.0.3", + "@chainsafe/libp2p-noise": "^12.0.1", + "@libp2p/interface-connection": "^5.0.0", + "@libp2p/interface-metrics": "^4.0.0", + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interface-registrar": "^2.0.0", + "@libp2p/interface-stream-muxer": "^4.0.0", + "@libp2p/interface-transport": "^4.0.0", + "@libp2p/interfaces": "^3.0.0", + "@libp2p/logger": "^2.0.0", + "@libp2p/peer-id": "^2.0.0", "@multiformats/mafmt": "^12.1.2", - "@multiformats/multiaddr": "^12.1.2", + "@multiformats/multiaddr": "^12.1.3", "abortable-iterator": "^5.0.1", "detect-browser": "^5.3.0", "it-length-prefixed": "^9.0.1", @@ -165,19 +74,22 @@ }, "devDependencies": { "@chainsafe/libp2p-yamux": "^4.0.1", - "@libp2p/interface-libp2p": "^3.1.0", - "@libp2p/interface-mocks": "^12.0.1", - "@libp2p/peer-id-factory": "^2.0.3", - "@libp2p/websockets": "^6.0.1", - "@types/sinon": "^10.0.14", - "aegir": "^39.0.7", + "@libp2p/interface-libp2p": "^3.0.0", + "@libp2p/interface-mocks": "^12.0.0", + "@libp2p/peer-id-factory": "^2.0.0", + "@libp2p/websockets": "^6.0.0", + "@types/sinon": "^10.0.15", + "aegir": "^39.0.10", "delay": "^6.0.0", "it-length": "^3.0.2", "it-map": "^3.0.3", "it-pair": "^2.0.6", "libp2p": "^0.45.0", "protons": "^7.0.2", - "sinon": "^15.0.4", + "sinon": "^15.1.0", "sinon-ts": "^1.0.0" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/transport-webrtc/test/maconn.browser.spec.ts b/packages/transport-webrtc/test/maconn.browser.spec.ts index 4cd542f939..9a25dc541c 100644 --- a/packages/transport-webrtc/test/maconn.browser.spec.ts +++ b/packages/transport-webrtc/test/maconn.browser.spec.ts @@ -3,7 +3,7 @@ import { multiaddr } from '@multiformats/multiaddr' import { expect } from 'aegir/chai' import { stubObject } from 'sinon-ts' -import { WebRTCMultiaddrConnection } from './../src/maconn.js' +import { WebRTCMultiaddrConnection } from '../src/maconn.js' import type { CounterGroup } from '@libp2p/interface-metrics' describe('Multiaddr Connection', () => { diff --git a/packages/transport-webrtc/test/transport.browser.spec.ts b/packages/transport-webrtc/test/transport.browser.spec.ts index d7878dcd4e..dea6c68fbd 100644 --- a/packages/transport-webrtc/test/transport.browser.spec.ts +++ b/packages/transport-webrtc/test/transport.browser.spec.ts @@ -5,8 +5,8 @@ import { type CreateListenerOptions, symbol } from '@libp2p/interface-transport' import { createEd25519PeerId } from '@libp2p/peer-id-factory' import { multiaddr, type Multiaddr } from '@multiformats/multiaddr' import { expect, assert } from 'aegir/chai' -import { UnimplementedError } from './../src/error.js' -import * as underTest from './../src/private-to-public/transport.js' +import { UnimplementedError } from '../src/error.js' +import * as underTest from '../src/private-to-public/transport.js' import { expectError } from './util.js' import type { Metrics } from '@libp2p/interface-metrics' diff --git a/packages/transport-webrtc/tsconfig.json b/packages/transport-webrtc/tsconfig.json index bd4df36a07..aa7a3a98ba 100644 --- a/packages/transport-webrtc/tsconfig.json +++ b/packages/transport-webrtc/tsconfig.json @@ -7,5 +7,49 @@ "src", "test", "proto_ts" + ], + "references": [ + { + "path": "../interface-connection" + }, + { + "path": "../interface-libp2p" + }, + { + "path": "../interface-metrics" + }, + { + "path": "../interface-mocks" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../interface-registrar" + }, + { + "path": "../interface-stream-muxer" + }, + { + "path": "../interface-transport" + }, + { + "path": "../interfaces" + }, + { + "path": "../libp2p" + }, + { + "path": "../logger" + }, + { + "path": "../peer-id" + }, + { + "path": "../peer-id-factory" + }, + { + "path": "../transport-websockets" + } ] -} \ No newline at end of file +} diff --git a/packages/transport-websockets/.aegir.js b/packages/transport-websockets/.aegir.js index 2e8780e35f..19b4335f8f 100644 --- a/packages/transport-websockets/.aegir.js +++ b/packages/transport-websockets/.aegir.js @@ -1,12 +1,12 @@ -import { multiaddr } from '@multiformats/multiaddr' -import { mockRegistrar, mockUpgrader } from '@libp2p/interface-mocks' -import { pipe }from 'it-pipe' -import { EventEmitter } from '@libp2p/interfaces/events' +import { pipe } from 'it-pipe' /** @type {import('aegir/types').PartialOptions} */ export default { test: { async before () { + const { multiaddr } = await import('@multiformats/multiaddr') + const { mockRegistrar, mockUpgrader } = await import('@libp2p/interface-mocks') + const { EventEmitter } = await import('@libp2p/interfaces/events') const { webSockets } = await import('./dist/src/index.js') const protocol = '/echo/1.0.0' diff --git a/packages/transport-websockets/README.md b/packages/transport-websockets/README.md index 1c561ef2d7..1a6a894b79 100644 --- a/packages/transport-websockets/README.md +++ b/packages/transport-websockets/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-websockets.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-websockets) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-websockets/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-websockets/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > JavaScript implementation of the WebSockets module that libp2p uses and that implements the interface-transport spec @@ -116,7 +116,7 @@ For more information see [libp2p/js-libp2p/doc/CONFIGURATION.md#customizing-tran ## API Docs -- +- ## License diff --git a/packages/transport-websockets/package.json b/packages/transport-websockets/package.json index 3ee500c3fc..f6a6b8a18a 100644 --- a/packages/transport-websockets/package.json +++ b/packages/transport-websockets/package.json @@ -3,21 +3,17 @@ "version": "6.0.3", "description": "JavaScript implementation of the WebSockets module that libp2p uses and that implements the interface-transport spec", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-websockets#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/transport-websockets#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-websockets.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-websockets/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "typesVersions": { @@ -58,91 +54,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -154,21 +65,19 @@ "test:firefox": "aegir test -t browser -f ./dist/test/browser.js -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -f ./dist/test/browser.js -- --browser firefox", "test:node": "aegir test -t node -f ./dist/test/node.js --cov", - "test:electron-main": "aegir test -t electron-main -f ./dist/test/node.js --cov", - "release": "aegir release", - "docs": "aegir docs" + "test:electron-main": "aegir test -t electron-main -f ./dist/test/node.js --cov" }, "dependencies": { "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-transport": "^4.0.0", - "@libp2p/interfaces": "^3.0.3", + "@libp2p/interfaces": "^3.0.0", "@libp2p/logger": "^2.0.0", - "@libp2p/utils": "^3.0.2", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@libp2p/utils": "^3.0.0", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.3", "@multiformats/multiaddr-to-uri": "^9.0.2", "@types/ws": "^8.5.4", - "abortable-iterator": "^5.0.0", + "abortable-iterator": "^5.0.1", "it-ws": "^6.0.0", "p-defer": "^4.0.0", "p-timeout": "^6.0.0", @@ -176,20 +85,23 @@ "ws": "^8.12.1" }, "devDependencies": { - "@libp2p/interface-mocks": "^12.0.1", + "@libp2p/interface-mocks": "^12.0.0", "@libp2p/interface-transport-compliance-tests": "^4.0.0", - "aegir": "^39.0.9", + "aegir": "^39.0.10", "is-loopback-addr": "^2.0.1", "it-all": "^3.0.1", - "it-drain": "^3.0.1", + "it-drain": "^3.0.2", "it-goodbye": "^4.0.1", "it-pipe": "^3.0.1", "it-stream-types": "^2.0.1", "p-wait-for": "^5.0.0", "uint8arraylist": "^2.3.2", - "uint8arrays": "^4.0.2" + "uint8arrays": "^4.0.3" }, "browser": { "./dist/src/listener.js": "./dist/src/listener.browser.js" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/transport-websockets/tsconfig.json b/packages/transport-websockets/tsconfig.json index 13a3599639..9047d208ae 100644 --- a/packages/transport-websockets/tsconfig.json +++ b/packages/transport-websockets/tsconfig.json @@ -6,5 +6,28 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-connection" + }, + { + "path": "../interface-mocks" + }, + { + "path": "../interface-transport" + }, + { + "path": "../interface-transport-compliance-tests" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + }, + { + "path": "../utils" + } ] } diff --git a/packages/transport-webtransport/README.md b/packages/transport-webtransport/README.md index 59fca5c6c0..a7d41e4870 100644 --- a/packages/transport-webtransport/README.md +++ b/packages/transport-webtransport/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-webtransport.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-webtransport) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-webtransport/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p-webtransport/actions/workflows/js-test-and-release.yml?query=branch%3Amain) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > JavaScript implementation of the WebTransport module that libp2p uses and that implements the interface-transport spec @@ -79,7 +79,7 @@ For more information see [libp2p/js-libp2p/doc/CONFIGURATION.md#customizing-tran ## API Docs -- +- ## License diff --git a/packages/transport-webtransport/package.json b/packages/transport-webtransport/package.json index f51714645f..9c8c6300ac 100644 --- a/packages/transport-webtransport/package.json +++ b/packages/transport-webtransport/package.json @@ -3,21 +3,17 @@ "version": "2.0.2", "description": "JavaScript implementation of the WebTransport module that libp2p uses and that implements the interface-transport spec", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-webtransport#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/transport-webtransport#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-webtransport.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-webtransport/issues" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "keywords": [ "IPFS" ], - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, "type": "module", "types": "./dist/src/index.d.ts", "typesVersions": { @@ -58,91 +54,6 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "main" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", @@ -150,29 +61,30 @@ "build": "aegir build", "test": "aegir test -t browser -t webworker", "test:chrome": "aegir test -t browser --cov", - "test:chrome-webworker": "aegir test -t webworker", - "release": "aegir release", - "docs": "aegir docs" + "test:chrome-webworker": "aegir test -t webworker" }, "dependencies": { "@chainsafe/libp2p-noise": "^12.0.1", "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-stream-muxer": "^4.0.0", - "@libp2p/interface-transport": "^4.0.1", - "@libp2p/logger": "^2.0.2", + "@libp2p/interface-transport": "^4.0.0", + "@libp2p/logger": "^2.0.0", "@libp2p/peer-id": "^2.0.0", - "@multiformats/multiaddr": "^12.1.0", + "@multiformats/multiaddr": "^12.1.3", "it-stream-types": "^2.0.1", - "multiformats": "^11.0.0", - "uint8arraylist": "^2.3.3" + "multiformats": "^11.0.2", + "uint8arraylist": "^2.4.3" }, "devDependencies": { - "aegir": "^39.0.3", - "libp2p": "^0.45.9", + "aegir": "^39.0.10", + "libp2p": "^0.45.0", "p-defer": "^4.0.0" }, "browser": { "./dist/src/listener.js": "./dist/src/listener.browser.js" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/transport-webtransport/tsconfig.json b/packages/transport-webtransport/tsconfig.json index 13a3599639..4f3f92ea0b 100644 --- a/packages/transport-webtransport/tsconfig.json +++ b/packages/transport-webtransport/tsconfig.json @@ -6,5 +6,28 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-connection" + }, + { + "path": "../interface-peer-id" + }, + { + "path": "../interface-stream-muxer" + }, + { + "path": "../interface-transport" + }, + { + "path": "../libp2p" + }, + { + "path": "../logger" + }, + { + "path": "../peer-id" + } ] } diff --git a/packages/utils/README.md b/packages/utils/README.md index 750e0b7b6b..4fbd0f1a5f 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -2,8 +2,8 @@ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) -[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-utils.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-utils) -[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-utils/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-utils/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster) > Package to aggregate shared logic and dependencies for the libp2p ecosystem @@ -51,7 +51,7 @@ You can check the [API docs](https://libp2p.github.io/js-libp2p-utils). ## API Docs -- +- ## License diff --git a/packages/utils/package.json b/packages/utils/package.json index 9f12a6c96c..604b675c13 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -3,17 +3,13 @@ "version": "3.0.12", "description": "Package to aggregate shared logic and dependencies for the libp2p ecosystem", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/libp2p/js-libp2p-utils#readme", + "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/utils#readme", "repository": { "type": "git", - "url": "git+https://github.com/libp2p/js-libp2p-utils.git" + "url": "git+https://github.com/libp2p/js-libp2p.git" }, "bugs": { - "url": "https://github.com/libp2p/js-libp2p-utils/issues" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "url": "https://github.com/libp2p/js-libp2p/issues" }, "type": "module", "types": "./dist/src/index.d.ts", @@ -75,124 +71,40 @@ "sourceType": "module" } }, - "release": { - "branches": [ - "master" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", "dep-check": "aegir dep-check", "build": "aegir build", - "docs": "aegir docs", "test": "aegir test", "test:chrome": "aegir test -t browser --cov", "test:chrome-webworker": "aegir test -t webworker", "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@achingbrain/ip-address": "^8.1.0", - "@libp2p/interface-connection": "^5.0.1", + "@libp2p/interface-connection": "^5.0.0", "@libp2p/interface-peer-store": "^2.0.0", - "@libp2p/interfaces": "^3.2.0", + "@libp2p/interfaces": "^3.0.0", "@libp2p/logger": "^2.0.0", - "@multiformats/multiaddr": "^12.0.0", - "abortable-iterator": "^5.0.0", + "@multiformats/multiaddr": "^12.1.3", + "abortable-iterator": "^5.0.1", "is-loopback-addr": "^2.0.1", "it-stream-types": "^2.0.1", "private-ip": "^3.0.0", - "uint8arraylist": "^2.3.2" + "uint8arraylist": "^2.4.3" }, "devDependencies": { "aegir": "^39.0.10", "it-all": "^3.0.1", "it-pair": "^2.0.6", - "it-pipe": "^3.0.0", - "uint8arrays": "^4.0.2" + "it-pipe": "^3.0.1", + "uint8arrays": "^4.0.3" + }, + "typedoc": { + "entryPoint": "./src/index.ts" } } diff --git a/packages/utils/tsconfig.json b/packages/utils/tsconfig.json index 13a3599639..1bd7fbd5b8 100644 --- a/packages/utils/tsconfig.json +++ b/packages/utils/tsconfig.json @@ -6,5 +6,19 @@ "include": [ "src", "test" + ], + "references": [ + { + "path": "../interface-connection" + }, + { + "path": "../interface-peer-store" + }, + { + "path": "../interfaces" + }, + { + "path": "../logger" + } ] }