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
Franck Royer
63923f4368
Prefer usage of utils
2021-07-09 16:06:49 +10:00
Franck Royer
8cd5a52eba
Provide hex/bytes utils as part of js-waku
2021-07-09 15:50:17 +10:00
Franck Royer
9ff1d87a8d
Use util function
2021-07-09 15:50:16 +10:00
Franck Royer
4f50ca1732
Align examples
2021-07-09 15:50:16 +10:00
Franck Royer
2266f31d30
Move optional parameters to a single `Options` object.
2021-07-09 15:50:15 +10:00
Franck Royer
d00c1c874a
Do not fail if connection to one peer fails
...
As long as we connect to at least one peer then we can move forward.
2021-07-09 14:35:06 +10:00
Franck Royer
66d450ae36
Fix bad comparison logic
2021-07-09 14:35:06 +10:00
Franck Royer
44db58d2fd
Fix the dependencies
2021-07-09 14:35:04 +10:00
Franck Royer
eec6de9f0c
Remove InitWaku component
...
There was an issue where the observers are added/removed continously.
This is due to using `useEffect` on props.
By removing this component then `useEffect` ends only being called when
waku changes, ie, at initialisation.
2021-07-09 14:34:33 +10:00
Franck Royer
707979bf4c
Only use Prod nodes
...
js-waku maintains compatibility with latest nim-waku release, deployed
in the prod fleet.
js-waku may not be compatible with nim-waku master branch if backward
compatible changes were introduced.
2021-07-02 15:28:26 +10:00
Franck Royer
c5419630fc
Define util function for hex<>buf conversions
2021-07-02 13:52:10 +10:00
Franck Royer
a4dd8771f6
re-arrange app bar and display address in use
2021-07-02 13:45:22 +10:00