From 440a76b6b4c3c0789b1ec86993d14409342ff046 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:22:23 +0000 Subject: [PATCH 1/4] deps(dev): bump helia from 2.0.1 to 2.0.3 Bumps [helia](https://github.com/ipfs/helia) from 2.0.1 to 2.0.3. - [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-v2.0.1...helia-v2.0.3) --- updated-dependencies: - dependency-name: helia dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- packages/interop/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/interop/package.json b/packages/interop/package.json index da51e9d..59518cd 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -52,7 +52,7 @@ "@helia/mfs": "^1.0.0", "aegir": "^40.0.9", "go-ipfs": "^0.22.0", - "helia": "2.0.1", + "helia": "2.0.3", "ipfsd-ctl": "^13.0.0", "kubo-rpc-client": "^3.0.0", "merge-options": "^3.0.4", From d86102f942910e084758f9d9b243bf84958ec438 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Sat, 7 Oct 2023 10:40:41 +0100 Subject: [PATCH 2/4] chore: update project config and fix linting --- package.json | 9 +++++---- packages/interop/package.json | 3 ++- packages/mfs/package.json | 3 ++- packages/mfs/src/index.ts | 20 ++++++++++---------- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index c050bf2..5ae5cc0 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,14 @@ "generate": "aegir run generate", "build": "aegir run build", "lint": "aegir run lint", - "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" + "release": "run-s build docs:no-publish npm:release docs", + "docs": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs -- --exclude packages/interop --excludeExternals", + "docs:no-publish": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs --publish false -- --exclude packages/interop" }, "devDependencies": { - "aegir": "^40.0.9" + "aegir": "^41.0.0", + "npm-run-all": "^4.1.5" }, "type": "module", "workspaces": [ diff --git a/packages/interop/package.json b/packages/interop/package.json index 59518cd..cf3ca88 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -31,6 +31,7 @@ "eslintConfig": { "extends": "ipfs", "parserOptions": { + "project": true, "sourceType": "module" } }, @@ -50,7 +51,7 @@ "devDependencies": { "@helia/interface": "^2.0.0", "@helia/mfs": "^1.0.0", - "aegir": "^40.0.9", + "aegir": "^41.0.3", "go-ipfs": "^0.22.0", "helia": "2.0.3", "ipfsd-ctl": "^13.0.0", diff --git a/packages/mfs/package.json b/packages/mfs/package.json index 8dd7bc2..e66fc14 100644 --- a/packages/mfs/package.json +++ b/packages/mfs/package.json @@ -31,6 +31,7 @@ "eslintConfig": { "extends": "ipfs", "parserOptions": { + "project": true, "sourceType": "module" } }, @@ -148,7 +149,7 @@ "multiformats": "^12.0.1" }, "devDependencies": { - "aegir": "^40.0.9", + "aegir": "^41.0.3", "blockstore-core": "^4.0.1", "datastore-core": "^9.2.0", "delay": "^6.0.0", diff --git a/packages/mfs/src/index.ts b/packages/mfs/src/index.ts index bbc9bde..de9e930 100644 --- a/packages/mfs/src/index.ts +++ b/packages/mfs/src/index.ts @@ -96,7 +96,7 @@ export interface MFS { * await fs.writeBytes(Uint8Array.from([0, 1, 2, 3]), '/foo.txt') * ``` */ - writeBytes: (bytes: Uint8Array, path: string, options?: Partial) => Promise + writeBytes(bytes: Uint8Array, path: string, options?: Partial): Promise /** * Add a stream of `Uint8Array` to your MFS as a file. @@ -110,7 +110,7 @@ export interface MFS { * await fs.writeByteStream(stream, '/foo.txt') * ``` */ - writeByteStream: (bytes: ByteStream, path: string, options?: Partial) => Promise + writeByteStream(bytes: ByteStream, path: string, options?: Partial): Promise /** * Retrieve the contents of a file from your MFS. @@ -123,7 +123,7 @@ export interface MFS { * } * ``` */ - cat: (path: string, options?: Partial) => AsyncIterable + cat(path: string, options?: Partial): AsyncIterable /** * Change the permissions on a file or directory in your MFS @@ -141,7 +141,7 @@ export interface MFS { * console.info(afterStats) * ``` */ - chmod: (path: string, mode: number, options?: Partial) => Promise + chmod(path: string, mode: number, options?: Partial): Promise /** * Add a file or directory to a target directory in your MFS. @@ -165,7 +165,7 @@ export interface MFS { * await fs.cp('/foo.txt', '/bar.txt') * ``` */ - cp: (source: CID | string, destination: string, options?: Partial) => Promise + cp(source: CID | string, destination: string, options?: Partial): Promise /** * List directory contents from your MFS. @@ -178,7 +178,7 @@ export interface MFS { * } * ``` */ - ls: (path?: string, options?: Partial) => AsyncIterable + ls(path?: string, options?: Partial): AsyncIterable /** * Make a new directory in your MFS. @@ -189,7 +189,7 @@ export interface MFS { * await fs.mkdir('/new-dir') * ``` */ - mkdir: (path: string, options?: Partial) => Promise + mkdir(path: string, options?: Partial): Promise /** * Remove a file or directory from your MFS. @@ -201,7 +201,7 @@ export interface MFS { * await fs.rm('/new-dir') * ``` */ - rm: (path: string, options?: Partial) => Promise + rm(path: string, options?: Partial): Promise /** * Return statistics about a UnixFS DAG in your MFS. @@ -215,7 +215,7 @@ export interface MFS { * console.info(stats) * ``` */ - stat: (path: string, options?: Partial) => Promise + stat(path: string, options?: Partial): Promise /** * Update the mtime of a UnixFS DAG in your MFS. @@ -233,7 +233,7 @@ export interface MFS { * console.info(afterStats) * ``` */ - touch: (path: string, options?: Partial) => Promise + touch(path: string, options?: Partial): Promise } interface PathEntry { From b39127146093947264989879eee16dba9430deef Mon Sep 17 00:00:00 2001 From: achingbrain Date: Sat, 7 Oct 2023 10:41:45 +0100 Subject: [PATCH 3/4] chore: use version ranges --- packages/interop/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/interop/package.json b/packages/interop/package.json index cf3ca88..e704755 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -53,7 +53,7 @@ "@helia/mfs": "^1.0.0", "aegir": "^41.0.3", "go-ipfs": "^0.22.0", - "helia": "2.0.3", + "helia": "^2.0.3", "ipfsd-ctl": "^13.0.0", "kubo-rpc-client": "^3.0.0", "merge-options": "^3.0.4", From 3a469d489a874f8c84698ce309abe3c6d4744ec9 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Sat, 7 Oct 2023 10:53:14 +0100 Subject: [PATCH 4/4] chore: update scripts --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 5ae5cc0..ee3e238 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "lint": "aegir run lint", "dep-check": "aegir run dep-check", "release": "run-s build docs:no-publish npm:release docs", + "npm:release": "aegir run release", "docs": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs -- --exclude packages/interop --excludeExternals", "docs:no-publish": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs --publish false -- --exclude packages/interop" },