Skip to content

Commit

Permalink
fix: update helia and libp2p deps (#313)
Browse files Browse the repository at this point in the history
Updates to helia@5.x.x and libp2p@2.x.x deps
  • Loading branch information
achingbrain authored Oct 7, 2024
1 parent 51bac37 commit ce95e92
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions 301-networking.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function createNode () {
transports: [
tcp()
],
connectionEncryption: [
connectionEncrypters: [
noise()
],
streamMuxers: [
Expand Down Expand Up @@ -63,7 +63,7 @@ const node2 = await createNode()

// connect them together
const multiaddrs = node2.libp2p.getMultiaddrs()
await node1.libp2p.dial(multiaddrs[0])
await node1.libp2p.dial(multiaddrs)

// create a filesystem on top of Helia, in this case it's UnixFS
const fs = unixfs(node1)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Running examples](#running-examples)
- [Running Examples](#running-examples)
- [Usage](#usage)
- [101 - Basics](#101---basics)
- [201 - Storage](#201---storage)
Expand Down Expand Up @@ -206,7 +206,7 @@ const libp2p = await createLibp2p({
transports: [
webSockets()
],
connectionEncryption: [
connectionEncrypters: [
noise()
],
streamMuxers: [
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"test": "test-node-example test/*"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@helia/http": "^1.0.9",
"@helia/unixfs": "^3.0.0",
"@libp2p/bootstrap": "^10.0.12",
"@libp2p/identify": "^1.0.14",
"@libp2p/tcp": "^9.0.12",
"blockstore-core": "^4.1.0",
"datastore-core": "^9.1.1",
"helia": "^4.0.1",
"libp2p": "^1.2.0"
"@chainsafe/libp2p-noise": "^16.0.0",
"@chainsafe/libp2p-yamux": "^7.0.1",
"@helia/http": "^2.0.0",
"@helia/unixfs": "^4.0.0",
"@libp2p/bootstrap": "^11.0.7",
"@libp2p/identify": "^3.0.7",
"@libp2p/tcp": "^10.0.8",
"blockstore-core": "^5.0.2",
"datastore-core": "^10.0.2",
"helia": "^5.0.0",
"libp2p": "^2.1.6"
},
"devDependencies": {
"test-ipfs-example": "^1.0.0"
Expand Down

0 comments on commit ce95e92

Please sign in to comment.