Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Jun 6, 2024
2 parents 3ec34e8 + 757fb26 commit 0d9a6d9
Show file tree
Hide file tree
Showing 113 changed files with 2,169 additions and 538 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
node-version: ${{ matrix.node }}
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:node
- uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: node
files: .coverage/*,packages/*/.coverage/*
Expand All @@ -67,7 +67,7 @@ jobs:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:chrome
- uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: chrome
files: .coverage/*,packages/*/.coverage/*
Expand All @@ -83,7 +83,7 @@ jobs:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:chrome-webworker
- uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: chrome-webworker
files: .coverage/*,packages/*/.coverage/*
Expand All @@ -99,7 +99,7 @@ jobs:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:firefox
- uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: firefox
files: .coverage/*,packages/*/.coverage/*
Expand All @@ -115,7 +115,7 @@ jobs:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:firefox-webworker
- uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: firefox-webworker
files: .coverage/*,packages/*/.coverage/*
Expand All @@ -136,7 +136,7 @@ jobs:
sudo apt-get update
- run: npx playwright install-deps
- run: npm run --if-present test:webkit
- uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: webkit
files: .coverage/*,packages/*/.coverage/*
Expand All @@ -152,7 +152,7 @@ jobs:
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@84508663e988701840491b86de86b666e8a86bed # v4.3.0
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: electron-main
files: .coverage/*,packages/*/.coverage/*
Expand All @@ -168,7 +168,7 @@ jobs:
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@84508663e988701840491b86de86b666e8a86bed # v4.3.0
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: electron-renderer
files: .coverage/*,packages/*/.coverage/*
Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:
id-token: write
pull-requests: write
steps:
- uses: google-github-actions/release-please-action@v4
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.UCI_GITHUB_TOKEN || github.token }}
Expand Down
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
node_modules
build
dist
.docs
.coverage
node_modules
package-lock.json
yarn.lock
.tmp-compiled-docs
tsconfig-doc-check.aegir.json

# IDE
.DS_Store
.vscode
packages/transport-webtransport/go-libp2p-webtransport-server/main
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"interop":"2.0.32","packages/connection-encrypter-plaintext":"1.0.23","packages/connection-encrypter-tls":"1.0.10","packages/crypto":"4.1.1","packages/interface":"1.3.1","packages/interface-compliance-tests":"5.4.4","packages/interface-internal":"1.2.1","packages/kad-dht":"12.0.16","packages/keychain":"4.0.14","packages/libp2p":"1.5.2","packages/logger":"4.0.12","packages/metrics-prometheus":"3.0.23","packages/multistream-select":"5.1.9","packages/peer-collections":"5.2.1","packages/peer-discovery-bootstrap":"10.0.23","packages/peer-discovery-mdns":"10.0.23","packages/peer-id":"4.1.1","packages/peer-id-factory":"4.1.1","packages/peer-record":"7.0.17","packages/peer-store":"10.0.18","packages/protocol-autonat":"1.0.20","packages/protocol-dcutr":"1.0.20","packages/protocol-echo":"1.0.6","packages/protocol-fetch":"1.0.17","packages/protocol-identify":"2.0.1","packages/protocol-perf":"3.0.23","packages/protocol-ping":"1.0.18","packages/pubsub":"9.0.18","packages/pubsub-floodsub":"9.0.19","packages/record":"4.0.1","packages/stream-multiplexer-mplex":"10.0.23","packages/transport-circuit-relay-v2":"1.0.23","packages/transport-tcp":"9.0.25","packages/transport-webrtc":"4.0.32","packages/transport-websockets":"8.0.23","packages/transport-webtransport":"4.0.31","packages/upnp-nat":"1.0.21","packages/utils":"5.4.1"}
{"packages/connection-encrypter-plaintext":"1.0.24","packages/connection-encrypter-tls":"1.0.12","packages/crypto":"4.1.2","packages/interface":"1.4.0","packages/interface-compliance-tests":"5.4.5","packages/interface-internal":"1.2.2","packages/kad-dht":"12.0.17","packages/keychain":"4.0.15","packages/libp2p":"1.6.0","packages/logger":"4.0.13","packages/metrics-devtools":"0.1.0","packages/metrics-prometheus":"3.0.24","packages/metrics-simple":"1.0.2","packages/multistream-select":"5.1.10","packages/peer-collections":"5.2.2","packages/peer-discovery-bootstrap":"10.0.24","packages/peer-discovery-mdns":"10.0.24","packages/peer-id":"4.1.2","packages/peer-id-factory":"4.1.2","packages/peer-record":"7.0.18","packages/peer-store":"10.0.19","packages/protocol-autonat":"1.0.21","packages/protocol-dcutr":"1.0.21","packages/protocol-echo":"1.0.7","packages/protocol-fetch":"1.0.18","packages/protocol-identify":"2.0.2","packages/protocol-perf":"3.0.24","packages/protocol-ping":"1.0.19","packages/pubsub":"9.0.19","packages/pubsub-floodsub":"9.0.20","packages/record":"4.0.2","packages/stream-multiplexer-mplex":"10.0.24","packages/transport-circuit-relay-v2":"1.0.24","packages/transport-tcp":"9.0.26","packages/transport-webrtc":"4.0.33","packages/transport-websockets":"8.0.24","packages/transport-webtransport":"4.0.32","packages/upnp-nat":"1.0.22","packages/utils":"5.4.2"}
3 changes: 2 additions & 1 deletion .release-please.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
{ "type": "refactor", "section": "Refactors", "hidden": false }
],
"packages": {
"interop": {},
"packages/connection-encrypter-plaintext": {},
"packages/connection-encrypter-tls": {},
"packages/crypto": {},
Expand All @@ -20,7 +19,9 @@
"packages/keychain": {},
"packages/libp2p": {},
"packages/logger": {},
"packages/metrics-devtools": {},
"packages/metrics-prometheus": {},
"packages/metrics-simple": {},
"packages/multistream-select": {},
"packages/peer-collections": {},
"packages/peer-discovery-bootstrap": {},
Expand Down
5 changes: 5 additions & 0 deletions doc/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Welcome to libp2p! This guide will walk you through setting up a fully functiona
- [Debugging](#debugging)
- [Node](#node)
- [Browser](#browser)
- [React Native](#react-native)
- [What is next](#what-is-next)

## Install
Expand Down Expand Up @@ -271,6 +272,10 @@ localStorage.setItem('debug', 'libp2p:*') // then refresh the page to ensure the
localStorage.setItem('debug', 'libp2p:websockets,libp2p:webtransport,libp2p:kad-dht,libp2p:dialer')
```

## React Native

Libp2p can be used in React Native applications. However, there are some limitations and considerations to take into account as not all transports are supported and some of the underlying dependencies may not work as expected. There is on-going work to address these issues, particularly around the support of TCP. For a demo on how to use libp2p in a React Native application, see https://github.com/ipfs-shipyard/js-libp2p-react-native

## What is next

There are a lot of other concepts within `libp2p`, that are not covered in this guide. For additional configuration options we recommend checking out the [Configuration Readme](https://github.com/libp2p/js-libp2p/blob/main/doc/CONFIGURATION.md) and the [examples repo](https://github.com/libp2p/js-libp2p-examples). If you have any problems getting started, or if anything isn't clear, please let us know by submitting an issue!
Expand Down
2 changes: 1 addition & 1 deletion doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"doc-check": "aegir doc-check"
},
"devDependencies": {
"aegir": "^42.2.5"
"aegir": "^43.0.1"
},
"private": true
}
2 changes: 1 addition & 1 deletion interop/.aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {
}

const proxyServer = http.createServer(requestListener)
await new Promise(resolve => { proxyServer.listen(0, 'localhost', () => { resolve() }) })
await new Promise(resolve => { proxyServer.listen(0, () => { resolve() }) })

return {
redisClient,
Expand Down
22 changes: 22 additions & 0 deletions interop/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,28 @@
* @libp2p/webtransport bumped from ^4.0.18 to ^4.0.19
* libp2p bumped from ^1.2.2 to ^1.2.3

## [2.0.33](https://github.com/libp2p/js-libp2p/compare/multidim-interop-v2.0.32...multidim-interop-v2.0.33) (2024-05-17)


### Bug Fixes

* update project config ([48444f7](https://github.com/libp2p/js-libp2p/commit/48444f750ebe3f03290bf70e84d7590edc030ea4))


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @libp2p/circuit-relay-v2 bumped from ^1.0.23 to ^1.0.24
* @libp2p/identify bumped from ^2.0.1 to ^2.0.2
* @libp2p/mplex bumped from ^10.0.23 to ^10.0.24
* @libp2p/ping bumped from ^1.0.18 to ^1.0.19
* @libp2p/tcp bumped from ^9.0.25 to ^9.0.26
* @libp2p/webrtc bumped from ^4.0.32 to ^4.0.33
* @libp2p/websockets bumped from ^8.0.23 to ^8.0.24
* @libp2p/webtransport bumped from ^4.0.31 to ^4.0.32
* libp2p bumped from ^1.5.2 to ^1.6.0

## [2.0.32](https://github.com/libp2p/js-libp2p/compare/multidim-interop-v2.0.31...multidim-interop-v2.0.32) (2024-05-14)


Expand Down
26 changes: 13 additions & 13 deletions interop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libp2p/multidim-interop",
"version": "2.0.32",
"version": "2.0.33",
"description": "Multidimensional interop tests",
"author": "Glen De Cauwsemaecker <[email protected]> / @marcopolo",
"license": "Apache-2.0 OR MIT",
Expand Down Expand Up @@ -57,19 +57,19 @@
"dependencies": {
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.2",
"@libp2p/circuit-relay-v2": "^1.0.23",
"@libp2p/identify": "^2.0.1",
"@libp2p/mplex": "^10.0.23",
"@libp2p/ping": "^1.0.18",
"@libp2p/tcp": "^9.0.25",
"@libp2p/webrtc": "^4.0.32",
"@libp2p/websockets": "^8.0.23",
"@libp2p/webtransport": "^4.0.31",
"@libp2p/circuit-relay-v2": "^1.0.24",
"@libp2p/identify": "^2.0.2",
"@libp2p/mplex": "^10.0.24",
"@libp2p/ping": "^1.0.19",
"@libp2p/tcp": "^9.0.26",
"@libp2p/webrtc": "^4.0.33",
"@libp2p/websockets": "^8.0.24",
"@libp2p/webtransport": "^4.0.32",
"@multiformats/mafmt": "^12.1.6",
"@multiformats/multiaddr": "^12.2.1",
"aegir": "^42.2.5",
"libp2p": "^1.5.2",
"redis": "^4.6.13"
"@multiformats/multiaddr": "^12.2.3",
"aegir": "^43.0.1",
"libp2p": "^1.6.0",
"redis": "^4.6.14"
},
"browser": {
"@libp2p/tcp": false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"docs:no-publish": "aegir docs --publish false -- --exclude interop --exclude doc"
},
"devDependencies": {
"aegir": "^42.0.0",
"aegir": "^43.0.1",
"npm-run-all": "^4.1.5"
},
"eslintConfig": {
Expand Down
20 changes: 20 additions & 0 deletions packages/connection-encrypter-plaintext/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,26 @@
* devDependencies
* @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1

## [1.0.24](https://github.com/libp2p/js-libp2p/compare/plaintext-v1.0.23...plaintext-v1.0.24) (2024-05-17)


### Bug Fixes

* update project config ([48444f7](https://github.com/libp2p/js-libp2p/commit/48444f750ebe3f03290bf70e84d7590edc030ea4))


### Dependencies

* bump sinon from 17.0.2 to 18.0.0 ([#2548](https://github.com/libp2p/js-libp2p/issues/2548)) ([1eb5b27](https://github.com/libp2p/js-libp2p/commit/1eb5b2713585e0d4dde927ecd307ada0b774d824))
* The following workspace dependencies were updated
* dependencies
* @libp2p/interface bumped from ^1.3.1 to ^1.4.0
* @libp2p/peer-id bumped from ^4.1.1 to ^4.1.2
* devDependencies
* @libp2p/interface-compliance-tests bumped from ^5.4.4 to ^5.4.5
* @libp2p/logger bumped from ^4.0.12 to ^4.0.13
* @libp2p/peer-id-factory bumped from ^4.1.1 to ^4.1.2

## [1.0.23](https://github.com/libp2p/js-libp2p/compare/plaintext-v1.0.22...plaintext-v1.0.23) (2024-05-14)


Expand Down
20 changes: 10 additions & 10 deletions packages/connection-encrypter-plaintext/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libp2p/plaintext",
"version": "1.0.23",
"version": "1.0.24",
"description": "An insecure connection encrypter",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/connection-encrypter-plaintext#readme",
Expand Down Expand Up @@ -52,21 +52,21 @@
"doc-check": "aegir doc-check"
},
"dependencies": {
"@libp2p/interface": "^1.3.1",
"@libp2p/peer-id": "^4.1.1",
"it-protobuf-stream": "^1.1.2",
"@libp2p/interface": "^1.4.0",
"@libp2p/peer-id": "^4.1.2",
"it-protobuf-stream": "^1.1.3",
"it-stream-types": "^2.0.1",
"protons-runtime": "^5.4.0",
"uint8arraylist": "^2.4.8"
},
"devDependencies": {
"@libp2p/interface-compliance-tests": "^5.4.4",
"@libp2p/logger": "^4.0.12",
"@libp2p/peer-id-factory": "^4.1.1",
"@multiformats/multiaddr": "^12.2.1",
"aegir": "^42.2.5",
"@libp2p/interface-compliance-tests": "^5.4.5",
"@libp2p/logger": "^4.0.13",
"@libp2p/peer-id-factory": "^4.1.2",
"@multiformats/multiaddr": "^12.2.3",
"aegir": "^43.0.1",
"protons": "^7.5.0",
"sinon": "^17.0.1"
"sinon": "^18.0.0"
},
"sideEffects": false
}
28 changes: 28 additions & 0 deletions packages/connection-encrypter-tls/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,34 @@
* devDependencies
* @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1

## [1.0.12](https://github.com/libp2p/js-libp2p/compare/tls-v1.0.11...tls-v1.0.12) (2024-05-28)


### Bug Fixes

* export tls key as pkcs8 ([#2562](https://github.com/libp2p/js-libp2p/issues/2562)) ([167bf2b](https://github.com/libp2p/js-libp2p/commit/167bf2b3cf0aa741c8118e241c3668e8ef91c549))

## [1.0.11](https://github.com/libp2p/js-libp2p/compare/tls-v1.0.10...tls-v1.0.11) (2024-05-17)


### Bug Fixes

* update project config ([48444f7](https://github.com/libp2p/js-libp2p/commit/48444f750ebe3f03290bf70e84d7590edc030ea4))


### Dependencies

* bump sinon from 17.0.2 to 18.0.0 ([#2548](https://github.com/libp2p/js-libp2p/issues/2548)) ([1eb5b27](https://github.com/libp2p/js-libp2p/commit/1eb5b2713585e0d4dde927ecd307ada0b774d824))
* The following workspace dependencies were updated
* dependencies
* @libp2p/crypto bumped from ^4.1.1 to ^4.1.2
* @libp2p/interface bumped from ^1.3.1 to ^1.4.0
* @libp2p/peer-id bumped from ^4.1.1 to ^4.1.2
* devDependencies
* @libp2p/interface-compliance-tests bumped from ^5.4.4 to ^5.4.5
* @libp2p/logger bumped from ^4.0.12 to ^4.0.13
* @libp2p/peer-id-factory bumped from ^4.1.1 to ^4.1.2

## [1.0.10](https://github.com/libp2p/js-libp2p/compare/tls-v1.0.9...tls-v1.0.10) (2024-05-14)


Expand Down
22 changes: 11 additions & 11 deletions packages/connection-encrypter-tls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libp2p/tls",
"version": "1.0.10",
"version": "1.0.12",
"description": "A connection encrypter that uses TLS 1.3",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/connection-encrypter-tls#readme",
Expand Down Expand Up @@ -48,9 +48,9 @@
"doc-check": "aegir doc-check"
},
"dependencies": {
"@libp2p/crypto": "^4.1.1",
"@libp2p/interface": "^1.3.1",
"@libp2p/peer-id": "^4.1.1",
"@libp2p/crypto": "^4.1.2",
"@libp2p/interface": "^1.4.0",
"@libp2p/peer-id": "^4.1.2",
"@peculiar/asn1-schema": "^2.3.8",
"@peculiar/asn1-x509": "^2.3.8",
"@peculiar/webcrypto": "^1.4.6",
Expand All @@ -60,16 +60,16 @@
"it-stream-types": "^2.0.1",
"protons-runtime": "^5.4.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.0.3"
"uint8arrays": "^5.1.0"
},
"devDependencies": {
"@libp2p/interface-compliance-tests": "^5.4.4",
"@libp2p/logger": "^4.0.12",
"@libp2p/peer-id-factory": "^4.1.1",
"@multiformats/multiaddr": "^12.2.1",
"aegir": "^42.2.5",
"@libp2p/interface-compliance-tests": "^5.4.5",
"@libp2p/logger": "^4.0.13",
"@libp2p/peer-id-factory": "^4.1.2",
"@multiformats/multiaddr": "^12.2.3",
"aegir": "^43.0.1",
"protons": "^7.5.0",
"sinon": "^17.0.1"
"sinon": "^18.0.0"
},
"sideEffects": false
}
Loading

0 comments on commit 0d9a6d9

Please sign in to comment.