Skip to content

Commit

Permalink
deps(dev): bump aegir from 39.0.13 to 40.0.11 (#26)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dependabot[bot] and achingbrain authored Aug 27, 2023
1 parent b103705 commit 37b6ba1
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 102 deletions.
1 change: 1 addition & 0 deletions .github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present lint
- run: npm run --if-present dep-check
- run: npm run --if-present doc-check

test-node:
needs: check
Expand Down
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
"keywords": [
"ipfs"
],
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"private": true,
"scripts": {
"reset": "aegir run clean && aegir clean **/node_modules **/package-lock.json",
Expand All @@ -33,13 +29,13 @@
"generate": "aegir run generate",
"build": "aegir run build",
"lint": "aegir run lint",
"docs": "NODE_OPTIONS=--max_old_space_size=4096 aegir docs",
"docs:no-publish": "npm run docs -- --publish false",
"docs": "NODE_OPTIONS=--max_old_space_size=4096 aegir docs -- --exclude packages/interop",
"docs:no-publish": "NODE_OPTIONS=--max_old_space_size=4096 aegir docs --publish false -- --exclude packages/interop",
"dep-check": "aegir run dep-check",
"release": "npm run docs:no-publish && aegir run release && npm run docs"
},
"devDependencies": {
"aegir": "^39.0.3"
"aegir": "^40.0.11"
},
"type": "module",
"workspaces": [
Expand Down
17 changes: 2 additions & 15 deletions packages/interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
"keywords": [
"IPFS"
],
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"type": "module",
"types": "./dist/src/index.d.ts",
"files": [
Expand Down Expand Up @@ -52,21 +48,15 @@
"test:electron-main": "aegir test -t electron-main"
},
"devDependencies": {
"@chainsafe/libp2p-noise": "^12.0.1",
"@chainsafe/libp2p-yamux": "^4.0.1",
"@helia/interface": "^1.0.0",
"@helia/json": "^1.0.0",
"@libp2p/tcp": "^7.0.1",
"@libp2p/websockets": "^6.0.1",
"aegir": "^39.0.3",
"blockstore-core": "^4.0.1",
"datastore-core": "^9.0.3",
"aegir": "^40.0.11",
"go-ipfs": "^0.20.0",
"helia": "^1.0.0",
"ipfs-core-types": "^0.14.0",
"ipfsd-ctl": "^13.0.0",
"kubo-rpc-client": "^3.0.0",
"libp2p": "^0.45.3",
"merge-options": "^3.0.4",
"multiformats": "^11.0.2",
"wherearewe": "^2.0.1"
Expand All @@ -75,8 +65,5 @@
"./dist/test/fixtures/create-helia.js": "./dist/test/fixtures/create-helia.browser.js",
"go-ipfs": false
},
"private": true,
"typedoc": {
"entryPoint": "./src/index.ts"
}
"private": true
}
50 changes: 14 additions & 36 deletions packages/interop/test/fixtures/create-helia.browser.ts
Original file line number Diff line number Diff line change
@@ -1,45 +1,23 @@
import { noise } from '@chainsafe/libp2p-noise'
import { yamux } from '@chainsafe/libp2p-yamux'
import { webSockets } from '@libp2p/websockets'
import { all } from '@libp2p/websockets/filters'
import { MemoryBlockstore } from 'blockstore-core'
import { MemoryDatastore } from 'datastore-core'
import { createHelia } from 'helia'
import { createLibp2p, type Libp2pOptions } from 'libp2p'
import { identifyService } from 'libp2p/identify'
import type { Helia } from '@helia/interface'

export async function createHeliaNode (config: Libp2pOptions = {}): Promise<Helia> {
const blockstore = new MemoryBlockstore()
const datastore = new MemoryDatastore()

// dial-only in the browser until webrtc browser-to-browser arrives
const libp2p = await createLibp2p({
transports: [
webSockets({
filter: all
})
],
connectionEncryption: [
noise()
],
streamMuxers: [
yamux()
],
services: {
identify: identifyService()
},
datastore,
connectionGater: {
denyDialMultiaddr: async () => false
},
...config
})

export async function createHeliaNode (): Promise<Helia> {
const helia = await createHelia({
libp2p,
blockstore,
datastore
libp2p: {
addresses: {
listen: []
},
transports: [
webSockets({
filter: all
})
],
connectionGater: {
denyDialMultiaddr: async () => false
}
}
})

return helia
Expand Down
35 changes: 2 additions & 33 deletions packages/interop/test/fixtures/create-helia.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,8 @@
import { noise } from '@chainsafe/libp2p-noise'
import { yamux } from '@chainsafe/libp2p-yamux'
import { tcp } from '@libp2p/tcp'
import { MemoryBlockstore } from 'blockstore-core'
import { MemoryDatastore } from 'datastore-core'
import { createHelia } from 'helia'
import { createLibp2p, type Libp2pOptions } from 'libp2p'
import { identifyService } from 'libp2p/identify'
import type { Helia } from '@helia/interface'

export async function createHeliaNode (config: Libp2pOptions = {}): Promise<Helia> {
const blockstore = new MemoryBlockstore()
const datastore = new MemoryDatastore()

const libp2p = await createLibp2p({
transports: [
tcp()
],
connectionEncryption: [
noise()
],
streamMuxers: [
yamux()
],
datastore,
services: {
identify: identifyService()
},
...config
})

const helia = await createHelia({
libp2p,
blockstore,
datastore
})
export async function createHeliaNode (): Promise<Helia> {
const helia = await createHelia()

return helia
}
1 change: 0 additions & 1 deletion packages/interop/test/fixtures/create-kubo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// @ts-expect-error no types
import * as goIpfs from 'go-ipfs'
import { type Controller, type ControllerOptions, createController } from 'ipfsd-ctl'
Expand Down
10 changes: 1 addition & 9 deletions packages/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
"keywords": [
"IPFS"
],
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"type": "module",
"types": "./dist/src/index.d.ts",
"files": [
Expand Down Expand Up @@ -128,7 +124,6 @@
"lint": "aegir lint",
"dep-check": "aegir dep-check",
"build": "aegir build",
"docs": "aegir docs",
"test": "aegir test",
"test:chrome": "aegir test -t browser --cov",
"test:chrome-webworker": "aegir test -t webworker",
Expand All @@ -146,10 +141,7 @@
"progress-events": "^1.0.0"
},
"devDependencies": {
"aegir": "^39.0.3",
"aegir": "^40.0.11",
"blockstore-core": "^4.0.1"
},
"typedoc": {
"entryPoint": "./src/index.ts"
}
}
2 changes: 1 addition & 1 deletion packages/json/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* `@helia/json` makes working with JSON in {@link https://github.com/ipfs/helia Helia} simple & straightforward.
*
* See the {@link JSON JSON interface} for all available operations.
* See the {@link JSON} interface for all available operations.
*
* @example
*
Expand Down
5 changes: 5 additions & 0 deletions packages/json/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"entryPoints": [
"./src/index.ts"
]
}

0 comments on commit 37b6ba1

Please sign in to comment.