Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

fix!: update multiformats deps #490

Merged
merged 3 commits into from
Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -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 ]

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -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
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
# ⚠️⚠️⚠️⚠️⚠️⚠️ <!-- omit in toc -->

**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 <https://github.com/libp2p/js-libp2p/issues/1478> per the specification: <https://github.com/libp2p/specs/pull/412>

WebRTC Browser-to-Browser is being tracked here: https://github.com/libp2p/js-libp2p/issues/1462
WebRTC Browser-to-Browser is being tracked here: <https://github.com/libp2p/js-libp2p/issues/1462>

**Questions:**

Please direct any questions about the specification to: https://github.com/libp2p/specs/issues
Please direct any questions about the specification to: <https://github.com/libp2p/specs/issues>

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
<https://github.com/libp2p/js-libp2p/issues/1478> or
<https://github.com/libp2p/js-libp2p/issues/1462>

# ⚠️⚠️⚠️⚠️⚠️⚠️ <!-- omit in toc -->

# libp2p-webrtc-star <!-- omit in toc -->

[![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

Expand Down
31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"
Expand Down
3 changes: 1 addition & 2 deletions packages/webrtc-star-protocol/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# @libp2p/webrtc-star-protocol <!-- omit in toc -->

[![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

Expand Down
4 changes: 2 additions & 2 deletions packages/webrtc-star-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"types": "./dist/src/index.d.ts",
"files": [
"src",
"dist/src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
Expand Down Expand Up @@ -136,6 +136,6 @@
"socket.io-client": "^4.1.2"
},
"devDependencies": {
"aegir": "^37.2.0"
"aegir": "^37.9.1"
}
}
3 changes: 1 addition & 2 deletions packages/webrtc-star-signalling-server/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# @libp2p/webrtc-star-signalling-server <!-- omit in toc -->

[![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

Expand Down
9 changes: 4 additions & 5 deletions packages/webrtc-star-signalling-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"types": "./dist/src/index.d.ts",
"files": [
"src",
"dist/src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 10 additions & 2 deletions packages/webrtc-star-transport/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# @libp2p/webrtc-star <!-- omit in toc -->

[![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 <!-- omit in toc -->

- [Install](#install)
- [Browser `<script>` tag](#browser-script-tag)
- [Description](#description)
- [Usage](#usage)
- [Using this module in Node.js (read: not in the browser)](#using-this-module-in-nodejs-read-not-in-the-browser)
Expand All @@ -29,6 +29,14 @@
$ npm i @libp2p/webrtc-star
```

### Browser `<script>` tag

Loading this module through a script tag will make it's exports available as `Libp2pWebrtcStar` in the global namespace.

```html
<script src="https://unpkg.com/@libp2p/webrtc-star/dist/index.min.js"></script>
```

[![](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)
Expand Down
16 changes: 8 additions & 8 deletions packages/webrtc-star-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"types": "./dist/src/index.d.ts",
"files": [
"src",
"dist/src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
Expand Down Expand Up @@ -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",
Expand All @@ -154,27 +154,27 @@
"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",
"it-pushable": "^3.0.0",
"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"
Expand Down