Skip to content

Commit

Permalink
deps: update libp2p (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak authored Jul 15, 2024
1 parent ffb850e commit d055224
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 57 deletions.
39 changes: 19 additions & 20 deletions examples/canvas/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
uint8arraylist "^2.4.8"
uint8arrays "^5.1.0"

"@libp2p/webrtc@^4.0.33":
"@libp2p/webrtc@^4.1.1":
version "4.1.1"
resolved "https://registry.yarnpkg.com/@libp2p/webrtc/-/webrtc-4.1.1.tgz#36300d83d1ee0416dbbd24b127a41693abf55b3c"
integrity sha512-yDuDbM79opMoRUCmrcyuYUeb1QUu0+TZs12W0dog/SZl3KTmou937y3qR5Ru3GwWySHHbQBEHQEA92pH/TmLLA==
Expand Down Expand Up @@ -513,7 +513,7 @@
uint8arraylist "^2.4.8"
uint8arrays "^5.1.0"

"@libp2p/websockets@^8.0.24":
"@libp2p/websockets@^8.1.1":
version "8.1.1"
resolved "https://registry.yarnpkg.com/@libp2p/websockets/-/websockets-8.1.1.tgz#09d8e7dbdbee41ad0c341d290688c50ca6e3faf7"
integrity sha512-Iwh+bZnDlft5rVEfJCddtUFRYRT2OARUm60UuD10bYndwnJM3f/kMWXPo0EoE3nULpejOS5VCcR6/Ipm3PIUiw==
Expand All @@ -531,7 +531,7 @@
wherearewe "^2.0.1"
ws "^8.17.0"

"@libp2p/webtransport@^4.0.32":
"@libp2p/webtransport@^4.1.1":
version "4.1.1"
resolved "https://registry.yarnpkg.com/@libp2p/webtransport/-/webtransport-4.1.1.tgz#791da4d720f6387e99d2b65c587a9cca132b03b0"
integrity sha512-bissN51kOnSDOazoPfvOTPRr7tOGp8VeqzYbnbynGHbbB+LcgTUGkHzjAdYcbcF/vgz0ITrLYPUQaPaoPHrwag==
Expand Down Expand Up @@ -630,11 +630,11 @@
resolved "https://registry.yarnpkg.com/@sindresorhus/fnv1a/-/fnv1a-3.1.0.tgz#f8e46597298f6fd4c12dc901cdd4e73beb4d24fa"
integrity sha512-KV321z5m/0nuAg83W1dPLy85HpHDk7Sdi4fJbwvacWsEhAh+rZUW4ZfGcXmUIvjZg4ss2bcwNlRhJ7GBEUG08w==

"@topology-foundation/[email protected].14", "@topology-foundation/crdt@file:../../packages/crdt":
version "0.0.14"
"@topology-foundation/[email protected].15", "@topology-foundation/crdt@file:../../packages/crdt":
version "0.0.15"

"@topology-foundation/[email protected].14", "@topology-foundation/network@file:../../packages/network":
version "0.0.14"
"@topology-foundation/[email protected].15", "@topology-foundation/network@file:../../packages/network":
version "0.0.15"
dependencies:
"@chainsafe/libp2p-gossipsub" "^13.1.0"
"@chainsafe/libp2p-noise" "^15.1.0"
Expand All @@ -646,28 +646,27 @@
"@libp2p/identify" "^2.0.2"
"@libp2p/interface-pubsub" "^4.0.1"
"@libp2p/pubsub-peer-discovery" "^10.0.2"
"@libp2p/webrtc" "^4.0.33"
"@libp2p/websockets" "^8.0.24"
"@libp2p/webtransport" "^4.0.32"
"@libp2p/webrtc" "^4.1.1"
"@libp2p/websockets" "^8.1.1"
"@libp2p/webtransport" "^4.1.1"
"@multiformats/multiaddr" "^12.3.0"
it-pipe "^3.0.1"
libp2p "^1.6.0"

"@topology-foundation/node@file:../../packages/node":
version "0.0.14"
version "0.0.15"
dependencies:
"@libp2p/dcutr" "^1.1.0"
"@topology-foundation/crdt" "0.0.14"
"@topology-foundation/network" "0.0.14"
"@topology-foundation/object" "0.0.14"
"@topology-foundation/crdt" "0.0.15"
"@topology-foundation/network" "0.0.15"
"@topology-foundation/object" "0.0.15"

"@topology-foundation/[email protected].14":
version "0.0.14"
resolved "https://registry.yarnpkg.com/@topology-foundation/object/-/object-0.0.14.tgz#8a1e6425eb74d86ef1167c8159c5a4e5ddb744db"
integrity sha512-N8vvjMMrtFKqBc43T5EGWNzfNVatcVzj2Mv4Ntg9Kw6L9EhA6W4YyWFnR3DIZ1tN5KCBEMYsUrZKCuDYHXZ5/A==
"@topology-foundation/[email protected].15":
version "0.0.15"
resolved "https://registry.yarnpkg.com/@topology-foundation/object/-/object-0.0.15.tgz#f3e1ac4faf9e69c58c26faca83b4b1c7e581d784"
integrity sha512-4aROQkMP1xsG1q/aQduIsAQMn8R+HKYjUqHq01RRTdLmVwmzKumuClKIK/Pr0tIVCUPLEqTKKCLRaHAUFXh9qQ==

"@topology-foundation/object@file:../../packages/object":
version "0.0.14"
version "0.0.15"

"@tsconfig/node10@^1.0.7":
version "1.0.11"
Expand Down
13 changes: 4 additions & 9 deletions packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@
},
"type": "module",
"types": "./dist/src/index.d.ts",
"files": [
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
"files": ["src", "dist", "!dist/test", "!**/*.tsbuildinfo"],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
Expand Down Expand Up @@ -42,9 +37,9 @@
"@libp2p/interface-pubsub": "^4.0.1",
"@libp2p/mdns": "^10.1.1",
"@libp2p/pubsub-peer-discovery": "^10.0.2",
"@libp2p/webrtc": "^4.0.33",
"@libp2p/websockets": "^8.0.24",
"@libp2p/webtransport": "^4.0.32",
"@libp2p/webrtc": "^4.1.1",
"@libp2p/websockets": "^8.1.1",
"@libp2p/webtransport": "^4.1.1",
"@multiformats/multiaddr": "^12.3.0",
"it-pipe": "^3.0.1",
"libp2p": "^1.6.0"
Expand Down
14 changes: 1 addition & 13 deletions packages/network/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,7 @@ export class TopologyNetworkNode {
discoverRelays: 2,
reservationConcurrency: 1,
}),
webRTC({
rtcConfiguration: {
iceServers: [
{
// STUN servers help the browser discover its own public IPs
urls: [
"stun:stun.l.google.com:19302",
"stun:global.stun.twilio.com:3478",
],
},
],
},
}),
webRTC(),
webRTCDirect(),
webSockets(),
webTransport(),
Expand Down
3 changes: 1 addition & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@
},
"devDependencies": {
"@types/node": "^20.14.10",
"tsx": "^4.16.0",
"tsx": "4.15.7",
"typescript": "^5.4.5",
"vitest": "^2.0.2"
},
"dependencies": {
"@libp2p/dcutr": "^1.1.0",
"@topology-foundation/crdt": "0.0.20",
"@topology-foundation/network": "0.0.20",
"@topology-foundation/object": "0.0.20"
Expand Down
25 changes: 12 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@
uint8arraylist "^2.4.8"
uint8arrays "^5.1.0"

"@libp2p/webrtc@^4.0.33":
"@libp2p/webrtc@^4.1.1":
version "4.1.1"
resolved "https://registry.yarnpkg.com/@libp2p/webrtc/-/webrtc-4.1.1.tgz#36300d83d1ee0416dbbd24b127a41693abf55b3c"
integrity sha512-yDuDbM79opMoRUCmrcyuYUeb1QUu0+TZs12W0dog/SZl3KTmou937y3qR5Ru3GwWySHHbQBEHQEA92pH/TmLLA==
Expand Down Expand Up @@ -683,7 +683,7 @@
uint8arraylist "^2.4.8"
uint8arrays "^5.1.0"

"@libp2p/websockets@^8.0.24":
"@libp2p/websockets@^8.1.1":
version "8.1.1"
resolved "https://registry.yarnpkg.com/@libp2p/websockets/-/websockets-8.1.1.tgz#09d8e7dbdbee41ad0c341d290688c50ca6e3faf7"
integrity sha512-Iwh+bZnDlft5rVEfJCddtUFRYRT2OARUm60UuD10bYndwnJM3f/kMWXPo0EoE3nULpejOS5VCcR6/Ipm3PIUiw==
Expand All @@ -701,7 +701,7 @@
wherearewe "^2.0.1"
ws "^8.17.0"

"@libp2p/webtransport@^4.0.32":
"@libp2p/webtransport@^4.1.1":
version "4.1.1"
resolved "https://registry.yarnpkg.com/@libp2p/webtransport/-/webtransport-4.1.1.tgz#791da4d720f6387e99d2b65c587a9cca132b03b0"
integrity sha512-bissN51kOnSDOazoPfvOTPRr7tOGp8VeqzYbnbynGHbbB+LcgTUGkHzjAdYcbcF/vgz0ITrLYPUQaPaoPHrwag==
Expand Down Expand Up @@ -1069,17 +1069,16 @@
"@libp2p/interface-pubsub" "^4.0.1"
"@libp2p/mdns" "^10.1.1"
"@libp2p/pubsub-peer-discovery" "^10.0.2"
"@libp2p/webrtc" "^4.0.33"
"@libp2p/websockets" "^8.0.24"
"@libp2p/webtransport" "^4.0.32"
"@libp2p/webrtc" "^4.1.1"
"@libp2p/websockets" "^8.1.1"
"@libp2p/webtransport" "^4.1.1"
"@multiformats/multiaddr" "^12.3.0"
it-pipe "^3.0.1"
libp2p "^1.6.0"

"@topology-foundation/node@file:packages/node":
version "0.0.20"
dependencies:
"@libp2p/dcutr" "^1.1.0"
"@topology-foundation/crdt" "0.0.20"
"@topology-foundation/network" "0.0.20"
"@topology-foundation/object" "0.0.20"
Expand Down Expand Up @@ -2588,7 +2587,7 @@ es-module-lexer@^1.2.1:
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.5.4.tgz#a8efec3a3da991e60efa6b633a7cad6ab8d26b78"
integrity sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==

esbuild@^0.21.3, esbuild@~0.21.5:
esbuild@^0.21.3, esbuild@~0.21.4:
version "0.21.5"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.21.5.tgz#9ca301b120922959b766360d8ac830da0d02997d"
integrity sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==
Expand Down Expand Up @@ -5749,12 +5748,12 @@ tslib@^2.0.0, tslib@^2.0.1, tslib@^2.1.0, tslib@^2.4.0, tslib@^2.6.1:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0"
integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==

tsx@^4.16.0:
version "4.16.2"
resolved "https://registry.yarnpkg.com/tsx/-/tsx-4.16.2.tgz#8722be119ae226ef0b4c6210d5ee90f3ba823f19"
integrity sha512-C1uWweJDgdtX2x600HjaFaucXTilT7tgUZHbOE4+ypskZ1OP8CRCSDkCxG6Vya9EwaFIVagWwpaVAn5wzypaqQ==
tsx@4.15.7:
version "4.15.7"
resolved "https://registry.yarnpkg.com/tsx/-/tsx-4.15.7.tgz#69d7499196a323507c4051d2ba10753edcc057e5"
integrity sha512-u3H0iSFDZM3za+VxkZ1kywdCeHCn+8/qHQS1MNoO2sONDgD95HlWtt8aB23OzeTmFP9IU4/8bZUdg58Uu5J4cg==
dependencies:
esbuild "~0.21.5"
esbuild "~0.21.4"
get-tsconfig "^4.7.5"
optionalDependencies:
fsevents "~2.3.3"
Expand Down

0 comments on commit d055224

Please sign in to comment.