diff --git a/package.json b/package.json index 6db5e5a..91d8763 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "@orbitdb/core": "^2.0.1", "events": "^3.3.0", - "helia": "^3.0.1", + "helia": "^4.0.0", "uuid": "^9.0.1" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6954a88..0c72fd6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ dependencies: specifier: ^3.3.0 version: 3.3.0 helia: - specifier: ^3.0.1 - version: 3.0.1(react-native@0.73.4) + specifier: ^4.0.0 + version: 4.0.1(react-native@0.73.4) uuid: specifier: ^9.0.1 version: 9.0.1 @@ -1536,6 +1536,7 @@ packages: uint8arrays: 4.0.10 transitivePeerDependencies: - supports-color + dev: true /@chainsafe/libp2p-gossipsub@12.0.0: resolution: {integrity: sha512-ZuVIvzZjUaZXSPG6Ni9veVBLkZ4OkVp3zc3E8Y5EG/iIUSNVbHLFxweb3HuA12e3lIXLLurvy4vDyGWp4FpKow==} @@ -2159,6 +2160,7 @@ packages: uint8arrays: 5.0.1 transitivePeerDependencies: - supports-color + dev: true /@helia/block-brokers@2.0.1: resolution: {integrity: sha512-KHqL4pcA2dHvRdVuqHKMA5K1ky/VPSzL8/s4NrId5Sxi+Qx7yPYMrDuexau+OZ+wrEnHaKtoEGAydL0imqbvcA==} @@ -2171,7 +2173,6 @@ packages: progress-events: 1.0.0 transitivePeerDependencies: - supports-color - dev: true /@helia/delegated-routing-v1-http-api-client@1.1.2: resolution: {integrity: sha512-u+sVdOxFieusZh/AxC8c0lU1micWfAosju7A80n62rdJ1fr1lclkhhrlfaKWIgVOq+pwonEzoOE7QgnTL22tYw==} @@ -2192,6 +2193,28 @@ packages: uint8arrays: 4.0.10 transitivePeerDependencies: - supports-color + dev: true + + /@helia/delegated-routing-v1-http-api-client@3.0.0: + resolution: {integrity: sha512-NQRG5djXKI0GcFx35JMKSQ92RscGOhER6ti66ExjreAffaO2/9vk2ZbAbfCoZnjyTnx66HWAgAyB4GDDTAeFLA==} + dependencies: + '@libp2p/interface': 1.1.3 + '@libp2p/logger': 4.0.6 + '@libp2p/peer-id': 4.0.6 + '@multiformats/multiaddr': 12.1.14 + any-signal: 4.1.1 + browser-readablestream-to-it: 2.0.5 + ipns: 9.0.0 + it-first: 3.0.4 + it-map: 3.0.5 + it-ndjson: 1.0.5 + multiformats: 13.1.0 + p-defer: 4.0.0 + p-queue: 8.0.1 + uint8arrays: 5.0.2 + transitivePeerDependencies: + - supports-color + dev: false /@helia/interface@3.0.1: resolution: {integrity: sha512-ibaiN0InfFVf8TNOKK+wzoLqlrWx/Crk/yY5o+DNRvgI4fdaJofHEaSyDvFR/amTVhdFHnOK+3Mbh+jGktWapQ==} @@ -2205,6 +2228,7 @@ packages: progress-events: 1.0.0 transitivePeerDependencies: - supports-color + dev: true /@helia/interface@4.0.0: resolution: {integrity: sha512-J8ZGuNac60x1pwMZ7i5rvB9oldnc3rIEhCcZE6vKl5vsDHmlCpG2NmVPM5x1VIfei1JEAygDtfCFUDvGpMxSfw==} @@ -2215,7 +2239,51 @@ packages: interface-store: 5.1.8 multiformats: 13.1.0 progress-events: 1.0.0 - dev: true + transitivePeerDependencies: + - supports-color + + /@helia/routers@1.0.0: + resolution: {integrity: sha512-h6u3eizOLLLXXXaXGGcsz2gQ1+pwtRqjx0ZjL4nuGZuoie5BXjPCTV/gKYFMMWaKwVUpLwSBtH6oVpwsfWQ6cw==} + dependencies: + '@helia/delegated-routing-v1-http-api-client': 3.0.0 + '@helia/interface': 4.0.0 + '@libp2p/interface': 1.1.3 + ipns: 9.0.0 + it-first: 3.0.4 + it-map: 3.0.5 + multiformats: 13.1.0 + uint8arrays: 5.0.2 + transitivePeerDependencies: + - supports-color + dev: false + + /@helia/utils@0.0.1: + resolution: {integrity: sha512-mYGYsAzRcXmS0CdtacAqd6nabZuz9sfKe+IbQYpA9KMfQQr1VCTOg1u9zTBGxblCNgE5FxBxzW4hdnsjNZ53ng==} + dependencies: + '@helia/interface': 4.0.0 + '@ipld/dag-cbor': 9.0.8 + '@ipld/dag-json': 10.1.7 + '@ipld/dag-pb': 4.0.8 + '@libp2p/interface': 1.1.3 + '@libp2p/logger': 4.0.6 + '@libp2p/peer-collections': 5.1.6 + '@libp2p/utils': 5.2.5 + any-signal: 4.1.1 + cborg: 4.0.8 + interface-blockstore: 5.2.10 + interface-datastore: 8.2.11 + interface-store: 5.1.8 + 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 + progress-events: 1.0.0 + uint8arrays: 5.0.2 + transitivePeerDependencies: + - supports-color + dev: false /@humanwhocodes/config-array@0.11.14: resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} @@ -2386,7 +2454,7 @@ packages: /@libp2p/autonat@1.0.9: resolution: {integrity: sha512-5mDon1ACaigkygZhQTH7O1L3+dlQed3i7TTNQH9oBzdnp2QWIm9CnVhIVnFwO+GLWmQvygwgxrzkvKqGYOO1eQ==} dependencies: - '@libp2p/interface': 1.1.2 + '@libp2p/interface': 1.1.3 '@libp2p/interface-internal': 1.0.8 '@libp2p/peer-id': 4.0.6 '@libp2p/peer-id-factory': 4.0.5 @@ -2405,7 +2473,7 @@ packages: /@libp2p/bootstrap@10.0.12: resolution: {integrity: sha512-ERoAR56G1BfAWvSr73niSW+ovkkoj6o334M2GUnIioUebMciztphKREYwUekj3ba2NXJGGpmxUQIasZS1DSHTw==} dependencies: - '@libp2p/interface': 1.1.2 + '@libp2p/interface': 1.1.3 '@libp2p/peer-id': 4.0.6 '@multiformats/mafmt': 12.1.6 '@multiformats/multiaddr': 12.1.14 @@ -2448,6 +2516,7 @@ packages: uint8arrays: 4.0.10 transitivePeerDependencies: - supports-color + dev: true /@libp2p/crypto@3.0.4: resolution: {integrity: sha512-FzSwBo+RJOUzdzEwug5ZL4dAGKwEBWTLzj+EmUTHHY6c87+oLh571DQk/w0oYObSD9hYbcKePgSBaZeBx0JaZg==} @@ -2460,6 +2529,8 @@ packages: protons-runtime: 5.4.0 uint8arraylist: 2.4.8 uint8arrays: 5.0.1 + transitivePeerDependencies: + - supports-color /@libp2p/crypto@4.0.1: resolution: {integrity: sha512-lKGbX8TvQt4JbqlttdexEz2VtYJnTwY31kVBDQviwt0pMF+6Uy2hzNnEQ1FHZBwnow8BIlyb6UevHfgyOFlnkw==} @@ -2486,11 +2557,13 @@ packages: protons-runtime: 5.4.0 uint8arraylist: 2.4.8 uint8arrays: 5.0.1 + transitivePeerDependencies: + - supports-color /@libp2p/dcutr@1.0.9: resolution: {integrity: sha512-EJmlMUThkkt8yosEYzlBHaKvrVNMiYCye1mN9Lirm0urc3Omb7KfZqca5tl5NMsldGCeBHWqo/eNb0tqlr792g==} dependencies: - '@libp2p/interface': 1.1.2 + '@libp2p/interface': 1.1.3 '@libp2p/interface-internal': 1.0.8 '@multiformats/multiaddr': 12.1.14 '@multiformats/multiaddr-matcher': 1.1.2 @@ -2552,6 +2625,7 @@ packages: uint8arraylist: 2.4.8 transitivePeerDependencies: - supports-color + dev: true /@libp2p/interface@1.1.2: resolution: {integrity: sha512-uC4hxtEJuWiDiZfokkSNEEbCzdyZrqb5kp67Wc5PjZsySZ2IoImdIfie003yQXlB1xBp/XUJzdC6kVu4M7LUmg==} @@ -2619,13 +2693,13 @@ packages: resolution: {integrity: sha512-zWNv0SbHgFSFbvSqnK2uCIEmXGzk/HCGJtCUQCx3c0dWg/z/rPZD8oAx9rCA5eU1cjlfwXxrH1h4fDNlyBQt1w==} dependencies: '@libp2p/crypto': 4.0.2 - '@libp2p/interface': 1.1.2 + '@libp2p/interface': 1.1.3 '@libp2p/peer-id': 4.0.6 - interface-datastore: 8.2.10 + interface-datastore: 8.2.11 merge-options: 3.0.4 - multiformats: 13.0.1 + multiformats: 13.1.0 sanitize-filename: 1.6.3 - uint8arrays: 5.0.1 + uint8arrays: 5.0.2 transitivePeerDependencies: - supports-color @@ -2639,6 +2713,7 @@ packages: multiformats: 12.1.3 transitivePeerDependencies: - supports-color + dev: true /@libp2p/logger@4.0.5: resolution: {integrity: sha512-cXETMNZINnxeQBlfQ2S4di92FDDU89R7RHagrpebGrM7oLl5nf/Mw6myc23kGaM3/2YG3ko2rl9sYjemu0azTA==} @@ -2718,6 +2793,8 @@ packages: dependencies: '@libp2p/interface': 1.1.3 '@libp2p/peer-id': 4.0.6 + transitivePeerDependencies: + - supports-color /@libp2p/peer-id-factory@4.0.5: resolution: {integrity: sha512-9fy1TCiBViqIFuoFzW/o9fVh3j600IYDHaXUqvx6HQFeB/dEM8utRU4FxVZVv/MMcKfUf7mydHXVHRyp28uG8w==} @@ -2739,6 +2816,7 @@ packages: uint8arrays: 4.0.10 transitivePeerDependencies: - supports-color + dev: true /@libp2p/peer-id@4.0.5: resolution: {integrity: sha512-/J9U6I/CWSOsYrTpFZpRQrhOhi+bp9WFp7+9Gc7kVt/oevIYTapUEjpxevjViem9ddR5RbdYeCj4ZLHA04QOoQ==} @@ -2755,6 +2833,8 @@ packages: '@libp2p/interface': 1.1.3 multiformats: 13.1.0 uint8arrays: 5.0.2 + transitivePeerDependencies: + - supports-color /@libp2p/peer-record@7.0.9: resolution: {integrity: sha512-uI5kE8K6/CWamxV9NK1p7mdYoWIf1AP+eWWZd+1opa/R7zT/QYmtAc/wWE7uFhfRsB736u9GkiPwU66LzA0reQ==} @@ -2840,12 +2920,13 @@ packages: uint8arrays: 5.0.1 transitivePeerDependencies: - supports-color + dev: true /@libp2p/tcp@9.0.12: resolution: {integrity: sha512-9Aff2ZAGlhxhX80Xpu/SououPlMIBeXkn/O0mvSBeH0BBdHtVImhYB5bnCKZi09Eq9dLf0PSSLCIjtpe/5Nxcg==} dependencies: - '@libp2p/interface': 1.1.2 - '@libp2p/utils': 5.2.2 + '@libp2p/interface': 1.1.3 + '@libp2p/utils': 5.2.5 '@multiformats/mafmt': 12.1.6 '@multiformats/multiaddr': 12.1.14 '@types/sinon': 17.0.3 @@ -3167,6 +3248,8 @@ packages: p-queue: 8.0.1 timeout-abort-controller: 3.0.0 uint8arrays: 5.0.1 + transitivePeerDependencies: + - supports-color dev: false /@phenomnomnominal/tsquery@5.0.1(typescript@5.3.3): @@ -3220,36 +3303,46 @@ packages: /@protobufjs/aspromise@1.1.2: resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} + dev: true /@protobufjs/base64@1.1.2: resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==} + dev: true /@protobufjs/codegen@2.0.4: resolution: {integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==} + dev: true /@protobufjs/eventemitter@1.1.0: resolution: {integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==} + dev: true /@protobufjs/fetch@1.1.0: resolution: {integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==} dependencies: '@protobufjs/aspromise': 1.1.2 '@protobufjs/inquire': 1.1.0 + dev: true /@protobufjs/float@1.0.2: resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==} + dev: true /@protobufjs/inquire@1.1.0: resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==} + dev: true /@protobufjs/path@1.1.2: resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==} + dev: true /@protobufjs/pool@1.1.0: resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==} + dev: true /@protobufjs/utf8@1.1.0: resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} + dev: true /@react-native-community/cli-clean@12.3.2: resolution: {integrity: sha512-90k2hCX0ddSFPT7EN7h5SZj0XZPXP0+y/++v262hssoey3nhurwF57NGWN0XAR0o9BSW7+mBfeInfabzDraO6A==} @@ -4382,6 +4475,7 @@ packages: dependencies: get-iterator: 2.0.1 it-stream-types: 2.0.1 + dev: true /abstract-level@1.0.4: resolution: {integrity: sha512-eUP/6pbXBkMbXFdx4IH2fVgvB7M0JvR7/lIL33zcs0IBcwjdzSSl31TOJsaCzmKSSDF9h8QYSOJux4Nd4YJqFg==} @@ -6009,7 +6103,7 @@ packages: /datastore-core@9.2.7: resolution: {integrity: sha512-S5ADNGRy1p6kHT6Khld+FThe1ITHuUiyYQ84VX2Kv8s6cXDiUuLlYPBIbZaWIgqR/JwxQCwa+5/08w6BZSIAow==} dependencies: - '@libp2p/logger': 4.0.5 + '@libp2p/logger': 4.0.6 err-code: 3.0.1 interface-store: 5.1.8 it-all: 3.0.4 @@ -6021,7 +6115,7 @@ packages: it-pushable: 3.2.3 it-sort: 3.0.4 it-take: 3.0.4 - uint8arrays: 5.0.1 + uint8arrays: 5.0.2 transitivePeerDependencies: - supports-color @@ -6197,6 +6291,7 @@ packages: /denque@2.1.0: resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==} engines: {node: '>=0.10'} + dev: true /depcheck@1.4.7: resolution: {integrity: sha512-1lklS/bV5chOxwNKA/2XUUk/hPORp8zihZsXflr8x0kLwmcZ9Y9BsS6Hs3ssvA+2wUVbG0U2Ciqvm1SokNjPkA==} @@ -8064,6 +8159,48 @@ packages: - react-native - supports-color - utf-8-validate + dev: true + + /helia@4.0.1(react-native@0.73.4): + resolution: {integrity: sha512-1QP93JpD1sPZEHiKrhYPj5humAAJHN7Vj+zsojnAlMLTsgnbHWsTymyPMiwiwLrVvUPAwKaxnLsv2o743cfCSg==} + dependencies: + '@chainsafe/libp2p-noise': 15.0.0 + '@chainsafe/libp2p-yamux': 6.0.2 + '@helia/block-brokers': 2.0.1 + '@helia/delegated-routing-v1-http-api-client': 3.0.0 + '@helia/interface': 4.0.0 + '@helia/routers': 1.0.0 + '@helia/utils': 0.0.1 + '@libp2p/autonat': 1.0.9 + '@libp2p/bootstrap': 10.0.12 + '@libp2p/circuit-relay-v2': 1.0.15 + '@libp2p/dcutr': 1.0.9 + '@libp2p/identify': 1.0.14 + '@libp2p/interface': 1.1.3 + '@libp2p/kad-dht': 12.0.4 + '@libp2p/keychain': 4.0.7 + '@libp2p/logger': 4.0.6 + '@libp2p/mdns': 10.0.12 + '@libp2p/mplex': 10.0.12 + '@libp2p/ping': 1.0.10 + '@libp2p/tcp': 9.0.12 + '@libp2p/upnp-nat': 1.0.10 + '@libp2p/webrtc': 4.0.19(react-native@0.73.4) + '@libp2p/websockets': 8.0.15 + '@libp2p/webtransport': 4.0.16 + blockstore-core: 4.3.10 + datastore-core: 9.2.7 + interface-blockstore: 5.2.10 + interface-datastore: 8.2.11 + ipns: 9.0.0 + libp2p: 1.2.0 + multiformats: 13.1.0 + transitivePeerDependencies: + - bufferutil + - react-native + - supports-color + - utf-8-validate + dev: false /hermes-estree@0.15.0: resolution: {integrity: sha512-lLYvAd+6BnOqWdnNbP/Q8xfl8LOGw4wVjfrNd9Gt8eoFzhNBRVD95n4l2ksfMVOoxuVyegs85g83KS9QOsxbVQ==} @@ -8408,6 +8545,7 @@ packages: uint8arrays: 5.0.1 transitivePeerDependencies: - supports-color + dev: true /ipns@8.0.4: resolution: {integrity: sha512-iBrlCBm5fsMJW0BvVNwXLOadsyeTc9fz9PJAxJ3YggXgrx5T6lfRgVfTQsnYeByRADGfpWGOvW6zqnu8a3dcYw==} @@ -8426,6 +8564,26 @@ packages: uint8arrays: 5.0.1 transitivePeerDependencies: - supports-color + dev: true + + /ipns@9.0.0: + resolution: {integrity: sha512-z/C/SfikvR23y0rhUOxL+zF5nG8bKv9xcdEcL8iO1IEnSBa0Y2pzke22V9YXw1r4uZ7CWukRQTC68+XHRu8y5Q==} + dependencies: + '@libp2p/crypto': 4.0.2 + '@libp2p/interface': 1.1.3 + '@libp2p/logger': 4.0.6 + '@libp2p/peer-id': 4.0.6 + cborg: 4.0.8 + err-code: 3.0.1 + interface-datastore: 8.2.11 + multiformats: 13.1.0 + protons-runtime: 5.4.0 + timestamp-nano: 1.0.1 + uint8arraylist: 2.4.8 + uint8arrays: 5.0.2 + transitivePeerDependencies: + - supports-color + dev: false /irregular-plurals@3.5.0: resolution: {integrity: sha512-1ANGLZ+Nkv1ptFb2pa8oG8Lem4krflKuX/gINiHJHjJUKaJHk/SXk5x6K3J+39/p0h1RQ2saROclJJ+QLvETCQ==} @@ -9585,6 +9743,7 @@ packages: /long@5.2.3: resolution: {integrity: sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==} + dev: true /longest-streak@3.1.0: resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} @@ -11373,6 +11532,7 @@ packages: dependencies: eventemitter3: 5.0.1 p-timeout: 5.1.0 + dev: true /p-queue@8.0.1: resolution: {integrity: sha512-NXzu9aQJTAzbBqOt2hwsR63ea7yvxJc0PwN/zobNAudYfb1B7R08SzB4TsLeSbUCuG467NhnoT0oO6w1qRO+BA==} @@ -11415,6 +11575,7 @@ packages: /p-timeout@5.1.0: resolution: {integrity: sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==} engines: {node: '>=12'} + dev: true /p-timeout@6.1.2: resolution: {integrity: sha512-UbD77BuZ9Bc9aABo74gfXhNvzC9Tx7SxtHSh1fxvx3jTLLYvmVhiQZZrJzqqU0jKbN32kb5VOKiLEQI/3bIjgQ==} @@ -11917,6 +12078,7 @@ packages: '@protobufjs/utf8': 1.1.0 '@types/node': 20.11.20 long: 5.2.3 + dev: true /protons-runtime@5.2.2: resolution: {integrity: sha512-o97rNPN9pE3cxOxjs/waZNRKlbY/DR11oc20rUvarWZgFzQLLLzJU0RFh5JPi6GJCN67VGVn9/FDIEtFblfB3A==} @@ -13769,6 +13931,7 @@ packages: resolution: {integrity: sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA==} dependencies: multiformats: 12.1.3 + dev: true /uint8arrays@5.0.1: resolution: {integrity: sha512-ND5RpJAnPgHmZT7hWD/2T4BwRp04j8NLKvMKC/7bhiEwEjUMkQ4kvBKiH6hOqbljd6qJ2xS8reL3vl1e33grOQ==}