-
Notifications
You must be signed in to change notification settings - Fork 16
chore: update deps #114
chore: update deps #114
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,70 @@ | ||||||
name: ci | ||||||
on: | ||||||
push: | ||||||
branches: | ||||||
- master | ||||||
pull_request: | ||||||
branches: | ||||||
- master | ||||||
|
||||||
jobs: | ||||||
check: | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- run: npm install | ||||||
- run: npx aegir lint | ||||||
- run: npx aegir dep-check -- -i wrtc -i electron-webrtc | ||||||
- run: npx aegir build --no-types | ||||||
test-node: | ||||||
needs: check | ||||||
runs-on: ${{ matrix.os }} | ||||||
strategy: | ||||||
matrix: | ||||||
os: [windows-latest, ubuntu-latest, macos-latest] | ||||||
node: [14, 15] | ||||||
fail-fast: true | ||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- uses: actions/setup-node@v1 | ||||||
with: | ||||||
node-version: ${{ matrix.node }} | ||||||
- run: npm install | ||||||
- run: npx nyc --reporter=lcov aegir test -t node -- --bail | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
No need for nyc |
||||||
- uses: codecov/codecov-action@v1 | ||||||
test-chrome: | ||||||
needs: check | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- run: npm install | ||||||
- run: npx aegir test -t browser -t webworker --bail | ||||||
test-firefox: | ||||||
needs: check | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- run: npm install | ||||||
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Otherwise this will run on chromium |
||||||
test-webkit: | ||||||
needs: check | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- uses: microsoft/playwright-github-action@v1 | ||||||
- run: npm install | ||||||
- run: npx aegir test -t browser -t webworker --bail -- --browser webkit | ||||||
test-electron-main: | ||||||
needs: check | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- run: npm install | ||||||
- run: npx xvfb-maybe aegir test -t electron-main --bail | ||||||
test-electron-renderer: | ||||||
needs: check | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- run: npm install | ||||||
- run: npx xvfb-maybe aegir test -t electron-renderer --bail |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,11 @@ | |
"test": "aegir test", | ||
"test:node": "aegir test -t node", | ||
"test:browser": "aegir test -t browser", | ||
"build": "aegir build", | ||
"build": "aegir build --no-types", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't we want types? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we want types, but we are not adding types to all libp2p modules for the time being: libp2p/js-libp2p#659 We are focusing first on guarantee that libp2p provides types for the user surface area, which is essentially libp2p + libp2p-interfaces. Slowly, we should roll up the remaining modules, as some libp2p modules (including this) also need libp2p and libp2p-interfaces to have types, as libp2p is provided to the modules. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Either way, once I release interfaces I can add types here as this should be super fast |
||
"docs": "aegir-docs", | ||
"release": "aegir release --docs", | ||
"release-minor": "aegir release --type minor --docs", | ||
"release-major": "aegir release --type major --docs", | ||
"release": "aegir release --docs --no-types", | ||
"release-minor": "aegir release --no-types --type minor --docs", | ||
"release-major": "aegir release --no-types --type major --docs", | ||
"coverage": "aegir coverage", | ||
"coverage-publish": "aegir coverage --provider coveralls" | ||
}, | ||
|
@@ -42,24 +42,26 @@ | |
}, | ||
"homepage": "https://github.com/libp2p/js-libp2p-floodsub#readme", | ||
"devDependencies": { | ||
"aegir": "^28.1.0", | ||
"aegir": "^33.0.0", | ||
"benchmark": "^2.1.4", | ||
"chai": "^4.2.0", | ||
"ipfs-utils": "^4.0.1", | ||
"chai": "^4.3.4", | ||
"ipfs-utils": "^6.0.6", | ||
"it-pair": "^1.0.0", | ||
"libp2p": "^0.30.0", | ||
"libp2p-mplex": "^0.10.1", | ||
"libp2p-noise": "^2.0.1", | ||
"libp2p-websockets": "^0.14.0", | ||
"multiaddr": "^8.1.1", | ||
"libp2p-websockets": "^0.15.4", | ||
"multiaddr": "^9.0.1", | ||
"os": "^0.1.1", | ||
"p-wait-for": "^3.1.0", | ||
"peer-id": "^0.14.2", | ||
"sinon": "^9.2.1" | ||
"sinon": "^10.0.0" | ||
}, | ||
"dependencies": { | ||
"debug": "^4.2.0", | ||
"libp2p-interfaces": "^0.8.1", | ||
"libp2p-interfaces": "libp2p/js-libp2p-interfaces#chore/update-pubsub-interface", | ||
"time-cache": "^0.3.0", | ||
"uint8arrays": "^1.1.0" | ||
"uint8arrays": "^2.1.4" | ||
}, | ||
"peerDependencies": { | ||
"libp2p": "^0.30.0" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const { Buffer } = require('buffer') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably should include the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to ignore wrtc and electron-webrtc