Skip to content

Commit e8853dd

Browse files
chore: update deps (#572)
Co-authored-by: Hugo Dias <[email protected]>
1 parent a886590 commit e8853dd

File tree

10 files changed

+85
-79
lines changed

10 files changed

+85
-79
lines changed

.aegir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const server = createServer(undefined,
1313
ipfsBin: require('go-ipfs').path()
1414
},
1515
js: {
16-
ipfsBin: require.resolve('ipfs/src/cli/bin.js')
16+
ipfsBin: require.resolve('ipfs/src/cli.js')
1717
}
1818
}
1919
)

.github/workflows/main.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- run: yarn
16+
- run: yarn lint
17+
- run: yarn build
18+
- run: yarn aegir dep-check
19+
- uses: ipfs/aegir/actions/bundle-size@master
20+
name: size
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
test-node:
24+
needs: check
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
matrix:
28+
os: [windows-latest, ubuntu-latest, macos-latest]
29+
node: [12, 14]
30+
fail-fast: true
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: ${{ matrix.node }}
36+
- run: yarn
37+
- run: npx nyc --reporter=lcov aegir test -t node --bail --timeout 60000
38+
- uses: codecov/codecov-action@v1
39+
test-chrome:
40+
needs: check
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- run: yarn
45+
- run: npx aegir test -t browser -t webworker --timeout 10000
46+
test-firefox:
47+
needs: check
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
- run: yarn
52+
- run: npx aegir test -t browser -t webworker --timeout 10000 -- --browsers FirefoxHeadless
53+
test-electron-main:
54+
needs: check
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v2
58+
- run: yarn
59+
- run: npx xvfb-maybe aegir test -t electron-main --bail --timeout 10000
60+
test-electron-renderer:
61+
needs: check
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v2
65+
- run: yarn
66+
- run: npx xvfb-maybe aegir test -t electron-renderer --bail --timeout 10000

.travis.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

examples/id/id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function run () {
1515

1616
const nodeJs = await createController({
1717
type: 'js',
18-
ipfsBin: require.resolve('ipfs/src/cli/bin.js'),
18+
ipfsBin: require.resolve('ipfs/src/cli.js'),
1919
ipfsHttpModule: require('ipfs-http-client')
2020
})
2121
console.log('alice')

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
"@hapi/boom": "^9.1.0",
5454
"@hapi/hapi": "^20.0.0",
5555
"debug": "^4.1.1",
56-
"execa": "^4.0.0",
56+
"execa": "^5.0.0",
5757
"fs-extra": "^9.0.0",
58-
"ipfs-utils": "^4.0.0",
58+
"ipfs-utils": "^5.0.1",
5959
"joi": "^17.2.1",
6060
"merge-options": "^3.0.1",
6161
"multiaddr": "^8.0.0",
@@ -64,12 +64,12 @@
6464
"temp-write": "^4.0.0"
6565
},
6666
"devDependencies": {
67-
"aegir": "^28.0.2",
67+
"aegir": "^29.2.2",
6868
"benchmark": "^2.1.4",
6969
"go-ipfs": "^0.7.0",
7070
"husky": "^4.2.5",
71-
"ipfs": "^0.50.2",
72-
"ipfs-http-client": "^47.0.1",
71+
"ipfs": "0.52.2",
72+
"ipfs-http-client": "48.1.2",
7373
"ipfs-unixfs": "^2.0.3",
7474
"lint-staged": "^10.1.6"
7575
},

test/controller.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('Controller API', function () {
5454
ipfsModule: require('ipfs')
5555
}, {
5656
js: {
57-
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli/bin.js')
57+
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli.js')
5858
},
5959
go: {
6060
ipfsBin: isNode ? require('go-ipfs').path() : undefined

test/create.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('`createController` should return the correct class', () => {
1616
disposable: false,
1717
ipfsModule: require('ipfs'),
1818
ipfsHttpModule: require('ipfs-http-client'),
19-
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli/bin.js')
19+
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli.js')
2020
})
2121

2222
if (!isNode) {
@@ -51,7 +51,7 @@ describe('`createController` should return the correct class', () => {
5151
disposable: false,
5252
ipfsModule: require('ipfs'),
5353
ipfsHttpModule: require('ipfs-http-client'),
54-
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli/bin.js')
54+
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli.js')
5555
})
5656

5757
expect(f).to.be.instanceOf(Client)
@@ -67,7 +67,7 @@ const types = [{
6767
type: 'js',
6868
test: true,
6969
ipfsModule: require('ipfs'),
70-
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli/bin.js')
70+
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli.js')
7171
}, {
7272
...defaultOps,
7373
ipfsBin: isNode ? require('go-ipfs').path() : undefined,
@@ -84,7 +84,7 @@ const types = [{
8484
test: true,
8585
remote: true,
8686
ipfsModule: require('ipfs'),
87-
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli/bin.js')
87+
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli.js')
8888
}, {
8989
...defaultOps,
9090
ipfsBin: isNode ? require('go-ipfs').path() : undefined,

test/factory.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const types = [{
1616
type: 'js',
1717
test: true,
1818
ipfsModule: require('ipfs'),
19-
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli/bin.js')
19+
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli.js')
2020
}, {
2121
...defaultOps,
2222
ipfsBin: isNode ? require('go-ipfs').path() : undefined,
@@ -33,7 +33,7 @@ const types = [{
3333
remote: true,
3434
test: true,
3535
ipfsModule: require('ipfs'),
36-
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli/bin.js')
36+
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli.js')
3737
}, {
3838
...defaultOps,
3939
ipfsBin: isNode ? require('go-ipfs').path() : undefined,
@@ -90,7 +90,7 @@ describe('`Factory spawn()` ', function () {
9090
remote: opts.remote,
9191
ipfsModule: require('ipfs'),
9292
ipfsHttpModule: require('ipfs-http-client'),
93-
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli/bin.js')
93+
ipfsBin: pathJoin(__dirname, '../node_modules/ipfs/src/cli.js')
9494
})
9595
expect(ctl).to.exist()
9696
expect(ctl.opts.test).to.be.true()

test/node.routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('routes', () => {
1616
return createFactory({
1717
ipfsModule: require('ipfs'),
1818
ipfsHttpModule: require('ipfs-http-client'),
19-
ipfsBin: require.resolve('ipfs/src/cli/bin.js')
19+
ipfsBin: require.resolve('ipfs/src/cli.js')
2020
})
2121
})
2222
})

test/node.utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('utils node version', function () {
2424
test: true,
2525
ipfsModule: require('ipfs'),
2626
ipfsHttpModule: require('ipfs-http-client'),
27-
ipfsBin: require.resolve('ipfs/src/cli/bin.js')
27+
ipfsBin: require.resolve('ipfs/src/cli.js')
2828
})
2929
expect(checkForRunningApi(node.path)).to.be.contain('/ip4/127.0.0.1/tcp/')
3030
await node.stop()
@@ -42,7 +42,7 @@ describe('utils node version', function () {
4242
test: true,
4343
ipfsModule: require('ipfs'),
4444
ipfsHttpModule: require('ipfs-http-client'),
45-
ipfsBin: require.resolve('ipfs/src/cli/bin.js')
45+
ipfsBin: require.resolve('ipfs/src/cli.js')
4646
})
4747
const dir = await f.tmpDir()
4848
const node = await f.spawn({
@@ -64,7 +64,7 @@ describe('utils node version', function () {
6464
test: true,
6565
ipfsModule: require('ipfs'),
6666
ipfsHttpModule: require('ipfs-http-client'),
67-
ipfsBin: require.resolve('ipfs/src/cli/bin.js')
67+
ipfsBin: require.resolve('ipfs/src/cli.js')
6868
})
6969
expect(await repoExists(node.path)).to.be.true()
7070
await node.stop()

0 commit comments

Comments
 (0)