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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: libp2p/js-libp2p-webrtc-star
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2d0847c62c927579360643d42adf5ff4eb9c1631
Choose a base ref
...
head repository: libp2p/js-libp2p-webrtc-star
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9dc6899250d85003de21a094c231ffea3a378dfe
Choose a head ref
Loading
Showing with 3,567 additions and 1,748 deletions.
  1. +0 −34 .aegir.js
  2. +8 −0 .github/dependabot.yml
  3. +200 −0 .github/workflows/main.yml
  4. +0 −28 .npmignore
  5. +0 −436 CHANGELOG.md
  6. +0 −11 DEPLOYMENT.md
  7. +39 −0 Dockerfile
  8. +5 −0 LICENSE-APACHE
  9. +4 −6 LICENSE → LICENSE-MIT
  10. +0 −1 Procfile
  11. +17 −95 README.md
  12. +0 −2 ci/Jenkinsfile
  13. +25 −0 lerna.json
  14. +26 −89 package.json
  15. +46 −0 packages/signalling-server/.aegir.js
  16. +40 −0 packages/signalling-server/CHANGELOG.md
  17. +62 −0 packages/signalling-server/DEPLOYMENT.md
  18. +5 −0 packages/signalling-server/LICENSE-APACHE
  19. +19 −0 packages/signalling-server/LICENSE-MIT
  20. +62 −0 packages/signalling-server/README.md
  21. +86 −0 packages/signalling-server/package.json
  22. +32 −0 packages/signalling-server/src/bin.js
  23. +2 −4 {src/sig-server → packages/signalling-server/src}/config.js
  24. +3 −5 {src/sig-server → packages/signalling-server/src}/index.html
  25. +50 −0 packages/signalling-server/src/index.js
  26. +23 −9 {src/sig-server → packages/signalling-server/src}/routes-ws/index.js
  27. +52 −0 packages/signalling-server/test/node.js
  28. +216 −0 packages/signalling-server/test/sig-server.js
  29. +46 −0 packages/transport/.aegir.js
  30. +842 −0 packages/transport/CHANGELOG.md
  31. +62 −0 packages/transport/DEPLOYMENT.md
  32. +5 −0 packages/transport/LICENSE-APACHE
  33. +19 −0 packages/transport/LICENSE-MIT
  34. +101 −0 packages/transport/README.md
  35. +93 −0 packages/transport/package.json
  36. +8 −0 packages/transport/src/constants.js
  37. +250 −0 packages/transport/src/index.js
  38. +199 −0 packages/transport/src/listener.js
  39. +110 −0 packages/transport/src/socket-to-conn.js
  40. +11 −10 { → packages/transport}/src/utils.js
  41. +23 −0 packages/transport/test/browser.js
  42. +61 −0 packages/transport/test/compliance.spec.js
  43. +20 −6 { → packages/transport}/test/node.js
  44. +157 −0 packages/transport/test/transport/dial.js
  45. +91 −0 packages/transport/test/transport/discovery.js
  46. +40 −0 packages/transport/test/transport/filter.js
  47. +7 −5 { → packages/transport}/test/transport/instance.spec.js
  48. +102 −0 packages/transport/test/transport/listen.js
  49. +121 −0 packages/transport/test/transport/multiple-signal-servers.js
  50. +84 −0 packages/transport/test/transport/reconnect.node.js
  51. +72 −0 packages/transport/test/transport/track.js
  52. +21 −24 { → packages/transport}/test/utils.spec.js
  53. +0 −252 src/index.js
  54. +0 −28 src/sig-server/bin.js
  55. +0 −56 src/sig-server/index.js
  56. +0 −14 test/browser.js
  57. +0 −230 test/sig-server.js
  58. +0 −91 test/transport/dial.js
  59. +0 −46 test/transport/discovery.js
  60. +0 −42 test/transport/filter.js
  61. +0 −66 test/transport/listen.js
  62. +0 −84 test/transport/reconnect.node.js
  63. +0 −74 test/transport/valid-connection.js
34 changes: 0 additions & 34 deletions .aegir.js

This file was deleted.

8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "11:00"
open-pull-requests-limit: 10
200 changes: 200 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
name: Test
on:
pull_request:
branches:
- master

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: actions/cache@v2
id: cache
env:
CACHE_NAME: cache-node-modules
with:
path: |
~/.npm
./node_modules
./packages/*/node_modules
./packages/*/dist
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install
npm run build --if-present
npm run link --if-present
check:
name: Check
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: actions/cache@v2
id: cache
env:
CACHE_NAME: cache-node-modules
with:
path: |
~/.npm
./node_modules
./packages/*/node_modules
./packages/*/dist
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install
npm run build --if-present
npm run link --if-present
- run: |
npm run lint
npm run dep-check -- -- -- -p
npm run dep-check -- -- -- -- --unused
test-node:
name: Unit tests ${{ matrix.project }} node ${{ matrix.node }} ${{ matrix.os }}
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [16]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v2
id: cache
env:
CACHE_NAME: cache-node-modules
with:
path: |
~/.npm
./node_modules
./packages/*/node_modules
./packages/*/dist
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install
npm run build --if-present
npm run link --if-present
- run: npm run test:node -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1

test-browser:
name: Unit tests ${{ matrix.project }} ${{ matrix.browser }} ${{ matrix.type }}
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
browser:
- chromium
- firefox
type:
- browser
- webworker
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: actions/cache@v2
id: cache
env:
CACHE_NAME: cache-node-modules
with:
path: |
~/.npm
./node_modules
./packages/*/node_modules
./packages/*/dist
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install
npm run build --if-present
npm run link --if-present
- run: npm run test:browser -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -- --browser ${{ matrix.browser }}

test-electron-main:
name: Unit tests electron-main
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: actions/cache@v2
id: cache
env:
CACHE_NAME: cache-node-modules
with:
path: |
~/.npm
./node_modules
./packages/*/node_modules
./packages/*/dist
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install
npm run build --if-present
npm run link --if-present
- uses: GabrielBB/xvfb-action@v1
with:
run: npm run test:electron-main -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- --bail

test-electron-renderer:
name: Unit tests electron-renderer
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: actions/cache@v2
id: cache
env:
CACHE_NAME: cache-node-modules
with:
path: |
~/.npm
./node_modules
./packages/*/node_modules
./packages/*/dist
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install
npm run build --if-present
npm run link --if-present
- uses: GabrielBB/xvfb-action@v1
with:
run: npm run test:electron-renderer -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- --bail
28 changes: 0 additions & 28 deletions .npmignore

This file was deleted.

Loading