Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
deps: bump @helia/interface from 1.2.2 to 2.0.0 (#87)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dependabot[bot] and achingbrain authored Sep 14, 2023
1 parent fd8f610 commit 098a305
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 47 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,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=8192 aegir docs -- --exclude packages/interop",
"docs:no-publish": "NODE_OPTIONS=--max_old_space_size=8192 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.8"
"aegir": "^40.0.13"
},
"type": "module",
"workspaces": [
Expand Down
25 changes: 11 additions & 14 deletions packages/interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,30 @@
"test:electron-main": "aegir test -t electron-main"
},
"devDependencies": {
"@chainsafe/libp2p-noise": "^12.0.1",
"@chainsafe/libp2p-yamux": "^4.0.2",
"@helia/interface": "^1.0.0",
"@chainsafe/libp2p-noise": "^13.0.1",
"@chainsafe/libp2p-yamux": "^5.0.0",
"@helia/interface": "^2.0.0",
"@helia/unixfs": "^1.0.0",
"@libp2p/tcp": "^7.0.1",
"@libp2p/websockets": "^6.0.1",
"aegir": "^39.0.8",
"@libp2p/tcp": "^8.0.6",
"@libp2p/websockets": "^7.0.6",
"aegir": "^40.0.13",
"blockstore-core": "^4.0.1",
"datastore-core": "^9.0.3",
"go-ipfs": "^0.20.0",
"helia": "^1.0.0",
"go-ipfs": "^0.22.0",
"helia": "^2.0.1",
"ipfs-core-types": "^0.14.0",
"ipfs-unixfs-importer": "^15.1.0",
"ipfsd-ctl": "^13.0.0",
"it-to-buffer": "^4.0.1",
"kubo-rpc-client": "^3.0.0",
"libp2p": "^0.45.3",
"libp2p": "^0.46.10",
"merge-options": "^3.0.4",
"multiformats": "^11.0.1",
"multiformats": "^12.1.1",
"wherearewe": "^2.0.1"
},
"browser": {
"./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
}
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 @@

/* eslint-disable @typescript-eslint/ban-ts-comment,@typescript-eslint/prefer-ts-expect-error */
// @ts-ignore no types - TODO: remove me once the next version of npm-go-ipfs has shipped
import * as goIpfs from 'go-ipfs'
Expand Down
21 changes: 8 additions & 13 deletions packages/unixfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,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 @@ -155,10 +154,10 @@
"release": "aegir release"
},
"dependencies": {
"@helia/interface": "^1.0.0",
"@helia/interface": "^2.0.0",
"@ipld/dag-pb": "^4.0.0",
"@libp2p/interfaces": "^3.3.1",
"@libp2p/logger": "^2.0.6",
"@libp2p/interface": "^0.1.2",
"@libp2p/logger": "^3.0.2",
"@multiformats/murmur3": "^2.1.2",
"hamt-sharding": "^3.0.2",
"interface-blockstore": "^5.0.0",
Expand All @@ -169,12 +168,12 @@
"it-last": "^3.0.1",
"it-pipe": "^3.0.1",
"merge-options": "^3.0.4",
"multiformats": "^11.0.1",
"multiformats": "^12.1.1",
"progress-events": "^1.0.0",
"sparse-array": "^1.3.2"
},
"devDependencies": {
"aegir": "^39.0.8",
"aegir": "^40.0.13",
"blockstore-core": "^4.0.1",
"delay": "^6.0.0",
"iso-url": "^1.2.1",
Expand All @@ -185,14 +184,10 @@
"uint8arrays": "^4.0.3",
"wherearewe": "^2.0.1"
},
"typedoc": {
"entryPoint": "./src/index.ts"
},
"browser": {
"./dist/src/utils/glob-source.js": false,
"node:fs": false,
"node:fs/promises": false,
"node:path": false,
"node:url": false
"fs": false,
"path": false,
"url": false
}
}
2 changes: 1 addition & 1 deletion packages/unixfs/src/commands/stat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { InvalidPBNodeError, NotUnixFSError, UnknownError } from '../errors.js'
import { resolve } from './utils/resolve.js'
import type { StatOptions, UnixFSStats } from '../index.js'
import type { Blocks } from '@helia/interface/blocks'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Mtime } from 'ipfs-unixfs'
import type { CID } from 'multiformats/cid'

Expand Down
2 changes: 1 addition & 1 deletion packages/unixfs/src/commands/utils/add-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { isOverShardThreshold } from './is-over-shard-threshold.js'
import type { Directory } from './cid-to-directory.js'
import type { Blocks } from '@helia/interface/blocks'
import type { PBNode, PBLink } from '@ipld/dag-pb/interface'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { ImportResult } from 'ipfs-unixfs-importer'

const log = logger('helia:unixfs:components:utils:add-link')
Expand Down
1 change: 0 additions & 1 deletion packages/unixfs/src/commands/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

export const SHARD_SPLIT_THRESHOLD_BYTES = 262144
2 changes: 1 addition & 1 deletion packages/unixfs/src/commands/utils/hamt-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { persist } from './persist.js'
import type { PersistOptions } from './persist.js'
import type { Blocks } from '@helia/interface/blocks'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Mtime } from 'ipfs-unixfs'
import type { ImportResult } from 'ipfs-unixfs-importer'
import type { CID, Version } from 'multiformats/cid'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { UnixFS } from 'ipfs-unixfs'
import { CID_V0, CID_V1 } from './dir-sharded.js'
import type { Blocks } from '@helia/interface/blocks'
import type { PBNode } from '@ipld/dag-pb'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'

/**
* Estimate node size only based on DAGLink name and CID byte lengths
Expand Down
3 changes: 1 addition & 2 deletions packages/unixfs/src/commands/utils/remove-link.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import * as dagPB from '@ipld/dag-pb'
import { logger } from '@libp2p/logger'
import { UnixFS } from 'ipfs-unixfs'
Expand All @@ -14,7 +13,7 @@ import { persist } from './persist.js'
import type { Directory } from './cid-to-directory.js'
import type { Blocks } from '@helia/interface/blocks'
import type { PBNode } from '@ipld/dag-pb'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { CID, Version } from 'multiformats/cid'

const log = logger('helia:unixfs:utils:remove-link')
Expand Down
2 changes: 1 addition & 1 deletion packages/unixfs/src/commands/utils/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { addLink } from './add-link.js'
import { cidToDirectory } from './cid-to-directory.js'
import { cidToPBLink } from './cid-to-pblink.js'
import type { Blocks } from '@helia/interface/blocks'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { CID } from 'multiformats/cid'

const log = logger('helia:unixfs:components:utils:resolve')
Expand Down
4 changes: 2 additions & 2 deletions packages/unixfs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import { rm } from './commands/rm.js'
import { stat } from './commands/stat.js'
import { touch } from './commands/touch.js'
import type { Blocks, GetBlockProgressEvents, PutBlockProgressEvents } from '@helia/interface/blocks'
import type { AbortOptions } from '@libp2p/interfaces'
import type { AbortOptions } from '@libp2p/interface'
import type { Mtime, UnixFS as IPFSUnixFS } from 'ipfs-unixfs'
import type { ExporterProgressEvents, UnixFSEntry } from 'ipfs-unixfs-exporter'
import type { ByteStream, DirectoryCandidate, FileCandidate, ImportCandidateStream, ImporterOptions, ImporterProgressEvents, ImportResult } from 'ipfs-unixfs-importer'
Expand Down Expand Up @@ -384,7 +384,7 @@ export interface UnixFS {
* @example
*
* ```typescript
* import fs from 'node:fs'
* import fs from 'fs'
*
* const stream = fs.createReadStream('./foo.txt')
* const cid = await fs.addByteStream(stream)
Expand Down
6 changes: 3 additions & 3 deletions packages/unixfs/src/utils/glob-source.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'node:fs'
import fsp from 'node:fs/promises'
import Path from 'node:path'
import fs from 'fs'
import fsp from 'fs/promises'
import Path from 'path'
import glob from 'it-glob'
import { InvalidParametersError } from '../errors.js'
import type { MtimeLike } from 'ipfs-unixfs'
Expand Down
6 changes: 3 additions & 3 deletions packages/unixfs/test/utils/glob-source.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-env mocha */

import fs from 'node:fs'
import Path from 'node:path'
import { fileURLToPath } from 'node:url'
import fs from 'fs'
import Path from 'path'
import { fileURLToPath } from 'url'
import { expect } from 'aegir/chai'
import all from 'it-all'
import { isNode } from 'wherearewe'
Expand Down
6 changes: 6 additions & 0 deletions packages/unixfs/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"entryPoints": [
"./src/index.ts",
"./src/errors.ts"
]
}
4 changes: 4 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://typedoc.org/schema.json",
"name": "Helia UnixFS"
}

0 comments on commit 098a305

Please sign in to comment.