Franck Royer
290828baff
Remove unneeded comments
2022-01-07 15:19:33 +11:00
Franck Royer
add78bce71
Format js config file
2022-01-07 15:18:37 +11:00
Franck Royer
e18c4f1619
Ignore source map warnings
...
This is for debugging purposes and out of scope for this example.
2022-01-07 15:17:31 +11:00
Franck Royer
eaae1e5372
Replace react-app-rewired with cra-webpack-rewired
...
The second is more appropriate for react 5
2022-01-07 15:05:40 +11:00
Franck Royer
6a372cd27f
Update other deps
2022-01-06 17:42:16 +11:00
Franck Royer
cd7a8784d3
Upgrade few dependencies
2022-01-06 17:39:08 +11:00
Franck Royer
761c92d28f
Run `npm audit fix`
2022-01-06 17:15:23 +11:00
Franck Royer
0de6b52e87
Update caniuse-lite
2022-01-06 17:10:58 +11:00
Franck Royer
942b3ded75
Fix Cannot convert BigInt value to a number
...
By not transpiling for older browsers that do not support BigInt.
2022-01-05 16:49:46 +11:00
F
07d2c81d1d
Example: rename file and point to docs website
...
- GitHub automatically print README.md file in folder.
- Point to docs website that contains some external examples.
2021-12-13 11:38:12 +11:00
F
8909164f6d
Use ESM in JavaScript examples
...
As it is what JS projects would use when using the js-waku npm package.
2021-11-26 21:24:05 +11:00
Franck Royer
4ecd4fd377
Correct unpkg link
...
Latest release now contains UMD bundle.
2021-10-13 11:45:26 +11:00
Franck Royer
cb0b93d3f1
Remove todo
2021-10-12 16:32:04 +11:00
Franck Royer
0d86c91720
Add Pure JS example
2021-10-12 15:36:11 +11:00
Franck Royer
6ebcc46f9e
Remove ReactJS warning about webpack
...
Because this is not a monorepo, ReactJS projects are examples.
2021-10-12 11:43:29 +11:00
Franck Royer
899e0c89e7
Add time filter to the guide
2021-10-05 13:36:04 +11:00
Franck Royer
f5a0416efd
Rename to page direction
...
As the direction only affects the page ordering,
not the message ordering in the pages.
2021-10-05 13:36:03 +11:00
Franck Royer
087f5bf774
guide/example: Demonstrate how to use the store callback option
...
This option is better than using the returned value.
This is because the returned value is returned only once **all** pages
are received, which can be very long if the `timeFilter` option is not
used.
2021-10-05 13:36:03 +11:00
Franck Royer
a352cb0b38
Examples with no async/await syntax
...
Useful for those using ClojureScript.
Resolves #182 .
2021-09-07 14:44:33 +10:00
Franck Royer
c468bfd662
Minor correct, simplify code
2021-09-07 14:17:29 +10:00
Franck Royer
893e0b1af9
Add guide to use Waku Store in ReactJS
2021-09-07 14:17:29 +10:00
Franck Royer
064bad5a75
Remove interval
2021-09-07 14:17:29 +10:00
Franck Royer
f6aa758712
Small cleanup
2021-09-07 14:17:29 +10:00
Franck Royer
a21d641280
Added `Waku.waitForConnectedPeer` helper
...
To ensure that we are connected to Waku peers when using the bootstrap
option.
2021-09-02 15:46:23 +10:00
Franck Royer
5af6d84852
Encrypt Public Key Messages using symmetric encryption
2021-08-26 16:12:53 +10:00
Franck Royer
2f2eada322
Log error when failing to encode Public Key Message
2021-08-26 16:12:53 +10:00
Franck Royer
4719de31b8
Run build with NodeJS 16
2021-08-26 13:02:09 +10:00
Franck Royer
5c1cda8b2a
Demonstrate usage of history time filter in web chat
2021-08-26 11:50:20 +10:00
Franck Royer
60290e8d84
Moved `DefaultPubSubTopic` to `waku.ts` and fixed the casing
...
The pubsub topic is used by several protocol, not just relay.
2021-08-20 10:12:55 +10:00
Franck Royer
7d738c787c
Use `eth_signTypedData_v3` as it has broader wallet support
2021-08-19 11:12:04 +10:00
Franck Royer
16b79306d5
Remove dead code
2021-08-19 11:12:04 +10:00
Franck Royer
a8b29a2fac
Use sign typed data instead of personal sign
2021-08-18 16:48:28 +10:00
Franck Royer
d494558596
Rename "Direct" to "Private" in code
2021-08-18 16:37:30 +10:00
Franck Royer
0673edacb5
Change content topic
2021-08-17 16:20:06 +10:00
Franck Royer
9692b4af72
Rename Eth-DM to Eth-PM
...
"Direct Message" can lead to confusion with "Direct Connection" that
refers to low latency network connections.
2021-08-17 16:06:46 +10:00
Franck Royer
0e8062d32e
Add caveat section
2021-08-13 16:48:32 +10:00
Franck Royer
140791cc91
Provide easy way to bootstrap when creating Waku node
2021-08-13 16:18:00 +10:00
Franck Royer
c3855112d7
Rename `getStatusFleetNodes`
...
To make it more generic to allow retrieval of bootstrap nodes from
other sources.
2021-08-13 16:17:15 +10:00
Franck Royer
28e4c9d78c
Rephrase
2021-08-13 15:58:40 +10:00
Franck Royer
31b007c398
Refresh peer stats every second
2021-08-13 15:58:39 +10:00
Franck Royer
076192aa66
Use EIP-712 to sign public key message
2021-08-13 15:58:39 +10:00
Franck Royer
3b32987ecf
Add check in case user tries with incompatible wallet
2021-08-12 16:42:35 +10:00
Franck Royer
1e69811d8d
Use Web3 wallet for encryption instead of generated keys
2021-08-12 16:42:35 +10:00
Franck Royer
42ace51f35
Init commit Eth-PM Wallet
2021-08-12 16:06:09 +10:00
Franck Royer
6038007d40
No need for a wallet to send messages
2021-08-12 15:15:56 +10:00
Franck Royer
a1218c1223
Refresh peer stats every second
2021-08-12 15:14:15 +10:00
Franck Royer
278439df82
Store encryption public key as byte array
2021-08-12 15:14:15 +10:00
Franck Royer
0bbe52ebb1
Rename ethdm*key to encryption*key
...
The naming was just confusing.
2021-08-12 15:14:15 +10:00
Franck Royer
a2b6947b73
Add button to connect to wallet
2021-08-12 15:08:40 +10:00
Franck Royer
19c355e36b
Remove unnecessary parameter
2021-08-11 15:57:37 +10:00
Franck Royer
85231a288f
Simplify expression
2021-08-11 15:34:02 +10:00
Franck Royer
eb04acd1a0
Fix format
2021-08-09 14:40:57 +10:00
Franck Royer
332d05e31d
Not sure why npm does that
2021-08-09 14:22:14 +10:00
Franck Royer
fb89b78754
Do not run react tests
...
Unfortunately, there are issue with react-scripts (jest) and
multiformats: https://github.com/multiformats/js-multiformats/issues/110
2021-08-09 14:21:47 +10:00
Franck Royer
be771d6619
This would have failed if the first node we connect to is NOT store
2021-08-09 12:36:53 +10:00
Franck Royer
d3877ac26c
Simplify
2021-08-09 12:36:29 +10:00
Franck Royer
884190c971
Phrasing
2021-08-09 12:36:29 +10:00
Franck Royer
ee5d627d14
Correct grammar
2021-08-09 12:36:28 +10:00
Franck Royer
e52e564a31
Any value can be undefined
2021-08-09 12:36:28 +10:00
Franck Royer
8322d24ac1
Always clean up listeners!
2021-08-09 12:36:28 +10:00
Franck Royer
f700367e62
Demonstrate how to wait for a store node peer
2021-08-09 12:36:28 +10:00
Franck Royer
3767dd75a7
store-react-js retrieves messages from store
2021-08-09 12:36:27 +10:00
Franck Royer
dc9ea6dfac
Add Store example
2021-08-09 12:36:27 +10:00
Franck Royer
319f44a0b1
`WakuStore.queryHistory` throws when encountering an error
...
Instead of returning a `null` value.
2021-08-09 12:36:24 +10:00
Franck Royer
b422c9a10b
Move `contentTopics` out the `WakuStore.queryHistory`'s optional params
2021-08-09 12:36:12 +10:00
Franck Royer
ad9d629daa
`ChatMessage` has been moved from js-waku to web-chat example
...
It is a type used for the [TOY-CHAT](https://rfc.vac.dev/spec/22/ )
protocol;
js-waku users should not build on top if this toy protocol and instead
design message data structures appropriate to their use case.
2021-08-06 17:25:12 +10:00
Franck Royer
0c3995a810
Remove cli-chat example
...
The focus of this library is on Web environment; Several examples now
cover usage of Waku Relay and Waku Store; web-chat POC should be
preferred to use the [TOY-CHAT](https://rfc.vac.dev/spec/22/ ) protocol.
2021-08-06 17:25:11 +10:00
Franck Royer
c13beae0d2
Include ReactJS in name min web chat name
2021-08-05 13:39:42 +10:00
Franck Royer
27feaaac4b
Revert "Run tests in parallel"
...
This reverts commit b8e7079b67
.
2021-08-04 14:53:07 +10:00
Franck Royer
b8e7079b67
Run tests in parallel
...
React build is quite long so best to run other linters in parallel.
2021-08-02 14:12:39 +10:00
Franck Royer
dbc6662082
Touch up
2021-08-02 12:22:18 +10:00
Franck Royer
5a4f7d4468
Test by building
...
Cannot run react-scripts test with libp2p
due to
https://github.com/libp2p/js-libp2p/issues/961
2021-08-02 11:04:41 +10:00
Franck Royer
f0fe7dce02
Fix TextDecoder error in tests
2021-08-02 10:45:11 +10:00
Franck Royer
943b1c2456
Add ReactJS Relay guide
2021-08-02 10:45:10 +10:00
Franck Royer
f95e52c2ea
Remove reducer, fix timestamp
2021-08-02 10:45:10 +10:00
Franck Royer
2306bb1708
Add breakdown of what examples demonstrate
...
Also move explanation to each readme.
2021-08-02 10:45:10 +10:00
Franck Royer
1f370ae53e
Use protobuf
2021-08-02 10:45:09 +10:00
Franck Royer
7c715d8fa7
Display messages
2021-08-02 10:45:09 +10:00
Franck Royer
8a7f2401ea
Process incoming messages
2021-08-02 10:45:08 +10:00
Franck Royer
7c5382dfff
Send message
2021-08-02 10:45:08 +10:00
Franck Royer
3f6497634f
Bootstrap
2021-08-02 10:45:08 +10:00
Franck Royer
2ae9a6ca00
Create Waku
2021-08-02 10:45:08 +10:00
Franck Royer
1e64ac8f7c
create react app min-js-web-chat
2021-08-02 10:45:08 +10:00
Franck Royer
d307342f7e
Simplify message handling to avoid re-rendering
...
Only retrieve historical messages when starting the app.
This allows avoid re-rendering issues. This is an example dApp. No need
to waste time on React optimisation.
2021-07-29 17:23:03 +10:00
Franck Royer
9aaac20981
Examples: Content Topic moved out of options parameter
2021-07-28 12:03:51 +10:00
Franck Royer
53ef23362c
Remove faulty fleet feature
...
It does not work as it can lead to infinite loops due to the handling of
the Waku instance. It should disconnect and reconnect to peers instead
of starting a new waku instance.
2021-07-28 11:58:02 +10:00
Franck Royer
36a5a51aa8
Upgrade to libp2p 0.32.0
2021-07-27 14:31:06 +10:00
Franck Royer
3bff44432a
Remove some vulnerable packages
...
Thanks to `npm audit`.
2021-07-20 15:30:15 +10:00
Franck Royer
1d4137e2c4
Rename so that it does make dev thinks it's for asymmetric enc only
2021-07-16 10:24:29 +10:00
Franck Royer
addf9543a2
Export `generatePrivateKey` and `getPublicKey` directly from the root
2021-07-16 09:43:10 +10:00
Franck Royer
5c790a41c9
Add network info in toolbar
2021-07-15 14:37:30 +10:00
Franck Royer
53412e2fb4
New `/fleet` command to change target Status fleet
2021-07-15 14:25:59 +10:00
Franck Royer
9ffb33cdde
Make fleet environment part of the state
2021-07-15 14:14:45 +10:00
Franck Royer
bc3b00b13e
Use `const` as setter should be used to change values
2021-07-15 14:11:00 +10:00
Franck Royer
a8e2b908ba
Cleanup observers
...
And name function to avoid commenting.
2021-07-15 14:09:58 +10:00
Franck Royer
6e22897f74
Rename `stateWaku` to `waku`
...
There should only be one.
2021-07-15 14:08:07 +10:00
Franck Royer
c2cef05c2d
Use protobuf instead of JSON for direct messages
2021-07-12 17:29:52 +10:00
Franck Royer
4ca440d27e
List relay and light push peers numbers instead of any peer
2021-07-12 17:13:28 +10:00
Franck Royer
7a0b947553
Add logs on light push
2021-07-12 17:10:05 +10:00
Franck Royer
48bdb0b3f2
Use WakuMessage version 1 instead of eth-crypto
2021-07-12 17:09:44 +10:00