diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 3833fc22..d57c2a02 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -1,6 +1,3 @@ -# File managed by web3-bot. DO NOT EDIT. -# See https://github.com/protocol/.github/ for details. - name: Automerge on: [ pull_request ] diff --git a/.github/workflows/js-test-and-release.yml b/.github/workflows/js-test-and-release.yml index ed173493..3cb16216 100644 --- a/.github/workflows/js-test-and-release.yml +++ b/.github/workflows/js-test-and-release.yml @@ -1,6 +1,3 @@ -# File managed by web3-bot. DO NOT EDIT. -# See https://github.com/protocol/.github/ for details. - name: test & maybe release on: push: @@ -27,7 +24,7 @@ jobs: strategy: matrix: os: [windows-latest, ubuntu-latest, macos-latest] - node: [16] + node: [lts/*] fail-fast: true steps: - uses: actions/checkout@v3 diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..c5ebf5e2 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +; package-lock with tarball deps breaks lerna/nx - remove when https://github.com/semantic-release/github/pull/487 is merged +package-lock=false diff --git a/README.md b/README.md index 7aaf4798..7f6fc8d1 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,31 @@ # ⚠️⚠️⚠️⚠️⚠️⚠️ + **Status:** [Archived](https://github.com/libp2p/github-mgmt/pull/80) and not maintained **Alternatives:** -WebRTC Browser-to-Server is being implemented in js-libp2p and tracked here https://github.com/libp2p/js-libp2p/issues/1478 per the specification: https://github.com/libp2p/specs/pull/412 +WebRTC Browser-to-Server is being implemented in js-libp2p and tracked here per the specification: -WebRTC Browser-to-Browser is being tracked here: https://github.com/libp2p/js-libp2p/issues/1462 +WebRTC Browser-to-Browser is being tracked here: **Questions:** -Please direct any questions about the specification to: https://github.com/libp2p/specs/issues +Please direct any questions about the specification to: Please direct any questions about the js-libp2p WebRTC implementations to: -https://github.com/libp2p/js-libp2p/issues/1478 or -https://github.com/libp2p/js-libp2p/issues/1462 + or + + # ⚠️⚠️⚠️⚠️⚠️⚠️ # libp2p-webrtc-star [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) -[![IRC](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p) [![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-star.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-webrtc-star) -[![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-interfaces/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc-star/actions/workflows/js-test-and-release.yml) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-webrtc-star/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc-star/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) > The webrtc-star libp2p transport and signalling server diff --git a/package.json b/package.json index 0d4f8010..89fdc11d 100644 --- a/package.json +++ b/package.json @@ -17,24 +17,23 @@ }, "private": true, "scripts": { - "reset": "lerna run clean && rimraf ./node_modules ./package-lock.json packages/*/node_modules packages/*/package-lock.json packages/*/dist", - "test": "lerna run --concurrency 1 test -- --", - "test:node": "lerna run --concurrency 1 test:node -- --", - "test:chrome": "lerna run --concurrency 1 test:chrome -- --", - "test:chrome-webworker": "lerna --concurrency 1 run test:chrome-webworker -- --", - "test:firefox": "lerna run --concurrency 1 test:firefox -- --", - "test:firefox-webworker": "lerna run --concurrency 1 test:firefox-webworker -- --", - "test:electron-main": "lerna run --concurrency 1 test:electron-main -- --", - "test:electron-renderer": "lerna run --concurrency 1 test:electron-renderer -- --", - "clean": "lerna run clean", - "build": "lerna run build", - "lint": "lerna run lint", - "dep-check": "lerna run dep-check", - "release": "lerna run --concurrency 1 release -- --" + "reset": "aegir run clean && aegir clean ./node_modules ./package-lock.json packages/*/node_modules packages/*/package-lock.json packages/*/dist", + "test": "aegir run test", + "test:node": "aegir run test:node", + "test:chrome": "aegir run test:chrome", + "test:chrome-webworker": "aegir run test:chrome-webworker", + "test:firefox": "aegir run test:firefox", + "test:firefox-webworker": "aegir run test:firefox-webworker", + "test:electron-main": "aegir run test:electron-main", + "test:electron-renderer": "aegir run test:electron-renderer", + "clean": "aegir run clean", + "build": "aegir run build", + "lint": "aegir run lint", + "dep-check": "aegir run dep-check", + "release": "aegir run release" }, "dependencies": { - "lerna": "^6.0.1", - "rimraf": "^3.0.2" + "aegir": "^37.9.1" }, "workspaces": [ "packages/*" diff --git a/packages/webrtc-star-protocol/README.md b/packages/webrtc-star-protocol/README.md index 2716d1ee..3c3fff89 100644 --- a/packages/webrtc-star-protocol/README.md +++ b/packages/webrtc-star-protocol/README.md @@ -1,10 +1,9 @@ # @libp2p/webrtc-star-protocol [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) -[![IRC](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p) [![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-star.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-webrtc-star) -[![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-interfaces/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc-star/actions/workflows/js-test-and-release.yml) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-webrtc-star/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc-star/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) > shared types used by the libp2p webrtc transport and signalling server diff --git a/packages/webrtc-star-protocol/package.json b/packages/webrtc-star-protocol/package.json index e112c4f8..fd630a9f 100644 --- a/packages/webrtc-star-protocol/package.json +++ b/packages/webrtc-star-protocol/package.json @@ -23,7 +23,7 @@ "types": "./dist/src/index.d.ts", "files": [ "src", - "dist/src", + "dist", "!dist/test", "!**/*.tsbuildinfo" ], @@ -136,6 +136,6 @@ "socket.io-client": "^4.1.2" }, "devDependencies": { - "aegir": "^37.2.0" + "aegir": "^37.9.1" } } diff --git a/packages/webrtc-star-signalling-server/README.md b/packages/webrtc-star-signalling-server/README.md index b328ce9d..fc1a823c 100644 --- a/packages/webrtc-star-signalling-server/README.md +++ b/packages/webrtc-star-signalling-server/README.md @@ -1,10 +1,9 @@ # @libp2p/webrtc-star-signalling-server [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) -[![IRC](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p) [![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-star.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-webrtc-star) -[![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-interfaces/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc-star/actions/workflows/js-test-and-release.yml) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-webrtc-star/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc-star/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) > signalling server to use with the libp2p WebRTC transport diff --git a/packages/webrtc-star-signalling-server/package.json b/packages/webrtc-star-signalling-server/package.json index fb5a17c9..35bfe771 100644 --- a/packages/webrtc-star-signalling-server/package.json +++ b/packages/webrtc-star-signalling-server/package.json @@ -28,7 +28,7 @@ "types": "./dist/src/index.d.ts", "files": [ "src", - "dist/src", + "dist", "!dist/test", "!**/*.tsbuildinfo" ], @@ -140,8 +140,8 @@ "release": "aegir release" }, "dependencies": { - "@hapi/hapi": "^20.0.0", - "@hapi/inert": "^6.0.3", + "@hapi/hapi": "^21.1.0", + "@hapi/inert": "^7.0.0", "@libp2p/logger": "^2.0.0", "@libp2p/webrtc-star-protocol": "^2.0.0", "@multiformats/multiaddr": "^11.0.0", @@ -152,9 +152,8 @@ "socket.io-client": "^4.1.2" }, "devDependencies": { - "@types/hapi__hapi": "^20.0.10", "@types/hapi__inert": "^5.2.3", - "aegir": "^37.2.0", + "aegir": "^37.9.1", "p-event": "^5.0.1", "p-wait-for": "^5.0.0", "socket.io-client-v2": "npm:socket.io-client@^2.3.0", diff --git a/packages/webrtc-star-transport/README.md b/packages/webrtc-star-transport/README.md index d8105ff5..2835a175 100644 --- a/packages/webrtc-star-transport/README.md +++ b/packages/webrtc-star-transport/README.md @@ -1,16 +1,16 @@ # @libp2p/webrtc-star [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) -[![IRC](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p) [![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-star.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-webrtc-star) -[![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-interfaces/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc-star/actions/workflows/js-test-and-release.yml) +[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-webrtc-star/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-webrtc-star/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) > libp2p WebRTC transport that includes a discovery mechanism provided by the signalling-star ## Table of contents - [Install](#install) + - [Browser ` +``` + [![](https://raw.githubusercontent.com/libp2p/interface-transport/master/img/badge.png)](https://github.com/libp2p/js-libp2p-interfaces/blob/master/packages/libp2p-interfaces/src/transport/README.md) [![](https://raw.githubusercontent.com/libp2p/interface-connection/master/img/badge.png)](https://github.com/libp2p/js-libp2p-interfaces/blob/master/packages/libp2p-interfaces/src/connection/README.md) [![](https://raw.githubusercontent.com/libp2p/interface-peer-discovery/master/img/badge.png)](https://github.com/libp2p/js-libp2p-interfaces/blob/master/packages/libp2p-interfaces/src/peer-discovery/README.md) diff --git a/packages/webrtc-star-transport/package.json b/packages/webrtc-star-transport/package.json index c388d111..33e4bf64 100644 --- a/packages/webrtc-star-transport/package.json +++ b/packages/webrtc-star-transport/package.json @@ -23,7 +23,7 @@ "types": "./dist/src/index.d.ts", "files": [ "src", - "dist/src", + "dist", "!dist/test", "!**/*.tsbuildinfo" ], @@ -140,11 +140,11 @@ "dependencies": { "@libp2p/interface-connection": "^3.0.1", "@libp2p/interface-peer-discovery": "^1.0.0", - "@libp2p/interface-peer-id": "^1.0.2", + "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-transport": "^2.0.0", "@libp2p/interfaces": "^3.0.2", "@libp2p/logger": "^2.0.0", - "@libp2p/peer-id": "^1.1.9", + "@libp2p/peer-id": "^2.0.0", "@libp2p/utils": "^3.0.1", "@libp2p/webrtc-peer": "^2.0.0", "@libp2p/webrtc-star-protocol": "^2.0.0", @@ -154,19 +154,19 @@ "delay": "^5.0.0", "err-code": "^3.0.1", "iso-random-stream": "^2.0.2", - "multiformats": "^10.0.0", + "multiformats": "^11.0.0", "p-defer": "^4.0.0", "socket.io-client": "^4.1.2", "uint8arrays": "^4.0.2" }, "devDependencies": { - "@libp2p/interface-mocks": "^7.0.1", + "@libp2p/interface-mocks": "^9.0.0", "@libp2p/interface-peer-discovery-compliance-tests": "^2.0.0", "@libp2p/interface-transport-compliance-tests": "^3.0.0", - "@libp2p/peer-id-factory": "^1.0.9", + "@libp2p/peer-id-factory": "^2.0.0", "@libp2p/webrtc-star-signalling-server": "^2.0.0", "@mapbox/node-pre-gyp": "^1.0.5", - "aegir": "^37.2.0", + "aegir": "^37.9.1", "electron-webrtc": "~0.3.0", "it-all": "^2.0.0", "it-pipe": "^2.0.3", @@ -174,7 +174,7 @@ "it-stream-types": "^1.0.4", "p-event": "^5.0.1", "p-wait-for": "^5.0.0", - "sinon": "^14.0.0", + "sinon": "^15.0.1", "uint8arraylist": "^2.3.2", "util": "^0.12.4", "wrtc": "^0.4.6"