update packages versions

This commit is contained in:
fryorcraken.eth 2023-03-27 13:56:52 +11:00
parent 0b45ae46e8
commit 8137a5129a
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -94,7 +94,7 @@ const textInput = document.getElementById("textInput")
Create and start a Waku Node:
```js
import {createLightNode} from "https://unpkg.com/@waku/create@0.0.6/bundle/index.js"
import {createLightNode} from "https://unpkg.com/@waku/create@0.0.9/bundle/index.js"
const wakuNode = await createLightNode({defaultBootstrap: true})
await wakuNode.start()
@ -112,7 +112,7 @@ Your Waku node needs to connect to a remote node in order to access the network.
To wait for this, use the `waitForRemotePeer` function:
```js
import * as waku from "https://unpkg.com/@waku/core@0.0.10/bundle/index.js"
import * as waku from "https://unpkg.com/@waku/core@0.0.13/bundle/index.js"
await waku.waitForRemotePeer(wakuNode)
```
@ -169,7 +169,7 @@ We will store messages as a `utf-8` string.
Listen to messages using the decoder and add them to the `messages` div upon reception:
```ts
import * as utils from "https://unpkg.com/@waku/utils@0.0.10/bundle/index.js"
import * as utils from "https://unpkg.com/@waku/utils@0.0.3/bundle/index.js"
wakuNode.filter.subscribe([decoder], (message) => {
const str = utils.bytesToUtf8(message.payload)