From dff82ecd5e93fa6ec2eb7e063db7bd6af433ee5e Mon Sep 17 00:00:00 2001 From: Daniel Norman <1992255+2color@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:30:28 +0100 Subject: [PATCH 01/23] fix: remove helia.io cname (#666) * fix: remove cname from docs deployment fixes https://github.com/ipfs/helia/issues/655 which causes a redirect * fix: typo in url --------- Co-authored-by: Daniel N <2color@users.noreply.github.com> --- .aegir.js | 6 ------ README.md | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 .aegir.js diff --git a/.aegir.js b/.aegir.js deleted file mode 100644 index ee7632745..000000000 --- a/.aegir.js +++ /dev/null @@ -1,6 +0,0 @@ -/** @type {import('aegir').PartialOptions} */ -export default { - docs: { - cname: 'helia.io' - } -} diff --git a/README.md b/README.md index bb2916931..ab2c3bc9c 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ console.log(await d.get(retrievedObject.link)) ## 🔒 Custom Hasher -A [hasher](https://github.com/multiformats/js-multiformats?tab=readme-ov-file#multihash-hashers) is used to determine the immutable address of the content (aka the [**CID**](https://github.com/multiformats/cid?tab=readme-ov-file#what-is-it)) being imported into helia. The default hasher used by the methods above is [sha2-256 multihash](https://github.com/multiformats/js-multiformats?tab=readme-ov-file#multihash-hashers-1), but others can be provided with [AddOptions](https://helia.io/interfaces/_helia_dag_cbor.AddOptions.html). This is useful for applications that require hashers with specific properties; so in most cases keeping the default is recommended. +A [hasher](https://github.com/multiformats/js-multiformats?tab=readme-ov-file#multihash-hashers) is used to determine the immutable address of the content (aka the [**CID**](https://github.com/multiformats/cid?tab=readme-ov-file#what-is-it)) being imported into helia. The default hasher used by the methods above is [sha2-256 multihash](https://github.com/multiformats/js-multiformats?tab=readme-ov-file#multihash-hashers-1), but others can be provided with [AddOptions](https://ipfs.github.io/helia/interfaces/_helia_dag_cbor.AddOptions.html). This is useful for applications that require hashers with specific properties; so in most cases keeping the default is recommended. > **Changing the hasher will cause a different CID to be returned for the same content! In other words: the same content imported with different hashers is treated like unique content with a unique address.** From e58e49c6aed8ea9d1e9851435a25e33fdbee3781 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 3 Nov 2024 21:12:14 +0000 Subject: [PATCH 02/23] deps: bump aegir from 44.1.4 to 45.0.1 (#669) Bumps [aegir](https://github.com/ipfs/aegir) from 44.1.4 to 45.0.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/v44.1.4...v45.0.1) --- updated-dependencies: - dependency-name: aegir 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> Co-authored-by: achingbrain --- benchmarks/add-dir/package.json | 2 +- benchmarks/gc/package.json | 2 +- benchmarks/pinning/package.json | 2 +- benchmarks/transfer/package.json | 2 +- benchmarks/transports/package.json | 2 +- package.json | 2 +- packages/bitswap/package.json | 2 +- packages/block-brokers/package.json | 2 +- packages/car/package.json | 2 +- packages/dag-cbor/package.json | 2 +- packages/dag-json/package.json | 2 +- packages/helia/package.json | 2 +- packages/http/package.json | 2 +- packages/interface/package.json | 2 +- packages/interop/package.json | 2 +- packages/ipns/package.json | 2 +- packages/json/package.json | 2 +- packages/mfs/package.json | 2 +- packages/routers/package.json | 2 +- packages/strings/package.json | 2 +- packages/unixfs/package.json | 2 +- packages/utils/package.json | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/benchmarks/add-dir/package.json b/benchmarks/add-dir/package.json index c242c9f57..75b5d8aeb 100644 --- a/benchmarks/add-dir/package.json +++ b/benchmarks/add-dir/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@helia/unixfs": "^3.0.4", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.2", "blockstore-fs": "^2.0.1", "datastore-core": "^10.0.2", diff --git a/benchmarks/gc/package.json b/benchmarks/gc/package.json index a5b900378..e8bfccdef 100644 --- a/benchmarks/gc/package.json +++ b/benchmarks/gc/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@ipld/dag-pb": "^4.0.6", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", "datastore-level": "^11.0.1", "execa": "^8.0.1", diff --git a/benchmarks/pinning/package.json b/benchmarks/pinning/package.json index f0467ccb6..54af59daf 100644 --- a/benchmarks/pinning/package.json +++ b/benchmarks/pinning/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@ipld/dag-pb": "^4.0.6", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", "datastore-level": "^11.0.1", "execa": "^8.0.1", diff --git a/benchmarks/transfer/package.json b/benchmarks/transfer/package.json index 8a37dbb81..ca0bfaa4a 100644 --- a/benchmarks/transfer/package.json +++ b/benchmarks/transfer/package.json @@ -20,7 +20,7 @@ "@ipld/dag-pb": "^4.0.2", "@libp2p/tcp": "^10.0.1", "@multiformats/multiaddr": "^12.3.1", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", "datastore-level": "^11.0.1", "helia": "^4.1.0", diff --git a/benchmarks/transports/package.json b/benchmarks/transports/package.json index cdb631328..8142d989c 100644 --- a/benchmarks/transports/package.json +++ b/benchmarks/transports/package.json @@ -27,7 +27,7 @@ "@libp2p/websockets": "^9.0.0", "@libp2p/webtransport": "^5.0.0", "@multiformats/multiaddr": "^12.2.1", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", "blockstore-idb": "^2.0.1", "datastore-idb": "^3.0.0", diff --git a/package.json b/package.json index 38404f68f..428f55449 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "docs:no-publish": "aegir docs --publish false" }, "devDependencies": { - "aegir": "^44.0.1", + "aegir": "^45.0.1", "npm-run-all": "^4.1.5" }, "type": "module", diff --git a/packages/bitswap/package.json b/packages/bitswap/package.json index 0a9997c14..fd5caec26 100644 --- a/packages/bitswap/package.json +++ b/packages/bitswap/package.json @@ -178,7 +178,7 @@ "@libp2p/interface-compliance-tests": "^6.0.0", "@libp2p/peer-id": "^5.0.0", "@types/sinon": "^17.0.3", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.0", "delay": "^6.0.0", "it-all": "^3.0.4", diff --git a/packages/block-brokers/package.json b/packages/block-brokers/package.json index f33598d76..6178d7992 100644 --- a/packages/block-brokers/package.json +++ b/packages/block-brokers/package.json @@ -74,7 +74,7 @@ "@multiformats/uri-to-multiaddr": "^8.0.0", "@types/polka": "^0.5.7", "@types/sinon": "^17.0.3", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "cors": "^2.8.5", "polka": "^0.5.2", "sinon": "^19.0.2", diff --git a/packages/car/package.json b/packages/car/package.json index 8c6552b6e..e49d34af7 100644 --- a/packages/car/package.json +++ b/packages/car/package.json @@ -156,7 +156,7 @@ "@helia/mfs": "^4.0.0", "@helia/unixfs": "^4.0.0", "@ipld/dag-pb": "^4.1.0", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.0", "datastore-core": "^10.0.0", "ipfs-unixfs-importer": "^15.2.4", diff --git a/packages/dag-cbor/package.json b/packages/dag-cbor/package.json index 95bc056ce..dc5d11ddc 100644 --- a/packages/dag-cbor/package.json +++ b/packages/dag-cbor/package.json @@ -149,7 +149,7 @@ "progress-events": "^1.0.0" }, "devDependencies": { - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.0" }, "sideEffects": false diff --git a/packages/dag-json/package.json b/packages/dag-json/package.json index 0707d158c..8f14e6648 100644 --- a/packages/dag-json/package.json +++ b/packages/dag-json/package.json @@ -148,7 +148,7 @@ "progress-events": "^1.0.0" }, "devDependencies": { - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.0" }, "sideEffects": false diff --git a/packages/helia/package.json b/packages/helia/package.json index c79340565..a29e88b7c 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -93,7 +93,7 @@ "devDependencies": { "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.1.14", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "it-all": "^3.0.4", "it-drain": "^3.0.5" }, diff --git a/packages/http/package.json b/packages/http/package.json index e12343a21..4c0e67547 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -63,7 +63,7 @@ }, "devDependencies": { "@libp2p/interface": "^2.0.0", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "interface-datastore": "^8.2.11", "multiformats": "^13.1.0", "sinon": "^19.0.2", diff --git a/packages/interface/package.json b/packages/interface/package.json index 7ce68f990..6b2c6bcf3 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -80,7 +80,7 @@ "progress-events": "^1.0.0" }, "devDependencies": { - "aegir": "^44.0.1" + "aegir": "^45.0.1" }, "sideEffects": false } diff --git a/packages/interop/package.json b/packages/interop/package.json index 9b566e8f3..bf136fba3 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -80,7 +80,7 @@ "@libp2p/peer-id": "^5.0.0", "@libp2p/websockets": "^9.0.0", "@multiformats/sha3": "^3.0.2", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "helia": "^5.1.0", "ipfs-unixfs-importer": "^15.2.4", "ipfsd-ctl": "^15.0.0", diff --git a/packages/ipns/package.json b/packages/ipns/package.json index bb14eb085..514a89821 100644 --- a/packages/ipns/package.json +++ b/packages/ipns/package.json @@ -180,7 +180,7 @@ "devDependencies": { "@libp2p/crypto": "^5.0.0", "@types/dns-packet": "^5.6.5", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "datastore-core": "^10.0.0", "it-drain": "^3.0.5", "sinon": "^19.0.2", diff --git a/packages/json/package.json b/packages/json/package.json index 95dcf95f7..6647c1ec4 100644 --- a/packages/json/package.json +++ b/packages/json/package.json @@ -147,7 +147,7 @@ "progress-events": "^1.0.0" }, "devDependencies": { - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.0" }, "sideEffects": false diff --git a/packages/mfs/package.json b/packages/mfs/package.json index 4e0896773..a182d8d3b 100644 --- a/packages/mfs/package.json +++ b/packages/mfs/package.json @@ -152,7 +152,7 @@ }, "devDependencies": { "@ipld/dag-pb": "^4.1.0", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.0", "datastore-core": "^10.0.0", "delay": "^6.0.0", diff --git a/packages/routers/package.json b/packages/routers/package.json index a89813ec8..8a33f1bc7 100644 --- a/packages/routers/package.json +++ b/packages/routers/package.json @@ -67,7 +67,7 @@ }, "devDependencies": { "@libp2p/crypto": "^5.0.0", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "it-all": "^3.0.4", "it-drain": "^3.0.5", "sinon-ts": "^2.0.0" diff --git a/packages/strings/package.json b/packages/strings/package.json index 3158ccf3f..20d61128a 100644 --- a/packages/strings/package.json +++ b/packages/strings/package.json @@ -150,7 +150,7 @@ "uint8arrays": "^5.0.2" }, "devDependencies": { - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.0" }, "sideEffects": false diff --git a/packages/unixfs/package.json b/packages/unixfs/package.json index aa573bda1..bbe02a327 100644 --- a/packages/unixfs/package.json +++ b/packages/unixfs/package.json @@ -181,7 +181,7 @@ "uint8arrays": "^5.0.2" }, "devDependencies": { - "aegir": "^44.0.1", + "aegir": "^45.0.1", "blockstore-core": "^5.0.0", "delay": "^6.0.0", "iso-url": "^1.2.1", diff --git a/packages/utils/package.json b/packages/utils/package.json index f2c110ee7..f06e0a936 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -82,7 +82,7 @@ "@libp2p/crypto": "^5.0.0", "@libp2p/peer-id": "^5.0.0", "@types/sinon": "^17.0.3", - "aegir": "^44.0.1", + "aegir": "^45.0.1", "datastore-core": "^10.0.0", "delay": "^6.0.0", "it-all": "^3.0.4", From aecac3d92cbd22a7331afee8e6f87ef31a9f7d95 Mon Sep 17 00:00:00 2001 From: Daniel Norman <1992255+2color@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:19:52 +0100 Subject: [PATCH 03/23] fix: add tls to default delegated routing filters (#670) * fix: add tls to all default filters * chore: avoid duplication of filters * fix: use normal imports with .js * chore: export delegated routing defaults * fix: import --------- Co-authored-by: Daniel N <2color@users.noreply.github.com> --- packages/helia/src/utils/libp2p-defaults.browser.ts | 6 ++---- packages/helia/src/utils/libp2p-defaults.ts | 6 ++---- packages/routers/src/index.ts | 1 + .../src/utils/delegated-http-routing-defaults.browser.ts | 2 +- .../routers/src/utils/delegated-http-routing-defaults.ts | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/helia/src/utils/libp2p-defaults.browser.ts b/packages/helia/src/utils/libp2p-defaults.browser.ts index 7bd756fd6..1de3ce90d 100644 --- a/packages/helia/src/utils/libp2p-defaults.browser.ts +++ b/packages/helia/src/utils/libp2p-defaults.browser.ts @@ -1,6 +1,7 @@ import { noise } from '@chainsafe/libp2p-noise' import { yamux } from '@chainsafe/libp2p-yamux' import { createDelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client' +import { delegatedHTTPRoutingDefaults } from '@helia/routers' import { autoNAT } from '@libp2p/autonat' import { bootstrap } from '@libp2p/bootstrap' import { circuitRelayTransport } from '@libp2p/circuit-relay-v2' @@ -63,10 +64,7 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti services: { autoNAT: autoNAT(), dcutr: dcutr(), - delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', { - filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], - filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss'] - }), + delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', delegatedHTTPRoutingDefaults()), dht: kadDHT({ clientMode: true, validators: { diff --git a/packages/helia/src/utils/libp2p-defaults.ts b/packages/helia/src/utils/libp2p-defaults.ts index 547a8baef..41eaffc0a 100644 --- a/packages/helia/src/utils/libp2p-defaults.ts +++ b/packages/helia/src/utils/libp2p-defaults.ts @@ -1,6 +1,7 @@ import { noise } from '@chainsafe/libp2p-noise' import { yamux } from '@chainsafe/libp2p-yamux' import { createDelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client' +import { delegatedHTTPRoutingDefaults } from '@helia/routers' import { autoNAT } from '@libp2p/autonat' import { bootstrap } from '@libp2p/bootstrap' import { circuitRelayTransport, circuitRelayServer, type CircuitRelayService } from '@libp2p/circuit-relay-v2' @@ -72,10 +73,7 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti services: { autoNAT: autoNAT(), dcutr: dcutr(), - delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', { - filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], - filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss'] - }), + delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', delegatedHTTPRoutingDefaults()), dht: kadDHT({ validators: { ipns: ipnsValidator diff --git a/packages/routers/src/index.ts b/packages/routers/src/index.ts index 23c014c85..c4f7b7c7e 100644 --- a/packages/routers/src/index.ts +++ b/packages/routers/src/index.ts @@ -4,6 +4,7 @@ * Abstraction layer over different content and peer routing mechanisms. */ export { delegatedHTTPRouting } from './delegated-http-routing.js' +export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.js' export { httpGatewayRouting } from './http-gateway-routing.js' export type { HTTPGatwayRouterInit } from './http-gateway-routing.js' export { libp2pRouting } from './libp2p-routing.js' diff --git a/packages/routers/src/utils/delegated-http-routing-defaults.browser.ts b/packages/routers/src/utils/delegated-http-routing-defaults.browser.ts index eaed6bff4..afe4a7fb0 100644 --- a/packages/routers/src/utils/delegated-http-routing-defaults.browser.ts +++ b/packages/routers/src/utils/delegated-http-routing-defaults.browser.ts @@ -3,6 +3,6 @@ import type { DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routi export function delegatedHTTPRoutingDefaults (): DelegatedRoutingV1HttpApiClientInit { return { filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], - filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss'] + filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss', 'tls'] } } diff --git a/packages/routers/src/utils/delegated-http-routing-defaults.ts b/packages/routers/src/utils/delegated-http-routing-defaults.ts index 740346b28..e5966dd78 100644 --- a/packages/routers/src/utils/delegated-http-routing-defaults.ts +++ b/packages/routers/src/utils/delegated-http-routing-defaults.ts @@ -3,6 +3,6 @@ import type { DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routi export function delegatedHTTPRoutingDefaults (): DelegatedRoutingV1HttpApiClientInit { return { filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], - filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss'] + filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss', 'tls'] } } From c09fef29b749eecf969f9812dea7ab49477582f7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 07:19:33 -0800 Subject: [PATCH 04/23] deps: bump kubo from 0.31.0 to 0.32.0 (#679) Bumps [kubo](https://github.com/ipfs/npm-kubo) from 0.31.0 to 0.32.0. - [Commits](https://github.com/ipfs/npm-kubo/compare/v0.31.0...v0.32.0) --- updated-dependencies: - dependency-name: kubo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- 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 bf136fba3..d6d8d7205 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -90,7 +90,7 @@ "it-last": "^3.0.4", "it-map": "^3.0.5", "it-to-buffer": "^4.0.5", - "kubo": "^0.31.0", + "kubo": "^0.32.0", "kubo-rpc-client": "^5.0.0", "libp2p": "^2.0.0", "multiformats": "^13.1.0", From 74f392c207db3536c597d2fa59ad86a647672ec9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:05:19 +0000 Subject: [PATCH 05/23] deps: bump @multiformats/multiaddr-to-uri from 10.1.2 to 11.0.0 (#676) Bumps [@multiformats/multiaddr-to-uri](https://github.com/multiformats/js-multiaddr-to-uri) from 10.1.2 to 11.0.0. - [Release notes](https://github.com/multiformats/js-multiaddr-to-uri/releases) - [Changelog](https://github.com/multiformats/js-multiaddr-to-uri/blob/main/CHANGELOG.md) - [Commits](https://github.com/multiformats/js-multiaddr-to-uri/compare/v10.1.2...v11.0.0) --- updated-dependencies: - dependency-name: "@multiformats/multiaddr-to-uri" 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> --- packages/block-brokers/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-brokers/package.json b/packages/block-brokers/package.json index 6178d7992..86525fdf0 100644 --- a/packages/block-brokers/package.json +++ b/packages/block-brokers/package.json @@ -61,7 +61,7 @@ "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.1", "@multiformats/multiaddr-matcher": "^1.2.0", - "@multiformats/multiaddr-to-uri": "^10.0.1", + "@multiformats/multiaddr-to-uri": "^11.0.0", "interface-blockstore": "^5.2.10", "interface-store": "^6.0.0", "multiformats": "^13.1.0", From dc1352563ab5ed7b204ae702c1e48035d196a470 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 18 Nov 2024 13:06:02 +0000 Subject: [PATCH 06/23] feat: add cancelReprovide function to routing (#672) Exposes the cancel reprovide functionality of the libp2p routers. --- packages/interface/src/routing.ts | 13 +++++++++++++ packages/routers/src/delegated-http-routing.ts | 16 ++++++++++------ packages/routers/src/libp2p-routing.ts | 4 ++++ packages/routers/test/libp2p-routing.spec.ts | 9 +++++++++ packages/utils/src/routing.ts | 9 +++++++++ 5 files changed, 45 insertions(+), 6 deletions(-) diff --git a/packages/interface/src/routing.ts b/packages/interface/src/routing.ts index 7263e4f1d..1ab5ed5f2 100644 --- a/packages/interface/src/routing.ts +++ b/packages/interface/src/routing.ts @@ -64,6 +64,19 @@ export interface Routing { */ provide(cid: CID, options?: RoutingOptions): Promise + /** + * Helia will periodically re-provide every previously provided CID. Use this + * method to no longer re-provide the passed CID. + * + * @example + * + * ```js + * // ... + * await contentRouting.cancelReprovide(cid) + * ``` + */ + cancelReprovide(key: CID, options?: AbortOptions): Promise + /** * Find the providers of the passed CID. * diff --git a/packages/routers/src/delegated-http-routing.ts b/packages/routers/src/delegated-http-routing.ts index 6cb30e9a5..d9e9da9bf 100644 --- a/packages/routers/src/delegated-http-routing.ts +++ b/packages/routers/src/delegated-http-routing.ts @@ -25,11 +25,15 @@ class DelegatedHTTPRouter implements Routing { this.client = createDelegatedRoutingV1HttpApiClient(url, init) } - async provide (cid: CID, options?: RoutingOptions | undefined): Promise { + async provide (cid: CID, options?: RoutingOptions): Promise { // noop } - async * findProviders (cid: CID, options?: RoutingOptions | undefined): AsyncIterable { + async cancelReprovide (cid?: CID, options?: RoutingOptions): Promise { + // noop + } + + async * findProviders (cid: CID, options?: RoutingOptions): AsyncIterable { yield * map(this.client.getProviders(cid, options), (record) => { return { id: record.ID, @@ -39,7 +43,7 @@ class DelegatedHTTPRouter implements Routing { }) } - async put (key: Uint8Array, value: Uint8Array, options?: RoutingOptions | undefined): Promise { + async put (key: Uint8Array, value: Uint8Array, options?: RoutingOptions): Promise { if (!isIPNSKey(key)) { return } @@ -51,7 +55,7 @@ class DelegatedHTTPRouter implements Routing { await this.client.putIPNS(cid, record, options) } - async get (key: Uint8Array, options?: RoutingOptions | undefined): Promise { + async get (key: Uint8Array, options?: RoutingOptions): Promise { if (!isIPNSKey(key)) { throw new NotFoundError('Not found') } @@ -74,7 +78,7 @@ class DelegatedHTTPRouter implements Routing { } } - async findPeer (peerId: PeerId, options?: RoutingOptions | undefined): Promise { + async findPeer (peerId: PeerId, options?: RoutingOptions): Promise { const peer = await first(this.client.getPeers(peerId, options)) if (peer != null) { @@ -87,7 +91,7 @@ class DelegatedHTTPRouter implements Routing { throw new NotFoundError('Not found') } - async * getClosestPeers (key: Uint8Array, options?: RoutingOptions | undefined): AsyncIterable { + async * getClosestPeers (key: Uint8Array, options?: RoutingOptions): AsyncIterable { // noop } } diff --git a/packages/routers/src/libp2p-routing.ts b/packages/routers/src/libp2p-routing.ts index 935c86d47..e71cf7d19 100644 --- a/packages/routers/src/libp2p-routing.ts +++ b/packages/routers/src/libp2p-routing.ts @@ -13,6 +13,10 @@ class Libp2pRouter implements Routing { await this.libp2p.contentRouting.provide(cid, options) } + async cancelReprovide (key: CID, options?: RoutingOptions): Promise { + await this.libp2p.contentRouting.cancelReprovide(key, options) + } + async * findProviders (cid: CID, options?: RoutingOptions): AsyncIterable { yield * this.libp2p.contentRouting.findProviders(cid, options) } diff --git a/packages/routers/test/libp2p-routing.spec.ts b/packages/routers/test/libp2p-routing.spec.ts index d7c916d87..5309e858b 100644 --- a/packages/routers/test/libp2p-routing.spec.ts +++ b/packages/routers/test/libp2p-routing.spec.ts @@ -33,6 +33,15 @@ describe('libp2p-routing', () => { expect(contentRouting.provide.calledWith(cid, options)).to.be.true() }) + it('should call through to contentRouting.cancelReprovide', async () => { + const cid = CID.parse('bafyreidykglsfhoixmivffc5uwhcgshx4j465xwqntbmu43nb2dzqwfvae') + const options = {} + + await router.cancelReprovide(cid, options) + + expect(contentRouting.cancelReprovide.calledWith(cid, options)).to.be.true() + }) + it('should call through to contentRouting.findProviders', async () => { contentRouting.findProviders.returns(async function * () {}()) diff --git a/packages/utils/src/routing.ts b/packages/utils/src/routing.ts index 11db18f62..47c33248d 100644 --- a/packages/utils/src/routing.ts +++ b/packages/utils/src/routing.ts @@ -115,6 +115,15 @@ export class Routing implements RoutingInterface, Startable { ) } + async cancelReprovide (key: CID, options: AbortOptions = {}): Promise { + await Promise.all( + supports(this.routers, 'cancelReprovide') + .map(async (router) => { + await router.cancelReprovide(key, options) + }) + ) + } + /** * Store the given key/value pair in the available content routings */ From ccfcc9d52153e72bfaff66ba3ac1505eb71c6333 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:56:46 +0000 Subject: [PATCH 07/23] ci: bump codecov/codecov-action from 4.6.0 to 5.0.2 (#680) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.6.0 to 5.0.2. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238...5c47607acb93fed5485fdbf7232e8a31425f672a) --- updated-dependencies: - dependency-name: codecov/codecov-action 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> --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41df0c560..fbe9d0d05 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: node-version: ${{ matrix.node }} - uses: ipfs/aegir/actions/cache-node-modules@master - run: npm run --if-present test:node - - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: flags: node files: .coverage/*,packages/*/.coverage/* @@ -62,7 +62,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@master - run: npm run --if-present test:chrome - - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: flags: chrome files: .coverage/*,packages/*/.coverage/* @@ -78,7 +78,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@master - run: npm run --if-present test:chrome-webworker - - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: flags: chrome-webworker files: .coverage/*,packages/*/.coverage/* @@ -94,7 +94,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@master - run: npm run --if-present test:firefox - - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: flags: firefox files: .coverage/*,packages/*/.coverage/* @@ -110,7 +110,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@master - run: npm run --if-present test:firefox-webworker - - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: flags: firefox-webworker files: .coverage/*,packages/*/.coverage/* @@ -126,7 +126,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@master - run: npm run --if-present test:webkit - - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: flags: webkit files: .coverage/*,packages/*/.coverage/* @@ -142,7 +142,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@master - run: npx xvfb-maybe npm run --if-present test:electron-main - - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: flags: electron-main files: .coverage/*,packages/*/.coverage/* @@ -158,7 +158,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@master - run: npx xvfb-maybe npm run --if-present test:electron-renderer - - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: flags: electron-renderer files: .coverage/*,packages/*/.coverage/* From f7b5d3fb29ae3552c320c13335861f03368ff791 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Mon, 18 Nov 2024 14:01:27 +0000 Subject: [PATCH 08/23] chore: fix interop tests --- packages/interop/src/fixtures/create-helia.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/interop/src/fixtures/create-helia.ts b/packages/interop/src/fixtures/create-helia.ts index ac9bbdc78..facab2c3d 100644 --- a/packages/interop/src/fixtures/create-helia.ts +++ b/packages/interop/src/fixtures/create-helia.ts @@ -38,6 +38,8 @@ export async function createHeliaNode (libp2pOptions?: Libp2pOptions): Promise Date: Mon, 18 Nov 2024 15:39:44 +0100 Subject: [PATCH 09/23] fix: remove webtransport from default transports (#674) WebTransport is still not working reliably across different browsers. Moreover, the go-libp2p implementation needs to be updated to meet newer revisions of the spec. As we discussed during Helia WG, the most sensible thing for now is to remove WebTransport from the default transports. Refs https://github.com/libp2p/js-libp2p/issues/2572 --------- Co-authored-by: Daniel N <2color@users.noreply.github.com> --- packages/helia/package.json | 1 - packages/helia/src/utils/libp2p-defaults.browser.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/packages/helia/package.json b/packages/helia/package.json index a29e88b7c..1df09f36c 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -80,7 +80,6 @@ "@libp2p/upnp-nat": "^2.0.0", "@libp2p/webrtc": "^5.0.0", "@libp2p/websockets": "^9.0.0", - "@libp2p/webtransport": "^5.0.0", "@multiformats/dns": "^1.0.1", "blockstore-core": "^5.0.0", "datastore-core": "^10.0.0", diff --git a/packages/helia/src/utils/libp2p-defaults.browser.ts b/packages/helia/src/utils/libp2p-defaults.browser.ts index 1de3ce90d..b21d4dec8 100644 --- a/packages/helia/src/utils/libp2p-defaults.browser.ts +++ b/packages/helia/src/utils/libp2p-defaults.browser.ts @@ -13,7 +13,6 @@ import { mplex } from '@libp2p/mplex' import { ping, type PingService } from '@libp2p/ping' import { webRTC, webRTCDirect } from '@libp2p/webrtc' import { webSockets } from '@libp2p/websockets' -import { webTransport } from '@libp2p/webtransport' import { ipnsSelector } from 'ipns/selector' import { ipnsValidator } from 'ipns/validator' import * as libp2pInfo from 'libp2p/version' @@ -48,7 +47,6 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti circuitRelayTransport(), webRTC(), webRTCDirect(), - webTransport(), webSockets() ], connectionEncrypters: [ From 342375049a542a584972f7a3c6de6010b804f7d7 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Tue, 19 Nov 2024 16:04:54 +0000 Subject: [PATCH 10/23] chore: release main (#673) --- .release-please-manifest.json | 32 ++++++++++++++--------------- packages/bitswap/CHANGELOG.md | 11 ++++++++++ packages/bitswap/package.json | 6 +++--- packages/block-brokers/CHANGELOG.md | 13 ++++++++++++ packages/block-brokers/package.json | 8 ++++---- packages/car/CHANGELOG.md | 13 ++++++++++++ packages/car/package.json | 8 ++++---- packages/dag-cbor/CHANGELOG.md | 10 +++++++++ packages/dag-cbor/package.json | 4 ++-- packages/dag-json/CHANGELOG.md | 10 +++++++++ packages/dag-json/package.json | 4 ++-- packages/helia/CHANGELOG.md | 19 +++++++++++++++++ packages/helia/package.json | 10 ++++----- packages/http/CHANGELOG.md | 13 ++++++++++++ packages/http/package.json | 10 ++++----- packages/interface/CHANGELOG.md | 12 +++++++++++ packages/interface/package.json | 2 +- packages/interop/CHANGELOG.md | 23 +++++++++++++++++++++ packages/interop/package.json | 28 ++++++++++++------------- packages/ipns/CHANGELOG.md | 10 +++++++++ packages/ipns/package.json | 4 ++-- packages/json/CHANGELOG.md | 10 +++++++++ packages/json/package.json | 4 ++-- packages/mfs/CHANGELOG.md | 10 +++++++++ packages/mfs/package.json | 4 ++-- packages/routers/CHANGELOG.md | 20 ++++++++++++++++++ packages/routers/package.json | 4 ++-- packages/strings/CHANGELOG.md | 10 +++++++++ packages/strings/package.json | 4 ++-- packages/unixfs/CHANGELOG.md | 10 +++++++++ packages/unixfs/package.json | 4 ++-- packages/utils/CHANGELOG.md | 15 ++++++++++++++ packages/utils/package.json | 4 ++-- 33 files changed, 279 insertions(+), 70 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c8f84883f..b7b689916 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,18 +1,18 @@ { - "packages/block-brokers": "4.0.1", - "packages/bitswap": "2.0.1", - "packages/car": "4.0.0", - "packages/dag-cbor": "4.0.0", - "packages/dag-json": "4.0.0", - "packages/helia": "5.1.0", - "packages/interface": "5.0.0", - "packages/interop": "7.0.2", - "packages/ipns": "8.0.0", - "packages/json": "4.0.0", - "packages/mfs": "4.0.0", - "packages/strings": "4.0.0", - "packages/unixfs": "4.0.0", - "packages/utils": "1.0.1", - "packages/http": "2.0.1", - "packages/routers": "2.1.0" + "packages/block-brokers": "4.0.2", + "packages/bitswap": "2.0.2", + "packages/car": "4.0.1", + "packages/dag-cbor": "4.0.1", + "packages/dag-json": "4.0.1", + "packages/helia": "5.1.1", + "packages/interface": "5.1.0", + "packages/interop": "7.0.3", + "packages/ipns": "8.0.1", + "packages/json": "4.0.1", + "packages/mfs": "4.0.1", + "packages/strings": "4.0.1", + "packages/unixfs": "4.0.1", + "packages/utils": "1.1.0", + "packages/http": "2.0.2", + "packages/routers": "2.2.0" } diff --git a/packages/bitswap/CHANGELOG.md b/packages/bitswap/CHANGELOG.md index d6ed4b016..3efb13784 100644 --- a/packages/bitswap/CHANGELOG.md +++ b/packages/bitswap/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [2.0.2](https://github.com/ipfs/helia/compare/bitswap-v2.0.1...bitswap-v2.0.2) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + * @helia/utils bumped from ^1.0.1 to ^1.1.0 + ## [2.0.1](https://github.com/ipfs/helia/compare/bitswap-v2.0.0...bitswap-v2.0.1) (2024-10-23) diff --git a/packages/bitswap/package.json b/packages/bitswap/package.json index fd5caec26..949bdf539 100644 --- a/packages/bitswap/package.json +++ b/packages/bitswap/package.json @@ -1,6 +1,6 @@ { "name": "@helia/bitswap", - "version": "2.0.1", + "version": "2.0.2", "description": "JavaScript implementation of the Bitswap data exchange protocol used by Helia", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/bitswap#readme", @@ -148,8 +148,8 @@ "docs": "aegir docs" }, "dependencies": { - "@helia/interface": "^5.0.0", - "@helia/utils": "^1.0.1", + "@helia/interface": "^5.1.0", + "@helia/utils": "^1.1.0", "@libp2p/interface": "^2.0.0", "@libp2p/logger": "^5.0.0", "@libp2p/peer-collections": "^6.0.0", diff --git a/packages/block-brokers/CHANGELOG.md b/packages/block-brokers/CHANGELOG.md index 67ebb423a..ea2064379 100644 --- a/packages/block-brokers/CHANGELOG.md +++ b/packages/block-brokers/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [4.0.2](https://github.com/ipfs/helia/compare/block-brokers-v4.0.1...block-brokers-v4.0.2) (2024-11-18) + + +### Dependencies + +* bump @multiformats/multiaddr-to-uri from 10.1.2 to 11.0.0 ([#676](https://github.com/ipfs/helia/issues/676)) ([74f392c](https://github.com/ipfs/helia/commit/74f392c207db3536c597d2fa59ad86a647672ec9)) +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/bitswap bumped from ^2.0.1 to ^2.0.2 + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + * @helia/utils bumped from ^1.0.1 to ^1.1.0 + ## [4.0.1](https://github.com/ipfs/helia/compare/block-brokers-v4.0.0...block-brokers-v4.0.1) (2024-10-23) diff --git a/packages/block-brokers/package.json b/packages/block-brokers/package.json index 86525fdf0..d404f81ac 100644 --- a/packages/block-brokers/package.json +++ b/packages/block-brokers/package.json @@ -1,6 +1,6 @@ { "name": "@helia/block-brokers", - "version": "4.0.1", + "version": "4.0.2", "description": "Block brokers for Helia", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/block-brokers#readme", @@ -54,9 +54,9 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@helia/bitswap": "^2.0.1", - "@helia/interface": "^5.0.0", - "@helia/utils": "^1.0.1", + "@helia/bitswap": "^2.0.2", + "@helia/interface": "^5.1.0", + "@helia/utils": "^1.1.0", "@libp2p/interface": "^2.0.0", "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.1", diff --git a/packages/car/CHANGELOG.md b/packages/car/CHANGELOG.md index bc90c6045..2830190b7 100644 --- a/packages/car/CHANGELOG.md +++ b/packages/car/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [4.0.1](https://github.com/ipfs/helia/compare/car-v4.0.0...car-v4.0.1) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + * devDependencies + * @helia/mfs bumped from ^4.0.0 to ^4.0.1 + * @helia/unixfs bumped from ^4.0.0 to ^4.0.1 + ## [4.0.0](https://github.com/ipfs/helia/compare/car-v3.2.1...car-v4.0.0) (2024-10-07) diff --git a/packages/car/package.json b/packages/car/package.json index e49d34af7..31b85c847 100644 --- a/packages/car/package.json +++ b/packages/car/package.json @@ -1,6 +1,6 @@ { "name": "@helia/car", - "version": "4.0.0", + "version": "4.0.1", "description": "Import/export car files from Helia", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/car#readme", @@ -140,7 +140,7 @@ "release": "aegir release" }, "dependencies": { - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@ipld/car": "^5.3.0", "@libp2p/interface": "^2.0.0", "@libp2p/utils": "^6.0.0", @@ -153,8 +153,8 @@ "progress-events": "^1.0.0" }, "devDependencies": { - "@helia/mfs": "^4.0.0", - "@helia/unixfs": "^4.0.0", + "@helia/mfs": "^4.0.1", + "@helia/unixfs": "^4.0.1", "@ipld/dag-pb": "^4.1.0", "aegir": "^45.0.1", "blockstore-core": "^5.0.0", diff --git a/packages/dag-cbor/CHANGELOG.md b/packages/dag-cbor/CHANGELOG.md index 713d0803f..da2a1ff10 100644 --- a/packages/dag-cbor/CHANGELOG.md +++ b/packages/dag-cbor/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [4.0.1](https://github.com/ipfs/helia/compare/dag-cbor-v4.0.0...dag-cbor-v4.0.1) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + ## [4.0.0](https://github.com/ipfs/helia/compare/dag-cbor-v3.0.6...dag-cbor-v4.0.0) (2024-10-07) diff --git a/packages/dag-cbor/package.json b/packages/dag-cbor/package.json index dc5d11ddc..863224cd0 100644 --- a/packages/dag-cbor/package.json +++ b/packages/dag-cbor/package.json @@ -1,6 +1,6 @@ { "name": "@helia/dag-cbor", - "version": "4.0.0", + "version": "4.0.1", "description": "Add/get IPLD blocks containing dag-cbor with your Helia node", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/dag-cbor#readme", @@ -141,7 +141,7 @@ "release": "aegir release" }, "dependencies": { - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@ipld/dag-cbor": "^9.2.0", "@libp2p/interface": "^2.0.0", "interface-blockstore": "^5.2.10", diff --git a/packages/dag-json/CHANGELOG.md b/packages/dag-json/CHANGELOG.md index ae8bd4d38..e48898d51 100644 --- a/packages/dag-json/CHANGELOG.md +++ b/packages/dag-json/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [4.0.1](https://github.com/ipfs/helia/compare/dag-json-v4.0.0...dag-json-v4.0.1) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + ## [4.0.0](https://github.com/ipfs/helia/compare/dag-json-v3.0.6...dag-json-v4.0.0) (2024-10-07) diff --git a/packages/dag-json/package.json b/packages/dag-json/package.json index 8f14e6648..e28edede4 100644 --- a/packages/dag-json/package.json +++ b/packages/dag-json/package.json @@ -1,6 +1,6 @@ { "name": "@helia/dag-json", - "version": "4.0.0", + "version": "4.0.1", "description": "Add/get IPLD blocks containing dag-json with your Helia node", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/dag-json#readme", @@ -140,7 +140,7 @@ "release": "aegir release" }, "dependencies": { - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@ipld/dag-json": "^10.2.0", "@libp2p/interface": "^2.0.0", "interface-blockstore": "^5.2.10", diff --git a/packages/helia/CHANGELOG.md b/packages/helia/CHANGELOG.md index c1d582df8..ee929278c 100644 --- a/packages/helia/CHANGELOG.md +++ b/packages/helia/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [5.1.1](https://github.com/ipfs/helia/compare/helia-v5.1.0...helia-v5.1.1) (2024-11-18) + + +### Bug Fixes + +* add tls to default delegated routing filters ([#670](https://github.com/ipfs/helia/issues/670)) ([aecac3d](https://github.com/ipfs/helia/commit/aecac3d92cbd22a7331afee8e6f87ef31a9f7d95)) +* remove webtransport from default transports ([#674](https://github.com/ipfs/helia/issues/674)) ([1aa6c8d](https://github.com/ipfs/helia/commit/1aa6c8d93edb779d2e5668081fb847314b2e2c79)) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/block-brokers bumped from ^4.0.1 to ^4.0.2 + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + * @helia/routers bumped from ^2.1.0 to ^2.2.0 + * @helia/utils bumped from ^1.0.1 to ^1.1.0 + ## [5.1.0](https://github.com/ipfs/helia/compare/helia-v5.0.1...helia-v5.1.0) (2024-10-23) diff --git a/packages/helia/package.json b/packages/helia/package.json index 1df09f36c..fa1cf7900 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -1,6 +1,6 @@ { "name": "helia", - "version": "5.1.0", + "version": "5.1.1", "description": "An implementation of IPFS in JavaScript", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/helia#readme", @@ -57,11 +57,11 @@ "dependencies": { "@chainsafe/libp2p-noise": "^16.0.0", "@chainsafe/libp2p-yamux": "^7.0.0", - "@helia/block-brokers": "^4.0.1", + "@helia/block-brokers": "^4.0.2", "@helia/delegated-routing-v1-http-api-client": "^4.1.0", - "@helia/interface": "^5.0.0", - "@helia/routers": "^2.1.0", - "@helia/utils": "^1.0.1", + "@helia/interface": "^5.1.0", + "@helia/routers": "^2.2.0", + "@helia/utils": "^1.1.0", "@libp2p/autonat": "^2.0.0", "@libp2p/bootstrap": "^11.0.0", "@libp2p/circuit-relay-v2": "^3.0.0", diff --git a/packages/http/CHANGELOG.md b/packages/http/CHANGELOG.md index 7fafb67b8..8485a13ad 100644 --- a/packages/http/CHANGELOG.md +++ b/packages/http/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [2.0.2](https://github.com/ipfs/helia/compare/http-v2.0.1...http-v2.0.2) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/block-brokers bumped from ^4.0.1 to ^4.0.2 + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + * @helia/routers bumped from ^2.1.0 to ^2.2.0 + * @helia/utils bumped from ^1.0.1 to ^1.1.0 + ## [2.0.1](https://github.com/ipfs/helia/compare/http-v2.0.0...http-v2.0.1) (2024-10-23) diff --git a/packages/http/package.json b/packages/http/package.json index 4c0e67547..7cc84efe2 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -1,6 +1,6 @@ { "name": "@helia/http", - "version": "2.0.1", + "version": "2.0.2", "description": "A lightweight implementation of IPFS over HTTP in JavaScript", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/http#readme", @@ -54,10 +54,10 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@helia/block-brokers": "^4.0.1", - "@helia/interface": "^5.0.0", - "@helia/routers": "^2.1.0", - "@helia/utils": "^1.0.1", + "@helia/block-brokers": "^4.0.2", + "@helia/interface": "^5.1.0", + "@helia/routers": "^2.2.0", + "@helia/utils": "^1.1.0", "blockstore-core": "^5.0.0", "datastore-core": "^10.0.0" }, diff --git a/packages/interface/CHANGELOG.md b/packages/interface/CHANGELOG.md index 29b10a8a1..903c5da9b 100644 --- a/packages/interface/CHANGELOG.md +++ b/packages/interface/CHANGELOG.md @@ -5,6 +5,18 @@ * expose .dns property on @helia/interface ([#465](https://github.com/ipfs/helia/issues/465)) ([8c9bb7d](https://github.com/ipfs/helia/commit/8c9bb7d224a1b786cba1fba18bffe07001a3b95d)) +## [5.1.0](https://github.com/ipfs/helia/compare/interface-v5.0.0...interface-v5.1.0) (2024-11-18) + + +### Features + +* add cancelReprovide function to routing ([#672](https://github.com/ipfs/helia/issues/672)) ([dc13525](https://github.com/ipfs/helia/commit/dc1352563ab5ed7b204ae702c1e48035d196a470)) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) + ## [5.0.0](https://github.com/ipfs/helia/compare/interface-v4.3.1...interface-v5.0.0) (2024-10-07) diff --git a/packages/interface/package.json b/packages/interface/package.json index 6b2c6bcf3..11b6eca37 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -1,6 +1,6 @@ { "name": "@helia/interface", - "version": "5.0.0", + "version": "5.1.0", "description": "The Helia API", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/interface#readme", diff --git a/packages/interop/CHANGELOG.md b/packages/interop/CHANGELOG.md index 518a62d30..1e762df4a 100644 --- a/packages/interop/CHANGELOG.md +++ b/packages/interop/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [7.0.3](https://github.com/ipfs/helia/compare/interop-v7.0.2...interop-v7.0.3) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* bump kubo from 0.31.0 to 0.32.0 ([#679](https://github.com/ipfs/helia/issues/679)) ([c09fef2](https://github.com/ipfs/helia/commit/c09fef29b749eecf969f9812dea7ab49477582f7)) +* The following workspace dependencies were updated + * dependencies + * @helia/block-brokers bumped from ^4.0.1 to ^4.0.2 + * @helia/car bumped from ^4.0.0 to ^4.0.1 + * @helia/dag-cbor bumped from ^4.0.0 to ^4.0.1 + * @helia/dag-json bumped from ^4.0.0 to ^4.0.1 + * @helia/http bumped from ^2.0.1 to ^2.0.2 + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + * @helia/ipns bumped from ^8.0.0 to ^8.0.1 + * @helia/json bumped from ^4.0.0 to ^4.0.1 + * @helia/mfs bumped from ^4.0.0 to ^4.0.1 + * @helia/routers bumped from ^2.1.0 to ^2.2.0 + * @helia/strings bumped from ^4.0.0 to ^4.0.1 + * @helia/unixfs bumped from ^4.0.0 to ^4.0.1 + * helia bumped from ^5.1.0 to ^5.1.1 + ## [7.0.2](https://github.com/ipfs/helia/compare/interop-v7.0.1...interop-v7.0.2) (2024-10-23) diff --git a/packages/interop/package.json b/packages/interop/package.json index d6d8d7205..7ee9a337e 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -1,6 +1,6 @@ { "name": "@helia/interop", - "version": "7.0.2", + "version": "7.0.3", "description": "Interop tests for Helia", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/interop#readme", @@ -59,18 +59,18 @@ }, "dependencies": { "@chainsafe/libp2p-gossipsub": "^14.0.0", - "@helia/block-brokers": "^4.0.1", - "@helia/car": "^4.0.0", - "@helia/dag-cbor": "^4.0.0", - "@helia/dag-json": "^4.0.0", - "@helia/http": "^2.0.1", - "@helia/interface": "^5.0.0", - "@helia/ipns": "^8.0.0", - "@helia/json": "^4.0.0", - "@helia/mfs": "^4.0.0", - "@helia/routers": "^2.1.0", - "@helia/strings": "^4.0.0", - "@helia/unixfs": "^4.0.0", + "@helia/block-brokers": "^4.0.2", + "@helia/car": "^4.0.1", + "@helia/dag-cbor": "^4.0.1", + "@helia/dag-json": "^4.0.1", + "@helia/http": "^2.0.2", + "@helia/interface": "^5.1.0", + "@helia/ipns": "^8.0.1", + "@helia/json": "^4.0.1", + "@helia/mfs": "^4.0.1", + "@helia/routers": "^2.2.0", + "@helia/strings": "^4.0.1", + "@helia/unixfs": "^4.0.1", "@ipld/car": "^5.3.0", "@ipld/dag-cbor": "^9.2.0", "@libp2p/crypto": "^5.0.0", @@ -81,7 +81,7 @@ "@libp2p/websockets": "^9.0.0", "@multiformats/sha3": "^3.0.2", "aegir": "^45.0.1", - "helia": "^5.1.0", + "helia": "^5.1.1", "ipfs-unixfs-importer": "^15.2.4", "ipfsd-ctl": "^15.0.0", "ipns": "^10.0.0", diff --git a/packages/ipns/CHANGELOG.md b/packages/ipns/CHANGELOG.md index 17a9b4b41..3f74683b8 100644 --- a/packages/ipns/CHANGELOG.md +++ b/packages/ipns/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [8.0.1](https://github.com/ipfs/helia/compare/ipns-v8.0.0...ipns-v8.0.1) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + ## [8.0.0](https://github.com/ipfs/helia/compare/ipns-v7.2.3...ipns-v8.0.0) (2024-10-07) diff --git a/packages/ipns/package.json b/packages/ipns/package.json index 514a89821..de88cbb69 100644 --- a/packages/ipns/package.json +++ b/packages/ipns/package.json @@ -1,6 +1,6 @@ { "name": "@helia/ipns", - "version": "8.0.0", + "version": "8.0.1", "description": "An implementation of IPNS for Helia", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/ipns#readme", @@ -165,7 +165,7 @@ "release": "aegir release" }, "dependencies": { - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@libp2p/interface": "^2.0.0", "@libp2p/kad-dht": "^14.0.0", "@libp2p/logger": "^5.0.0", diff --git a/packages/json/CHANGELOG.md b/packages/json/CHANGELOG.md index 073d20abe..ea4e74d82 100644 --- a/packages/json/CHANGELOG.md +++ b/packages/json/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [4.0.1](https://github.com/ipfs/helia/compare/json-v4.0.0...json-v4.0.1) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + ## [4.0.0](https://github.com/ipfs/helia/compare/json-v3.0.6...json-v4.0.0) (2024-10-07) diff --git a/packages/json/package.json b/packages/json/package.json index 6647c1ec4..6f2f2b3bc 100644 --- a/packages/json/package.json +++ b/packages/json/package.json @@ -1,6 +1,6 @@ { "name": "@helia/json", - "version": "4.0.0", + "version": "4.0.1", "description": "Add/get IPLD blocks containing json with your Helia node", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/json#readme", @@ -140,7 +140,7 @@ "release": "aegir release" }, "dependencies": { - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@libp2p/interface": "^2.0.0", "interface-blockstore": "^5.2.10", "multiformats": "^13.1.0", diff --git a/packages/mfs/CHANGELOG.md b/packages/mfs/CHANGELOG.md index 58615e840..88bb9ea0a 100644 --- a/packages/mfs/CHANGELOG.md +++ b/packages/mfs/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [4.0.1](https://github.com/ipfs/helia/compare/mfs-v4.0.0...mfs-v4.0.1) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/unixfs bumped from ^4.0.0 to ^4.0.1 + ## [4.0.0](https://github.com/ipfs/helia/compare/mfs-v3.0.8...mfs-v4.0.0) (2024-10-07) diff --git a/packages/mfs/package.json b/packages/mfs/package.json index a182d8d3b..9e57ca82a 100644 --- a/packages/mfs/package.json +++ b/packages/mfs/package.json @@ -1,6 +1,6 @@ { "name": "@helia/mfs", - "version": "4.0.0", + "version": "4.0.1", "description": "A mutable filesystem powered by Helia", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/mfs#readme", @@ -140,7 +140,7 @@ "release": "aegir release" }, "dependencies": { - "@helia/unixfs": "^4.0.0", + "@helia/unixfs": "^4.0.1", "@libp2p/interface": "^2.0.0", "@libp2p/logger": "^5.0.0", "interface-blockstore": "^5.2.10", diff --git a/packages/routers/CHANGELOG.md b/packages/routers/CHANGELOG.md index 7cb9d4f4f..fe1fd78af 100644 --- a/packages/routers/CHANGELOG.md +++ b/packages/routers/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [2.2.0](https://github.com/ipfs/helia/compare/routers-v2.1.0...routers-v2.2.0) (2024-11-18) + + +### Features + +* add cancelReprovide function to routing ([#672](https://github.com/ipfs/helia/issues/672)) ([dc13525](https://github.com/ipfs/helia/commit/dc1352563ab5ed7b204ae702c1e48035d196a470)) + + +### Bug Fixes + +* add tls to default delegated routing filters ([#670](https://github.com/ipfs/helia/issues/670)) ([aecac3d](https://github.com/ipfs/helia/commit/aecac3d92cbd22a7331afee8e6f87ef31a9f7d95)) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + ## [2.1.0](https://github.com/ipfs/helia/compare/routers-v2.0.0...routers-v2.1.0) (2024-10-23) diff --git a/packages/routers/package.json b/packages/routers/package.json index 8a33f1bc7..d64303d3d 100644 --- a/packages/routers/package.json +++ b/packages/routers/package.json @@ -1,6 +1,6 @@ { "name": "@helia/routers", - "version": "2.1.0", + "version": "2.2.0", "description": "Routers for Helia", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/routers#readme", @@ -55,7 +55,7 @@ }, "dependencies": { "@helia/delegated-routing-v1-http-api-client": "^4.1.0", - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@libp2p/peer-id": "^5.0.0", "@libp2p/interface": "^2.0.0", "@multiformats/uri-to-multiaddr": "^8.0.0", diff --git a/packages/strings/CHANGELOG.md b/packages/strings/CHANGELOG.md index 664178878..55c4433b2 100644 --- a/packages/strings/CHANGELOG.md +++ b/packages/strings/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [4.0.1](https://github.com/ipfs/helia/compare/strings-v4.0.0...strings-v4.0.1) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + ## [4.0.0](https://github.com/ipfs/helia/compare/strings-v3.0.6...strings-v4.0.0) (2024-10-07) diff --git a/packages/strings/package.json b/packages/strings/package.json index 20d61128a..4ee73c5b2 100644 --- a/packages/strings/package.json +++ b/packages/strings/package.json @@ -1,6 +1,6 @@ { "name": "@helia/strings", - "version": "4.0.0", + "version": "4.0.1", "description": "Add/get IPLD blocks containing strings with your Helia node", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/strings#readme", @@ -142,7 +142,7 @@ "release": "aegir release" }, "dependencies": { - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@libp2p/interface": "^2.0.0", "interface-blockstore": "^5.2.10", "multiformats": "^13.1.0", diff --git a/packages/unixfs/CHANGELOG.md b/packages/unixfs/CHANGELOG.md index 35a838b71..fc5ec7787 100644 --- a/packages/unixfs/CHANGELOG.md +++ b/packages/unixfs/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [4.0.1](https://github.com/ipfs/helia/compare/unixfs-v4.0.0...unixfs-v4.0.1) (2024-11-18) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + ## [4.0.0](https://github.com/ipfs/helia/compare/unixfs-v3.0.7...unixfs-v4.0.0) (2024-10-07) diff --git a/packages/unixfs/package.json b/packages/unixfs/package.json index bbe02a327..04987755d 100644 --- a/packages/unixfs/package.json +++ b/packages/unixfs/package.json @@ -1,6 +1,6 @@ { "name": "@helia/unixfs", - "version": "4.0.0", + "version": "4.0.1", "description": "A Helia-compatible wrapper for UnixFS", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/unixfs#readme", @@ -160,7 +160,7 @@ "release": "aegir release" }, "dependencies": { - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@ipld/dag-pb": "^4.1.0", "@libp2p/interface": "^2.0.0", "@libp2p/logger": "^5.0.0", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 4667b6049..540cb5b34 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.1.0](https://github.com/ipfs/helia/compare/utils-v1.0.1...utils-v1.1.0) (2024-11-18) + + +### Features + +* add cancelReprovide function to routing ([#672](https://github.com/ipfs/helia/issues/672)) ([dc13525](https://github.com/ipfs/helia/commit/dc1352563ab5ed7b204ae702c1e48035d196a470)) + + +### Dependencies + +* bump aegir from 44.1.4 to 45.0.1 ([#669](https://github.com/ipfs/helia/issues/669)) ([e58e49c](https://github.com/ipfs/helia/commit/e58e49c6aed8ea9d1e9851435a25e33fdbee3781)) +* The following workspace dependencies were updated + * dependencies + * @helia/interface bumped from ^5.0.0 to ^5.1.0 + ## [1.0.1](https://github.com/ipfs/helia/compare/utils-v1.0.0...utils-v1.0.1) (2024-10-23) diff --git a/packages/utils/package.json b/packages/utils/package.json index f06e0a936..f0d7a744d 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@helia/utils", - "version": "1.0.1", + "version": "1.1.0", "description": "Shared code that implements the Helia API", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/helia/tree/main/packages/utils#readme", @@ -54,7 +54,7 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@helia/interface": "^5.0.0", + "@helia/interface": "^5.1.0", "@ipld/dag-cbor": "^9.2.0", "@ipld/dag-json": "^10.2.0", "@ipld/dag-pb": "^4.1.0", From 3d1ce0bc915eafee054ae493cbc6003105660df9 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Thu, 28 Nov 2024 14:12:00 +0000 Subject: [PATCH 11/23] chore: update project config (#683) Updates license files so they are detected by GitHub and applies other configuration updates. --- .github/dependabot.yml | 26 +++- .github/workflows/main.yml | 24 +-- LICENSE | 4 - LICENSE-APACHE | 202 +++++++++++++++++++++++++- README.md | 6 +- packages/bitswap/LICENSE | 4 - packages/bitswap/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/bitswap/README.md | 6 +- packages/bitswap/package.json | 146 ++++--------------- packages/bitswap/tsconfig.json | 3 + packages/block-brokers/LICENSE | 4 - packages/block-brokers/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/block-brokers/README.md | 4 +- packages/block-brokers/package.json | 26 ++-- packages/block-brokers/tsconfig.json | 3 + packages/car/LICENSE | 4 - packages/car/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/car/README.md | 4 +- packages/car/package.json | 118 ++------------- packages/car/tsconfig.json | 3 + packages/dag-cbor/LICENSE | 4 - packages/dag-cbor/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/dag-cbor/README.md | 4 +- packages/dag-cbor/package.json | 102 +------------ packages/dag-json/LICENSE | 4 - packages/dag-json/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/dag-json/README.md | 4 +- packages/dag-json/package.json | 102 +------------ packages/helia/LICENSE | 4 - packages/helia/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/helia/README.md | 4 +- packages/helia/package.json | 62 ++++---- packages/http/LICENSE | 4 - packages/http/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/http/README.md | 4 +- packages/http/package.json | 12 +- packages/interface/LICENSE | 4 - packages/interface/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/interface/README.md | 4 +- packages/interface/package.json | 16 +- packages/interop/LICENSE | 4 - packages/interop/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/interop/README.md | 4 +- packages/interop/package.json | 46 +++--- packages/ipns/LICENSE | 4 - packages/ipns/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/ipns/README.md | 4 +- packages/ipns/package.json | 114 ++------------- packages/ipns/typedoc.json | 1 + packages/json/LICENSE | 4 - packages/json/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/json/README.md | 4 +- packages/json/package.json | 100 +------------ packages/mfs/LICENSE | 4 - packages/mfs/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/mfs/README.md | 4 +- packages/mfs/package.json | 124 +++------------- packages/routers/LICENSE | 4 - packages/routers/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/routers/README.md | 4 +- packages/routers/package.json | 22 +-- packages/strings/LICENSE | 4 - packages/strings/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/strings/README.md | 4 +- packages/strings/package.json | 102 +------------ packages/unixfs/LICENSE | 4 - packages/unixfs/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/unixfs/README.md | 4 +- packages/unixfs/package.json | 124 +++------------- packages/utils/LICENSE | 4 - packages/utils/LICENSE-APACHE | 202 +++++++++++++++++++++++++- packages/utils/README.md | 4 +- packages/utils/package.json | 52 +++---- 73 files changed, 3712 insertions(+), 1190 deletions(-) delete mode 100644 LICENSE delete mode 100644 packages/bitswap/LICENSE delete mode 100644 packages/block-brokers/LICENSE delete mode 100644 packages/car/LICENSE delete mode 100644 packages/dag-cbor/LICENSE delete mode 100644 packages/dag-json/LICENSE delete mode 100644 packages/helia/LICENSE delete mode 100644 packages/http/LICENSE delete mode 100644 packages/interface/LICENSE delete mode 100644 packages/interop/LICENSE delete mode 100644 packages/ipns/LICENSE delete mode 100644 packages/json/LICENSE delete mode 100644 packages/mfs/LICENSE delete mode 100644 packages/routers/LICENSE delete mode 100644 packages/strings/LICENSE delete mode 100644 packages/unixfs/LICENSE delete mode 100644 packages/utils/LICENSE diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 27d304fc1..52b369eca 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,17 +1,37 @@ version: 2 updates: - package-ecosystem: npm - directory: "/" + directories: + - "/" + - "/benchmarks/*" + - "/docs/*" + - "/examples/*" + - "/interop/*" + - "/packages/*" schedule: interval: daily time: "10:00" open-pull-requests-limit: 20 commit-message: prefix: "deps" - prefix-development: "deps(dev)" + prefix-development: "chore" + groups: + helia-deps: # group all deps that should be updated when Helia deps need updated + patterns: + - "*helia*" + - "*libp2p*" + - "*multiformats*" + store-deps: # group all blockstore and datastore updates (interface & impl) + patterns: + - "*blockstore*" + - "*datastore*" + kubo-deps: # group kubo, kubo-rpc-client, and ipfsd-ctl updates + patterns: + - "*kubo*" + - "ipfsd-ctl" - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" commit-message: - prefix: ci + prefix: chore diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbe9d0d05..b3182f1c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main check: needs: build @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present lint - run: npm run --if-present dep-check - run: npm run --if-present doc-check @@ -44,7 +44,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:node - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: @@ -60,7 +60,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:chrome - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: @@ -76,7 +76,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:chrome-webworker - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: @@ -92,7 +92,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:firefox - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: @@ -108,7 +108,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:firefox-webworker - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: @@ -124,7 +124,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:webkit - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: @@ -140,7 +140,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npx xvfb-maybe npm run --if-present test:electron-main - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: @@ -156,7 +156,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: ipfs/aegir/actions/cache-node-modules@master + - uses: ipfs/aegir/actions/cache-node-modules@main - run: npx xvfb-maybe npm run --if-present test:electron-renderer - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 with: @@ -194,8 +194,8 @@ jobs: with: node-version: lts/* registry-url: 'https://registry.npmjs.org' - - uses: ipfs/aegir/actions/cache-node-modules@master - - uses: ipfs/aegir/actions/docker-login@master + - uses: ipfs/aegir/actions/cache-node-modules@main + - uses: ipfs/aegir/actions/docker-login@main with: docker-token: ${{ secrets.DOCKER_TOKEN }} docker-username: ${{ secrets.DOCKER_USERNAME }} diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/LICENSE-APACHE b/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/LICENSE-APACHE +++ b/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index ab2c3bc9c..9dea2d6ce 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ Check out the [Helia examples repo](https://github.com/ipfs-examples/helia-examp # 📒 API Docs -- https://ipfs.github.io/helia +- # 📐 System diagram @@ -277,5 +277,5 @@ Unless you explicitly state otherwise, any contribution intentionally submitted 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/helia/blob/main/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/LICENSE-MIT) / ) diff --git a/packages/bitswap/LICENSE b/packages/bitswap/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/bitswap/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/bitswap/LICENSE-APACHE b/packages/bitswap/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/bitswap/LICENSE-APACHE +++ b/packages/bitswap/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/bitswap/README.md b/packages/bitswap/README.md index c599bd80e..e4c44907d 100644 --- a/packages/bitswap/README.md +++ b/packages/bitswap/README.md @@ -1,3 +1,5 @@ +# @helia/bitswap + [![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/helia.svg?style=flat-square)](https://codecov.io/gh/ipfs/helia) @@ -48,8 +50,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/bitswap/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/bitswap/LICENSE-MIT) / ) # Contribute diff --git a/packages/bitswap/package.json b/packages/bitswap/package.json index 949bdf539..7be6a2dd1 100644 --- a/packages/bitswap/package.json +++ b/packages/bitswap/package.json @@ -46,96 +46,10 @@ "*.test-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": { "clean": "aegir clean", "lint": "aegir lint", "build": "aegir build", - "release": "aegir release", "test": "aegir test", "test:node": "aegir test -t node --cov", "test:chrome": "aegir test -t browser --cov", @@ -150,44 +64,44 @@ "dependencies": { "@helia/interface": "^5.1.0", "@helia/utils": "^1.1.0", - "@libp2p/interface": "^2.0.0", - "@libp2p/logger": "^5.0.0", - "@libp2p/peer-collections": "^6.0.0", - "@libp2p/utils": "^6.0.0", - "@multiformats/multiaddr": "^12.1.14", + "@libp2p/interface": "^2.2.1", + "@libp2p/logger": "^5.1.4", + "@libp2p/peer-collections": "^6.0.12", + "@libp2p/utils": "^6.2.1", + "@multiformats/multiaddr": "^12.3.3", "any-signal": "^4.1.1", - "interface-blockstore": "^5.2.9", - "interface-store": "^6.0.0", - "it-drain": "^3.0.5", - "it-length-prefixed": "^9.0.0", - "it-length-prefixed-stream": "^1.1.6", - "it-map": "^3.0.5", + "interface-blockstore": "^5.3.1", + "interface-store": "^6.0.2", + "it-drain": "^3.0.7", + "it-length-prefixed": "^9.1.0", + "it-length-prefixed-stream": "^1.2.0", + "it-map": "^3.1.1", "it-pipe": "^3.0.1", - "it-take": "^3.0.1", - "multiformats": "^13.0.1", - "p-defer": "^4.0.0", - "progress-events": "^1.0.0", - "protons-runtime": "^5.0.0", - "race-event": "^1.2.0", - "uint8-varint": "^2.0.3", - "uint8arraylist": "^2.4.3", - "uint8arrays": "^5.0.1" + "it-take": "^3.0.6", + "multiformats": "^13.3.1", + "p-defer": "^4.0.1", + "progress-events": "^1.0.1", + "protons-runtime": "^5.5.0", + "race-event": "^1.3.0", + "uint8-varint": "^2.0.4", + "uint8arraylist": "^2.4.8", + "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/crypto": "^5.0.0", - "@libp2p/interface-compliance-tests": "^6.0.0", - "@libp2p/peer-id": "^5.0.0", + "@libp2p/crypto": "^5.0.7", + "@libp2p/interface-compliance-tests": "^6.1.11", + "@libp2p/peer-id": "^5.0.8", "@types/sinon": "^17.0.3", - "aegir": "^45.0.1", - "blockstore-core": "^5.0.0", + "aegir": "^45.0.6", + "blockstore-core": "^5.0.2", "delay": "^6.0.0", - "it-all": "^3.0.4", + "it-all": "^3.0.6", "it-pair": "^2.0.6", - "it-protobuf-stream": "^1.1.2", - "p-event": "^6.0.0", - "p-retry": "^6.2.0", + "it-protobuf-stream": "^1.1.5", + "p-event": "^6.0.1", + "p-retry": "^6.2.1", "p-wait-for": "^5.0.2", - "protons": "^7.0.2", + "protons": "^7.6.0", "sinon": "^19.0.2", "sinon-ts": "^2.0.0" }, diff --git a/packages/bitswap/tsconfig.json b/packages/bitswap/tsconfig.json index 4c0bdf772..e16a53ae7 100644 --- a/packages/bitswap/tsconfig.json +++ b/packages/bitswap/tsconfig.json @@ -10,6 +10,9 @@ "references": [ { "path": "../interface" + }, + { + "path": "../utils" } ] } diff --git a/packages/block-brokers/LICENSE b/packages/block-brokers/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/block-brokers/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/block-brokers/LICENSE-APACHE b/packages/block-brokers/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/block-brokers/LICENSE-APACHE +++ b/packages/block-brokers/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/block-brokers/README.md b/packages/block-brokers/README.md index 2f4fc4e1e..fecbf3f52 100644 --- a/packages/block-brokers/README.md +++ b/packages/block-brokers/README.md @@ -35,8 +35,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/block-brokers/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/block-brokers/LICENSE-MIT) / ) # Contribute diff --git a/packages/block-brokers/package.json b/packages/block-brokers/package.json index d404f81ac..b026d0167 100644 --- a/packages/block-brokers/package.json +++ b/packages/block-brokers/package.json @@ -57,28 +57,28 @@ "@helia/bitswap": "^2.0.2", "@helia/interface": "^5.1.0", "@helia/utils": "^1.1.0", - "@libp2p/interface": "^2.0.0", - "@libp2p/utils": "^6.0.0", - "@multiformats/multiaddr": "^12.2.1", - "@multiformats/multiaddr-matcher": "^1.2.0", + "@libp2p/interface": "^2.2.1", + "@libp2p/utils": "^6.2.1", + "@multiformats/multiaddr": "^12.3.3", + "@multiformats/multiaddr-matcher": "^1.6.0", "@multiformats/multiaddr-to-uri": "^11.0.0", - "interface-blockstore": "^5.2.10", - "interface-store": "^6.0.0", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0" + "interface-blockstore": "^5.3.1", + "interface-store": "^6.0.2", + "multiformats": "^13.3.1", + "progress-events": "^1.0.1" }, "devDependencies": { - "@libp2p/crypto": "^5.0.0", - "@libp2p/logger": "^5.0.0", - "@libp2p/peer-id": "^5.0.0", + "@libp2p/crypto": "^5.0.7", + "@libp2p/logger": "^5.1.4", + "@libp2p/peer-id": "^5.0.8", "@multiformats/uri-to-multiaddr": "^8.0.0", "@types/polka": "^0.5.7", "@types/sinon": "^17.0.3", - "aegir": "^45.0.1", + "aegir": "^45.0.6", "cors": "^2.8.5", "polka": "^0.5.2", "sinon": "^19.0.2", "sinon-ts": "^2.0.0", - "uint8arrays": "^5.0.3" + "uint8arrays": "^5.1.0" } } diff --git a/packages/block-brokers/tsconfig.json b/packages/block-brokers/tsconfig.json index 26c90c06a..945532293 100644 --- a/packages/block-brokers/tsconfig.json +++ b/packages/block-brokers/tsconfig.json @@ -13,6 +13,9 @@ }, { "path": "../interface" + }, + { + "path": "../utils" } ] } diff --git a/packages/car/LICENSE b/packages/car/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/car/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/car/LICENSE-APACHE b/packages/car/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/car/LICENSE-APACHE +++ b/packages/car/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/car/README.md b/packages/car/README.md index 57aa68b30..b81e1457a 100644 --- a/packages/car/README.md +++ b/packages/car/README.md @@ -109,8 +109,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/car/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/car/LICENSE-MIT) / ) # Contribute diff --git a/packages/car/package.json b/packages/car/package.json index 31b85c847..6746433f3 100644 --- a/packages/car/package.json +++ b/packages/car/package.json @@ -39,91 +39,6 @@ "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": { "clean": "aegir clean", "lint": "aegir lint", @@ -136,31 +51,30 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@helia/interface": "^5.1.0", - "@ipld/car": "^5.3.0", - "@libp2p/interface": "^2.0.0", - "@libp2p/utils": "^6.0.0", - "interface-blockstore": "^5.2.10", - "it-drain": "^3.0.5", - "it-map": "^3.0.5", - "multiformats": "^13.1.0", - "p-defer": "^4.0.0", + "@ipld/car": "^5.3.3", + "@libp2p/interface": "^2.2.1", + "@libp2p/utils": "^6.2.1", + "interface-blockstore": "^5.3.1", + "it-drain": "^3.0.7", + "it-map": "^3.1.1", + "multiformats": "^13.3.1", + "p-defer": "^4.0.1", "p-queue": "^8.0.1", - "progress-events": "^1.0.0" + "progress-events": "^1.0.1" }, "devDependencies": { "@helia/mfs": "^4.0.1", "@helia/unixfs": "^4.0.1", - "@ipld/dag-pb": "^4.1.0", - "aegir": "^45.0.1", - "blockstore-core": "^5.0.0", - "datastore-core": "^10.0.0", - "ipfs-unixfs-importer": "^15.2.4", - "it-to-buffer": "^4.0.5" + "@ipld/dag-pb": "^4.1.3", + "aegir": "^45.0.6", + "blockstore-core": "^5.0.2", + "datastore-core": "^10.0.2", + "ipfs-unixfs-importer": "^15.3.1", + "it-to-buffer": "^4.0.7" }, "sideEffects": false } diff --git a/packages/car/tsconfig.json b/packages/car/tsconfig.json index 83da57918..3228e8210 100644 --- a/packages/car/tsconfig.json +++ b/packages/car/tsconfig.json @@ -11,6 +11,9 @@ { "path": "../interface" }, + { + "path": "../mfs" + }, { "path": "../unixfs" } diff --git a/packages/dag-cbor/LICENSE b/packages/dag-cbor/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/dag-cbor/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/dag-cbor/LICENSE-APACHE b/packages/dag-cbor/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/dag-cbor/LICENSE-APACHE +++ b/packages/dag-cbor/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/dag-cbor/README.md b/packages/dag-cbor/README.md index b5d6e54e9..80c8e8e4e 100644 --- a/packages/dag-cbor/README.md +++ b/packages/dag-cbor/README.md @@ -75,8 +75,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/dag-cbor/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/dag-cbor/LICENSE-MIT) / ) # Contribute diff --git a/packages/dag-cbor/package.json b/packages/dag-cbor/package.json index 863224cd0..f300d522b 100644 --- a/packages/dag-cbor/package.json +++ b/packages/dag-cbor/package.json @@ -39,91 +39,6 @@ "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": { "clean": "aegir clean", "lint": "aegir lint", @@ -137,20 +52,19 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@helia/interface": "^5.1.0", - "@ipld/dag-cbor": "^9.2.0", - "@libp2p/interface": "^2.0.0", - "interface-blockstore": "^5.2.10", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0" + "@ipld/dag-cbor": "^9.2.2", + "@libp2p/interface": "^2.2.1", + "interface-blockstore": "^5.3.1", + "multiformats": "^13.3.1", + "progress-events": "^1.0.1" }, "devDependencies": { - "aegir": "^45.0.1", - "blockstore-core": "^5.0.0" + "aegir": "^45.0.6", + "blockstore-core": "^5.0.2" }, "sideEffects": false } diff --git a/packages/dag-json/LICENSE b/packages/dag-json/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/dag-json/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/dag-json/LICENSE-APACHE b/packages/dag-json/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/dag-json/LICENSE-APACHE +++ b/packages/dag-json/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/dag-json/README.md b/packages/dag-json/README.md index 69ad17211..4eca3c80a 100644 --- a/packages/dag-json/README.md +++ b/packages/dag-json/README.md @@ -75,8 +75,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/dag-json/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/dag-json/LICENSE-MIT) / ) # Contribute diff --git a/packages/dag-json/package.json b/packages/dag-json/package.json index e28edede4..8c566a859 100644 --- a/packages/dag-json/package.json +++ b/packages/dag-json/package.json @@ -39,91 +39,6 @@ "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": { "clean": "aegir clean", "lint": "aegir lint", @@ -136,20 +51,19 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@helia/interface": "^5.1.0", - "@ipld/dag-json": "^10.2.0", - "@libp2p/interface": "^2.0.0", - "interface-blockstore": "^5.2.10", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0" + "@ipld/dag-json": "^10.2.3", + "@libp2p/interface": "^2.2.1", + "interface-blockstore": "^5.3.1", + "multiformats": "^13.3.1", + "progress-events": "^1.0.1" }, "devDependencies": { - "aegir": "^45.0.1", - "blockstore-core": "^5.0.0" + "aegir": "^45.0.6", + "blockstore-core": "^5.0.2" }, "sideEffects": false } diff --git a/packages/helia/LICENSE b/packages/helia/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/helia/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/helia/LICENSE-APACHE b/packages/helia/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/helia/LICENSE-APACHE +++ b/packages/helia/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/helia/README.md b/packages/helia/README.md index 57155442d..47c44f3f1 100644 --- a/packages/helia/README.md +++ b/packages/helia/README.md @@ -69,8 +69,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/helia/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/helia/LICENSE-MIT) / ) # Contribute diff --git a/packages/helia/package.json b/packages/helia/package.json index fa1cf7900..9a8ac3ef7 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -56,45 +56,45 @@ }, "dependencies": { "@chainsafe/libp2p-noise": "^16.0.0", - "@chainsafe/libp2p-yamux": "^7.0.0", + "@chainsafe/libp2p-yamux": "^7.0.1", "@helia/block-brokers": "^4.0.2", - "@helia/delegated-routing-v1-http-api-client": "^4.1.0", + "@helia/delegated-routing-v1-http-api-client": "^4.2.1", "@helia/interface": "^5.1.0", "@helia/routers": "^2.2.0", "@helia/utils": "^1.1.0", - "@libp2p/autonat": "^2.0.0", - "@libp2p/bootstrap": "^11.0.0", - "@libp2p/circuit-relay-v2": "^3.0.0", - "@libp2p/crypto": "^5.0.0", - "@libp2p/dcutr": "^2.0.0", - "@libp2p/identify": "^3.0.0", - "@libp2p/interface": "^2.0.0", - "@libp2p/kad-dht": "^14.0.0", - "@libp2p/keychain": "^5.0.2", - "@libp2p/logger": "^5.0.0", - "@libp2p/mdns": "^11.0.0", - "@libp2p/mplex": "^11.0.0", - "@libp2p/ping": "^2.0.0", - "@libp2p/tcp": "^10.0.0", - "@libp2p/tls": "^2.0.1", - "@libp2p/upnp-nat": "^2.0.0", - "@libp2p/webrtc": "^5.0.0", - "@libp2p/websockets": "^9.0.0", - "@multiformats/dns": "^1.0.1", - "blockstore-core": "^5.0.0", - "datastore-core": "^10.0.0", - "interface-blockstore": "^5.2.10", - "interface-datastore": "^8.2.11", + "@libp2p/autonat": "^2.0.12", + "@libp2p/bootstrap": "^11.0.13", + "@libp2p/circuit-relay-v2": "^3.1.3", + "@libp2p/crypto": "^5.0.7", + "@libp2p/dcutr": "^2.0.12", + "@libp2p/identify": "^3.0.12", + "@libp2p/interface": "^2.2.1", + "@libp2p/kad-dht": "^14.1.3", + "@libp2p/keychain": "^5.0.10", + "@libp2p/logger": "^5.1.4", + "@libp2p/mdns": "^11.0.13", + "@libp2p/mplex": "^11.0.13", + "@libp2p/ping": "^2.0.12", + "@libp2p/tcp": "^10.0.13", + "@libp2p/tls": "^2.0.11", + "@libp2p/upnp-nat": "^2.0.12", + "@libp2p/webrtc": "^5.0.19", + "@libp2p/websockets": "^9.0.13", + "@multiformats/dns": "^1.0.6", + "blockstore-core": "^5.0.2", + "datastore-core": "^10.0.2", + "interface-blockstore": "^5.3.1", + "interface-datastore": "^8.3.1", "ipns": "^10.0.0", - "libp2p": "^2.0.0", - "multiformats": "^13.1.0" + "libp2p": "^2.3.1", + "multiformats": "^13.3.1" }, "devDependencies": { "@multiformats/mafmt": "^12.1.6", - "@multiformats/multiaddr": "^12.1.14", - "aegir": "^45.0.1", - "it-all": "^3.0.4", - "it-drain": "^3.0.5" + "@multiformats/multiaddr": "^12.3.3", + "aegir": "^45.0.6", + "it-all": "^3.0.6", + "it-drain": "^3.0.7" }, "browser": { "./dist/src/utils/libp2p-defaults.js": "./dist/src/utils/libp2p-defaults.browser.js" diff --git a/packages/http/LICENSE b/packages/http/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/http/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/http/LICENSE-APACHE b/packages/http/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/http/LICENSE-APACHE +++ b/packages/http/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/http/README.md b/packages/http/README.md index 8303f6d76..5cb80894a 100644 --- a/packages/http/README.md +++ b/packages/http/README.md @@ -98,8 +98,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/http/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/http/LICENSE-MIT) / ) # Contribute diff --git a/packages/http/package.json b/packages/http/package.json index 7cc84efe2..623756e65 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -58,14 +58,14 @@ "@helia/interface": "^5.1.0", "@helia/routers": "^2.2.0", "@helia/utils": "^1.1.0", - "blockstore-core": "^5.0.0", - "datastore-core": "^10.0.0" + "blockstore-core": "^5.0.2", + "datastore-core": "^10.0.2" }, "devDependencies": { - "@libp2p/interface": "^2.0.0", - "aegir": "^45.0.1", - "interface-datastore": "^8.2.11", - "multiformats": "^13.1.0", + "@libp2p/interface": "^2.2.1", + "aegir": "^45.0.6", + "interface-datastore": "^8.3.1", + "multiformats": "^13.3.1", "sinon": "^19.0.2", "sinon-ts": "^2.0.0" }, diff --git a/packages/interface/LICENSE b/packages/interface/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/interface/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/interface/LICENSE-APACHE b/packages/interface/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/interface/LICENSE-APACHE +++ b/packages/interface/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/interface/README.md b/packages/interface/README.md index b21465625..55e8efb7c 100644 --- a/packages/interface/README.md +++ b/packages/interface/README.md @@ -56,8 +56,8 @@ $ npm i @helia/interface 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/helia/blob/main/packages/interface/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/interface/LICENSE-MIT) / ) # Contribute diff --git a/packages/interface/package.json b/packages/interface/package.json index 11b6eca37..ca4e90898 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -71,16 +71,16 @@ "build": "aegir build" }, "dependencies": { - "@libp2p/interface": "^2.0.0", - "@multiformats/dns": "^1.0.1", - "interface-blockstore": "^5.2.10", - "interface-datastore": "^8.2.11", - "interface-store": "^6.0.0", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0" + "@libp2p/interface": "^2.2.1", + "@multiformats/dns": "^1.0.6", + "interface-blockstore": "^5.3.1", + "interface-datastore": "^8.3.1", + "interface-store": "^6.0.2", + "multiformats": "^13.3.1", + "progress-events": "^1.0.1" }, "devDependencies": { - "aegir": "^45.0.1" + "aegir": "^45.0.6" }, "sideEffects": false } diff --git a/packages/interop/LICENSE b/packages/interop/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/interop/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/interop/LICENSE-APACHE b/packages/interop/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/interop/LICENSE-APACHE +++ b/packages/interop/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/interop/README.md b/packages/interop/README.md index 986a6821e..d65ddb961 100644 --- a/packages/interop/README.md +++ b/packages/interop/README.md @@ -42,8 +42,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/interop/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/interop/LICENSE-MIT) / ) # Contribute diff --git a/packages/interop/package.json b/packages/interop/package.json index 7ee9a337e..37d1e383d 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -58,7 +58,7 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@chainsafe/libp2p-gossipsub": "^14.0.0", + "@chainsafe/libp2p-gossipsub": "^14.1.0", "@helia/block-brokers": "^4.0.2", "@helia/car": "^4.0.1", "@helia/dag-cbor": "^4.0.1", @@ -71,31 +71,31 @@ "@helia/routers": "^2.2.0", "@helia/strings": "^4.0.1", "@helia/unixfs": "^4.0.1", - "@ipld/car": "^5.3.0", - "@ipld/dag-cbor": "^9.2.0", - "@libp2p/crypto": "^5.0.0", - "@libp2p/interface": "^2.0.0", - "@libp2p/kad-dht": "^14.0.0", - "@libp2p/keychain": "^5.0.2", - "@libp2p/peer-id": "^5.0.0", - "@libp2p/websockets": "^9.0.0", + "@ipld/car": "^5.3.3", + "@ipld/dag-cbor": "^9.2.2", + "@libp2p/crypto": "^5.0.7", + "@libp2p/interface": "^2.2.1", + "@libp2p/kad-dht": "^14.1.3", + "@libp2p/keychain": "^5.0.10", + "@libp2p/peer-id": "^5.0.8", + "@libp2p/websockets": "^9.0.13", "@multiformats/sha3": "^3.0.2", - "aegir": "^45.0.1", + "aegir": "^45.0.6", "helia": "^5.1.1", - "ipfs-unixfs-importer": "^15.2.4", - "ipfsd-ctl": "^15.0.0", + "ipfs-unixfs-importer": "^15.3.1", + "ipfsd-ctl": "^15.0.2", "ipns": "^10.0.0", - "it-all": "^3.0.4", - "it-drain": "^3.0.5", - "it-last": "^3.0.4", - "it-map": "^3.0.5", - "it-to-buffer": "^4.0.5", - "kubo": "^0.32.0", - "kubo-rpc-client": "^5.0.0", - "libp2p": "^2.0.0", - "multiformats": "^13.1.0", - "p-defer": "^4.0.0", - "uint8arrays": "^5.0.2", + "it-all": "^3.0.6", + "it-drain": "^3.0.7", + "it-last": "^3.0.6", + "it-map": "^3.1.1", + "it-to-buffer": "^4.0.7", + "kubo": "^0.32.1", + "kubo-rpc-client": "^5.0.2", + "libp2p": "^2.3.1", + "multiformats": "^13.3.1", + "p-defer": "^4.0.1", + "uint8arrays": "^5.1.0", "wherearewe": "^2.0.1" }, "browser": { diff --git a/packages/ipns/LICENSE b/packages/ipns/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/ipns/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/ipns/LICENSE-APACHE b/packages/ipns/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/ipns/LICENSE-APACHE +++ b/packages/ipns/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/ipns/README.md b/packages/ipns/README.md index a0c184c48..d557d26ac 100644 --- a/packages/ipns/README.md +++ b/packages/ipns/README.md @@ -305,8 +305,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/ipns/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/ipns/LICENSE-MIT) / ) # Contribute diff --git a/packages/ipns/package.json b/packages/ipns/package.json index de88cbb69..5e4adbc15 100644 --- a/packages/ipns/package.json +++ b/packages/ipns/package.json @@ -63,91 +63,6 @@ "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": { "clean": "aegir clean", "lint": "aegir lint", @@ -161,28 +76,27 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@helia/interface": "^5.1.0", - "@libp2p/interface": "^2.0.0", - "@libp2p/kad-dht": "^14.0.0", - "@libp2p/logger": "^5.0.0", - "@libp2p/peer-id": "^5.0.0", - "@multiformats/dns": "^1.0.1", - "interface-datastore": "^8.2.11", + "@libp2p/interface": "^2.2.1", + "@libp2p/kad-dht": "^14.1.3", + "@libp2p/logger": "^5.1.4", + "@libp2p/peer-id": "^5.0.8", + "@multiformats/dns": "^1.0.6", + "interface-datastore": "^8.3.1", "ipns": "^10.0.0", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0", - "uint8arrays": "^5.0.2" + "multiformats": "^13.3.1", + "progress-events": "^1.0.1", + "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/crypto": "^5.0.0", + "@libp2p/crypto": "^5.0.7", "@types/dns-packet": "^5.6.5", - "aegir": "^45.0.1", - "datastore-core": "^10.0.0", - "it-drain": "^3.0.5", + "aegir": "^45.0.6", + "datastore-core": "^10.0.2", + "it-drain": "^3.0.7", "sinon": "^19.0.2", "sinon-ts": "^2.0.0" }, diff --git a/packages/ipns/typedoc.json b/packages/ipns/typedoc.json index 0c509d8df..6873a0a88 100644 --- a/packages/ipns/typedoc.json +++ b/packages/ipns/typedoc.json @@ -1,6 +1,7 @@ { "entryPoints": [ "./src/index.ts", + "./src/dns-resolvers/index.ts", "./src/routing/index.ts" ] } diff --git a/packages/json/LICENSE b/packages/json/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/json/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/json/LICENSE-APACHE b/packages/json/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/json/LICENSE-APACHE +++ b/packages/json/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/json/README.md b/packages/json/README.md index 8526eb35a..8735a5564 100644 --- a/packages/json/README.md +++ b/packages/json/README.md @@ -75,8 +75,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/json/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/json/LICENSE-MIT) / ) # Contribute diff --git a/packages/json/package.json b/packages/json/package.json index 6f2f2b3bc..efc2a8a3f 100644 --- a/packages/json/package.json +++ b/packages/json/package.json @@ -39,91 +39,6 @@ "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": { "clean": "aegir clean", "lint": "aegir lint", @@ -136,19 +51,18 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@helia/interface": "^5.1.0", - "@libp2p/interface": "^2.0.0", - "interface-blockstore": "^5.2.10", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0" + "@libp2p/interface": "^2.2.1", + "interface-blockstore": "^5.3.1", + "multiformats": "^13.3.1", + "progress-events": "^1.0.1" }, "devDependencies": { - "aegir": "^45.0.1", - "blockstore-core": "^5.0.0" + "aegir": "^45.0.6", + "blockstore-core": "^5.0.2" }, "sideEffects": false } diff --git a/packages/mfs/LICENSE b/packages/mfs/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/mfs/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/mfs/LICENSE-APACHE b/packages/mfs/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/mfs/LICENSE-APACHE +++ b/packages/mfs/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/mfs/README.md b/packages/mfs/README.md index 2c0ba41ec..e6574dc9a 100644 --- a/packages/mfs/README.md +++ b/packages/mfs/README.md @@ -77,8 +77,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/mfs/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/mfs/LICENSE-MIT) / ) # Contribute diff --git a/packages/mfs/package.json b/packages/mfs/package.json index 9e57ca82a..925889996 100644 --- a/packages/mfs/package.json +++ b/packages/mfs/package.json @@ -39,91 +39,6 @@ "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": { "clean": "aegir clean", "lint": "aegir lint", @@ -136,32 +51,31 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@helia/unixfs": "^4.0.1", - "@libp2p/interface": "^2.0.0", - "@libp2p/logger": "^5.0.0", - "interface-blockstore": "^5.2.10", - "interface-datastore": "^8.2.11", - "ipfs-unixfs": "^11.1.3", - "ipfs-unixfs-exporter": "^13.5.0", - "ipfs-unixfs-importer": "^15.2.4", - "multiformats": "^13.1.0" + "@libp2p/interface": "^2.2.1", + "@libp2p/logger": "^5.1.4", + "interface-blockstore": "^5.3.1", + "interface-datastore": "^8.3.1", + "ipfs-unixfs": "^11.2.0", + "ipfs-unixfs-exporter": "^13.6.1", + "ipfs-unixfs-importer": "^15.3.1", + "multiformats": "^13.3.1" }, "devDependencies": { - "@ipld/dag-pb": "^4.1.0", - "aegir": "^45.0.1", - "blockstore-core": "^5.0.0", - "datastore-core": "^10.0.0", + "@ipld/dag-pb": "^4.1.3", + "aegir": "^45.0.6", + "blockstore-core": "^5.0.2", + "datastore-core": "^10.0.2", "delay": "^6.0.0", - "it-all": "^3.0.4", - "it-drain": "^3.0.5", - "it-first": "^3.0.4", - "it-last": "^3.0.4", - "it-to-buffer": "^4.0.5", - "uint8arrays": "^5.0.2" + "it-all": "^3.0.6", + "it-drain": "^3.0.7", + "it-first": "^3.0.6", + "it-last": "^3.0.6", + "it-to-buffer": "^4.0.7", + "uint8arrays": "^5.1.0" }, "sideEffects": false } diff --git a/packages/routers/LICENSE b/packages/routers/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/routers/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/routers/LICENSE-APACHE b/packages/routers/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/routers/LICENSE-APACHE +++ b/packages/routers/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/routers/README.md b/packages/routers/README.md index f66de81f2..8631c6fdf 100644 --- a/packages/routers/README.md +++ b/packages/routers/README.md @@ -54,8 +54,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/routers/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/routers/LICENSE-MIT) / ) # Contribute diff --git a/packages/routers/package.json b/packages/routers/package.json index d64303d3d..5e40bb1aa 100644 --- a/packages/routers/package.json +++ b/packages/routers/package.json @@ -54,22 +54,22 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@helia/delegated-routing-v1-http-api-client": "^4.1.0", + "@helia/delegated-routing-v1-http-api-client": "^4.2.1", "@helia/interface": "^5.1.0", - "@libp2p/peer-id": "^5.0.0", - "@libp2p/interface": "^2.0.0", + "@libp2p/interface": "^2.2.1", + "@libp2p/peer-id": "^5.0.8", "@multiformats/uri-to-multiaddr": "^8.0.0", "ipns": "^10.0.0", - "it-first": "^3.0.4", - "it-map": "^3.0.5", - "multiformats": "^13.1.0", - "uint8arrays": "^5.0.2" + "it-first": "^3.0.6", + "it-map": "^3.1.1", + "multiformats": "^13.3.1", + "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/crypto": "^5.0.0", - "aegir": "^45.0.1", - "it-all": "^3.0.4", - "it-drain": "^3.0.5", + "@libp2p/crypto": "^5.0.7", + "aegir": "^45.0.6", + "it-all": "^3.0.6", + "it-drain": "^3.0.7", "sinon-ts": "^2.0.0" }, "browser": { diff --git a/packages/strings/LICENSE b/packages/strings/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/strings/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/strings/LICENSE-APACHE b/packages/strings/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/strings/LICENSE-APACHE +++ b/packages/strings/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/strings/README.md b/packages/strings/README.md index a96c6e9fc..aac668bb6 100644 --- a/packages/strings/README.md +++ b/packages/strings/README.md @@ -72,8 +72,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/strings/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/strings/LICENSE-MIT) / ) # Contribute diff --git a/packages/strings/package.json b/packages/strings/package.json index 4ee73c5b2..b5d27e44f 100644 --- a/packages/strings/package.json +++ b/packages/strings/package.json @@ -40,91 +40,6 @@ "package": 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": { "clean": "aegir clean", "lint": "aegir lint", @@ -138,20 +53,19 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@helia/interface": "^5.1.0", - "@libp2p/interface": "^2.0.0", - "interface-blockstore": "^5.2.10", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0", - "uint8arrays": "^5.0.2" + "@libp2p/interface": "^2.2.1", + "interface-blockstore": "^5.3.1", + "multiformats": "^13.3.1", + "progress-events": "^1.0.1", + "uint8arrays": "^5.1.0" }, "devDependencies": { - "aegir": "^45.0.1", - "blockstore-core": "^5.0.0" + "aegir": "^45.0.6", + "blockstore-core": "^5.0.2" }, "sideEffects": false } diff --git a/packages/unixfs/LICENSE b/packages/unixfs/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/unixfs/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/unixfs/LICENSE-APACHE b/packages/unixfs/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/unixfs/LICENSE-APACHE +++ b/packages/unixfs/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/unixfs/README.md b/packages/unixfs/README.md index 1b9451f09..ea7f57984 100644 --- a/packages/unixfs/README.md +++ b/packages/unixfs/README.md @@ -96,8 +96,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/unixfs/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/unixfs/LICENSE-MIT) / ) # Contribute diff --git a/packages/unixfs/package.json b/packages/unixfs/package.json index 04987755d..961889966 100644 --- a/packages/unixfs/package.json +++ b/packages/unixfs/package.json @@ -59,91 +59,6 @@ "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": { "clean": "aegir clean", "lint": "aegir lint", @@ -156,38 +71,37 @@ "test:firefox": "aegir test -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -t webworker -- --browser firefox", "test:node": "aegir test -t node --cov", - "test:electron-main": "aegir test -t electron-main", - "release": "aegir release" + "test:electron-main": "aegir test -t electron-main" }, "dependencies": { "@helia/interface": "^5.1.0", - "@ipld/dag-pb": "^4.1.0", - "@libp2p/interface": "^2.0.0", - "@libp2p/logger": "^5.0.0", + "@ipld/dag-pb": "^4.1.3", + "@libp2p/interface": "^2.2.1", + "@libp2p/logger": "^5.1.4", "@multiformats/murmur3": "^2.1.8", "hamt-sharding": "^3.0.6", - "interface-blockstore": "^5.2.10", - "ipfs-unixfs": "^11.1.3", - "ipfs-unixfs-exporter": "^13.5.0", - "ipfs-unixfs-importer": "^15.2.4", - "it-all": "^3.0.4", - "it-glob": "^3.0.0", - "it-last": "^3.0.4", + "interface-blockstore": "^5.3.1", + "ipfs-unixfs": "^11.2.0", + "ipfs-unixfs-exporter": "^13.6.1", + "ipfs-unixfs-importer": "^15.3.1", + "it-all": "^3.0.6", + "it-glob": "^3.0.1", + "it-last": "^3.0.6", "it-pipe": "^3.0.1", "merge-options": "^3.0.4", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0", + "multiformats": "^13.3.1", + "progress-events": "^1.0.1", "sparse-array": "^1.3.2", - "uint8arrays": "^5.0.2" + "uint8arrays": "^5.1.0" }, "devDependencies": { - "aegir": "^45.0.1", - "blockstore-core": "^5.0.0", + "aegir": "^45.0.6", + "blockstore-core": "^5.0.2", "delay": "^6.0.0", "iso-url": "^1.2.1", - "it-drain": "^3.0.5", - "it-first": "^3.0.4", - "it-to-buffer": "^4.0.5", + "it-drain": "^3.0.7", + "it-first": "^3.0.6", + "it-to-buffer": "^4.0.7", "wherearewe": "^2.0.1" }, "browser": { diff --git a/packages/utils/LICENSE b/packages/utils/LICENSE deleted file mode 100644 index 20ce483c8..000000000 --- a/packages/utils/LICENSE +++ /dev/null @@ -1,4 +0,0 @@ -This project is dual licensed under MIT and Apache-2.0. - -MIT: https://www.opensource.org/licenses/mit -Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/packages/utils/LICENSE-APACHE b/packages/utils/LICENSE-APACHE index 14478a3b6..b09cd7856 100644 --- a/packages/utils/LICENSE-APACHE +++ b/packages/utils/LICENSE-APACHE @@ -1,5 +1,201 @@ -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -http://www.apache.org/licenses/LICENSE-2.0 + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/utils/README.md b/packages/utils/README.md index 225affd49..196146887 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -68,8 +68,8 @@ Loading this module through a script tag will make its exports available as `Hel 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/helia/blob/main/packages/utils/LICENSE-APACHE) / ) +- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/utils/LICENSE-MIT) / ) # Contribute diff --git a/packages/utils/package.json b/packages/utils/package.json index f0d7a744d..655bee0a2 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -55,38 +55,38 @@ }, "dependencies": { "@helia/interface": "^5.1.0", - "@ipld/dag-cbor": "^9.2.0", - "@ipld/dag-json": "^10.2.0", - "@ipld/dag-pb": "^4.1.0", - "@libp2p/interface": "^2.0.0", - "@libp2p/logger": "^5.0.0", - "@libp2p/utils": "^6.0.0", - "@multiformats/dns": "^1.0.1", + "@ipld/dag-cbor": "^9.2.2", + "@ipld/dag-json": "^10.2.3", + "@ipld/dag-pb": "^4.1.3", + "@libp2p/interface": "^2.2.1", + "@libp2p/logger": "^5.1.4", + "@libp2p/utils": "^6.2.1", + "@multiformats/dns": "^1.0.6", "any-signal": "^4.1.1", - "blockstore-core": "^5.0.0", - "cborg": "^4.0.9", - "interface-blockstore": "^5.2.10", - "interface-datastore": "^8.2.11", - "interface-store": "^6.0.0", - "it-drain": "^3.0.5", - "it-filter": "^3.0.4", - "it-foreach": "^2.0.6", - "it-merge": "^3.0.3", - "mortice": "^3.0.4", - "multiformats": "^13.1.0", + "blockstore-core": "^5.0.2", + "cborg": "^4.2.6", + "interface-blockstore": "^5.3.1", + "interface-datastore": "^8.3.1", + "interface-store": "^6.0.2", + "it-drain": "^3.0.7", + "it-filter": "^3.1.1", + "it-foreach": "^2.1.1", + "it-merge": "^3.0.5", + "mortice": "^3.0.6", + "multiformats": "^13.3.1", "p-defer": "^4.0.1", - "progress-events": "^1.0.0", - "uint8arrays": "^5.0.2" + "progress-events": "^1.0.1", + "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/crypto": "^5.0.0", - "@libp2p/peer-id": "^5.0.0", + "@libp2p/crypto": "^5.0.7", + "@libp2p/peer-id": "^5.0.8", "@types/sinon": "^17.0.3", - "aegir": "^45.0.1", - "datastore-core": "^10.0.0", + "aegir": "^45.0.6", + "datastore-core": "^10.0.2", "delay": "^6.0.0", - "it-all": "^3.0.4", - "race-signal": "^1.0.2", + "it-all": "^3.0.6", + "race-signal": "^1.1.0", "sinon": "^19.0.2", "sinon-ts": "^2.0.0" }, From 07e0bc0aced52469b140b71e997eb4be55e756af Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 28 Nov 2024 14:16:32 +0000 Subject: [PATCH 12/23] chore: add coc --- CODE_OF_CONDUCT.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..6b0fa54c5 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,3 @@ +# Contributor Code of Conduct + +This project follows the [`IPFS Community Code of Conduct`](https://github.com/ipfs/community/blob/master/code-of-conduct.md) From 4710c657c24fd9546e4208f8a5780118533be7a3 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 28 Nov 2024 15:07:14 +0000 Subject: [PATCH 13/23] chore: glob dep dirs --- .github/dependabot.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 52b369eca..99158afe6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,12 +2,7 @@ version: 2 updates: - package-ecosystem: npm directories: - - "/" - - "/benchmarks/*" - - "/docs/*" - - "/examples/*" - - "/interop/*" - - "/packages/*" + - "**/*" schedule: interval: daily time: "10:00" From 73121c2bfb93f4015261bc5b6f1763ffd7c1841a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:23:34 +0000 Subject: [PATCH 14/23] deps: bump the helia-deps group across 5 directories with 4 updates (#684) Bumps the helia-deps group with 2 updates in the /benchmarks/add-dir directory: [@helia/unixfs](https://github.com/ipfs/helia) and [helia](https://github.com/ipfs/helia). Bumps the helia-deps group with 1 update in the /benchmarks/gc directory: [helia](https://github.com/ipfs/helia). Bumps the helia-deps group with 1 update in the /benchmarks/pinning directory: [helia](https://github.com/ipfs/helia). Bumps the helia-deps group with 2 updates in the /benchmarks/transfer directory: [@helia/unixfs](https://github.com/ipfs/helia) and [helia](https://github.com/ipfs/helia). Bumps the helia-deps group with 4 updates in the /benchmarks/transports directory: [@helia/unixfs](https://github.com/ipfs/helia), [helia](https://github.com/ipfs/helia), [@helia/block-brokers](https://github.com/ipfs/helia) and [@helia/routers](https://github.com/ipfs/helia). Updates `@helia/unixfs` from 3.0.7 to 4.0.1 - [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/mfs-v3.0.7...car-v4.0.1) Updates `helia` from 4.2.6 to 5.1.1 - [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-v4.2.6...helia-v5.1.1) Updates `helia` from 4.2.6 to 5.1.1 - [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-v4.2.6...helia-v5.1.1) Updates `helia` from 4.2.6 to 5.1.1 - [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-v4.2.6...helia-v5.1.1) Updates `@helia/unixfs` from 3.0.7 to 4.0.1 - [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/mfs-v3.0.7...car-v4.0.1) Updates `helia` from 4.2.6 to 5.1.1 - [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-v4.2.6...helia-v5.1.1) Updates `@helia/unixfs` from 3.0.7 to 4.0.1 - [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/mfs-v3.0.7...car-v4.0.1) Updates `helia` from 4.2.6 to 5.1.1 - [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-v4.2.6...helia-v5.1.1) Updates `@helia/block-brokers` from 3.0.4 to 4.0.2 - [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/mfs-v3.0.4...helia-v4.0.2) Updates `@helia/routers` from 1.1.1 to 2.2.0 - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](https://github.com/ipfs/helia/compare/ipns-v1.1.1...routers-v2.2.0) --- updated-dependencies: - dependency-name: "@helia/unixfs" dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: helia dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: helia dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: helia dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@helia/unixfs" dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: helia dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@helia/unixfs" dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: helia dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@helia/block-brokers" dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@helia/routers" dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- benchmarks/add-dir/package.json | 4 ++-- benchmarks/gc/package.json | 2 +- benchmarks/pinning/package.json | 2 +- benchmarks/transfer/package.json | 4 ++-- benchmarks/transports/package.json | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/benchmarks/add-dir/package.json b/benchmarks/add-dir/package.json index 75b5d8aeb..6443d4c98 100644 --- a/benchmarks/add-dir/package.json +++ b/benchmarks/add-dir/package.json @@ -13,14 +13,14 @@ "start": "npm run build && node dist/src/index.js" }, "dependencies": { - "@helia/unixfs": "^3.0.4", + "@helia/unixfs": "^4.0.1", "aegir": "^45.0.1", "blockstore-core": "^5.0.2", "blockstore-fs": "^2.0.1", "datastore-core": "^10.0.2", "datastore-level": "^11.0.1", "execa": "^8.0.1", - "helia": "^4.1.1", + "helia": "^5.1.1", "ipfs-unixfs-importer": "^15.1.5", "ipfsd-ctl": "^15.0.0", "it-last": "^3.0.6", diff --git a/benchmarks/gc/package.json b/benchmarks/gc/package.json index e8bfccdef..36a6cae57 100644 --- a/benchmarks/gc/package.json +++ b/benchmarks/gc/package.json @@ -16,7 +16,7 @@ "blockstore-fs": "^2.0.1", "datastore-level": "^11.0.1", "execa": "^8.0.1", - "helia": "^4.1.1", + "helia": "^5.1.1", "ipfsd-ctl": "^15.0.0", "it-all": "^3.0.4", "it-drain": "^3.0.5", diff --git a/benchmarks/pinning/package.json b/benchmarks/pinning/package.json index 54af59daf..775b2aafb 100644 --- a/benchmarks/pinning/package.json +++ b/benchmarks/pinning/package.json @@ -16,7 +16,7 @@ "blockstore-fs": "^2.0.1", "datastore-level": "^11.0.1", "execa": "^8.0.1", - "helia": "^4.1.1", + "helia": "^5.1.1", "ipfsd-ctl": "^15.0.0", "it-all": "^3.0.4", "it-drain": "^3.0.5", diff --git a/benchmarks/transfer/package.json b/benchmarks/transfer/package.json index ca0bfaa4a..3557d1798 100644 --- a/benchmarks/transfer/package.json +++ b/benchmarks/transfer/package.json @@ -16,14 +16,14 @@ "@chainsafe/libp2p-noise": "^16.0.0", "@chainsafe/libp2p-yamux": "^7.0.0", "@libp2p/identify": "^3.0.1", - "@helia/unixfs": "^3.0.3", + "@helia/unixfs": "^4.0.1", "@ipld/dag-pb": "^4.0.2", "@libp2p/tcp": "^10.0.1", "@multiformats/multiaddr": "^12.3.1", "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", "datastore-level": "^11.0.1", - "helia": "^4.1.0", + "helia": "^5.1.1", "ipfs-unixfs-importer": "^15.1.1", "ipfsd-ctl": "^15.0.0", "it-buffer-stream": "^3.0.2", diff --git a/benchmarks/transports/package.json b/benchmarks/transports/package.json index 8142d989c..e7b82a521 100644 --- a/benchmarks/transports/package.json +++ b/benchmarks/transports/package.json @@ -14,9 +14,9 @@ "dependencies": { "@chainsafe/libp2p-noise": "^16.0.0", "@chainsafe/libp2p-yamux": "^7.0.0", - "@helia/block-brokers": "^3.0.2", - "@helia/routers": "^1.0.3", - "@helia/unixfs": "^3.0.3", + "@helia/block-brokers": "^4.0.2", + "@helia/routers": "^2.2.0", + "@helia/unixfs": "^4.0.1", "@ipld/dag-pb": "^4.1.0", "@libp2p/circuit-relay-v2": "^3.0.0", "@libp2p/identify": "^3.0.0", @@ -34,7 +34,7 @@ "datastore-level": "^11.0.1", "debug": "^4.3.4", "execa": "^8.0.1", - "helia": "^4.1.0", + "helia": "^5.1.1", "interface-blockstore": "^5.2.10", "interface-datastore": "^8.2.11", "ipfs-unixfs-importer": "^15.1.1", From 6a9fd946187d128e0a95e84bc67e741ad12e5169 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:23:49 +0000 Subject: [PATCH 15/23] deps: bump the kubo-deps group across 5 directories with 1 update (#685) Bumps the kubo-deps group with 1 update in the /benchmarks/add-dir directory: [kubo](https://github.com/ipfs/npm-kubo). Bumps the kubo-deps group with 1 update in the /benchmarks/gc directory: [kubo](https://github.com/ipfs/npm-kubo). Bumps the kubo-deps group with 1 update in the /benchmarks/pinning directory: [kubo](https://github.com/ipfs/npm-kubo). Bumps the kubo-deps group with 1 update in the /benchmarks/transfer directory: [kubo](https://github.com/ipfs/npm-kubo). Bumps the kubo-deps group with 1 update in the /benchmarks/transports directory: [kubo](https://github.com/ipfs/npm-kubo). Updates `kubo` from 0.30.0 to 0.32.1 - [Commits](https://github.com/ipfs/npm-kubo/compare/v0.30.0...v0.32.1) Updates `kubo` from 0.30.0 to 0.32.1 - [Commits](https://github.com/ipfs/npm-kubo/compare/v0.30.0...v0.32.1) Updates `kubo` from 0.30.0 to 0.32.1 - [Commits](https://github.com/ipfs/npm-kubo/compare/v0.30.0...v0.32.1) Updates `kubo` from 0.30.0 to 0.32.1 - [Commits](https://github.com/ipfs/npm-kubo/compare/v0.30.0...v0.32.1) Updates `kubo` from 0.30.0 to 0.32.1 - [Commits](https://github.com/ipfs/npm-kubo/compare/v0.30.0...v0.32.1) --- updated-dependencies: - dependency-name: kubo dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kubo-deps - dependency-name: kubo dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kubo-deps - dependency-name: kubo dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kubo-deps - dependency-name: kubo dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kubo-deps - dependency-name: kubo dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kubo-deps ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- benchmarks/add-dir/package.json | 2 +- benchmarks/gc/package.json | 2 +- benchmarks/pinning/package.json | 2 +- benchmarks/transfer/package.json | 2 +- benchmarks/transports/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmarks/add-dir/package.json b/benchmarks/add-dir/package.json index 6443d4c98..f419e2376 100644 --- a/benchmarks/add-dir/package.json +++ b/benchmarks/add-dir/package.json @@ -24,7 +24,7 @@ "ipfs-unixfs-importer": "^15.1.5", "ipfsd-ctl": "^15.0.0", "it-last": "^3.0.6", - "kubo": "^0.30.0", + "kubo": "^0.32.1", "kubo-rpc-client": "^5.0.0", "multiformats": "^13.1.0", "tinybench": "^2.4.0" diff --git a/benchmarks/gc/package.json b/benchmarks/gc/package.json index 36a6cae57..f4ba32c96 100644 --- a/benchmarks/gc/package.json +++ b/benchmarks/gc/package.json @@ -21,7 +21,7 @@ "it-all": "^3.0.4", "it-drain": "^3.0.5", "it-map": "^3.0.5", - "kubo": "^0.30.0", + "kubo": "^0.32.1", "kubo-rpc-client": "^5.0.0", "multiformats": "^13.0.0", "tinybench": "^2.5.1" diff --git a/benchmarks/pinning/package.json b/benchmarks/pinning/package.json index 775b2aafb..fcd18a704 100644 --- a/benchmarks/pinning/package.json +++ b/benchmarks/pinning/package.json @@ -21,7 +21,7 @@ "it-all": "^3.0.4", "it-drain": "^3.0.5", "it-map": "^3.0.5", - "kubo": "^0.30.0", + "kubo": "^0.32.1", "kubo-rpc-client": "^5.0.0", "multiformats": "^13.0.0", "tinybench": "^2.5.1" diff --git a/benchmarks/transfer/package.json b/benchmarks/transfer/package.json index 3557d1798..e0fbe0be2 100644 --- a/benchmarks/transfer/package.json +++ b/benchmarks/transfer/package.json @@ -28,7 +28,7 @@ "ipfsd-ctl": "^15.0.0", "it-buffer-stream": "^3.0.2", "it-drain": "^3.0.1", - "kubo": "^0.30.0", + "kubo": "^0.32.1", "kubo-rpc-client": "^5.0.0", "libp2p": "^2.0.0", "multiformats": "^13.1.0", diff --git a/benchmarks/transports/package.json b/benchmarks/transports/package.json index e7b82a521..60e73d9a3 100644 --- a/benchmarks/transports/package.json +++ b/benchmarks/transports/package.json @@ -41,7 +41,7 @@ "ipfsd-ctl": "^15.0.0", "it-buffer-stream": "^3.0.2", "it-drain": "^3.0.7", - "kubo": "^0.30.0", + "kubo": "^0.32.1", "kubo-rpc-client": "^5.0.0", "libp2p": "^2.0.2", "multiformats": "^13.1.0", From 075b6ca24ab475ea56cf0462665b986836623f83 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:24:14 +0000 Subject: [PATCH 16/23] ci: bump codecov/codecov-action from 5.0.2 to 5.0.7 (#682) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.0.2 to 5.0.7. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/5c47607acb93fed5485fdbf7232e8a31425f672a...015f24e6818733317a2da2edd6290ab26238649a) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3182f1c8..043578148 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: node-version: ${{ matrix.node }} - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:node - - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 + - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: flags: node files: .coverage/*,packages/*/.coverage/* @@ -62,7 +62,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:chrome - - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 + - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: flags: chrome files: .coverage/*,packages/*/.coverage/* @@ -78,7 +78,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:chrome-webworker - - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 + - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: flags: chrome-webworker files: .coverage/*,packages/*/.coverage/* @@ -94,7 +94,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:firefox - - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 + - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: flags: firefox files: .coverage/*,packages/*/.coverage/* @@ -110,7 +110,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:firefox-webworker - - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 + - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: flags: firefox-webworker files: .coverage/*,packages/*/.coverage/* @@ -126,7 +126,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:webkit - - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 + - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: flags: webkit files: .coverage/*,packages/*/.coverage/* @@ -142,7 +142,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npx xvfb-maybe npm run --if-present test:electron-main - - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 + - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: flags: electron-main files: .coverage/*,packages/*/.coverage/* @@ -158,7 +158,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npx xvfb-maybe npm run --if-present test:electron-renderer - - uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2 + - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: flags: electron-renderer files: .coverage/*,packages/*/.coverage/* From 22c1bebbb31e9adcf1e7ae7ed323e7d703aa1d5b Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 9 Jan 2025 10:58:04 +0100 Subject: [PATCH 17/23] chore: make benchmark deps dev deps to stop dependabot releases --- benchmarks/add-dir/package.json | 2 +- benchmarks/gc/package.json | 2 +- benchmarks/pinning/package.json | 2 +- benchmarks/transfer/package.json | 2 +- benchmarks/transports/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmarks/add-dir/package.json b/benchmarks/add-dir/package.json index f419e2376..90615481e 100644 --- a/benchmarks/add-dir/package.json +++ b/benchmarks/add-dir/package.json @@ -12,7 +12,7 @@ "doc-check": "aegir doc-check", "start": "npm run build && node dist/src/index.js" }, - "dependencies": { + "devDependencies": { "@helia/unixfs": "^4.0.1", "aegir": "^45.0.1", "blockstore-core": "^5.0.2", diff --git a/benchmarks/gc/package.json b/benchmarks/gc/package.json index f4ba32c96..cfd6bf70b 100644 --- a/benchmarks/gc/package.json +++ b/benchmarks/gc/package.json @@ -10,7 +10,7 @@ "doc-check": "aegir doc-check", "start": "npm run build && node dist/src/index.js" }, - "dependencies": { + "devDependencies": { "@ipld/dag-pb": "^4.0.6", "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", diff --git a/benchmarks/pinning/package.json b/benchmarks/pinning/package.json index fcd18a704..93d5f8910 100644 --- a/benchmarks/pinning/package.json +++ b/benchmarks/pinning/package.json @@ -10,7 +10,7 @@ "doc-check": "aegir doc-check", "start": "npm run build && node dist/src/index.js" }, - "dependencies": { + "devDependencies": { "@ipld/dag-pb": "^4.0.6", "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", diff --git a/benchmarks/transfer/package.json b/benchmarks/transfer/package.json index e0fbe0be2..925d27ab0 100644 --- a/benchmarks/transfer/package.json +++ b/benchmarks/transfer/package.json @@ -12,7 +12,7 @@ "doc-check": "aegir doc-check", "start": "npm run build && node dist/src/index.js" }, - "dependencies": { + "devDependencies": { "@chainsafe/libp2p-noise": "^16.0.0", "@chainsafe/libp2p-yamux": "^7.0.0", "@libp2p/identify": "^3.0.1", diff --git a/benchmarks/transports/package.json b/benchmarks/transports/package.json index 60e73d9a3..077a15056 100644 --- a/benchmarks/transports/package.json +++ b/benchmarks/transports/package.json @@ -11,7 +11,7 @@ "dep-check": "aegir dep-check -i playwright-test", "start": "npm run build && node dist/src/index.js" }, - "dependencies": { + "devDependencies": { "@chainsafe/libp2p-noise": "^16.0.0", "@chainsafe/libp2p-yamux": "^7.0.0", "@helia/block-brokers": "^4.0.2", From a7aebd53ea7e57e5660f37ab46fb5def0d3b5844 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:59:51 +0100 Subject: [PATCH 18/23] chore: bump codecov/codecov-action from 5.0.7 to 5.1.2 (#708) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.0.7 to 5.1.2. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/015f24e6818733317a2da2edd6290ab26238649a...1e68e06f1dbfde0e4cefc87efeba9e4643565303) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 043578148..f17306489 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: node-version: ${{ matrix.node }} - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:node - - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 + - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 with: flags: node files: .coverage/*,packages/*/.coverage/* @@ -62,7 +62,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:chrome - - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 + - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 with: flags: chrome files: .coverage/*,packages/*/.coverage/* @@ -78,7 +78,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:chrome-webworker - - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 + - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 with: flags: chrome-webworker files: .coverage/*,packages/*/.coverage/* @@ -94,7 +94,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:firefox - - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 + - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 with: flags: firefox files: .coverage/*,packages/*/.coverage/* @@ -110,7 +110,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:firefox-webworker - - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 + - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 with: flags: firefox-webworker files: .coverage/*,packages/*/.coverage/* @@ -126,7 +126,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npm run --if-present test:webkit - - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 + - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 with: flags: webkit files: .coverage/*,packages/*/.coverage/* @@ -142,7 +142,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npx xvfb-maybe npm run --if-present test:electron-main - - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 + - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 with: flags: electron-main files: .coverage/*,packages/*/.coverage/* @@ -158,7 +158,7 @@ jobs: node-version: lts/* - uses: ipfs/aegir/actions/cache-node-modules@main - run: npx xvfb-maybe npm run --if-present test:electron-renderer - - uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 + - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 with: flags: electron-renderer files: .coverage/*,packages/*/.coverage/* From e45e1dea40120b993f009f8fbb81a9737742196c Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 13 Jan 2025 17:45:07 +0100 Subject: [PATCH 19/23] feat: add auto-tls support (#716) Adds a WebSocket listener to libp2p and configures auto-tls to automatically upgrade it to a secure WebSocket --- packages/helia/package.json | 1 + packages/helia/src/utils/libp2p-defaults.ts | 6 ++++++ packages/interop/src/fixtures/create-helia.ts | 2 ++ 3 files changed, 9 insertions(+) diff --git a/packages/helia/package.json b/packages/helia/package.json index 9a8ac3ef7..dfdd5c0e9 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -62,6 +62,7 @@ "@helia/interface": "^5.1.0", "@helia/routers": "^2.2.0", "@helia/utils": "^1.1.0", + "@libp2p/auto-tls": "^1.0.4", "@libp2p/autonat": "^2.0.12", "@libp2p/bootstrap": "^11.0.13", "@libp2p/circuit-relay-v2": "^3.1.3", diff --git a/packages/helia/src/utils/libp2p-defaults.ts b/packages/helia/src/utils/libp2p-defaults.ts index 41eaffc0a..222353a65 100644 --- a/packages/helia/src/utils/libp2p-defaults.ts +++ b/packages/helia/src/utils/libp2p-defaults.ts @@ -2,6 +2,7 @@ import { noise } from '@chainsafe/libp2p-noise' import { yamux } from '@chainsafe/libp2p-yamux' import { createDelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client' import { delegatedHTTPRoutingDefaults } from '@helia/routers' +import { autoTLS } from '@libp2p/auto-tls' import { autoNAT } from '@libp2p/autonat' import { bootstrap } from '@libp2p/bootstrap' import { circuitRelayTransport, circuitRelayServer, type CircuitRelayService } from '@libp2p/circuit-relay-v2' @@ -23,10 +24,12 @@ import * as libp2pInfo from 'libp2p/version' import { name, version } from '../version.js' import { bootstrapConfig } from './bootstrappers.js' import type { Libp2pDefaultsOptions } from './libp2p.js' +import type { AutoTLS } from '@libp2p/auto-tls' import type { Libp2pOptions } from 'libp2p' export interface DefaultLibp2pServices extends Record { autoNAT: unknown + autoTLS: AutoTLS dcutr: unknown delegatedRouting: unknown dht: KadDHT @@ -46,7 +49,9 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti addresses: { listen: [ '/ip4/0.0.0.0/tcp/0', + '/ip4/0.0.0.0/tcp/0/ws', '/ip6/::/tcp/0', + '/ip6/::/tcp/0/ws', '/p2p-circuit', '/webrtc' ] @@ -72,6 +77,7 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti ], services: { autoNAT: autoNAT(), + autoTLS: autoTLS(), dcutr: dcutr(), delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', delegatedHTTPRoutingDefaults()), dht: kadDHT({ diff --git a/packages/interop/src/fixtures/create-helia.ts b/packages/interop/src/fixtures/create-helia.ts index facab2c3d..09353e901 100644 --- a/packages/interop/src/fixtures/create-helia.ts +++ b/packages/interop/src/fixtures/create-helia.ts @@ -44,6 +44,8 @@ export async function createHeliaNode (libp2pOptions?: Libp2pOptions): Promise>({ blockBrokers: [ From 5784cebb3225157d6220668d4f58481f046debf2 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 13 Jan 2025 17:45:26 +0100 Subject: [PATCH 20/23] feat: add method tracing to routing (#715) Adds a `trace` option to all routing methods that can be used with libp2p metrics implementations that support method tracing. --- packages/interface/src/routing.ts | 4 ++-- packages/utils/package.json | 2 +- packages/utils/src/routing.ts | 25 ++++++++++++++++++++++++- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/packages/interface/src/routing.ts b/packages/interface/src/routing.ts index 1ab5ed5f2..ef82c28d5 100644 --- a/packages/interface/src/routing.ts +++ b/packages/interface/src/routing.ts @@ -1,4 +1,4 @@ -import type { AbortOptions, PeerId, PeerInfo } from '@libp2p/interface' +import type { AbortOptions, PeerId, PeerInfo, TraceOptions } from '@libp2p/interface' import type { CID } from 'multiformats/cid' import type { ProgressOptions } from 'progress-events' @@ -8,7 +8,7 @@ import type { ProgressOptions } from 'progress-events' * local cache that may be used in preference over network calls, for example * when a record has a TTL. */ -export interface RoutingOptions extends AbortOptions, ProgressOptions { +export interface RoutingOptions extends AbortOptions, ProgressOptions, TraceOptions { /** * Pass `false` to not use the network * diff --git a/packages/utils/package.json b/packages/utils/package.json index 655bee0a2..c6faae2e4 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -58,7 +58,7 @@ "@ipld/dag-cbor": "^9.2.2", "@ipld/dag-json": "^10.2.3", "@ipld/dag-pb": "^4.1.3", - "@libp2p/interface": "^2.2.1", + "@libp2p/interface": "^2.4.0", "@libp2p/logger": "^5.1.4", "@libp2p/utils": "^6.2.1", "@multiformats/dns": "^1.0.6", diff --git a/packages/utils/src/routing.ts b/packages/utils/src/routing.ts index 47c33248d..ed6adbac3 100644 --- a/packages/utils/src/routing.ts +++ b/packages/utils/src/routing.ts @@ -3,7 +3,7 @@ import { NotFoundError, start, stop } from '@libp2p/interface' import { PeerQueue } from '@libp2p/utils/peer-queue' import merge from 'it-merge' import type { Routing as RoutingInterface, Provider, RoutingOptions } from '@helia/interface' -import type { AbortOptions, ComponentLogger, Logger, PeerId, PeerInfo, Startable } from '@libp2p/interface' +import type { AbortOptions, ComponentLogger, Logger, Metrics, PeerId, PeerInfo, Startable } from '@libp2p/interface' import type { CID } from 'multiformats/cid' const DEFAULT_PROVIDER_LOOKUP_CONCURRENCY = 5 @@ -15,6 +15,7 @@ export interface RoutingInit { export interface RoutingComponents { logger: ComponentLogger + metrics?: Metrics } export class Routing implements RoutingInterface, Startable { @@ -26,6 +27,28 @@ export class Routing implements RoutingInterface, Startable { this.log = components.logger.forComponent('helia:routing') this.routers = init.routers ?? [] this.providerLookupConcurrency = init.providerLookupConcurrency ?? DEFAULT_PROVIDER_LOOKUP_CONCURRENCY + + this.findProviders = components.metrics?.traceFunction('helia.routing.findProviders', this.findProviders.bind(this), { + optionsIndex: 1 + }) ?? this.findProviders + this.provide = components.metrics?.traceFunction('helia.routing.provide', this.provide.bind(this), { + optionsIndex: 1 + }) ?? this.provide + this.cancelReprovide = components.metrics?.traceFunction('helia.routing.cancelReprovide', this.cancelReprovide.bind(this), { + optionsIndex: 1 + }) ?? this.cancelReprovide + this.put = components.metrics?.traceFunction('helia.routing.put', this.put.bind(this), { + optionsIndex: 2 + }) ?? this.put + this.get = components.metrics?.traceFunction('helia.routing.get', this.get.bind(this), { + optionsIndex: 1 + }) ?? this.get + this.findPeer = components.metrics?.traceFunction('helia.routing.findPeer', this.findPeer.bind(this), { + optionsIndex: 1 + }) ?? this.findPeer + this.getClosestPeers = components.metrics?.traceFunction('helia.routing.getClosestPeers', this.getClosestPeers.bind(this), { + optionsIndex: 1 + }) ?? this.getClosestPeers } async start (): Promise { From b4f9d4fc234cc66e9cdf444900e365b1c63b9920 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 13 Jan 2025 17:45:39 +0100 Subject: [PATCH 21/23] fix: use @libp2p/config to load private key from keystore (#714) Simplifies the construction of the libp2p options to use the helpers from `@libp2p/config` to load a private key from the keystore. --- packages/helia/package.json | 3 +-- packages/helia/src/utils/libp2p.ts | 37 ++++++------------------------ 2 files changed, 8 insertions(+), 32 deletions(-) diff --git a/packages/helia/package.json b/packages/helia/package.json index dfdd5c0e9..b73552c86 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -66,13 +66,12 @@ "@libp2p/autonat": "^2.0.12", "@libp2p/bootstrap": "^11.0.13", "@libp2p/circuit-relay-v2": "^3.1.3", - "@libp2p/crypto": "^5.0.7", + "@libp2p/config": "^1.0.1", "@libp2p/dcutr": "^2.0.12", "@libp2p/identify": "^3.0.12", "@libp2p/interface": "^2.2.1", "@libp2p/kad-dht": "^14.1.3", "@libp2p/keychain": "^5.0.10", - "@libp2p/logger": "^5.1.4", "@libp2p/mdns": "^11.0.13", "@libp2p/mplex": "^11.0.13", "@libp2p/ping": "^2.0.12", diff --git a/packages/helia/src/utils/libp2p.ts b/packages/helia/src/utils/libp2p.ts index c906722f9..93af0adc1 100644 --- a/packages/helia/src/utils/libp2p.ts +++ b/packages/helia/src/utils/libp2p.ts @@ -1,12 +1,9 @@ -import { generateKeyPair } from '@libp2p/crypto/keys' -import { keychain } from '@libp2p/keychain' -import { defaultLogger } from '@libp2p/logger' -import { Key } from 'interface-datastore' +import { loadOrCreateSelfKey } from '@libp2p/config' import { createLibp2p as create } from 'libp2p' import { libp2pDefaults } from './libp2p-defaults.js' import type { DefaultLibp2pServices } from './libp2p-defaults.js' import type { ComponentLogger, Libp2p, PrivateKey } from '@libp2p/interface' -import type { Keychain, KeychainInit } from '@libp2p/keychain' +import type { KeychainInit } from '@libp2p/keychain' import type { DNS } from '@multiformats/dns' import type { Datastore } from 'interface-datastore' import type { Libp2pOptions } from 'libp2p' @@ -26,40 +23,20 @@ export interface Libp2pDefaultsOptions { } export async function createLibp2p = DefaultLibp2pServices> (options: CreateLibp2pOptions): Promise> { - const privateKey = options.libp2p?.privateKey - const logger = options.logger ?? defaultLogger() - const selfKey = new Key('/pkcs8/self') - let chain: Keychain | undefined + const libp2pOptions = options.libp2p ?? {} // if no peer id was passed, try to load it from the keychain - if (privateKey == null && options.datastore != null) { - chain = keychain(options.keychain)({ - datastore: options.datastore, - logger - }) - - options.libp2p = options.libp2p ?? {} - - if (await options.datastore.has(selfKey)) { - // load the peer id from the keychain - options.libp2p.privateKey = await chain.exportKey('self') - } else { - const privateKey = await generateKeyPair('Ed25519') - options.libp2p.privateKey = privateKey - - // persist the peer id in the keychain for next time - await chain.importKey('self', privateKey) - } + if (libp2pOptions.privateKey == null && options.datastore != null) { + libp2pOptions.privateKey = await loadOrCreateSelfKey(options.datastore, options.keychain) } - const defaults = libp2pDefaults(options) + const defaults = libp2pDefaults(libp2pOptions) defaults.datastore = defaults.datastore ?? options.datastore - options = options ?? {} // @ts-expect-error derived ServiceMap is not compatible with ServiceFactoryMap const node = await create({ ...defaults, - ...options.libp2p, + ...libp2pOptions, start: false }) From 1c8583c89bbf47bfbe10636a9e226aabb61e20da Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 17:46:00 +0100 Subject: [PATCH 22/23] deps: bump the helia-deps group across 2 directories with 1 update (#717) Bumps the helia-deps group with 1 update in the / directory: [@libp2p/upnp-nat](https://github.com/libp2p/js-libp2p). Bumps the helia-deps group with 1 update in the /packages/helia directory: [@libp2p/upnp-nat](https://github.com/libp2p/js-libp2p). Updates `@libp2p/upnp-nat` from 2.0.12 to 3.0.4 - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](https://github.com/libp2p/js-libp2p/compare/tls-v2.0.12...perf-v3.0.4) Updates `@libp2p/upnp-nat` from 2.0.12 to 3.0.4 - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](https://github.com/libp2p/js-libp2p/compare/tls-v2.0.12...perf-v3.0.4) --- updated-dependencies: - dependency-name: "@libp2p/upnp-nat" dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@libp2p/upnp-nat" dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/helia/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/helia/package.json b/packages/helia/package.json index b73552c86..3a62163f8 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -77,7 +77,7 @@ "@libp2p/ping": "^2.0.12", "@libp2p/tcp": "^10.0.13", "@libp2p/tls": "^2.0.11", - "@libp2p/upnp-nat": "^2.0.12", + "@libp2p/upnp-nat": "^3.0.4", "@libp2p/webrtc": "^5.0.19", "@libp2p/websockets": "^9.0.13", "@multiformats/dns": "^1.0.6", From 87aa9b4b21593870296c9a1c8b11c9123bbc5da1 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Tue, 14 Jan 2025 10:42:15 +0100 Subject: [PATCH 23/23] fix!: fix typo in HTTPGatewayRouter class/interface name (#664) Gatway -> Gateway --- packages/routers/src/http-gateway-routing.ts | 10 +++++----- packages/routers/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/routers/src/http-gateway-routing.ts b/packages/routers/src/http-gateway-routing.ts index ae2e30da6..5a40c2f78 100644 --- a/packages/routers/src/http-gateway-routing.ts +++ b/packages/routers/src/http-gateway-routing.ts @@ -15,7 +15,7 @@ export const DEFAULT_TRUSTLESS_GATEWAYS = [ 'https://4everland.io' ] -export interface HTTPGatwayRouterInit { +export interface HTTPGatewayRouterInit { gateways?: Array } @@ -33,10 +33,10 @@ function toPeerInfo (url: string | URL): PeerInfo { } } -class HTTPGatwayRouter implements Partial { +class HTTPGatewayRouter implements Partial { private readonly gateways: PeerInfo[] - constructor (init: HTTPGatwayRouterInit = {}) { + constructor (init: HTTPGatewayRouterInit = {}) { this.gateways = (init.gateways ?? DEFAULT_TRUSTLESS_GATEWAYS).map(url => toPeerInfo(url)) } @@ -51,6 +51,6 @@ class HTTPGatwayRouter implements Partial { /** * Returns a static list of HTTP Gateways as providers */ -export function httpGatewayRouting (init: HTTPGatwayRouterInit = {}): Partial { - return new HTTPGatwayRouter(init) +export function httpGatewayRouting (init: HTTPGatewayRouterInit = {}): Partial { + return new HTTPGatewayRouter(init) } diff --git a/packages/routers/src/index.ts b/packages/routers/src/index.ts index c4f7b7c7e..e3b51a221 100644 --- a/packages/routers/src/index.ts +++ b/packages/routers/src/index.ts @@ -6,5 +6,5 @@ export { delegatedHTTPRouting } from './delegated-http-routing.js' export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.js' export { httpGatewayRouting } from './http-gateway-routing.js' -export type { HTTPGatwayRouterInit } from './http-gateway-routing.js' +export type { HTTPGatewayRouterInit } from './http-gateway-routing.js' export { libp2pRouting } from './libp2p-routing.js'