Skip to content

Commit 098a305

Browse files
deps: bump @helia/interface from 1.2.2 to 2.0.0 (#87)
Bumps [@helia/interface](https://github.com/ipfs/helia) from 1.2.2 to 2.0.0. - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](https://github.com/ipfs/helia/compare/@helia/interface-v1.2.2...helia-v2.0.0) --- updated-dependencies: - dependency-name: "@helia/interface" dependency-type: direct:production update-type: version-update:semver-major ... --------- 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 fd8f610 commit 098a305

16 files changed

+46
-47
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=8192 aegir docs -- --exclude packages/interop",
33+
"docs:no-publish": "NODE_OPTIONS=--max_old_space_size=8192 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.13"
3939
},
4040
"type": "module",
4141
"workspaces": [

packages/interop/package.json

+11-14
Original file line numberDiff line numberDiff line change
@@ -48,33 +48,30 @@
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",
53-
"@helia/interface": "^1.0.0",
51+
"@chainsafe/libp2p-noise": "^13.0.1",
52+
"@chainsafe/libp2p-yamux": "^5.0.0",
53+
"@helia/interface": "^2.0.0",
5454
"@helia/unixfs": "^1.0.0",
55-
"@libp2p/tcp": "^7.0.1",
56-
"@libp2p/websockets": "^6.0.1",
57-
"aegir": "^39.0.8",
55+
"@libp2p/tcp": "^8.0.6",
56+
"@libp2p/websockets": "^7.0.6",
57+
"aegir": "^40.0.13",
5858
"blockstore-core": "^4.0.1",
5959
"datastore-core": "^9.0.3",
60-
"go-ipfs": "^0.20.0",
61-
"helia": "^1.0.0",
60+
"go-ipfs": "^0.22.0",
61+
"helia": "^2.0.1",
6262
"ipfs-core-types": "^0.14.0",
6363
"ipfs-unixfs-importer": "^15.1.0",
6464
"ipfsd-ctl": "^13.0.0",
6565
"it-to-buffer": "^4.0.1",
6666
"kubo-rpc-client": "^3.0.0",
67-
"libp2p": "^0.45.3",
67+
"libp2p": "^0.46.10",
6868
"merge-options": "^3.0.4",
69-
"multiformats": "^11.0.1",
69+
"multiformats": "^12.1.1",
7070
"wherearewe": "^2.0.1"
7171
},
7272
"browser": {
7373
"./dist/test/fixtures/create-helia.js": "./dist/test/fixtures/create-helia.browser.js",
7474
"go-ipfs": false
7575
},
76-
"private": true,
77-
"typedoc": {
78-
"entryPoint": "./src/index.ts"
79-
}
76+
"private": true
8077
}

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

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/* eslint-disable @typescript-eslint/ban-ts-comment,@typescript-eslint/prefer-ts-expect-error */
32
// @ts-ignore no types - TODO: remove me once the next version of npm-go-ipfs has shipped
43
import * as goIpfs from 'go-ipfs'

packages/unixfs/package.json

+8-13
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",
@@ -155,10 +154,10 @@
155154
"release": "aegir release"
156155
},
157156
"dependencies": {
158-
"@helia/interface": "^1.0.0",
157+
"@helia/interface": "^2.0.0",
159158
"@ipld/dag-pb": "^4.0.0",
160-
"@libp2p/interfaces": "^3.3.1",
161-
"@libp2p/logger": "^2.0.6",
159+
"@libp2p/interface": "^0.1.2",
160+
"@libp2p/logger": "^3.0.2",
162161
"@multiformats/murmur3": "^2.1.2",
163162
"hamt-sharding": "^3.0.2",
164163
"interface-blockstore": "^5.0.0",
@@ -169,12 +168,12 @@
169168
"it-last": "^3.0.1",
170169
"it-pipe": "^3.0.1",
171170
"merge-options": "^3.0.4",
172-
"multiformats": "^11.0.1",
171+
"multiformats": "^12.1.1",
173172
"progress-events": "^1.0.0",
174173
"sparse-array": "^1.3.2"
175174
},
176175
"devDependencies": {
177-
"aegir": "^39.0.8",
176+
"aegir": "^40.0.13",
178177
"blockstore-core": "^4.0.1",
179178
"delay": "^6.0.0",
180179
"iso-url": "^1.2.1",
@@ -185,14 +184,10 @@
185184
"uint8arrays": "^4.0.3",
186185
"wherearewe": "^2.0.1"
187186
},
188-
"typedoc": {
189-
"entryPoint": "./src/index.ts"
190-
},
191187
"browser": {
192188
"./dist/src/utils/glob-source.js": false,
193-
"node:fs": false,
194-
"node:fs/promises": false,
195-
"node:path": false,
196-
"node:url": false
189+
"fs": false,
190+
"path": false,
191+
"url": false
197192
}
198193
}

packages/unixfs/src/commands/stat.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { InvalidPBNodeError, NotUnixFSError, UnknownError } from '../errors.js'
88
import { resolve } from './utils/resolve.js'
99
import type { StatOptions, UnixFSStats } from '../index.js'
1010
import type { Blocks } from '@helia/interface/blocks'
11-
import type { AbortOptions } from '@libp2p/interfaces'
11+
import type { AbortOptions } from '@libp2p/interface'
1212
import type { Mtime } from 'ipfs-unixfs'
1313
import type { CID } from 'multiformats/cid'
1414

packages/unixfs/src/commands/utils/add-link.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { isOverShardThreshold } from './is-over-shard-threshold.js'
1919
import type { Directory } from './cid-to-directory.js'
2020
import type { Blocks } from '@helia/interface/blocks'
2121
import type { PBNode, PBLink } from '@ipld/dag-pb/interface'
22-
import type { AbortOptions } from '@libp2p/interfaces'
22+
import type { AbortOptions } from '@libp2p/interface'
2323
import type { ImportResult } from 'ipfs-unixfs-importer'
2424

2525
const log = logger('helia:unixfs:components:utils:add-link')
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
export const SHARD_SPLIT_THRESHOLD_BYTES = 262144

packages/unixfs/src/commands/utils/hamt-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import { persist } from './persist.js'
1616
import type { PersistOptions } from './persist.js'
1717
import type { Blocks } from '@helia/interface/blocks'
18-
import type { AbortOptions } from '@libp2p/interfaces'
18+
import type { AbortOptions } from '@libp2p/interface'
1919
import type { Mtime } from 'ipfs-unixfs'
2020
import type { ImportResult } from 'ipfs-unixfs-importer'
2121
import type { CID, Version } from 'multiformats/cid'

packages/unixfs/src/commands/utils/is-over-shard-threshold.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { UnixFS } from 'ipfs-unixfs'
33
import { CID_V0, CID_V1 } from './dir-sharded.js'
44
import type { Blocks } from '@helia/interface/blocks'
55
import type { PBNode } from '@ipld/dag-pb'
6-
import type { AbortOptions } from '@libp2p/interfaces'
6+
import type { AbortOptions } from '@libp2p/interface'
77

88
/**
99
* Estimate node size only based on DAGLink name and CID byte lengths

packages/unixfs/src/commands/utils/remove-link.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import * as dagPB from '@ipld/dag-pb'
32
import { logger } from '@libp2p/logger'
43
import { UnixFS } from 'ipfs-unixfs'
@@ -14,7 +13,7 @@ import { persist } from './persist.js'
1413
import type { Directory } from './cid-to-directory.js'
1514
import type { Blocks } from '@helia/interface/blocks'
1615
import type { PBNode } from '@ipld/dag-pb'
17-
import type { AbortOptions } from '@libp2p/interfaces'
16+
import type { AbortOptions } from '@libp2p/interface'
1817
import type { CID, Version } from 'multiformats/cid'
1918

2019
const log = logger('helia:unixfs:utils:remove-link')

packages/unixfs/src/commands/utils/resolve.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { addLink } from './add-link.js'
55
import { cidToDirectory } from './cid-to-directory.js'
66
import { cidToPBLink } from './cid-to-pblink.js'
77
import type { Blocks } from '@helia/interface/blocks'
8-
import type { AbortOptions } from '@libp2p/interfaces'
8+
import type { AbortOptions } from '@libp2p/interface'
99
import type { CID } from 'multiformats/cid'
1010

1111
const log = logger('helia:unixfs:components:utils:resolve')

packages/unixfs/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import { rm } from './commands/rm.js'
5353
import { stat } from './commands/stat.js'
5454
import { touch } from './commands/touch.js'
5555
import type { Blocks, GetBlockProgressEvents, PutBlockProgressEvents } from '@helia/interface/blocks'
56-
import type { AbortOptions } from '@libp2p/interfaces'
56+
import type { AbortOptions } from '@libp2p/interface'
5757
import type { Mtime, UnixFS as IPFSUnixFS } from 'ipfs-unixfs'
5858
import type { ExporterProgressEvents, UnixFSEntry } from 'ipfs-unixfs-exporter'
5959
import type { ByteStream, DirectoryCandidate, FileCandidate, ImportCandidateStream, ImporterOptions, ImporterProgressEvents, ImportResult } from 'ipfs-unixfs-importer'
@@ -384,7 +384,7 @@ export interface UnixFS {
384384
* @example
385385
*
386386
* ```typescript
387-
* import fs from 'node:fs'
387+
* import fs from 'fs'
388388
*
389389
* const stream = fs.createReadStream('./foo.txt')
390390
* const cid = await fs.addByteStream(stream)

packages/unixfs/src/utils/glob-source.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import fs from 'node:fs'
2-
import fsp from 'node:fs/promises'
3-
import Path from 'node:path'
1+
import fs from 'fs'
2+
import fsp from 'fs/promises'
3+
import Path from 'path'
44
import glob from 'it-glob'
55
import { InvalidParametersError } from '../errors.js'
66
import type { MtimeLike } from 'ipfs-unixfs'

packages/unixfs/test/utils/glob-source.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-env mocha */
22

3-
import fs from 'node:fs'
4-
import Path from 'node:path'
5-
import { fileURLToPath } from 'node:url'
3+
import fs from 'fs'
4+
import Path from 'path'
5+
import { fileURLToPath } from 'url'
66
import { expect } from 'aegir/chai'
77
import all from 'it-all'
88
import { isNode } from 'wherearewe'

packages/unixfs/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+
}

typedoc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"name": "Helia UnixFS"
4+
}

0 commit comments

Comments
 (0)