From 0cdfcd674513b21aab7e27b446a6f2181c9ba842 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 2 Feb 2024 16:35:20 +0100 Subject: [PATCH 01/10] chore: rename master to main --- .github/workflows/js-test-and-release.yml | 2 +- README.md | 2 +- package.json | 2 +- packages/ipfs-unixfs-exporter/README.md | 8 +------- packages/ipfs-unixfs-exporter/package.json | 2 +- packages/ipfs-unixfs-importer/README.md | 10 +--------- packages/ipfs-unixfs/README.md | 2 +- packages/ipfs-unixfs/package.json | 2 +- 8 files changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/js-test-and-release.yml b/.github/workflows/js-test-and-release.yml index 359eb975..1d7ff79c 100644 --- a/.github/workflows/js-test-and-release.yml +++ b/.github/workflows/js-test-and-release.yml @@ -3,7 +3,7 @@ name: test & maybe release on: push: branches: - - master + - main pull_request: workflow_dispatch: diff --git a/README.md b/README.md index a617dbb7..078e564a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) [![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs-unixfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs-unixfs) -[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs-unixfs/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/ipfs/js-ipfs-unixfs/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs-unixfs/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/ipfs/js-ipfs-unixfs/actions/workflows/js-test-and-release.yml?query=branch%3Amain) > JS implementation of the IPFS UnixFS diff --git a/package.json b/package.json index f0b522d5..80295a5e 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ ], "release": { "branches": [ - "master" + "main" ], "plugins": [ [ diff --git a/packages/ipfs-unixfs-exporter/README.md b/packages/ipfs-unixfs-exporter/README.md index 09e866df..ceb8ddf0 100644 --- a/packages/ipfs-unixfs-exporter/README.md +++ b/packages/ipfs-unixfs-exporter/README.md @@ -3,7 +3,7 @@ [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) [![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs-unixfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs-unixfs) -[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs-unixfs/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/ipfs/js-ipfs-unixfs/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs-unixfs/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/ipfs/js-ipfs-unixfs/actions/workflows/js-test-and-release.yml?query=branch%3Amain) > JavaScript implementation of the UnixFs exporter used by IPFS @@ -88,9 +88,3 @@ Please be aware that all interactions related to this repo are subject to the IP Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. [![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md) - -[dag API]: https://github.com/ipfs/interface-ipfs-core/blob/master/SPEC/DAG.md - -[blockstore]: https://github.com/ipfs/js-ipfs-interfaces/tree/master/packages/interface-blockstore#readme - -[UnixFS]: https://github.com/ipfs/specs/tree/master/unixfs diff --git a/packages/ipfs-unixfs-exporter/package.json b/packages/ipfs-unixfs-exporter/package.json index 12993df4..9e2c900c 100644 --- a/packages/ipfs-unixfs-exporter/package.json +++ b/packages/ipfs-unixfs-exporter/package.json @@ -3,7 +3,7 @@ "version": "13.5.0", "description": "JavaScript implementation of the UnixFs exporter used by IPFS", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/master/packages/ipfs-unixfs-exporter#readme", + "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs-exporter#readme", "repository": { "type": "git", "url": "git+https://github.com/ipfs/js-ipfs-unixfs.git" diff --git a/packages/ipfs-unixfs-importer/README.md b/packages/ipfs-unixfs-importer/README.md index c8544ca3..2b6899ac 100644 --- a/packages/ipfs-unixfs-importer/README.md +++ b/packages/ipfs-unixfs-importer/README.md @@ -3,7 +3,7 @@ [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) [![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs-unixfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs-unixfs) -[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs-unixfs/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/ipfs/js-ipfs-unixfs/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs-unixfs/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/ipfs/js-ipfs-unixfs/actions/workflows/js-test-and-release.yml?query=branch%3Amain) > JavaScript implementation of the UnixFs importer used by IPFS @@ -105,11 +105,3 @@ Please be aware that all interactions related to this repo are subject to the IP Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. [![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md) - -[blockstore]: https://github.com/ipfs/js-ipfs-interfaces/tree/master/packages/interface-blockstore#readme - -[UnixFS]: https://github.com/ipfs/specs/tree/master/unixfs - -[IPLD]: https://github.com/ipld/js-ipld - -[CID]: https://github.com/multiformats/js-cid diff --git a/packages/ipfs-unixfs/README.md b/packages/ipfs-unixfs/README.md index 53b8db35..93ddc560 100644 --- a/packages/ipfs-unixfs/README.md +++ b/packages/ipfs-unixfs/README.md @@ -3,7 +3,7 @@ [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) [![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs-unixfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs-unixfs) -[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs-unixfs/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/ipfs/js-ipfs-unixfs/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) +[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs-unixfs/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/ipfs/js-ipfs-unixfs/actions/workflows/js-test-and-release.yml?query=branch%3Amain) > JavaScript implementation of IPFS' unixfs (a Unix FileSystem representation on top of a MerkleDAG) diff --git a/packages/ipfs-unixfs/package.json b/packages/ipfs-unixfs/package.json index d190ddf2..c4dca532 100644 --- a/packages/ipfs-unixfs/package.json +++ b/packages/ipfs-unixfs/package.json @@ -3,7 +3,7 @@ "version": "11.1.3", "description": "JavaScript implementation of IPFS' unixfs (a Unix FileSystem representation on top of a MerkleDAG)", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/master/packages/ipfs-unixfs#readme", + "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs#readme", "repository": { "type": "git", "url": "git+https://github.com/ipfs/js-ipfs-unixfs.git" From 4749d9a7c1eddd86b8fc42c3fa47f88c7b1b75ae Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 14 Feb 2024 17:16:18 +0000 Subject: [PATCH 02/10] chore: Update .github/workflows/stale.yml [skip ci] From cdc7efd255284b3d156dff0a23cb535dbdc26505 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Thu, 21 Mar 2024 17:24:48 +0000 Subject: [PATCH 03/10] ci: uci/copy-templates (#401) * chore: add or force update .github/workflows/js-test-and-release.yml * chore: add or force update .github/workflows/js-test-and-release.yml * chore: add or force update .github/workflows/js-test-and-release.yml --- .github/workflows/js-test-and-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/js-test-and-release.yml b/.github/workflows/js-test-and-release.yml index 1d7ff79c..28068134 100644 --- a/.github/workflows/js-test-and-release.yml +++ b/.github/workflows/js-test-and-release.yml @@ -19,9 +19,10 @@ concurrency: jobs: js-test-and-release: - uses: pl-strflt/uci/.github/workflows/js-test-and-release.yml@v0.0 + uses: ipdxco/unified-github-workflows/.github/workflows/js-test-and-release.yml@v1.0 secrets: DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From aea58c40a4a2457ddf44454befa1eb25d4caa016 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Fri, 5 Apr 2024 12:57:40 +0100 Subject: [PATCH 04/10] fix: add sideEffects false to package.json to enable tree shaking (#402) Also updates project config --- README.md | 2 + package.json | 56 +++++++++++----------- packages/ipfs-unixfs-exporter/README.md | 17 ++++++- packages/ipfs-unixfs-exporter/package.json | 47 +++++++++--------- packages/ipfs-unixfs-exporter/typedoc.json | 3 +- packages/ipfs-unixfs-importer/README.md | 17 ++++++- packages/ipfs-unixfs-importer/package.json | 37 +++++++------- packages/ipfs-unixfs/README.md | 17 ++++++- packages/ipfs-unixfs/package.json | 13 ++--- packages/ipfs-unixfs/typedoc.json | 3 +- 10 files changed, 130 insertions(+), 82 deletions(-) diff --git a/README.md b/README.md index 078e564a..9d0fa234 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# js-ipfs-unixfs + [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) [![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs-unixfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs-unixfs) diff --git a/package.json b/package.json index 80295a5e..3021f1eb 100644 --- a/package.json +++ b/package.json @@ -12,33 +12,6 @@ "url": "https://github.com/ipfs/js-ipfs-unixfs/issues" }, "private": true, - "scripts": { - "reset": "aegir run clean && aegir clean **/node_modules **/package-lock.json", - "test": "aegir run test", - "test:node": "aegir run test:node", - "test:chrome": "aegir run test:chrome", - "test:chrome-webworker": "aegir run test:chrome-webworker", - "test:firefox": "aegir run test:firefox", - "test:firefox-webworker": "aegir run test:firefox-webworker", - "test:electron-main": "aegir run test:electron-main", - "test:electron-renderer": "aegir run test:electron-renderer", - "clean": "aegir run clean", - "generate": "aegir run generate", - "build": "aegir run build", - "lint": "aegir run lint", - "dep-check": "aegir run dep-check", - "release": "run-s build docs:no-publish npm:release docs", - "npm:release": "aegir release", - "docs": "aegir docs", - "docs:no-publish": "aegir docs --publish false" - }, - "devDependencies": { - "aegir": "^42.2.2", - "npm-run-all": "^4.1.5" - }, - "workspaces": [ - "packages/*" - ], "release": { "branches": [ "main" @@ -123,5 +96,32 @@ "@semantic-release/github", "@semantic-release/git" ] - } + }, + "scripts": { + "reset": "aegir run clean && aegir clean **/node_modules **/package-lock.json", + "test": "aegir run test", + "test:node": "aegir run test:node", + "test:chrome": "aegir run test:chrome", + "test:chrome-webworker": "aegir run test:chrome-webworker", + "test:firefox": "aegir run test:firefox", + "test:firefox-webworker": "aegir run test:firefox-webworker", + "test:electron-main": "aegir run test:electron-main", + "test:electron-renderer": "aegir run test:electron-renderer", + "clean": "aegir run clean", + "generate": "aegir run generate", + "build": "aegir run build", + "lint": "aegir run lint", + "dep-check": "aegir run dep-check", + "release": "run-s build docs:no-publish npm:release docs", + "npm:release": "aegir release", + "docs": "aegir docs", + "docs:no-publish": "aegir docs --publish false" + }, + "devDependencies": { + "aegir": "^42.2.2", + "npm-run-all": "^4.1.5" + }, + "workspaces": [ + "packages/*" + ] } diff --git a/packages/ipfs-unixfs-exporter/README.md b/packages/ipfs-unixfs-exporter/README.md index ceb8ddf0..9ddd6bcb 100644 --- a/packages/ipfs-unixfs-exporter/README.md +++ b/packages/ipfs-unixfs-exporter/README.md @@ -1,4 +1,4 @@ -# ipfs-unixfs-exporter +# ipfs-unixfs-exporter [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) @@ -9,6 +9,21 @@ # About + + The UnixFS Exporter provides a means to read DAGs from a blockstore given a CID. ## Example diff --git a/packages/ipfs-unixfs-exporter/package.json b/packages/ipfs-unixfs-exporter/package.json index 9e2c900c..c007b0c0 100644 --- a/packages/ipfs-unixfs-exporter/package.json +++ b/packages/ipfs-unixfs-exporter/package.json @@ -50,45 +50,46 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@ipld/dag-cbor": "^9.0.0", - "@ipld/dag-json": "^10.1.7", - "@ipld/dag-pb": "^4.0.0", - "@multiformats/murmur3": "^2.0.0", + "@ipld/dag-cbor": "^9.2.0", + "@ipld/dag-json": "^10.2.0", + "@ipld/dag-pb": "^4.1.0", + "@multiformats/murmur3": "^2.1.8", "err-code": "^3.0.1", - "hamt-sharding": "^3.0.0", - "interface-blockstore": "^5.0.0", + "hamt-sharding": "^3.0.6", + "interface-blockstore": "^5.2.10", "ipfs-unixfs": "^11.0.0", - "it-filter": "^3.0.2", - "it-last": "^3.0.2", - "it-map": "^3.0.3", - "it-parallel": "^3.0.0", + "it-filter": "^3.0.4", + "it-last": "^3.0.4", + "it-map": "^3.0.5", + "it-parallel": "^3.0.6", "it-pipe": "^3.0.1", - "it-pushable": "^3.1.0", - "multiformats": "^13.0.0", + "it-pushable": "^3.2.3", + "multiformats": "^13.1.0", "p-queue": "^8.0.1", "progress-events": "^1.0.0" }, "devDependencies": { - "@types/readable-stream": "^4.0.1", - "@types/sinon": "^17.0.2", - "aegir": "^42.2.2", - "blockstore-core": "^4.0.1", + "@types/readable-stream": "^4.0.11", + "@types/sinon": "^17.0.3", + "aegir": "^42.2.5", + "blockstore-core": "^4.4.0", "delay": "^6.0.0", "ipfs-unixfs-importer": "^15.0.0", "iso-random-stream": "^2.0.2", - "it-all": "^3.0.2", - "it-buffer-stream": "^3.0.0", + "it-all": "^3.0.4", + "it-buffer-stream": "^3.0.6", "it-drain": "^3.0.5", - "it-first": "^3.0.2", - "it-to-buffer": "^4.0.2", + "it-first": "^3.0.4", + "it-to-buffer": "^4.0.5", "merge-options": "^3.0.4", - "readable-stream": "^4.4.0", + "readable-stream": "^4.5.2", "sinon": "^17.0.1", - "uint8arrays": "^5.0.0", + "uint8arrays": "^5.0.3", "wherearewe": "^2.0.1" }, "browser": { "fs": false, "readable-stream": false - } + }, + "sideEffects": false } diff --git a/packages/ipfs-unixfs-exporter/typedoc.json b/packages/ipfs-unixfs-exporter/typedoc.json index 3be48369..f599dc72 100644 --- a/packages/ipfs-unixfs-exporter/typedoc.json +++ b/packages/ipfs-unixfs-exporter/typedoc.json @@ -1,6 +1,5 @@ { "entryPoints": [ "./src/index.ts" - ], - "readme": "none" + ] } diff --git a/packages/ipfs-unixfs-importer/README.md b/packages/ipfs-unixfs-importer/README.md index 2b6899ac..7ac03ff0 100644 --- a/packages/ipfs-unixfs-importer/README.md +++ b/packages/ipfs-unixfs-importer/README.md @@ -1,4 +1,4 @@ -# ipfs-unixfs-importer +# ipfs-unixfs-importer [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) @@ -9,6 +9,21 @@ # About + + ## Example Let's create a little directory to import: diff --git a/packages/ipfs-unixfs-importer/package.json b/packages/ipfs-unixfs-importer/package.json index 74cbb353..47793b6f 100644 --- a/packages/ipfs-unixfs-importer/package.json +++ b/packages/ipfs-unixfs-importer/package.json @@ -3,7 +3,7 @@ "version": "15.2.4", "description": "JavaScript implementation of the UnixFs importer used by IPFS", "license": "Apache-2.0 OR MIT", - "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/master/packages/ipfs-unixfs-importer#readme", + "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs-importer#readme", "repository": { "type": "git", "url": "git+https://github.com/ipfs/js-ipfs-unixfs.git" @@ -74,30 +74,31 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@ipld/dag-pb": "^4.0.0", - "@multiformats/murmur3": "^2.0.0", + "@ipld/dag-pb": "^4.1.0", + "@multiformats/murmur3": "^2.1.8", "err-code": "^3.0.1", - "hamt-sharding": "^3.0.0", - "interface-blockstore": "^5.0.0", - "interface-store": "^5.0.1", + "hamt-sharding": "^3.0.6", + "interface-blockstore": "^5.2.10", + "interface-store": "^5.1.8", "ipfs-unixfs": "^11.0.0", - "it-all": "^3.0.2", - "it-batch": "^3.0.2", - "it-first": "^3.0.2", - "it-parallel-batch": "^3.0.1", - "multiformats": "^13.0.0", + "it-all": "^3.0.4", + "it-batch": "^3.0.4", + "it-first": "^3.0.4", + "it-parallel-batch": "^3.0.4", + "multiformats": "^13.1.0", "progress-events": "^1.0.0", - "rabin-wasm": "^0.1.4", - "uint8arraylist": "^2.4.3", - "uint8arrays": "^5.0.0" + "rabin-wasm": "^0.1.5", + "uint8arraylist": "^2.4.8", + "uint8arrays": "^5.0.3" }, "devDependencies": { - "aegir": "^42.2.2", - "blockstore-core": "^4.0.1", - "it-last": "^3.0.2", + "aegir": "^42.2.5", + "blockstore-core": "^4.4.0", + "it-last": "^3.0.4", "wherearewe": "^2.0.1" }, "browser": { "fs": false - } + }, + "sideEffects": false } diff --git a/packages/ipfs-unixfs/README.md b/packages/ipfs-unixfs/README.md index 93ddc560..eb6a4ccc 100644 --- a/packages/ipfs-unixfs/README.md +++ b/packages/ipfs-unixfs/README.md @@ -1,4 +1,4 @@ -# ipfs-unixfs +# ipfs-unixfs [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) @@ -9,6 +9,21 @@ # About + + This module contains the protobuf definition of the UnixFS data structure found at the root of all UnixFS DAGs. The UnixFS spec can be found in the [ipfs/specs repository](http://github.com/ipfs/specs) diff --git a/packages/ipfs-unixfs/package.json b/packages/ipfs-unixfs/package.json index c4dca532..b5462ed4 100644 --- a/packages/ipfs-unixfs/package.json +++ b/packages/ipfs-unixfs/package.json @@ -55,15 +55,16 @@ }, "dependencies": { "err-code": "^3.0.1", - "protons-runtime": "^5.0.0", - "uint8arraylist": "^2.4.3" + "protons-runtime": "^5.4.0", + "uint8arraylist": "^2.4.8" }, "devDependencies": { - "aegir": "^42.2.2", - "protons": "^7.0.2", - "uint8arrays": "^5.0.0" + "aegir": "^42.2.5", + "protons": "^7.5.0", + "uint8arrays": "^5.0.3" }, "browser": { "fs": false - } + }, + "sideEffects": false } diff --git a/packages/ipfs-unixfs/typedoc.json b/packages/ipfs-unixfs/typedoc.json index 3be48369..f599dc72 100644 --- a/packages/ipfs-unixfs/typedoc.json +++ b/packages/ipfs-unixfs/typedoc.json @@ -1,6 +1,5 @@ { "entryPoints": [ "./src/index.ts" - ], - "readme": "none" + ] } From 9b99ccf932a17e2f36cc7e4b749ad4b42956b89e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 5 Apr 2024 12:06:26 +0000 Subject: [PATCH 05/10] chore(release): 11.1.4 [skip ci] ## ipfs-unixfs [11.1.4](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-11.1.3...ipfs-unixfs-11.1.4) (2024-04-05) ### Bug Fixes * add sideEffects false to package.json to enable tree shaking ([#402](https://github.com/ipfs/js-ipfs-unixfs/issues/402)) ([aea58c4](https://github.com/ipfs/js-ipfs-unixfs/commit/aea58c40a4a2457ddf44454befa1eb25d4caa016)) ### Trivial Changes * rename master to main ([0cdfcd6](https://github.com/ipfs/js-ipfs-unixfs/commit/0cdfcd674513b21aab7e27b446a6f2181c9ba842)) --- packages/ipfs-unixfs/CHANGELOG.md | 12 ++++++++++++ packages/ipfs-unixfs/package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/ipfs-unixfs/CHANGELOG.md b/packages/ipfs-unixfs/CHANGELOG.md index 5bf1d80e..837f7b11 100644 --- a/packages/ipfs-unixfs/CHANGELOG.md +++ b/packages/ipfs-unixfs/CHANGELOG.md @@ -1,3 +1,15 @@ +## ipfs-unixfs [11.1.4](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-11.1.3...ipfs-unixfs-11.1.4) (2024-04-05) + + +### Bug Fixes + +* add sideEffects false to package.json to enable tree shaking ([#402](https://github.com/ipfs/js-ipfs-unixfs/issues/402)) ([aea58c4](https://github.com/ipfs/js-ipfs-unixfs/commit/aea58c40a4a2457ddf44454befa1eb25d4caa016)) + + +### Trivial Changes + +* rename master to main ([0cdfcd6](https://github.com/ipfs/js-ipfs-unixfs/commit/0cdfcd674513b21aab7e27b446a6f2181c9ba842)) + ## ipfs-unixfs [11.1.3](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-11.1.2...ipfs-unixfs-11.1.3) (2024-01-19) diff --git a/packages/ipfs-unixfs/package.json b/packages/ipfs-unixfs/package.json index b5462ed4..fdeb9c62 100644 --- a/packages/ipfs-unixfs/package.json +++ b/packages/ipfs-unixfs/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-unixfs", - "version": "11.1.3", + "version": "11.1.4", "description": "JavaScript implementation of IPFS' unixfs (a Unix FileSystem representation on top of a MerkleDAG)", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs#readme", From 34909300915a28965be6506b30df0497ba14fa14 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 5 Apr 2024 12:06:59 +0000 Subject: [PATCH 06/10] chore(release): 15.2.5 [skip ci] ## ipfs-unixfs-importer [15.2.5](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-importer-15.2.4...ipfs-unixfs-importer-15.2.5) (2024-04-05) ### Bug Fixes * add sideEffects false to package.json to enable tree shaking ([#402](https://github.com/ipfs/js-ipfs-unixfs/issues/402)) ([aea58c4](https://github.com/ipfs/js-ipfs-unixfs/commit/aea58c40a4a2457ddf44454befa1eb25d4caa016)) ### Trivial Changes * rename master to main ([0cdfcd6](https://github.com/ipfs/js-ipfs-unixfs/commit/0cdfcd674513b21aab7e27b446a6f2181c9ba842)) ### Dependencies * **ipfs-unixfs:** upgraded to 11.1.4 --- packages/ipfs-unixfs-importer/CHANGELOG.md | 18 ++++++++++++++++++ packages/ipfs-unixfs-importer/package.json | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/ipfs-unixfs-importer/CHANGELOG.md b/packages/ipfs-unixfs-importer/CHANGELOG.md index db8c9ac2..99b97f89 100644 --- a/packages/ipfs-unixfs-importer/CHANGELOG.md +++ b/packages/ipfs-unixfs-importer/CHANGELOG.md @@ -1,3 +1,21 @@ +## ipfs-unixfs-importer [15.2.5](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-importer-15.2.4...ipfs-unixfs-importer-15.2.5) (2024-04-05) + + +### Bug Fixes + +* add sideEffects false to package.json to enable tree shaking ([#402](https://github.com/ipfs/js-ipfs-unixfs/issues/402)) ([aea58c4](https://github.com/ipfs/js-ipfs-unixfs/commit/aea58c40a4a2457ddf44454befa1eb25d4caa016)) + + +### Trivial Changes + +* rename master to main ([0cdfcd6](https://github.com/ipfs/js-ipfs-unixfs/commit/0cdfcd674513b21aab7e27b446a6f2181c9ba842)) + + + +### Dependencies + +* **ipfs-unixfs:** upgraded to 11.1.4 + ## ipfs-unixfs-importer [15.2.4](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-importer-15.2.3...ipfs-unixfs-importer-15.2.4) (2024-01-19) diff --git a/packages/ipfs-unixfs-importer/package.json b/packages/ipfs-unixfs-importer/package.json index 47793b6f..cb8af317 100644 --- a/packages/ipfs-unixfs-importer/package.json +++ b/packages/ipfs-unixfs-importer/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-unixfs-importer", - "version": "15.2.4", + "version": "15.2.5", "description": "JavaScript implementation of the UnixFs importer used by IPFS", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs-importer#readme", From f94d1ad0a507a0b37dd601490bba22224192f5a3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:09:38 +0100 Subject: [PATCH 07/10] deps(dev): bump aegir from 42.2.11 to 44.1.1 (#412) * deps(dev): bump aegir from 42.2.11 to 44.1.1 Bumps [aegir](https://github.com/ipfs/aegir) from 42.2.11 to 44.1.1. - [Release notes](https://github.com/ipfs/aegir/releases) - [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md) - [Commits](https://github.com/ipfs/aegir/compare/v42.2.11...v44.1.1) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * chore: update project --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain --- README.md | 14 +- package.json | 89 +------------ packages/ipfs-unixfs-exporter/README.md | 6 +- packages/ipfs-unixfs-exporter/package.json | 126 +++++++++++++++--- packages/ipfs-unixfs-importer/README.md | 6 +- packages/ipfs-unixfs-importer/package.json | 112 ++++++++++++++-- .../src/dag-builder/file.ts | 2 +- packages/ipfs-unixfs-importer/src/dir-flat.ts | 2 +- .../ipfs-unixfs-importer/src/tree-builder.ts | 2 +- packages/ipfs-unixfs/README.md | 6 +- packages/ipfs-unixfs/package.json | 96 ++++++++++++- 11 files changed, 317 insertions(+), 144 deletions(-) diff --git a/README.md b/README.md index 9d0fa234..17c2080a 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ > JS implementation of the IPFS UnixFS -The UnixFS spec can be found at [ipfs/specs/UNIXFS.md](https://github.com/ipfs/specs/blob/master/UNIXFS.md) - # Packages -- [`/packages/ipfs-unixfs`](./packages/ipfs-unixfs) JavaScript implementation of IPFS' unixfs (a Unix FileSystem representation on top of a MerkleDAG) -- [`/packages/ipfs-unixfs-exporter`](./packages/ipfs-unixfs-exporter) JavaScript implementation of the UnixFs exporter used by IPFS -- [`/packages/ipfs-unixfs-importer`](./packages/ipfs-unixfs-importer) JavaScript implementation of the UnixFs importer used by IPFS +- [`packages/ipfs-unixfs`](https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs) JavaScript implementation of IPFS' unixfs (a Unix FileSystem representation on top of a MerkleDAG) +- [`packages/ipfs-unixfs-exporter`](https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs-exporter) JavaScript implementation of the UnixFs exporter used by IPFS +- [`packages/ipfs-unixfs-importer`](https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs-importer) JavaScript implementation of the UnixFs importer used by IPFS + +The UnixFS spec can be found at [ipfs/specs/UNIXFS.md](https://github.com/ipfs/specs/blob/master/UNIXFS.md) # API Docs @@ -23,8 +23,8 @@ The UnixFS spec can be found at [ipfs/specs/UNIXFS.md](https://github.com/ipfs/s Licensed under either of -- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / ) -- MIT ([LICENSE-MIT](LICENSE-MIT) / ) +- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/js-ipfs-unixfs/blob/main/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/js-ipfs-unixfs/blob/main/LICENSE-MIT) / ) # Contribute diff --git a/package.json b/package.json index 3021f1eb..e8139b20 100644 --- a/package.json +++ b/package.json @@ -12,91 +12,6 @@ "url": "https://github.com/ipfs/js-ipfs-unixfs/issues" }, "private": true, - "release": { - "branches": [ - "main" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits", - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "revert": true, - "release": "patch" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "docs", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "deps", - "release": "patch" - }, - { - "scope": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "chore", - "section": "Trivial Changes" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "deps", - "section": "Dependencies" - }, - { - "type": "test", - "section": "Tests" - } - ] - } - } - ], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" - ] - }, "scripts": { "reset": "aegir run clean && aegir clean **/node_modules **/package-lock.json", "test": "aegir run test", @@ -113,12 +28,12 @@ "lint": "aegir run lint", "dep-check": "aegir run dep-check", "release": "run-s build docs:no-publish npm:release docs", - "npm:release": "aegir release", + "npm:release": "aegir run release --concurrency 1", "docs": "aegir docs", "docs:no-publish": "aegir docs --publish false" }, "devDependencies": { - "aegir": "^42.2.2", + "aegir": "^44.1.1", "npm-run-all": "^4.1.5" }, "workspaces": [ diff --git a/packages/ipfs-unixfs-exporter/README.md b/packages/ipfs-unixfs-exporter/README.md index 9ddd6bcb..899c2d81 100644 --- a/packages/ipfs-unixfs-exporter/README.md +++ b/packages/ipfs-unixfs-exporter/README.md @@ -75,7 +75,7 @@ $ npm i ipfs-unixfs-exporter ## Browser ` @@ -89,8 +89,8 @@ Loading this module through a script tag will make it's exports available as `Ip Licensed under either of -- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / ) -- MIT ([LICENSE-MIT](LICENSE-MIT) / ) +- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/js-ipfs-unixfs/blob/main/packages/ipfs-unixfs-exporter/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/js-ipfs-unixfs/blob/main/packages/ipfs-unixfs-exporter/LICENSE-MIT) / ) # Contribute diff --git a/packages/ipfs-unixfs-exporter/package.json b/packages/ipfs-unixfs-exporter/package.json index c007b0c0..0f9c27f4 100644 --- a/packages/ipfs-unixfs-exporter/package.json +++ b/packages/ipfs-unixfs-exporter/package.json @@ -39,6 +39,91 @@ "sourceType": "module" } }, + "release": { + "branches": [ + "main" + ], + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits", + "releaseRules": [ + { + "breaking": true, + "release": "major" + }, + { + "revert": true, + "release": "patch" + }, + { + "type": "feat", + "release": "minor" + }, + { + "type": "fix", + "release": "patch" + }, + { + "type": "docs", + "release": "patch" + }, + { + "type": "test", + "release": "patch" + }, + { + "type": "deps", + "release": "patch" + }, + { + "scope": "no-release", + "release": false + } + ] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "chore", + "section": "Trivial Changes" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "deps", + "section": "Dependencies" + }, + { + "type": "test", + "section": "Tests" + } + ] + } + } + ], + "@semantic-release/changelog", + "@semantic-release/npm", + "@semantic-release/github", + "@semantic-release/git" + ] + }, "scripts": { "test": "aegir test", "test:node": "aegir test -t node --cov", @@ -47,44 +132,45 @@ "build": "aegir build", "clean": "aegir clean", "lint": "aegir lint", - "dep-check": "aegir dep-check" + "dep-check": "aegir dep-check", + "release": "aegir release" }, "dependencies": { - "@ipld/dag-cbor": "^9.2.0", - "@ipld/dag-json": "^10.2.0", - "@ipld/dag-pb": "^4.1.0", + "@ipld/dag-cbor": "^9.2.1", + "@ipld/dag-json": "^10.2.2", + "@ipld/dag-pb": "^4.1.2", "@multiformats/murmur3": "^2.1.8", "err-code": "^3.0.1", "hamt-sharding": "^3.0.6", - "interface-blockstore": "^5.2.10", + "interface-blockstore": "^5.3.0", "ipfs-unixfs": "^11.0.0", - "it-filter": "^3.0.4", - "it-last": "^3.0.4", - "it-map": "^3.0.5", - "it-parallel": "^3.0.6", + "it-filter": "^3.1.1", + "it-last": "^3.0.6", + "it-map": "^3.1.1", + "it-parallel": "^3.0.8", "it-pipe": "^3.0.1", "it-pushable": "^3.2.3", - "multiformats": "^13.1.0", + "multiformats": "^13.2.3", "p-queue": "^8.0.1", - "progress-events": "^1.0.0" + "progress-events": "^1.0.1" }, "devDependencies": { - "@types/readable-stream": "^4.0.11", + "@types/readable-stream": "^4.0.15", "@types/sinon": "^17.0.3", - "aegir": "^42.2.5", - "blockstore-core": "^4.4.0", + "aegir": "^44.1.1", + "blockstore-core": "^4.4.1", "delay": "^6.0.0", "ipfs-unixfs-importer": "^15.0.0", "iso-random-stream": "^2.0.2", - "it-all": "^3.0.4", - "it-buffer-stream": "^3.0.6", - "it-drain": "^3.0.5", - "it-first": "^3.0.4", - "it-to-buffer": "^4.0.5", + "it-all": "^3.0.6", + "it-buffer-stream": "^3.0.8", + "it-drain": "^3.0.7", + "it-first": "^3.0.6", + "it-to-buffer": "^4.0.7", "merge-options": "^3.0.4", "readable-stream": "^4.5.2", "sinon": "^17.0.1", - "uint8arrays": "^5.0.3", + "uint8arrays": "^5.1.0", "wherearewe": "^2.0.1" }, "browser": { diff --git a/packages/ipfs-unixfs-importer/README.md b/packages/ipfs-unixfs-importer/README.md index 7ac03ff0..c0f69b4a 100644 --- a/packages/ipfs-unixfs-importer/README.md +++ b/packages/ipfs-unixfs-importer/README.md @@ -92,7 +92,7 @@ $ npm i ipfs-unixfs-importer ## Browser ` @@ -106,8 +106,8 @@ Loading this module through a script tag will make it's exports available as `Ip Licensed under either of -- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / ) -- MIT ([LICENSE-MIT](LICENSE-MIT) / ) +- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/js-ipfs-unixfs/blob/main/packages/ipfs-unixfs-importer/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/js-ipfs-unixfs/blob/main/packages/ipfs-unixfs-importer/LICENSE-MIT) / ) # Contribute diff --git a/packages/ipfs-unixfs-importer/package.json b/packages/ipfs-unixfs-importer/package.json index cb8af317..48795894 100644 --- a/packages/ipfs-unixfs-importer/package.json +++ b/packages/ipfs-unixfs-importer/package.json @@ -63,6 +63,91 @@ "sourceType": "module" } }, + "release": { + "branches": [ + "main" + ], + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits", + "releaseRules": [ + { + "breaking": true, + "release": "major" + }, + { + "revert": true, + "release": "patch" + }, + { + "type": "feat", + "release": "minor" + }, + { + "type": "fix", + "release": "patch" + }, + { + "type": "docs", + "release": "patch" + }, + { + "type": "test", + "release": "patch" + }, + { + "type": "deps", + "release": "patch" + }, + { + "scope": "no-release", + "release": false + } + ] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "chore", + "section": "Trivial Changes" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "deps", + "section": "Dependencies" + }, + { + "type": "test", + "section": "Tests" + } + ] + } + } + ], + "@semantic-release/changelog", + "@semantic-release/npm", + "@semantic-release/github", + "@semantic-release/git" + ] + }, "scripts": { "test": "aegir test", "test:node": "aegir test -t node --cov", @@ -71,30 +156,31 @@ "build": "aegir build", "clean": "aegir clean", "lint": "aegir lint", - "dep-check": "aegir dep-check" + "dep-check": "aegir dep-check", + "release": "aegir release" }, "dependencies": { - "@ipld/dag-pb": "^4.1.0", + "@ipld/dag-pb": "^4.1.2", "@multiformats/murmur3": "^2.1.8", "err-code": "^3.0.1", "hamt-sharding": "^3.0.6", - "interface-blockstore": "^5.2.10", + "interface-blockstore": "^5.3.0", "interface-store": "^5.1.8", "ipfs-unixfs": "^11.0.0", - "it-all": "^3.0.4", - "it-batch": "^3.0.4", - "it-first": "^3.0.4", - "it-parallel-batch": "^3.0.4", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0", + "it-all": "^3.0.6", + "it-batch": "^3.0.6", + "it-first": "^3.0.6", + "it-parallel-batch": "^3.0.6", + "multiformats": "^13.2.3", + "progress-events": "^1.0.1", "rabin-wasm": "^0.1.5", "uint8arraylist": "^2.4.8", - "uint8arrays": "^5.0.3" + "uint8arrays": "^5.1.0" }, "devDependencies": { - "aegir": "^42.2.5", - "blockstore-core": "^4.4.0", - "it-last": "^3.0.4", + "aegir": "^44.1.1", + "blockstore-core": "^4.4.1", + "it-last": "^3.0.6", "wherearewe": "^2.0.1" }, "browser": { diff --git a/packages/ipfs-unixfs-importer/src/dag-builder/file.ts b/packages/ipfs-unixfs-importer/src/dag-builder/file.ts index 41d94ca0..3c3b19af 100644 --- a/packages/ipfs-unixfs-importer/src/dag-builder/file.ts +++ b/packages/ipfs-unixfs-importer/src/dag-builder/file.ts @@ -148,7 +148,7 @@ const reduce = (file: File, blockstore: WritableStorage, options: ReduceOptions) } } - if ((leaf.unixfs == null) || (leaf.unixfs.data == null)) { + if ((leaf.unixfs?.data == null)) { // node is an intermediate node f.addBlockSize(leaf.unixfs?.fileSize() ?? 0n) } else { diff --git a/packages/ipfs-unixfs-importer/src/dir-flat.ts b/packages/ipfs-unixfs-importer/src/dir-flat.ts index 8783b8c2..b649b430 100644 --- a/packages/ipfs-unixfs-importer/src/dir-flat.ts +++ b/packages/ipfs-unixfs-importer/src/dir-flat.ts @@ -103,7 +103,7 @@ export class DirFlat extends Dir { * @param {number} acc * @param {PBLink} curr */ - (acc, curr) => acc + (curr.Tsize == null ? 0 : curr.Tsize), + (acc, curr) => acc + (curr.Tsize ?? 0), 0) this.cid = cid diff --git a/packages/ipfs-unixfs-importer/src/tree-builder.ts b/packages/ipfs-unixfs-importer/src/tree-builder.ts index f84d6fb5..18e94eb0 100644 --- a/packages/ipfs-unixfs-importer/src/tree-builder.ts +++ b/packages/ipfs-unixfs-importer/src/tree-builder.ts @@ -104,7 +104,7 @@ export function defaultTreeBuilder (options: TreeBuilderOptions): TreeBuilder { tree = await addToTree(entry, tree, options) - if (entry.unixfs == null || !entry.unixfs.isDirectory()) { + if (entry.unixfs?.isDirectory() !== true) { yield entry } } diff --git a/packages/ipfs-unixfs/README.md b/packages/ipfs-unixfs/README.md index eb6a4ccc..52198d1f 100644 --- a/packages/ipfs-unixfs/README.md +++ b/packages/ipfs-unixfs/README.md @@ -120,7 +120,7 @@ $ npm i ipfs-unixfs ## Browser ` @@ -134,8 +134,8 @@ Loading this module through a script tag will make it's exports available as `Ip Licensed under either of -- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / ) -- MIT ([LICENSE-MIT](LICENSE-MIT) / ) +- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/js-ipfs-unixfs/blob/main/packages/ipfs-unixfs/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/js-ipfs-unixfs/blob/main/packages/ipfs-unixfs/LICENSE-MIT) / ) # Contribute diff --git a/packages/ipfs-unixfs/package.json b/packages/ipfs-unixfs/package.json index fdeb9c62..e26854aa 100644 --- a/packages/ipfs-unixfs/package.json +++ b/packages/ipfs-unixfs/package.json @@ -42,6 +42,91 @@ "src/unixfs.d.ts" ] }, + "release": { + "branches": [ + "main" + ], + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits", + "releaseRules": [ + { + "breaking": true, + "release": "major" + }, + { + "revert": true, + "release": "patch" + }, + { + "type": "feat", + "release": "minor" + }, + { + "type": "fix", + "release": "patch" + }, + { + "type": "docs", + "release": "patch" + }, + { + "type": "test", + "release": "patch" + }, + { + "type": "deps", + "release": "patch" + }, + { + "scope": "no-release", + "release": false + } + ] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "chore", + "section": "Trivial Changes" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "deps", + "section": "Dependencies" + }, + { + "type": "test", + "section": "Tests" + } + ] + } + } + ], + "@semantic-release/changelog", + "@semantic-release/npm", + "@semantic-release/github", + "@semantic-release/git" + ] + }, "scripts": { "generate": "protons src/unixfs.proto", "test": "aegir test", @@ -51,17 +136,18 @@ "build": "aegir build", "clean": "aegir clean", "lint": "aegir lint", - "dep-check": "aegir dep-check" + "dep-check": "aegir dep-check", + "release": "aegir release" }, "dependencies": { "err-code": "^3.0.1", - "protons-runtime": "^5.4.0", + "protons-runtime": "^5.5.0", "uint8arraylist": "^2.4.8" }, "devDependencies": { - "aegir": "^42.2.5", - "protons": "^7.5.0", - "uint8arrays": "^5.0.3" + "aegir": "^44.1.1", + "protons": "^7.6.0", + "uint8arrays": "^5.1.0" }, "browser": { "fs": false From 1317d03a0b3515e38046aede2a02e5acfd58adc7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 13 Sep 2024 12:16:09 +0000 Subject: [PATCH 08/10] chore(release): 11.1.5 [skip ci] ## [ipfs-unixfs-v11.1.5](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-11.1.4...ipfs-unixfs-11.1.5) (2024-09-13) ### Dependencies * **dev:** bump aegir from 42.2.11 to 44.1.1 ([#412](https://github.com/ipfs/js-ipfs-unixfs/issues/412)) ([f94d1ad](https://github.com/ipfs/js-ipfs-unixfs/commit/f94d1ad0a507a0b37dd601490bba22224192f5a3)) --- packages/ipfs-unixfs/CHANGELOG.md | 6 ++++++ packages/ipfs-unixfs/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/ipfs-unixfs/CHANGELOG.md b/packages/ipfs-unixfs/CHANGELOG.md index 837f7b11..4a3848f9 100644 --- a/packages/ipfs-unixfs/CHANGELOG.md +++ b/packages/ipfs-unixfs/CHANGELOG.md @@ -1,3 +1,9 @@ +## [ipfs-unixfs-v11.1.5](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-11.1.4...ipfs-unixfs-11.1.5) (2024-09-13) + +### Dependencies + +* **dev:** bump aegir from 42.2.11 to 44.1.1 ([#412](https://github.com/ipfs/js-ipfs-unixfs/issues/412)) ([f94d1ad](https://github.com/ipfs/js-ipfs-unixfs/commit/f94d1ad0a507a0b37dd601490bba22224192f5a3)) + ## ipfs-unixfs [11.1.4](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-11.1.3...ipfs-unixfs-11.1.4) (2024-04-05) diff --git a/packages/ipfs-unixfs/package.json b/packages/ipfs-unixfs/package.json index e26854aa..c344a864 100644 --- a/packages/ipfs-unixfs/package.json +++ b/packages/ipfs-unixfs/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-unixfs", - "version": "11.1.4", + "version": "11.1.5", "description": "JavaScript implementation of IPFS' unixfs (a Unix FileSystem representation on top of a MerkleDAG)", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs#readme", From 3ea4423bb1564fa71491d7a753720408762a4395 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 13 Sep 2024 12:16:24 +0000 Subject: [PATCH 09/10] chore(release): 15.2.6 [skip ci] ## [ipfs-unixfs-importer-v15.2.6](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-importer-15.2.5...ipfs-unixfs-importer-15.2.6) (2024-09-13) ### Dependencies * **dev:** bump aegir from 42.2.11 to 44.1.1 ([#412](https://github.com/ipfs/js-ipfs-unixfs/issues/412)) ([f94d1ad](https://github.com/ipfs/js-ipfs-unixfs/commit/f94d1ad0a507a0b37dd601490bba22224192f5a3)) --- packages/ipfs-unixfs-importer/CHANGELOG.md | 6 ++++++ packages/ipfs-unixfs-importer/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/ipfs-unixfs-importer/CHANGELOG.md b/packages/ipfs-unixfs-importer/CHANGELOG.md index 99b97f89..199ca22d 100644 --- a/packages/ipfs-unixfs-importer/CHANGELOG.md +++ b/packages/ipfs-unixfs-importer/CHANGELOG.md @@ -1,3 +1,9 @@ +## [ipfs-unixfs-importer-v15.2.6](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-importer-15.2.5...ipfs-unixfs-importer-15.2.6) (2024-09-13) + +### Dependencies + +* **dev:** bump aegir from 42.2.11 to 44.1.1 ([#412](https://github.com/ipfs/js-ipfs-unixfs/issues/412)) ([f94d1ad](https://github.com/ipfs/js-ipfs-unixfs/commit/f94d1ad0a507a0b37dd601490bba22224192f5a3)) + ## ipfs-unixfs-importer [15.2.5](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-importer-15.2.4...ipfs-unixfs-importer-15.2.5) (2024-04-05) diff --git a/packages/ipfs-unixfs-importer/package.json b/packages/ipfs-unixfs-importer/package.json index 48795894..ee02f082 100644 --- a/packages/ipfs-unixfs-importer/package.json +++ b/packages/ipfs-unixfs-importer/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-unixfs-importer", - "version": "15.2.5", + "version": "15.2.6", "description": "JavaScript implementation of the UnixFs importer used by IPFS", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs-importer#readme", From c345042368f1537fe5c6e9d1df5bd180ebbf755e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 13 Sep 2024 12:16:39 +0000 Subject: [PATCH 10/10] chore(release): 13.5.1 [skip ci] ## [ipfs-unixfs-exporter-v13.5.1](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-exporter-13.5.0...ipfs-unixfs-exporter-13.5.1) (2024-09-13) ### Bug Fixes * add sideEffects false to package.json to enable tree shaking ([#402](https://github.com/ipfs/js-ipfs-unixfs/issues/402)) ([aea58c4](https://github.com/ipfs/js-ipfs-unixfs/commit/aea58c40a4a2457ddf44454befa1eb25d4caa016)) ### Trivial Changes * rename master to main ([0cdfcd6](https://github.com/ipfs/js-ipfs-unixfs/commit/0cdfcd674513b21aab7e27b446a6f2181c9ba842)) ### Dependencies * **dev:** bump aegir from 42.2.11 to 44.1.1 ([#412](https://github.com/ipfs/js-ipfs-unixfs/issues/412)) ([f94d1ad](https://github.com/ipfs/js-ipfs-unixfs/commit/f94d1ad0a507a0b37dd601490bba22224192f5a3)) --- packages/ipfs-unixfs-exporter/CHANGELOG.md | 14 ++++++++++++++ packages/ipfs-unixfs-exporter/package.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/ipfs-unixfs-exporter/CHANGELOG.md b/packages/ipfs-unixfs-exporter/CHANGELOG.md index db0ca47b..a71f6e6a 100644 --- a/packages/ipfs-unixfs-exporter/CHANGELOG.md +++ b/packages/ipfs-unixfs-exporter/CHANGELOG.md @@ -1,3 +1,17 @@ +## [ipfs-unixfs-exporter-v13.5.1](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-exporter-13.5.0...ipfs-unixfs-exporter-13.5.1) (2024-09-13) + +### Bug Fixes + +* add sideEffects false to package.json to enable tree shaking ([#402](https://github.com/ipfs/js-ipfs-unixfs/issues/402)) ([aea58c4](https://github.com/ipfs/js-ipfs-unixfs/commit/aea58c40a4a2457ddf44454befa1eb25d4caa016)) + +### Trivial Changes + +* rename master to main ([0cdfcd6](https://github.com/ipfs/js-ipfs-unixfs/commit/0cdfcd674513b21aab7e27b446a6f2181c9ba842)) + +### Dependencies + +* **dev:** bump aegir from 42.2.11 to 44.1.1 ([#412](https://github.com/ipfs/js-ipfs-unixfs/issues/412)) ([f94d1ad](https://github.com/ipfs/js-ipfs-unixfs/commit/f94d1ad0a507a0b37dd601490bba22224192f5a3)) + ## ipfs-unixfs-exporter [13.5.0](https://github.com/ipfs/js-ipfs-unixfs/compare/ipfs-unixfs-exporter-13.4.0...ipfs-unixfs-exporter-13.5.0) (2024-02-02) diff --git a/packages/ipfs-unixfs-exporter/package.json b/packages/ipfs-unixfs-exporter/package.json index 0f9c27f4..07942a86 100644 --- a/packages/ipfs-unixfs-exporter/package.json +++ b/packages/ipfs-unixfs-exporter/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-unixfs-exporter", - "version": "13.5.0", + "version": "13.5.1", "description": "JavaScript implementation of the UnixFs exporter used by IPFS", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs-exporter#readme",