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

Commit

Permalink
fix!: update multiformats deps (#490)
Browse files Browse the repository at this point in the history
The CID class in multiformats v11 has breaking changes so update all
deps to use the new version.
  • Loading branch information
achingbrain authored Jan 6, 2023
1 parent a686e42 commit f1acfea
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 51 deletions.
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

0 comments on commit f1acfea

Please sign in to comment.