Skip to content

Commit

Permalink
fix: update project config
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Aug 11, 2023
1 parent 3345f28 commit 9c0353c
Show file tree
Hide file tree
Showing 44 changed files with 154 additions and 94 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@

## Structure

- [`/doc`](./doc) Docs for libp2p
- [`/examples/auto-relay`](./examples/auto-relay) Shows how to configure relayed connections
- [`/examples/chat`](./examples/chat) An example chat app using libp2p
- [`/examples/connection-encryption`](./examples/connection-encryption) An example of how to configure connection encrypters
- [`/examples/delegated-routing`](./examples/delegated-routing) How to configure libp2p delegated routers
- [`/examples/discovery-mechanisms`](./examples/discovery-mechanisms) How to configure peer discovery mechanisms
- [`/examples/echo`](./examples/echo) An example echo app
- [`/examples/libp2p-in-the-browser`](./examples/libp2p-in-the-browser) A libp2p node running in the browser
- [`/examples/peer-and-content-routing`](./examples/peer-and-content-routing) How to use peer and content routing
- [`/examples/pnet`](./examples/pnet) How to configure a libp2p private network
- [`/examples/protocol-and-stream-muxing`](./examples/protocol-and-stream-muxing) How to use multiplex protocols streams
Expand All @@ -61,6 +61,7 @@
- [`/packages/peer-id-factory`](./packages/peer-id-factory) Create PeerId instances
- [`/packages/peer-record`](./packages/peer-record) Used to transfer signed peer data across the network
- [`/packages/peer-store`](./packages/peer-store) Stores information about peers libp2p knows on the network
- [`/packages/protocol-perf`](./packages/protocol-perf) Implementation of Perf Protocol
- [`/packages/pubsub`](./packages/pubsub) libp2p pubsub base class
- [`/packages/pubsub-floodsub`](./packages/pubsub-floodsub) libp2p-floodsub, also known as pubsub-flood or just dumbsub, this implementation of pubsub focused on delivering an API for Publish/Subscribe, but with no CastTree Forming (it just floods the network).
- [`/packages/stream-multiplexer-mplex`](./packages/stream-multiplexer-mplex) JavaScript implementation of <https://github.com/libp2p/mplex>
Expand Down
8 changes: 1 addition & 7 deletions doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Docs for libp2p",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/interface-internal#readme",
"homepage": "https://github.com/libp2p/js-libp2p/tree/master/doc#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/libp2p/js-libp2p.git"
Expand All @@ -18,12 +18,6 @@
"sourceType": "module"
}
},
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"scripts": {
"doc-check": "aegir doc-check"
},
Expand Down
21 changes: 19 additions & 2 deletions doc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,22 @@
"extends": "aegir/src/config/tsconfig.aegir.json",
"compilerOptions": {
"outDir": "dist"
}
}
},
"references": [
{
"path": "../packages/interface"
},
{
"path": "../packages/libp2p"
},
{
"path": "../packages/metrics-prometheus"
},
{
"path": "../packages/stream-multiplexer-mplex"
},
{
"path": "../packages/transport-tcp"
}
]
}
4 changes: 2 additions & 2 deletions examples/auto-relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
"@chainsafe/libp2p-yamux": "^5.0.0",
"@libp2p/mplex": "^9.0.0",
"@libp2p/websockets": "^7.0.0",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"libp2p": "^0.46.0"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"execa": "^7.1.1",
"p-defer": "^4.0.0",
"uint8arrays": "^4.0.4"
Expand Down
6 changes: 3 additions & 3 deletions examples/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
"@libp2p/peer-id-factory": "^3.0.0",
"@libp2p/tcp": "^8.0.0",
"@libp2p/websockets": "^7.0.0",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"@nodeutils/defaults-deep": "^1.1.0",
"it-length-prefixed": "^9.0.1",
"it-map": "^3.0.3",
"it-pipe": "^3.0.1",
"libp2p": "^0.46.0",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"execa": "^7.1.1",
"p-defer": "^4.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/connection-encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"@libp2p/tcp": "^8.0.0",
"it-pipe": "^3.0.1",
"libp2p": "^0.46.0",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
2 changes: 1 addition & 1 deletion examples/delegated-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"react-scripts": "^5.0.1"
},
"devDependencies": {
"aegir": "^40.0.1"
"aegir": "^40.0.8"
},
"browserslist": [
">0.2%",
Expand Down
2 changes: 1 addition & 1 deletion examples/discovery-mechanisms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"libp2p": "^0.46.0"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"execa": "^7.1.1",
"p-wait-for": "^5.0.2",
"uint8arrays": "^4.0.4"
Expand Down
6 changes: 3 additions & 3 deletions examples/echo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"@libp2p/peer-id-factory": "^3.0.0",
"@libp2p/tcp": "^8.0.0",
"@libp2p/websockets": "^7.0.0",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"@nodeutils/defaults-deep": "^1.1.0",
"it-pipe": "^3.0.1",
"libp2p": "^0.46.0",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"execa": "^7.1.1",
"p-defer": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/peer-and-content-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"multiformats": "^12.0.1"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
4 changes: 2 additions & 2 deletions examples/pnet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"@libp2p/tcp": "^8.0.0",
"it-pipe": "^3.0.1",
"libp2p": "^0.46.0",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
4 changes: 2 additions & 2 deletions examples/protocol-and-stream-muxing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"@libp2p/tcp": "^8.0.0",
"it-pipe": "^3.0.1",
"libp2p": "^0.46.0",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
4 changes: 2 additions & 2 deletions examples/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"@libp2p/mplex": "^9.0.0",
"@libp2p/tcp": "^8.0.0",
"libp2p": "^0.46.0",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"execa": "^7.1.1",
"p-defer": "^4.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/transports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"it-pipe": "^3.0.1",
"it-to-buffer": "^4.0.2",
"libp2p": "^0.46.0",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"test-ipfs-example": "^1.0.0"
},
"private": true
Expand Down
4 changes: 2 additions & 2 deletions interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
"@libp2p/websockets": "^7.0.0",
"@libp2p/webtransport": "^3.0.0",
"@multiformats/mafmt": "^12.1.2",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"libp2p": "^0.46.0",
"redis": "^4.5.1"
},
"devDependencies": {
"aegir": "^40.0.1"
"aegir": "^40.0.8"
},
"browser": {
"@libp2p/tcp": false
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@
"node-forge": "^1.1.0",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"@types/mocha": "^10.0.0",
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"benchmark": "^2.1.4",
"protons": "^7.0.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-compliance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"@libp2p/peer-collections": "^4.0.2",
"@libp2p/peer-id": "^3.0.1",
"@libp2p/peer-id-factory": "^3.0.2",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"abortable-iterator": "^5.0.1",
"delay": "^6.0.0",
"it-all": "^3.0.2",
Expand All @@ -131,10 +131,10 @@
"protons-runtime": "^5.0.0",
"sinon": "^15.1.2",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"protons": "^7.0.2"
}
}
4 changes: 2 additions & 2 deletions packages/interface-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
"dependencies": {
"@libp2p/interface": "^0.1.1",
"@libp2p/peer-collections": "^4.0.2",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"uint8arraylist": "^2.4.3"
},
"devDependencies": {
"aegir": "^40.0.1"
"aegir": "^40.0.8"
}
}
4 changes: 2 additions & 2 deletions packages/interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"test:electron-main": "aegir test -t electron-main"
},
"dependencies": {
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"abortable-iterator": "^5.0.1",
"it-pushable": "^3.2.0",
"it-stream-types": "^2.0.1",
Expand All @@ -167,7 +167,7 @@
},
"devDependencies": {
"@types/sinon": "^10.0.15",
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"sinon": "^15.1.2",
"sinon-ts": "^1.0.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/kad-dht/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@libp2p/logger": "^3.0.1",
"@libp2p/peer-collections": "^4.0.2",
"@libp2p/peer-id": "^3.0.1",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"@types/sinon": "^10.0.15",
"abortable-iterator": "^5.0.1",
"any-signal": "^4.1.1",
Expand All @@ -84,7 +84,7 @@
"progress-events": "^1.0.0",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.4",
"uint8arrays": "^4.0.6",
"varint": "^6.0.0"
},
"devDependencies": {
Expand All @@ -95,7 +95,7 @@
"@types/lodash.range": "^3.2.6",
"@types/varint": "^6.0.0",
"@types/which": "^3.0.0",
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"datastore-level": "^10.0.0",
"delay": "^6.0.0",
"execa": "^7.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
"interface-datastore": "^8.2.0",
"merge-options": "^3.0.4",
"sanitize-filename": "^1.6.3",
"uint8arrays": "^4.0.4"
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"@libp2p/peer-id-factory": "^3.0.2",
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"datastore-core": "^9.1.1",
"multiformats": "^12.0.1"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/libp2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"@libp2p/peer-store": "^9.0.2",
"@libp2p/utils": "^4.0.1",
"@multiformats/mafmt": "^12.1.2",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"abortable-iterator": "^5.0.1",
"any-signal": "^4.1.1",
"datastore-core": "^9.0.1",
Expand All @@ -155,7 +155,7 @@
"protons-runtime": "^5.0.0",
"rate-limiter-flexible": "^2.3.11",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.4",
"uint8arrays": "^4.0.6",
"wherearewe": "^2.0.1",
"xsalsa20": "^1.1.0"
},
Expand All @@ -176,7 +176,7 @@
"@libp2p/websockets": "^7.0.2",
"@types/varint": "^6.0.0",
"@types/xsalsa20": "^1.1.0",
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"delay": "^6.0.0",
"execa": "^7.1.1",
"go-libp2p": "^1.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
},
"dependencies": {
"@libp2p/interface": "^0.1.1",
"@multiformats/multiaddr": "^12.1.3",
"@multiformats/multiaddr": "^12.1.5",
"debug": "^4.3.4",
"interface-datastore": "^8.2.0",
"multiformats": "^12.0.1"
},
"devDependencies": {
"@libp2p/peer-id": "^3.0.1",
"@types/debug": "^4.1.7",
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"sinon": "^15.1.2",
"uint8arrays": "^4.0.4"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/metrics-prometheus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"@libp2p/logger": "^3.0.1",
"it-foreach": "^2.0.3",
"it-stream-types": "^2.0.1",
"prom-client": "^14.1.0"
"prom-client": "^14.2.0"
},
"devDependencies": {
"@libp2p/interface-compliance-tests": "^4.0.2",
"@libp2p/peer-id-factory": "^3.0.2",
"@multiformats/multiaddr": "^12.1.3",
"aegir": "^40.0.1",
"aegir": "^40.0.8",
"it-drain": "^3.0.2",
"it-pipe": "^3.0.1",
"p-defer": "^4.0.0"
Expand Down
Loading

0 comments on commit 9c0353c

Please sign in to comment.