Skip to content

Commit

Permalink
Merge branch 'main' into dep/remove-outdated-multihashes
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored May 28, 2024
2 parents d952312 + 7464dc0 commit 89f2287
Show file tree
Hide file tree
Showing 122 changed files with 3,566 additions and 2,285 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Automerge
on: [ pull_request ]

jobs:
automerge:
uses: protocol/.github/.github/workflows/automerge.yml@master
with:
job: 'automerge'
24 changes: 8 additions & 16 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 @@ -62,16 +62,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# needed for webtransport tests, remove after https://github.com/libp2p/js-libp2p/pull/2422
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.20'
- uses: actions/setup-node@v4
with:
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 @@ -82,16 +78,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# needed for webtransport tests, remove after https://github.com/libp2p/js-libp2p/pull/2422
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.20'
- uses: actions/setup-node@v4
with:
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 @@ -107,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 @@ -123,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 @@ -144,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 @@ -160,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 @@ -176,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
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.31","packages/connection-encrypter-plaintext":"1.0.22","packages/connection-encrypter-tls":"1.0.9","packages/crypto":"4.1.1","packages/interface":"1.3.1","packages/interface-compliance-tests":"5.4.3","packages/interface-internal":"1.2.0","packages/kad-dht":"12.0.15","packages/keychain":"4.0.14","packages/libp2p":"1.5.1","packages/logger":"4.0.12","packages/metrics-prometheus":"3.0.22","packages/multistream-select":"5.1.9","packages/peer-collections":"5.2.0","packages/peer-discovery-bootstrap":"10.0.22","packages/peer-discovery-mdns":"10.0.22","packages/peer-id":"4.1.1","packages/peer-id-factory":"4.1.1","packages/peer-record":"7.0.16","packages/peer-store":"10.0.17","packages/protocol-autonat":"1.0.19","packages/protocol-dcutr":"1.0.19","packages/protocol-echo":"1.0.5","packages/protocol-fetch":"1.0.16","packages/protocol-identify":"2.0.0","packages/protocol-perf":"3.0.22","packages/protocol-ping":"1.0.17","packages/pubsub":"9.0.17","packages/pubsub-floodsub":"9.0.18","packages/record":"4.0.1","packages/stream-multiplexer-mplex":"10.0.22","packages/transport-circuit-relay-v2":"1.0.22","packages/transport-tcp":"9.0.24","packages/transport-webrtc":"4.0.31","packages/transport-websockets":"8.0.22","packages/transport-webtransport":"4.0.30","packages/upnp-nat":"1.0.20","packages/utils":"5.4.0"}
{"packages/connection-encrypter-plaintext":"1.0.24","packages/connection-encrypter-tls":"1.0.11","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.0.1","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": "^42.2.11"
},
"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
39 changes: 39 additions & 0 deletions interop/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,45 @@
* @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)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @libp2p/circuit-relay-v2 bumped from ^1.0.22 to ^1.0.23
* @libp2p/identify bumped from ^2.0.0 to ^2.0.1
* @libp2p/mplex bumped from ^10.0.22 to ^10.0.23
* @libp2p/ping bumped from ^1.0.17 to ^1.0.18
* @libp2p/tcp bumped from ^9.0.24 to ^9.0.25
* @libp2p/webrtc bumped from ^4.0.31 to ^4.0.32
* @libp2p/websockets bumped from ^8.0.22 to ^8.0.23
* @libp2p/webtransport bumped from ^4.0.30 to ^4.0.31
* libp2p bumped from ^1.5.1 to ^1.5.2

## [2.0.31](https://github.com/libp2p/js-libp2p/compare/multidim-interop-v2.0.30...multidim-interop-v2.0.31) (2024-05-01)


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.31",
"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.22",
"@libp2p/identify": "^2.0.0",
"@libp2p/mplex": "^10.0.22",
"@libp2p/ping": "^1.0.17",
"@libp2p/tcp": "^9.0.24",
"@libp2p/webrtc": "^4.0.31",
"@libp2p/websockets": "^8.0.22",
"@libp2p/webtransport": "^4.0.30",
"@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.1",
"redis": "^4.6.13"
"@multiformats/multiaddr": "^12.2.3",
"aegir": "^42.2.11",
"libp2p": "^1.6.0",
"redis": "^4.6.14"
},
"browser": {
"@libp2p/tcp": false
Expand Down
29 changes: 29 additions & 0 deletions packages/connection-encrypter-plaintext/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,35 @@
* 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)


### Dependencies

* The following workspace dependencies were updated
* devDependencies
* @libp2p/interface-compliance-tests bumped from ^5.4.3 to ^5.4.4

## [1.0.22](https://github.com/libp2p/js-libp2p/compare/plaintext-v1.0.21...plaintext-v1.0.22) (2024-05-01)


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.22",
"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.3",
"@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": "^42.2.11",
"protons": "^7.5.0",
"sinon": "^17.0.1"
"sinon": "^18.0.0"
},
"sideEffects": false
}
30 changes: 30 additions & 0 deletions packages/connection-encrypter-tls/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@
* devDependencies
* @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1

## [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)


### Dependencies

* The following workspace dependencies were updated
* devDependencies
* @libp2p/interface-compliance-tests bumped from ^5.4.3 to ^5.4.4

## [1.0.9](https://github.com/libp2p/js-libp2p/compare/tls-v1.0.8...tls-v1.0.9) (2024-05-01)


Expand Down
Loading

0 comments on commit 89f2287

Please sign in to comment.