From ffc541004b27da6433c89d922d90235d21011edc Mon Sep 17 00:00:00 2001 From: Daniel Norman <1992255+2color@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:25:35 +0200 Subject: [PATCH 01/16] feat: add unixfs add file wrapped in dir example (#307) also use @helia/http for script to avoid libp2p overhead Co-authored-by: Daniel N <2color@users.noreply.github.com> --- examples/helia-101/101-basics.js | 13 +++++++++++-- examples/helia-101/package.json | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/examples/helia-101/101-basics.js b/examples/helia-101/101-basics.js index 9c2e8d03..00e0980b 100644 --- a/examples/helia-101/101-basics.js +++ b/examples/helia-101/101-basics.js @@ -1,14 +1,23 @@ /* eslint-disable no-console */ +import { createHeliaHTTP } from '@helia/http' import { unixfs } from '@helia/unixfs' -import { createHelia } from 'helia' // create a Helia node -const helia = await createHelia() +const helia = await createHeliaHTTP() // create a filesystem on top of Helia, in this case it's UnixFS const fs = unixfs(helia) +// add a file and wrap in a directory +const readmeCid = await fs.addFile({ + path: './README.md' +}, { + wrapWithDirectory: true +}) + +console.log('Added README.md file:', readmeCid.toString()) + // we will use this TextEncoder to turn strings into Uint8Arrays const encoder = new TextEncoder() diff --git a/examples/helia-101/package.json b/examples/helia-101/package.json index 39ed12d4..1de606ce 100644 --- a/examples/helia-101/package.json +++ b/examples/helia-101/package.json @@ -14,6 +14,7 @@ "dependencies": { "@chainsafe/libp2p-noise": "^15.0.0", "@chainsafe/libp2p-yamux": "^6.0.1", + "@helia/http": "^1.0.9", "@helia/unixfs": "^3.0.0", "@libp2p/bootstrap": "^10.0.12", "@libp2p/identify": "^1.0.14", From e6f216caa50a5155fc5af3dbf575f7d83ac8504a Mon Sep 17 00:00:00 2001 From: Shlomi Date: Mon, 7 Oct 2024 12:12:25 +0300 Subject: [PATCH 02/16] docs: fix typos in vue example, replace "react" with "vue" (#312) --- examples/helia-vue/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/helia-vue/README.md b/examples/helia-vue/README.md index ad210a6f..1c3931cd 100644 --- a/examples/helia-vue/README.md +++ b/examples/helia-vue/README.md @@ -67,7 +67,7 @@ Now open your browser at `http://localhost:5173` ## Usage -In this example, you will find a boilerplate you can use to guide yourself into creating a react+vite app with helia, this provides a pattern to reuse the same client across components with the context API and suggests how to integrate it with custom hooks +In this example, you will find a boilerplate you can use to guide yourself into creating a Vue+Vite app with Helia. This provides a pattern to reuse the same client across components using Vue's provide/inject feature and suggests how to integrate it with Vue composables. You should see the following: @@ -112,4 +112,4 @@ Read the [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of [cid]: https://docs.ipfs.tech/concepts/content-addressing "Content Identifier" [Uint8Array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array -[libp2p]: https://libp2p.io \ No newline at end of file +[libp2p]: https://libp2p.io From 2db8ce1f6656e984ca0a2cb87021e324aca97dd3 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 7 Oct 2024 15:55:25 +0100 Subject: [PATCH 03/16] fix: update helia and libp2p deps (#313) Updates to helia@5.x.x and libp2p@2.x.x deps --- examples/helia-101/301-networking.js | 4 ++-- examples/helia-101/README.md | 4 ++-- examples/helia-101/package.json | 22 +++++++++---------- .../helia-browser-verified-fetch/package.json | 2 +- examples/helia-cjs/package.json | 4 ++-- examples/helia-create-car/package.json | 6 ++--- examples/helia-electron/package.json | 2 +- examples/helia-esbuild/package.json | 4 ++-- examples/helia-jest-typescript/package.json | 2 +- examples/helia-jest/package.json | 2 +- examples/helia-lan-discovery/package.json | 4 ++-- examples/helia-nestjs/package.json | 2 +- examples/helia-nextjs/package.json | 2 +- examples/helia-parcel/package.json | 4 ++-- examples/helia-ts-node/package.json | 2 +- examples/helia-typescript/package.json | 2 +- examples/helia-vite/package.json | 4 ++-- examples/helia-vue/package.json | 4 ++-- examples/helia-webpack/package.json | 4 ++-- 19 files changed, 40 insertions(+), 40 deletions(-) diff --git a/examples/helia-101/301-networking.js b/examples/helia-101/301-networking.js index 76f8d18b..63b2ec60 100644 --- a/examples/helia-101/301-networking.js +++ b/examples/helia-101/301-networking.js @@ -29,7 +29,7 @@ async function createNode () { transports: [ tcp() ], - connectionEncryption: [ + connectionEncrypters: [ noise() ], streamMuxers: [ @@ -63,7 +63,7 @@ const node2 = await createNode() // connect them together const multiaddrs = node2.libp2p.getMultiaddrs() -await node1.libp2p.dial(multiaddrs[0]) +await node1.libp2p.dial(multiaddrs) // create a filesystem on top of Helia, in this case it's UnixFS const fs = unixfs(node1) diff --git a/examples/helia-101/README.md b/examples/helia-101/README.md index 928e20ec..cec81132 100644 --- a/examples/helia-101/README.md +++ b/examples/helia-101/README.md @@ -25,7 +25,7 @@ - [Getting Started](#getting-started) - [Prerequisites](#prerequisites) - [Installation](#installation) - - [Running examples](#running-examples) + - [Running Examples](#running-examples) - [Usage](#usage) - [101 - Basics](#101---basics) - [201 - Storage](#201---storage) @@ -206,7 +206,7 @@ const libp2p = await createLibp2p({ transports: [ webSockets() ], - connectionEncryption: [ + connectionEncrypters: [ noise() ], streamMuxers: [ diff --git a/examples/helia-101/package.json b/examples/helia-101/package.json index 1de606ce..1c4e64fb 100644 --- a/examples/helia-101/package.json +++ b/examples/helia-101/package.json @@ -12,17 +12,17 @@ "test": "test-node-example test/*" }, "dependencies": { - "@chainsafe/libp2p-noise": "^15.0.0", - "@chainsafe/libp2p-yamux": "^6.0.1", - "@helia/http": "^1.0.9", - "@helia/unixfs": "^3.0.0", - "@libp2p/bootstrap": "^10.0.12", - "@libp2p/identify": "^1.0.14", - "@libp2p/tcp": "^9.0.12", - "blockstore-core": "^4.1.0", - "datastore-core": "^9.1.1", - "helia": "^4.0.1", - "libp2p": "^1.2.0" + "@chainsafe/libp2p-noise": "^16.0.0", + "@chainsafe/libp2p-yamux": "^7.0.1", + "@helia/http": "^2.0.0", + "@helia/unixfs": "^4.0.0", + "@libp2p/bootstrap": "^11.0.7", + "@libp2p/identify": "^3.0.7", + "@libp2p/tcp": "^10.0.8", + "blockstore-core": "^5.0.2", + "datastore-core": "^10.0.2", + "helia": "^5.0.0", + "libp2p": "^2.1.6" }, "devDependencies": { "test-ipfs-example": "^1.0.0" diff --git a/examples/helia-browser-verified-fetch/package.json b/examples/helia-browser-verified-fetch/package.json index 4c319c1a..dabd535f 100644 --- a/examples/helia-browser-verified-fetch/package.json +++ b/examples/helia-browser-verified-fetch/package.json @@ -12,7 +12,7 @@ "test": "vite build -c ./test/vite.config.js && test-browser-example test" }, "dependencies": { - "@helia/verified-fetch": "^1.3.2", + "@helia/verified-fetch": "^1.5.0", "@sgtpooki/file-type": "^1.0.1", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/helia-cjs/package.json b/examples/helia-cjs/package.json index 302a9423..dd36fcec 100644 --- a/examples/helia-cjs/package.json +++ b/examples/helia-cjs/package.json @@ -12,8 +12,8 @@ "test": "test-node-example test/*" }, "dependencies": { - "@helia/unixfs": "^3.0.0", - "helia": "^4.0.1" + "@helia/unixfs": "^4.0.0", + "helia": "^5.0.0" }, "devDependencies": { "test-ipfs-example": "^1.0.0" diff --git a/examples/helia-create-car/package.json b/examples/helia-create-car/package.json index 8cb68f3c..182def47 100644 --- a/examples/helia-create-car/package.json +++ b/examples/helia-create-car/package.json @@ -13,10 +13,10 @@ "test": "npm run build && test-browser-example test" }, "dependencies": { - "@helia/car": "^3.0.0", - "@helia/unixfs": "^3.0.0", + "@helia/car": "^4.0.0", + "@helia/unixfs": "^4.0.0", "@ipld/car": "^5.1.1", - "helia": "^4.0.1", + "helia": "^5.0.0", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/helia-electron/package.json b/examples/helia-electron/package.json index f16c0aa1..6f3f8864 100644 --- a/examples/helia-electron/package.json +++ b/examples/helia-electron/package.json @@ -16,7 +16,7 @@ "test": "xvfb-maybe test-node-example test/*" }, "dependencies": { - "helia": "^4.0.1" + "helia": "^5.0.0" }, "devDependencies": { "electron": "^29.1.4", diff --git a/examples/helia-esbuild/package.json b/examples/helia-esbuild/package.json index 099a4194..b9810313 100644 --- a/examples/helia-esbuild/package.json +++ b/examples/helia-esbuild/package.json @@ -15,8 +15,8 @@ }, "browserslist": "last 1 Chrome version", "dependencies": { - "@helia/unixfs": "^3.0.0", - "helia": "^4.0.1" + "@helia/unixfs": "^4.0.0", + "helia": "^5.0.0" }, "devDependencies": { "@babel/core": "^7.14.8", diff --git a/examples/helia-jest-typescript/package.json b/examples/helia-jest-typescript/package.json index b89f1c39..40c8d03b 100644 --- a/examples/helia-jest-typescript/package.json +++ b/examples/helia-jest-typescript/package.json @@ -8,7 +8,7 @@ "test": "NODE_OPTIONS=--experimental-vm-modules jest" }, "dependencies": { - "helia": "^4.0.1" + "helia": "^5.0.0" }, "devDependencies": { "@types/jest": "^29.5.2", diff --git a/examples/helia-jest/package.json b/examples/helia-jest/package.json index 8071c4c9..87cce214 100644 --- a/examples/helia-jest/package.json +++ b/examples/helia-jest/package.json @@ -8,7 +8,7 @@ "test": "NODE_OPTIONS=--experimental-vm-modules jest" }, "dependencies": { - "helia": "^4.0.1" + "helia": "^5.0.0" }, "devDependencies": { "jest": "^29.6.2" diff --git a/examples/helia-lan-discovery/package.json b/examples/helia-lan-discovery/package.json index 141d9b8d..5e175135 100644 --- a/examples/helia-lan-discovery/package.json +++ b/examples/helia-lan-discovery/package.json @@ -12,8 +12,8 @@ "test2": "npm run client & npm run server" }, "dependencies": { - "@helia/dag-cbor": "^3.0.0", - "helia": "^4.0.1", + "@helia/dag-cbor": "^4.0.0", + "helia": "^5.0.0", "it-length-prefixed-stream": "^1.1.6", "multiformats": "^13.0.1" } diff --git a/examples/helia-nestjs/package.json b/examples/helia-nestjs/package.json index f489e7a3..03c1bd0a 100644 --- a/examples/helia-nestjs/package.json +++ b/examples/helia-nestjs/package.json @@ -22,7 +22,7 @@ "@nestjs/common": "^10.0.0", "@nestjs/core": "^10.0.0", "@nestjs/platform-express": "^10.0.0", - "helia": "^4.0.1", + "helia": "^5.0.0", "reflect-metadata": "^0.2.1", "rxjs": "^7.8.1" }, diff --git a/examples/helia-nextjs/package.json b/examples/helia-nextjs/package.json index 21f912aa..5c00117c 100644 --- a/examples/helia-nextjs/package.json +++ b/examples/helia-nextjs/package.json @@ -14,7 +14,7 @@ "test": "npm run build && test-browser-example test" }, "dependencies": { - "helia": "^4.0.1", + "helia": "^5.0.0", "next": "^14.1.0", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/helia-parcel/package.json b/examples/helia-parcel/package.json index 59b3b22c..7b71641e 100644 --- a/examples/helia-parcel/package.json +++ b/examples/helia-parcel/package.json @@ -16,8 +16,8 @@ }, "browserslist": "last 1 Chrome version", "dependencies": { - "@helia/unixfs": "^3.0.0", - "helia": "^4.0.1" + "@helia/unixfs": "^4.0.0", + "helia": "^5.0.0" }, "devDependencies": { "@babel/core": "^7.14.8", diff --git a/examples/helia-ts-node/package.json b/examples/helia-ts-node/package.json index 33c7074b..4e985822 100644 --- a/examples/helia-ts-node/package.json +++ b/examples/helia-ts-node/package.json @@ -9,7 +9,7 @@ "test": "cross-env NODE_OPTIONS=\"--loader=ts-node/esm\" test-node-example test/*" }, "dependencies": { - "helia": "^4.0.1" + "helia": "^5.0.0" }, "devDependencies": { "cross-env": "^7.0.3", diff --git a/examples/helia-typescript/package.json b/examples/helia-typescript/package.json index cd06b5f7..3dbe5101 100644 --- a/examples/helia-typescript/package.json +++ b/examples/helia-typescript/package.json @@ -12,7 +12,7 @@ "test": "npm run build && test-node-example test/*" }, "dependencies": { - "helia": "^4.0.1" + "helia": "^5.0.0" }, "devDependencies": { "test-ipfs-example": "^1.0.0", diff --git a/examples/helia-vite/package.json b/examples/helia-vite/package.json index 61b7ef40..ee67a544 100644 --- a/examples/helia-vite/package.json +++ b/examples/helia-vite/package.json @@ -13,8 +13,8 @@ "test": "npm run build && test-browser-example test" }, "dependencies": { - "@helia/unixfs": "^3.0.0", - "helia": "^4.0.1", + "@helia/unixfs": "^4.0.0", + "helia": "^5.0.0", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/helia-vue/package.json b/examples/helia-vue/package.json index 532b06ee..95ef0b3a 100644 --- a/examples/helia-vue/package.json +++ b/examples/helia-vue/package.json @@ -13,8 +13,8 @@ "test": "npm run build && test-browser-example test" }, "dependencies": { - "@helia/unixfs": "^3.0.0", - "helia": "^4.0.1", + "@helia/unixfs": "^4.0.0", + "helia": "^5.0.0", "it-all": "^3.0.1", "vue": "^3.2.47" }, diff --git a/examples/helia-webpack/package.json b/examples/helia-webpack/package.json index 2f64c211..7e7dbe9d 100644 --- a/examples/helia-webpack/package.json +++ b/examples/helia-webpack/package.json @@ -17,8 +17,8 @@ "last 1 Chrome version" ], "dependencies": { - "@helia/unixfs": "^3.0.0", - "helia": "^4.0.1", + "@helia/unixfs": "^4.0.0", + "helia": "^5.0.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, From cfaad1b84e46dd1ec7519eb0571ebb3db34996f1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:05:16 +0100 Subject: [PATCH 04/16] chore(deps-dev): bump electron from 29.4.6 to 32.1.2 (#329) Bumps [electron](https://github.com/electron/electron) from 29.4.6 to 32.1.2. - [Release notes](https://github.com/electron/electron/releases) - [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md) - [Commits](https://github.com/electron/electron/compare/v29.4.6...v32.1.2) --- updated-dependencies: - dependency-name: electron dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/helia-electron/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-electron/package.json b/examples/helia-electron/package.json index 6f3f8864..02a551f4 100644 --- a/examples/helia-electron/package.json +++ b/examples/helia-electron/package.json @@ -19,7 +19,7 @@ "helia": "^5.0.0" }, "devDependencies": { - "electron": "^29.1.4", + "electron": "^32.1.2", "electron-rebuild": "^3.1.1", "test-ipfs-example": "^1.0.0", "xvfb-maybe": "^0.2.1" From 11477b00c23121c4ef1e550342a1e403a950b5ba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:05:42 +0100 Subject: [PATCH 05/16] chore(deps-dev): bump supertest from 6.3.4 to 7.0.0 (#334) Bumps [supertest](https://github.com/ladjs/supertest) from 6.3.4 to 7.0.0. - [Release notes](https://github.com/ladjs/supertest/releases) - [Commits](https://github.com/ladjs/supertest/compare/v6.3.4...v7.0.0) --- updated-dependencies: - dependency-name: supertest dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/helia-nestjs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-nestjs/package.json b/examples/helia-nestjs/package.json index 03c1bd0a..401a168d 100644 --- a/examples/helia-nestjs/package.json +++ b/examples/helia-nestjs/package.json @@ -42,7 +42,7 @@ "jest": "^29.5.0", "prettier": "^3.0.0", "source-map-support": "^0.5.21", - "supertest": "^6.3.3", + "supertest": "^7.0.0", "ts-jest": "^29.1.0", "ts-loader": "^9.4.3", "ts-node": "^10.9.1", From b3a68be6fb2f0486e4f38a87eb704074ad325638 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:05:51 +0100 Subject: [PATCH 06/16] chore(deps-dev): bump @types/express from 4.17.21 to 5.0.0 (#335) Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.21 to 5.0.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express) --- updated-dependencies: - dependency-name: "@types/express" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/helia-nestjs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-nestjs/package.json b/examples/helia-nestjs/package.json index 401a168d..1e2e480e 100644 --- a/examples/helia-nestjs/package.json +++ b/examples/helia-nestjs/package.json @@ -30,7 +30,7 @@ "@nestjs/cli": "^10.0.0", "@nestjs/schematics": "^10.0.0", "@nestjs/testing": "^10.0.0", - "@types/express": "^4.17.17", + "@types/express": "^5.0.0", "@types/jest": "^29.5.2", "@types/node": "^20.3.1", "@types/supertest": "^6.0.2", From 62325d34b3f32faf3a1743a3dd8e869441bcdd84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:38:54 +0100 Subject: [PATCH 07/16] chore(deps-dev): bump @types/node from 20.16.10 to 22.7.4 (#319) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.16.10 to 22.7.4. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/helia-nestjs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-nestjs/package.json b/examples/helia-nestjs/package.json index 1e2e480e..f838071d 100644 --- a/examples/helia-nestjs/package.json +++ b/examples/helia-nestjs/package.json @@ -32,7 +32,7 @@ "@nestjs/testing": "^10.0.0", "@types/express": "^5.0.0", "@types/jest": "^29.5.2", - "@types/node": "^20.3.1", + "@types/node": "^22.7.4", "@types/supertest": "^6.0.2", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", From 0396ad17a3fa71db5716836605315ddfb0f3ae2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:39:07 +0100 Subject: [PATCH 08/16] chore(deps-dev): bump webpack-merge from 5.10.0 to 6.0.1 (#337) Bumps [webpack-merge](https://github.com/survivejs/webpack-merge) from 5.10.0 to 6.0.1. - [Changelog](https://github.com/survivejs/webpack-merge/blob/develop/CHANGELOG.md) - [Commits](https://github.com/survivejs/webpack-merge/compare/v5.10.0...v6.0.1) --- updated-dependencies: - dependency-name: webpack-merge dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides --- examples/helia-webpack/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-webpack/package.json b/examples/helia-webpack/package.json index 7e7dbe9d..0c385d59 100644 --- a/examples/helia-webpack/package.json +++ b/examples/helia-webpack/package.json @@ -39,6 +39,6 @@ "webpack": "^5.45.1", "webpack-cli": "^5.0.1", "webpack-dev-server": "^5.0.3", - "webpack-merge": "^5.8.0" + "webpack-merge": "^6.0.1" } } From 391af4bec6e94cca3ac87f32cb5935f171782b82 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:39:20 +0100 Subject: [PATCH 09/16] chore(deps-dev): bump node-polyfill-webpack-plugin from 3.0.0 to 4.0.0 (#338) Bumps [node-polyfill-webpack-plugin](https://github.com/Richienb/node-polyfill-webpack-plugin) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/Richienb/node-polyfill-webpack-plugin/releases) - [Commits](https://github.com/Richienb/node-polyfill-webpack-plugin/compare/v3.0.0...v4.0.0) --- updated-dependencies: - dependency-name: node-polyfill-webpack-plugin dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides --- examples/helia-webpack/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-webpack/package.json b/examples/helia-webpack/package.json index 0c385d59..e8df7e75 100644 --- a/examples/helia-webpack/package.json +++ b/examples/helia-webpack/package.json @@ -31,7 +31,7 @@ "copy-webpack-plugin": "^12.0.2", "css-loader": "^6.2.0", "html-webpack-plugin": "^5.3.2", - "node-polyfill-webpack-plugin": "^3.0.0", + "node-polyfill-webpack-plugin": "^4.0.0", "playwright": "^1.12.3", "rimraf": "^5.0.0", "style-loader": "^3.1.0", From d25bdc38a4acb34fb9902c75a5e86a15ad80b4e8 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 8 Oct 2024 07:11:06 +0100 Subject: [PATCH 10/16] chore: add ci --- .../.github/pull_request_template.md | 17 +++++++++++++++++ .../.github/workflows/sync.yml | 19 +++++++++++++++++++ .../helia-browser-verified-fetch/package.json | 1 + 3 files changed, 37 insertions(+) create mode 100644 examples/helia-browser-verified-fetch/.github/pull_request_template.md create mode 100644 examples/helia-browser-verified-fetch/.github/workflows/sync.yml diff --git a/examples/helia-browser-verified-fetch/.github/pull_request_template.md b/examples/helia-browser-verified-fetch/.github/pull_request_template.md new file mode 100644 index 00000000..04bd7d52 --- /dev/null +++ b/examples/helia-browser-verified-fetch/.github/pull_request_template.md @@ -0,0 +1,17 @@ +# ⚠️ IMPORTANT ⚠️ + +# Please do not create a Pull Request for this repository + +The contents of this repository are automatically synced from the parent [Helia Examples Project](https://github.com/ipfs-examples/helia-examples) so any changes made to the standalone repository will be lost after the next sync. + +Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/helia-examples) instead. + +## Contributing + +Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. + +1. Fork the [Helia Examples Project](https://github.com/ipfs-examples/helia-examples) +2. Create your Feature Branch (`git checkout -b feature/amazing-example`) +3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`) +4. Push to the Branch (`git push origin feature/amazing-example`) +5. Open a Pull Request diff --git a/examples/helia-browser-verified-fetch/.github/workflows/sync.yml b/examples/helia-browser-verified-fetch/.github/workflows/sync.yml new file mode 100644 index 00000000..3f8b7446 --- /dev/null +++ b/examples/helia-browser-verified-fetch/.github/workflows/sync.yml @@ -0,0 +1,19 @@ +name: pull + +on: + workflow_dispatch + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Pull from another repository + uses: ipfs-examples/actions-pull-directory-from-repo@main + with: + source-repo: ipfs-examples/helia-examples + source-folder-path: examples/${{ github.event.repository.name }} + source-branch: main + target-branch: main + git-username: github-actions + git-email: github-actions@github.com diff --git a/examples/helia-browser-verified-fetch/package.json b/examples/helia-browser-verified-fetch/package.json index dabd535f..e2993e8c 100644 --- a/examples/helia-browser-verified-fetch/package.json +++ b/examples/helia-browser-verified-fetch/package.json @@ -2,6 +2,7 @@ "name": "helia-browser-verified-fetch", "private": true, "version": "0.0.0", + "description": "Browser Verified Retrieval with @helia/verified-fetch", "type": "module", "scripts": { "clean": "rimraf ./dist", From 98d2a6d5b435ec8f45d3e44cc17de0db63daa153 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 07:51:43 +0100 Subject: [PATCH 11/16] chore(deps-dev): bump aegir from 42.2.11 to 44.1.2 (#333) * chore(deps-dev): bump aegir from 42.2.11 to 44.1.2 Bumps [aegir](https://github.com/ipfs/aegir) from 42.2.11 to 44.1.2. - [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.2) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * chore: update other deps --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides --- examples/helia-nestjs/package.json | 4 ++-- examples/helia-nestjs/tsconfig-check.aegir.json | 1 - package.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 examples/helia-nestjs/tsconfig-check.aegir.json diff --git a/examples/helia-nestjs/package.json b/examples/helia-nestjs/package.json index f838071d..560b53cb 100644 --- a/examples/helia-nestjs/package.json +++ b/examples/helia-nestjs/package.json @@ -34,8 +34,8 @@ "@types/jest": "^29.5.2", "@types/node": "^22.7.4", "@types/supertest": "^6.0.2", - "@typescript-eslint/eslint-plugin": "^5.62.0", - "@typescript-eslint/parser": "^5.62.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", "eslint": "^8.42.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", diff --git a/examples/helia-nestjs/tsconfig-check.aegir.json b/examples/helia-nestjs/tsconfig-check.aegir.json deleted file mode 100644 index 1a02e18d..00000000 --- a/examples/helia-nestjs/tsconfig-check.aegir.json +++ /dev/null @@ -1 +0,0 @@ -{"compilerOptions":{"module":"ES2020","declaration":true,"removeComments":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"allowSyntheticDefaultImports":true,"target":"ES2020","sourceMap":true,"outDir":"./dist","baseUrl":"./","incremental":true,"skipLibCheck":true,"strictNullChecks":true,"noImplicitAny":false,"strictBindCallApply":false,"forceConsistentCasingInFileNames":false,"noFallthroughCasesInSwitch":false,"moduleResolution":"Node","noEmit":true,"emitDeclarationOnly":false}} diff --git a/package.json b/package.json index 913322bf..1713c533 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "homepage": "https://github.com/ipfs-examples/helia-examples#readme", "devDependencies": { - "aegir": "^42.1.0" + "aegir": "^44.1.2" }, "workspaces": [ "examples/*" From dac915c88edf3e79139fe7971edf0c7e42b6f2a5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 07:51:54 +0100 Subject: [PATCH 12/16] chore(deps): bump rimraf from 5.0.10 to 6.0.1 (#317) Bumps [rimraf](https://github.com/isaacs/rimraf) from 5.0.10 to 6.0.1. - [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/rimraf/compare/v5.0.10...v6.0.1) --- updated-dependencies: - dependency-name: rimraf dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/helia-create-car/package.json | 2 +- examples/helia-esbuild/package.json | 2 +- examples/helia-nextjs/package.json | 2 +- examples/helia-parcel/package.json | 2 +- examples/helia-script-tag/package.json | 2 +- examples/helia-vite/package.json | 2 +- examples/helia-vue/package.json | 2 +- examples/helia-webpack/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/helia-create-car/package.json b/examples/helia-create-car/package.json index 182def47..f4178aca 100644 --- a/examples/helia-create-car/package.json +++ b/examples/helia-create-car/package.json @@ -20,7 +20,7 @@ "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rimraf": "^5.0.0" + "rimraf": "^6.0.1" }, "devDependencies": { "@playwright/test": "^1.31.2", diff --git a/examples/helia-esbuild/package.json b/examples/helia-esbuild/package.json index b9810313..e9d4f72e 100644 --- a/examples/helia-esbuild/package.json +++ b/examples/helia-esbuild/package.json @@ -24,7 +24,7 @@ "esbuild": "^0.20.0", "playwright": "^1.12.3", "process": "^0.11.10", - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "test-ipfs-example": "^1.0.0" } } diff --git a/examples/helia-nextjs/package.json b/examples/helia-nextjs/package.json index 5c00117c..141d1568 100644 --- a/examples/helia-nextjs/package.json +++ b/examples/helia-nextjs/package.json @@ -25,7 +25,7 @@ "eslint-config-next": "^14.1.0", "interface-datastore": "^8.2.0", "playwright": "^1.32.1", - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "test-ipfs-example": "^1.0.0" } } diff --git a/examples/helia-parcel/package.json b/examples/helia-parcel/package.json index 7b71641e..88b043b0 100644 --- a/examples/helia-parcel/package.json +++ b/examples/helia-parcel/package.json @@ -25,7 +25,7 @@ "parcel": "^2.9.1", "playwright": "^1.12.3", "process": "^0.11.10", - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "test-ipfs-example": "^1.0.0" }, "@parcel/resolver-default": { diff --git a/examples/helia-script-tag/package.json b/examples/helia-script-tag/package.json index d5d1819d..ac358e62 100644 --- a/examples/helia-script-tag/package.json +++ b/examples/helia-script-tag/package.json @@ -19,7 +19,7 @@ "@playwright/test": "^1.12.3", "playwright": "^1.12.3", "process": "^0.11.10", - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "test-ipfs-example": "^1.0.0", "vite": "^5.0.11" } diff --git a/examples/helia-vite/package.json b/examples/helia-vite/package.json index ee67a544..d6420b79 100644 --- a/examples/helia-vite/package.json +++ b/examples/helia-vite/package.json @@ -18,7 +18,7 @@ "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rimraf": "^5.0.0" + "rimraf": "^6.0.1" }, "devDependencies": { "@playwright/test": "^1.31.2", diff --git a/examples/helia-vue/package.json b/examples/helia-vue/package.json index 95ef0b3a..8d6a840d 100644 --- a/examples/helia-vue/package.json +++ b/examples/helia-vue/package.json @@ -20,7 +20,7 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.3", - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "test-ipfs-example": "^1.0.0", "vite": "^5.0.11" } diff --git a/examples/helia-webpack/package.json b/examples/helia-webpack/package.json index e8df7e75..06faa689 100644 --- a/examples/helia-webpack/package.json +++ b/examples/helia-webpack/package.json @@ -33,7 +33,7 @@ "html-webpack-plugin": "^5.3.2", "node-polyfill-webpack-plugin": "^4.0.0", "playwright": "^1.12.3", - "rimraf": "^5.0.0", + "rimraf": "^6.0.1", "style-loader": "^3.1.0", "test-ipfs-example": "^1.0.0", "webpack": "^5.45.1", From f8157ca634b29c8cb232bb5c9ab8fdb1f983ef5b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 07:52:02 +0100 Subject: [PATCH 13/16] chore(deps-dev): bump css-loader from 6.11.0 to 7.1.2 (#320) Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 6.11.0 to 7.1.2. - [Release notes](https://github.com/webpack-contrib/css-loader/releases) - [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/css-loader/compare/v6.11.0...v7.1.2) --- updated-dependencies: - dependency-name: css-loader dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/helia-webpack/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-webpack/package.json b/examples/helia-webpack/package.json index 06faa689..75d4f2ce 100644 --- a/examples/helia-webpack/package.json +++ b/examples/helia-webpack/package.json @@ -29,7 +29,7 @@ "@playwright/test": "^1.12.3", "babel-loader": "^9.1.2", "copy-webpack-plugin": "^12.0.2", - "css-loader": "^6.2.0", + "css-loader": "^7.1.2", "html-webpack-plugin": "^5.3.2", "node-polyfill-webpack-plugin": "^4.0.0", "playwright": "^1.12.3", From c6aba0d3caaed21cbf164677f2652e1afa6b57fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 07:52:18 +0100 Subject: [PATCH 14/16] chore(deps-dev): bump esbuild from 0.20.2 to 0.24.0 (#321) Bumps [esbuild](https://github.com/evanw/esbuild) from 0.20.2 to 0.24.0. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.20.2...v0.24.0) --- updated-dependencies: - dependency-name: esbuild dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides --- examples/helia-esbuild/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-esbuild/package.json b/examples/helia-esbuild/package.json index e9d4f72e..9a2bdebe 100644 --- a/examples/helia-esbuild/package.json +++ b/examples/helia-esbuild/package.json @@ -21,7 +21,7 @@ "devDependencies": { "@babel/core": "^7.14.8", "@playwright/test": "^1.12.3", - "esbuild": "^0.20.0", + "esbuild": "^0.24.0", "playwright": "^1.12.3", "process": "^0.11.10", "rimraf": "^6.0.1", From 47ccbbad53ff0fb634df844319579f5622312d3c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:16:57 +0100 Subject: [PATCH 15/16] chore(deps-dev): bump style-loader from 3.3.4 to 4.0.0 (#315) Bumps [style-loader](https://github.com/webpack-contrib/style-loader) from 3.3.4 to 4.0.0. - [Release notes](https://github.com/webpack-contrib/style-loader/releases) - [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/style-loader/compare/v3.3.4...v4.0.0) --- updated-dependencies: - dependency-name: style-loader dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/helia-webpack/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-webpack/package.json b/examples/helia-webpack/package.json index 75d4f2ce..46a21ad7 100644 --- a/examples/helia-webpack/package.json +++ b/examples/helia-webpack/package.json @@ -34,7 +34,7 @@ "node-polyfill-webpack-plugin": "^4.0.0", "playwright": "^1.12.3", "rimraf": "^6.0.1", - "style-loader": "^3.1.0", + "style-loader": "^4.0.0", "test-ipfs-example": "^1.0.0", "webpack": "^5.45.1", "webpack-cli": "^5.0.1", From 880b2ce3edcc1dafdcc3fcbeb32dd1072fc8ebc2 Mon Sep 17 00:00:00 2001 From: Daniel Norman <1992255+2color@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:34:36 +0200 Subject: [PATCH 16/16] chore: remove link to defunct deployed example --- examples/helia-browser-verified-fetch/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/helia-browser-verified-fetch/README.md b/examples/helia-browser-verified-fetch/README.md index 486d756c..262da318 100644 --- a/examples/helia-browser-verified-fetch/README.md +++ b/examples/helia-browser-verified-fetch/README.md @@ -12,8 +12,6 @@ Explore the docs · View in Dev Environment - . - View Demo · Report Bug ·