Skip to content

Commit ea26a0b

Browse files
deps(dev): bump aegir from 39.0.13 to 40.0.11 (#30)
* deps(dev): bump aegir from 39.0.13 to 40.0.11 Bumps [aegir](https://github.com/ipfs/aegir) from 39.0.13 to 40.0.11. - [Release notes](https://github.com/ipfs/aegir/releases) - [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md) - [Commits](ipfs/aegir@v39.0.13...v40.0.11) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain <alex@achingbrain.net>
1 parent ea21951 commit ea26a0b

File tree

8 files changed

+29
-90
lines changed

8 files changed

+29
-90
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
"generate": "aegir run generate",
3030
"build": "aegir run build",
3131
"lint": "aegir run lint",
32-
"docs": "NODE_OPTIONS=--max_old_space_size=4096 aegir docs",
33-
"docs:no-publish": "npm run docs -- --publish false",
32+
"docs": "NODE_OPTIONS=--max_old_space_size=4096 aegir docs -- --exclude packages/interop",
33+
"docs:no-publish": "NODE_OPTIONS=--max_old_space_size=4096 aegir docs --publish false -- --exclude packages/interop",
3434
"dep-check": "aegir run dep-check",
3535
"release": "npm run docs:no-publish && aegir run release && npm run docs"
3636
},
3737
"devDependencies": {
38-
"aegir": "^39.0.8"
38+
"aegir": "^40.0.11"
3939
},
4040
"type": "module",
4141
"workspaces": [

packages/car/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
"lint": "aegir lint",
145145
"dep-check": "aegir dep-check",
146146
"build": "aegir build",
147-
"docs": "aegir docs",
148147
"test": "aegir test",
149148
"test:chrome": "aegir test -t browser --cov",
150149
"test:chrome-webworker": "aegir test -t webworker",
@@ -169,13 +168,10 @@
169168
},
170169
"devDependencies": {
171170
"@helia/unixfs": "^1.2.2",
172-
"aegir": "^39.0.8",
171+
"aegir": "^40.0.11",
173172
"blockstore-core": "^4.0.1",
174173
"ipfs-unixfs-importer": "^15.1.0",
175174
"it-drain": "^3.0.1",
176175
"it-to-buffer": "^4.0.2"
177-
},
178-
"typedoc": {
179-
"entryPoint": "./src/index.ts"
180176
}
181177
}

packages/car/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* `@helia/car` provides `import` and `export` methods to read/write Car files to {@link https://github.com/ipfs/helia Helia}'s blockstore.
55
*
6-
* See the {@link Car Car interface} for all available operations.
6+
* See the {@link Car} interface for all available operations.
77
*
88
* By default it supports `dag-pb`, `dag-cbor`, `dag-json` and `raw` CIDs, more esoteric DAG walkers can be passed as an init option.
99
*

packages/car/typedoc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"entryPoints": [
3+
"./src/index.ts",
4+
"./src/errors.ts"
5+
]
6+
}

packages/interop/package.json

+2-11
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,18 @@
4848
"test:electron-main": "aegir test -t electron-main"
4949
},
5050
"devDependencies": {
51-
"@chainsafe/libp2p-noise": "^12.0.1",
52-
"@chainsafe/libp2p-yamux": "^4.0.2",
5351
"@helia/car": "^1.0.0",
5452
"@helia/interface": "^1.0.0",
5553
"@helia/unixfs": "^1.2.2",
5654
"@ipld/car": "^5.1.1",
57-
"@libp2p/tcp": "^7.0.1",
5855
"@libp2p/websockets": "^6.0.1",
59-
"aegir": "^39.0.8",
60-
"blockstore-core": "^4.0.1",
61-
"datastore-core": "^9.0.3",
56+
"aegir": "^40.0.11",
6257
"go-ipfs": "^0.20.0",
6358
"helia": "^1.0.0",
6459
"ipfs-unixfs-importer": "^15.1.0",
6560
"ipfsd-ctl": "^13.0.0",
6661
"it-to-buffer": "^4.0.2",
6762
"kubo-rpc-client": "^3.0.0",
68-
"libp2p": "^0.45.3",
6963
"merge-options": "^3.0.4",
7064
"multiformats": "^11.0.1",
7165
"p-defer": "^4.0.0",
@@ -75,8 +69,5 @@
7569
"./dist/test/fixtures/create-helia.js": "./dist/test/fixtures/create-helia.browser.js",
7670
"go-ipfs": false
7771
},
78-
"private": true,
79-
"typedoc": {
80-
"entryPoint": "./src/index.ts"
81-
}
72+
"private": true
8273
}

packages/interop/test/fixtures/create-helia.browser.ts

+14-36
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,23 @@
1-
import { noise } from '@chainsafe/libp2p-noise'
2-
import { yamux } from '@chainsafe/libp2p-yamux'
31
import { webSockets } from '@libp2p/websockets'
42
import { all } from '@libp2p/websockets/filters'
5-
import { MemoryBlockstore } from 'blockstore-core'
6-
import { MemoryDatastore } from 'datastore-core'
73
import { createHelia } from 'helia'
8-
import { createLibp2p, type Libp2pOptions } from 'libp2p'
9-
import { identifyService } from 'libp2p/identify'
104
import type { Helia } from '@helia/interface'
115

12-
export async function createHeliaNode (config: Libp2pOptions = {}): Promise<Helia> {
13-
const blockstore = new MemoryBlockstore()
14-
const datastore = new MemoryDatastore()
15-
16-
// dial-only in the browser until webrtc browser-to-browser arrives
17-
const libp2p = await createLibp2p({
18-
transports: [
19-
webSockets({
20-
filter: all
21-
})
22-
],
23-
connectionEncryption: [
24-
noise()
25-
],
26-
streamMuxers: [
27-
yamux()
28-
],
29-
services: {
30-
identify: identifyService()
31-
},
32-
datastore,
33-
connectionGater: {
34-
denyDialMultiaddr: async () => false
35-
},
36-
...config
37-
})
38-
6+
export async function createHeliaNode (): Promise<Helia> {
397
const helia = await createHelia({
40-
libp2p,
41-
blockstore,
42-
datastore
8+
libp2p: {
9+
addresses: {
10+
listen: []
11+
},
12+
transports: [
13+
webSockets({
14+
filter: all
15+
})
16+
],
17+
connectionGater: {
18+
denyDialMultiaddr: async () => false
19+
}
20+
}
4321
})
4422

4523
return helia
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,8 @@
1-
import { noise } from '@chainsafe/libp2p-noise'
2-
import { yamux } from '@chainsafe/libp2p-yamux'
3-
import { tcp } from '@libp2p/tcp'
4-
import { MemoryBlockstore } from 'blockstore-core'
5-
import { MemoryDatastore } from 'datastore-core'
61
import { createHelia } from 'helia'
7-
import { createLibp2p, type Libp2pOptions } from 'libp2p'
8-
import { identifyService } from 'libp2p/identify'
92
import type { Helia } from '@helia/interface'
103

11-
export async function createHeliaNode (config: Libp2pOptions = {}): Promise<Helia> {
12-
const blockstore = new MemoryBlockstore()
13-
const datastore = new MemoryDatastore()
14-
15-
const libp2p = await createLibp2p({
16-
transports: [
17-
tcp()
18-
],
19-
connectionEncryption: [
20-
noise()
21-
],
22-
streamMuxers: [
23-
yamux()
24-
],
25-
datastore,
26-
services: {
27-
identify: identifyService()
28-
},
29-
...config
30-
})
31-
32-
const helia = await createHelia({
33-
libp2p,
34-
blockstore,
35-
datastore
36-
})
4+
export async function createHeliaNode (): Promise<Helia> {
5+
const helia = await createHelia()
376

387
return helia
398
}

packages/interop/test/fixtures/create-kubo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// @ts-expect-error no types
32
import * as goIpfs from 'go-ipfs'
43
import { type Controller, type ControllerOptions, createController } from 'ipfsd-ctl'

0 commit comments

Comments
 (0)