mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-02-20 02:38:19 +00:00
chore(store-reactjs-chat): bump js-waku to 0.30.0
This commit is contained in:
parent
27445e5f20
commit
1e133a27e2
@ -7,7 +7,7 @@
|
|||||||
"@testing-library/jest-dom": "^5.16.4",
|
"@testing-library/jest-dom": "^5.16.4",
|
||||||
"@testing-library/react": "^13.2.0",
|
"@testing-library/react": "^13.2.0",
|
||||||
"@testing-library/user-event": "^14.1.1",
|
"@testing-library/user-event": "^14.1.1",
|
||||||
"js-waku": "0.29.0",
|
"js-waku": "0.30.0",
|
||||||
"protobufjs": "^7.1.0",
|
"protobufjs": "^7.1.0",
|
||||||
"react": "^18.1.0",
|
"react": "^18.1.0",
|
||||||
"react-dom": "^18.1.0",
|
"react-dom": "^18.1.0",
|
||||||
|
8
store-reactjs-chat/pnpm-lock.yaml
generated
8
store-reactjs-chat/pnpm-lock.yaml
generated
@ -5,7 +5,7 @@ specifiers:
|
|||||||
'@testing-library/jest-dom': ^5.16.4
|
'@testing-library/jest-dom': ^5.16.4
|
||||||
'@testing-library/react': ^13.2.0
|
'@testing-library/react': ^13.2.0
|
||||||
'@testing-library/user-event': ^14.1.1
|
'@testing-library/user-event': ^14.1.1
|
||||||
js-waku: 0.29.0
|
js-waku: 0.30.0
|
||||||
protobufjs: ^7.1.0
|
protobufjs: ^7.1.0
|
||||||
react: ^18.1.0
|
react: ^18.1.0
|
||||||
react-dom: ^18.1.0
|
react-dom: ^18.1.0
|
||||||
@ -17,7 +17,7 @@ dependencies:
|
|||||||
'@testing-library/jest-dom': 5.16.5
|
'@testing-library/jest-dom': 5.16.5
|
||||||
'@testing-library/react': 13.3.0_biqbaboplfbrettd7655fr4n2y
|
'@testing-library/react': 13.3.0_biqbaboplfbrettd7655fr4n2y
|
||||||
'@testing-library/user-event': 14.4.2_znfriv3ismgf3ybh2woqwlpfea
|
'@testing-library/user-event': 14.4.2_znfriv3ismgf3ybh2woqwlpfea
|
||||||
js-waku: 0.29.0
|
js-waku: 0.30.0
|
||||||
protobufjs: 7.1.0
|
protobufjs: 7.1.0
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
react-dom: 18.2.0_react@18.2.0
|
react-dom: 18.2.0_react@18.2.0
|
||||||
@ -7375,8 +7375,8 @@ packages:
|
|||||||
/js-tokens/4.0.0:
|
/js-tokens/4.0.0:
|
||||||
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
||||||
|
|
||||||
/js-waku/0.29.0:
|
/js-waku/0.30.0:
|
||||||
resolution: {integrity: sha512-44GOpNbkFt/1/bDZ3tcaeemehaZaxw404QmTvHw7FUwY6dtvGsDEERLEw1TERUljDESFjvEOcJjYnLcNDY1MHg==}
|
resolution: {integrity: sha512-CcPsPXbuIIoaMwRU/jw+U4pVCqRPbt4h/tjpk4skXnlTLTSGDOkfpvQ45Aj5tS0yXgwKdAjOMziV14OwfeZw/w==}
|
||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@chainsafe/libp2p-gossipsub': 4.1.1
|
'@chainsafe/libp2p-gossipsub': 4.1.1
|
||||||
|
@ -2,11 +2,6 @@ import { utils } from "js-waku";
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import protobuf from "protobufjs";
|
import protobuf from "protobufjs";
|
||||||
import { createLightNode } from "js-waku/lib/create_waku";
|
import { createLightNode } from "js-waku/lib/create_waku";
|
||||||
import {
|
|
||||||
Fleet,
|
|
||||||
getPredefinedBootstrapNodes,
|
|
||||||
} from "js-waku/lib/predefined_bootstrap_nodes";
|
|
||||||
import { PeerDiscoveryStaticPeers } from "js-waku/lib/peer_discovery_static_list";
|
|
||||||
import { waitForRemotePeer } from "js-waku/lib/wait_for_remote_peer";
|
import { waitForRemotePeer } from "js-waku/lib/wait_for_remote_peer";
|
||||||
import { DecoderV0 } from "js-waku/lib/waku_message/version_0";
|
import { DecoderV0 } from "js-waku/lib/waku_message/version_0";
|
||||||
|
|
||||||
@ -28,13 +23,7 @@ function App() {
|
|||||||
|
|
||||||
setWakuStatus("Starting");
|
setWakuStatus("Starting");
|
||||||
|
|
||||||
createLightNode({
|
createLightNode({ defaultBootstrap: true }).then((waku) => {
|
||||||
libp2p: {
|
|
||||||
peerDiscovery: [
|
|
||||||
new PeerDiscoveryStaticPeers(getPredefinedBootstrapNodes(Fleet.Test)),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
}).then((waku) => {
|
|
||||||
waku.start().then(() => {
|
waku.start().then(() => {
|
||||||
setWaku(waku);
|
setWaku(waku);
|
||||||
setWakuStatus("Connecting");
|
setWakuStatus("Connecting");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user