diff --git a/package.json b/package.json index 4ae228e2f3..4350ea328e 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "@libp2p/webrtc-direct": "^6.0.0", "@libp2p/webrtc-star": "^7.0.0", "@libp2p/websockets": "^5.0.10", - "@libp2p/webtransport": "^1.0.11", + "@libp2p/webtransport": "^3.0.0", "@localfirst/auth": "^1.0.1", "@orbitdb/core": "^1.0.0", "ajv": "^8.12.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 00701b1ac8..f96dcb82e5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -62,8 +62,8 @@ dependencies: specifier: ^5.0.10 version: 5.0.10 '@libp2p/webtransport': - specifier: ^1.0.11 - version: 1.0.11 + specifier: ^3.0.0 + version: 3.1.3 '@localfirst/auth': specifier: ^1.0.1 version: 1.0.1 @@ -1342,6 +1342,30 @@ packages: transitivePeerDependencies: - supports-color + /@chainsafe/libp2p-noise@13.0.1: + resolution: {integrity: sha512-eeOFubXyS9sK0oBg/qRfve6LVGzZX1vyULVidaKGTJr8Y4dtyU4+Btqw/aVo3o1lhdvb/qoY+p/Ep2pUsvJKhg==} + engines: {node: '>=16.0.0', npm: '>=7.0.0'} + dependencies: + '@libp2p/crypto': 2.0.4 + '@libp2p/interface': 0.1.3 + '@libp2p/logger': 3.0.3 + '@libp2p/peer-id': 3.0.3 + '@noble/ciphers': 0.3.0 + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + it-byte-stream: 1.0.1 + it-length-prefixed: 9.0.3 + it-length-prefixed-stream: 1.0.2 + it-pair: 2.0.6 + it-pipe: 3.0.1 + it-stream-types: 2.0.1 + protons-runtime: 5.0.2(uint8arraylist@2.4.3) + uint8arraylist: 2.4.3 + uint8arrays: 4.0.6 + transitivePeerDependencies: + - supports-color + dev: false + /@chainsafe/netmask@2.0.0: resolution: {integrity: sha512-I3Z+6SWUoaljh3TBzCnCxjlUyN8tA+NAk5L6m9IxvCf1BENQTePzPMis97CoN/iMW1St3WN+AWCCRp+TTBRiDg==} dependencies: @@ -3094,6 +3118,21 @@ packages: transitivePeerDependencies: - supports-color + /@libp2p/interface@0.1.3: + resolution: {integrity: sha512-C1O7Xqd2TGVWrIOEDx6kGJSk4YOysWGmYG5Oh3chnsCY0wjUSsLDpl9+wKrdiM/lJbAlHlV65ZOvSkIQ9cWPBQ==} + dependencies: + '@multiformats/multiaddr': 12.1.7 + abortable-iterator: 5.0.1 + it-pushable: 3.2.1 + it-stream-types: 2.0.1 + multiformats: 12.1.2 + p-defer: 4.0.0 + race-signal: 1.0.1 + uint8arraylist: 2.4.3 + transitivePeerDependencies: + - supports-color + dev: false + /@libp2p/interfaces@3.3.2: resolution: {integrity: sha512-p/M7plbrxLzuQchvNwww1Was7ZeGE2NaOFulMaZBYIihU8z3fhaV+a033OqnC/0NTX/yhfdNOG7znhYq3XoR/g==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} @@ -3172,6 +3211,18 @@ packages: transitivePeerDependencies: - supports-color + /@libp2p/logger@3.0.3: + resolution: {integrity: sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==} + dependencies: + '@libp2p/interface': 0.1.3 + '@multiformats/multiaddr': 12.1.7 + debug: 4.3.4(supports-color@8.1.1) + interface-datastore: 8.2.5 + multiformats: 12.1.2 + transitivePeerDependencies: + - supports-color + dev: false + /@libp2p/mdns@6.0.0: resolution: {integrity: sha512-k5Gi0IrPi3roPHF71xlq9x69TxqjMNZ+JiM7hFV0kjRYmaLqYQ+dOTLJLUd5ZfnrxIe8KkapFw3zwKne4Dw4rA==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} @@ -3290,6 +3341,16 @@ packages: transitivePeerDependencies: - supports-color + /@libp2p/peer-id@3.0.3: + resolution: {integrity: sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==} + dependencies: + '@libp2p/interface': 0.1.3 + multiformats: 12.1.2 + uint8arrays: 4.0.6 + transitivePeerDependencies: + - supports-color + dev: false + /@libp2p/peer-record@5.0.4: resolution: {integrity: sha512-e+AArf7pwMLqF24mehTe1OYjr1v0SOKshVrI1E9YH/Cb1F3ZZuK3smyGmnLaS4JlqsarRCMSe3V50tRkqMFY7g==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} @@ -3641,6 +3702,23 @@ packages: - supports-color dev: false + /@libp2p/webtransport@3.1.3: + resolution: {integrity: sha512-nlEJ4YgML5bHYnuZrYxek4y8UaM+VFlwfvmTXgZx9+nmjpap+GAn5KuI8LJwu3Jp1coKzoK3K7GFzLteNqSsdQ==} + dependencies: + '@chainsafe/libp2p-noise': 13.0.1 + '@libp2p/interface': 0.1.3 + '@libp2p/logger': 3.0.3 + '@libp2p/peer-id': 3.0.3 + '@multiformats/multiaddr': 12.1.7 + '@multiformats/multiaddr-matcher': 1.0.2 + it-stream-types: 2.0.1 + multiformats: 12.1.2 + uint8arraylist: 2.4.3 + uint8arrays: 4.0.6 + transitivePeerDependencies: + - supports-color + dev: false + /@localfirst/auth@1.0.1: resolution: {integrity: sha512-1vqyFZAY+d/TNP+BSb14XTwllgWWJfahFtt7IvrkBzP4QiY2Dru7EvrD2OvS+CiA559B/Yq1N3kXCTyFnQym/g==} engines: {node: '>=10'} @@ -3695,6 +3773,16 @@ packages: transitivePeerDependencies: - supports-color + /@multiformats/multiaddr-matcher@1.0.2: + resolution: {integrity: sha512-YzviFV31TsDbatWhEmkNnpWC82F/Wfc+alaOBT94Lk6KJeKKfzsaLhYPsjyhElXiUtCKvB3p5e4+WsE5ZYy1kg==} + dependencies: + '@chainsafe/is-ip': 2.0.2 + '@multiformats/multiaddr': 12.1.7 + multiformats: 12.1.2 + transitivePeerDependencies: + - supports-color + dev: false + /@multiformats/multiaddr-to-uri@9.0.7: resolution: {integrity: sha512-i3ldtPMN6XJt+MCi34hOl0wGuGEHfWWMw6lmNag5BpckPwPTf9XGOOFMmh7ed/uO3Vjah/g173iOe61HTQVoBA==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} @@ -3747,6 +3835,10 @@ packages: - supports-color dev: false + /@noble/ciphers@0.3.0: + resolution: {integrity: sha512-ldbrnOjmNRwFdXcTM6uXDcxpMIFrbzAWNnpBPp4oTJTFF0XByGD6vf45WrehZGXRQTRVV+Zm8YP+EgEf+e4cWA==} + dev: false + /@noble/curves@1.2.0: resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} dependencies: @@ -11183,6 +11275,14 @@ packages: uint8arraylist: 2.4.3 dev: false + /it-byte-stream@1.0.1: + resolution: {integrity: sha512-Nu1/y8ObmrEmpHfWBHrWKtla9xwTdnMceB7v1z7tM+H84VP5Ou59wyFiJHsyvuIETLfKFY+TfhEbOJy24FRGjQ==} + dependencies: + it-pushable: 3.2.1 + it-stream-types: 2.0.1 + uint8arraylist: 2.4.3 + dev: false + /it-concat@3.0.1: resolution: {integrity: sha512-adsCBiPaDM46TrrpmNPEWru++/oFiLWZAnteM5ODPs0NRkDfjDyom+qyXvag7bP/Kp3Z6Vqv+U1idZs5gmyIAg==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} @@ -11238,6 +11338,16 @@ packages: resolution: {integrity: sha512-uVMedYW0wa2Cx0TAmcOCLbfuLLII7+vyURmhKa8Zovpd+aBTMsmINtsta2n364wJ5qsEDBH+akY1sUtAkaYBlg==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} + /it-length-prefixed-stream@1.0.2: + resolution: {integrity: sha512-gWevodoctgwWUaRJN9t+xEs1H1GQNYAjLCR7FO50fon9Ph4OJGgrxPKTc26QXKrC/cIQZLkHYClphUw0wl1k2A==} + dependencies: + it-byte-stream: 1.0.1 + it-length-prefixed: 9.0.3 + it-stream-types: 2.0.1 + uint8-varint: 2.0.1 + uint8arraylist: 2.4.3 + dev: false + /it-length-prefixed@8.0.4: resolution: {integrity: sha512-5OJ1lxH+IaqJB7lxe8IAIwt9UfSfsmjKJoAI/RO9djYoBDt1Jfy9PeVHUmOfqhqyu/4kJvWBFAJUaG1HhLQ12A==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} @@ -14991,6 +15101,10 @@ packages: - encoding - supports-color + /race-signal@1.0.1: + resolution: {integrity: sha512-a5un4dInIWoB7+76DieVE+Xv+wmyochKJ3P2GVs9dUKIzGuPyFR5iU3gEWJvztde/15fSOGkslbIsPxi+Loosw==} + dev: false + /ramda@0.25.0: resolution: {integrity: sha512-GXpfrYVPwx3K7RQ6aYT8KPS8XViSXUVJT1ONhoKPE9VAleW42YE+U+8VEyGWt41EnEQW7gwecYJriTI0pKoecQ==} dev: true