Skip to content

Commit

Permalink
fix: update all deps (#133)
Browse files Browse the repository at this point in the history
Updates deps to the latest versions
  • Loading branch information
achingbrain committed Jun 21, 2024
1 parent dcdd2f8 commit d4a092f
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 31 deletions.
10 changes: 5 additions & 5 deletions examples/js-libp2p-example-browser-pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
"test": "npm run build && test-browser-example test"
},
"dependencies": {
"@chainsafe/libp2p-gossipsub": "^11.0.0",
"@chainsafe/libp2p-noise": "^14.0.0",
"@chainsafe/libp2p-gossipsub": "^13.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@libp2p/circuit-relay-v2": "^1.0.4",
"@libp2p/dcutr": "^1.0.3",
"@libp2p/identify": "^1.0.3",
"@libp2p/mplex": "^10.0.4",
"@libp2p/identify": "^2.1.0",
"@libp2p/mplex": "^10.1.0",
"@libp2p/webrtc": "^4.0.5",
"@libp2p/websockets": "^8.0.4",
"@multiformats/multiaddr": "^12.1.11",
"libp2p": "^1.0.8",
"vite": "^5.0.4"
"vite": "^5.3.1"
},
"devDependencies": {
"test-ipfs-example": "^1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/js-libp2p-example-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "test-node-example test/*"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^14.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@libp2p/peer-id-factory": "^4.0.0",
"@libp2p/tcp": "^9.0.4",
Expand All @@ -28,7 +28,7 @@
"it-pipe": "^3.0.1",
"libp2p": "^1.0.8",
"p-defer": "^4.0.0",
"uint8arrays": "^4.0.6"
"uint8arrays": "^5.1.0"
},
"devDependencies": {
"test-ipfs-example": "^1.1.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/js-libp2p-example-circuit-relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"test": "test-node-example test/*"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^14.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@libp2p/circuit-relay-v2": "^1.0.4",
"@libp2p/identify": "^1.0.3",
"@libp2p/identify": "^2.1.0",
"@libp2p/websockets": "^8.0.4",
"@multiformats/multiaddr": "^12.1.11",
"libp2p": "^1.0.8 "
Expand Down
4 changes: 2 additions & 2 deletions examples/js-libp2p-example-connection-encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"test": "test-node-example test/*"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^14.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@libp2p/plaintext": "^1.0.4",
"@libp2p/tcp": "^9.0.4",
"it-pipe": "^3.0.1",
"libp2p": "^1.0.8",
"uint8arrays": "^4.0.6"
"uint8arrays": "^5.1.0"
},
"devDependencies": {
"test-ipfs-example": "^1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/js-libp2p-example-custom-protocols/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test": "test-node-example test/*"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^14.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@libp2p/peer-id-factory": "^4.0.0",
"@libp2p/tcp": "^9.0.4",
Expand All @@ -26,7 +26,7 @@
"it-length-prefixed-stream": "^1.1.4",
"it-pipe": "^3.0.1",
"libp2p": "^1.0.8",
"uint8arrays": "^4.0.6"
"uint8arrays": "^5.1.0"
},
"devDependencies": {
"test-ipfs-example": "^1.1.0"
Expand Down
8 changes: 4 additions & 4 deletions examples/js-libp2p-example-delegated-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
"test": "npm run build && test-browser-example test"
},
"dependencies": {
"@helia/delegated-routing-v1-http-api-client": "^1.1.0",
"@helia/delegated-routing-v1-http-api-server": "^1.0.3",
"helia": "^2.1.0",
"@helia/delegated-routing-v1-http-api-client": "^3.0.1",
"@helia/delegated-routing-v1-http-api-server": "^3.0.3",
"libp2p": "^1.0.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^5.0.1"
},
"devDependencies": {
"test-ipfs-example": "^1.0.0",
"eslint-config-ipfs": "^6.0.0"
"eslint-config-ipfs": "^7.0.2",
"helia": "^4.2.4"
},
"browserslist": [
">0.2%",
Expand Down
5 changes: 5 additions & 0 deletions examples/js-libp2p-example-delegated-routing/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ class App extends Component {
isLoading: this.state.isLoading - 1
})
}

this.setState({
response: JSON.stringify(providers, null, 2),
isLoading: this.state.isLoading - 1
})
}

async handlePeerSubmit (event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test.describe('delegated routing example:', () => {
await page.click(findProvidersBtn)

const outputLocator = page.locator(output)
await expect(outputLocator).toContainText('multiaddrs":')
await expect(outputLocator).toContainText('[')
})

test('should find peer using the delegate', async ({ page, context }) => {
Expand Down
8 changes: 6 additions & 2 deletions examples/js-libp2p-example-discovery-mechanisms/1-dht.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { noise } from '@chainsafe/libp2p-noise'
import { yamux } from '@chainsafe/libp2p-yamux'
import { bootstrap } from '@libp2p/bootstrap'
import { identify } from '@libp2p/identify'
import { kadDHT } from '@libp2p/kad-dht'
import { kadDHT, removePublicAddressesMapper } from '@libp2p/kad-dht'
import { mplex } from '@libp2p/mplex'
import { tcp } from '@libp2p/tcp'
import { createLibp2p } from 'libp2p'
Expand All @@ -23,7 +23,11 @@ const node = await createLibp2p({
})
],
services: {
kadDHT: kadDHT(),
kadDHT: kadDHT({
protocol: '/ipfs/lan/kad/1.0.0',
peerInfoMapper: removePublicAddressesMapper,
clientMode: false
}),
identify: identify()
}
})
Expand Down
16 changes: 8 additions & 8 deletions examples/js-libp2p-example-discovery-mechanisms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
"test": "test-node-example test/*"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^14.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@libp2p/bootstrap": "^10.0.5",
"@libp2p/bootstrap": "^10.1.0",
"@libp2p/circuit-relay-v2": "^1.0.5",
"@libp2p/floodsub": "^9.0.1",
"@libp2p/identify": "^1.0.4",
"@libp2p/kad-dht": "^11.0.5",
"@libp2p/floodsub": "^9.1.0",
"@libp2p/identify": "^2.1.0",
"@libp2p/kad-dht": "^12.1.0",
"@libp2p/mdns": "^10.0.5",
"@libp2p/mplex": "^10.0.5",
"@libp2p/mplex": "^10.1.0",
"@libp2p/pubsub-peer-discovery": "^10.0.1",
"@libp2p/tcp": "^9.0.4",
"libp2p": "^1.0.8"
},
"devDependencies": {
"execa": "^8.0.1",
"execa": "^9.2.0",
"p-wait-for": "^5.0.2",
"test-ipfs-example": "^1.1.0",
"uint8arrays": "^4.0.9"
"uint8arrays": "^5.1.0"
},
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ proc.all.on('data', async (data) => {

await pWaitFor(() => discoveredNodes > 1, 600000)

proc.kill()
process.exit(0)
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ proc.all.on('data', async (data) => {

await pWaitFor(() => discoveredPeers.length > 2, 600000)

proc.kill()
process.exit(0)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"devDependencies": {
"aegir": "^41.0.4"
"aegir": "^43.0.1"
},
"workspaces": [
"examples/*"
Expand Down

0 comments on commit d4a092f

Please sign in to comment.