Commit Graph

1729 Commits

Author SHA1 Message Date
Franck Royer 8073021d82
Do not fail if a chat message is malformed 2021-06-11 14:38:22 +10:00
Franck Royer bc544c8e0b
Update Light Push protocol string to match nim-waku v0.4 2021-06-11 14:38:08 +10:00
Franck Royer ba8390f02a
Upgrade nim-waku to v0.4 2021-06-11 14:37:54 +10:00
Franck Royer 4eec3930d5
Merge pull request #202 from status-im/release/0.6.0
Release 0.6.0
2021-06-09 21:06:24 +10:00
Franck Royer e75fb91d3f
Release 0.6.0
### Changed
- **Breaking**: Websocket protocol is not automatically added anymore
  if the user specifies a protocol in `libp2p.modules` when using
  `Waku.create`.
- **Breaking**: Options passed to `Waku.create` used to be passed to
  `Libp2p.create`; Now, only the `libp2p` property is passed to
  `Libp2p.create`, allowing for a cleaner interface.
- Examples (cli chat): Use tcp protocol instead of websocket.

### Added
- Enable access to `WakuMessage.timestamp`.
- Examples (web chat): Use `WakuMessage.timestamp` as unique key for
  list items.
- Doc: Link to new [topic guidelines](https://rfc.vac.dev/spec/23/) in
  README.
- Doc: Link to [Waku v2 Toy Chat specs](https://rfc.vac.dev/spec/22/) in
  README.
- Examples (web chat): Persist nick.
- Support for custom PubSub Topics to `Waku`, `WakuRelay`, `WakuStore`
  and `WakuLightPush`;
  Passing a PubSub Topic is optional and still defaults to
  `/waku/2/default-waku/proto`;
  JS-Waku currently supports one, and only, PubSub topic per instance.
2021-06-09 20:49:19 +10:00
Franck Royer b0e9e88081
Merge pull request #203 from status-im/cli-chat-use-tcp
Use tcp protocol only for cli-chat
2021-06-09 17:46:44 +10:00
Franck Royer 2350ce5a6f
Clarify new libp2p modules transport behaviour 2021-06-09 16:59:27 +10:00
Franck Royer 1bb1f8f6b6
Use tcp protocol only
Due to #201, Websocket protocol is not added by default if the caller
specifies a protocol for libp2p.

In the case cli-chat. We were using both tcp and ws.
As the web-chat already demonstrates usage of websocket protocol, we
cli-chat to tcp only.
2021-06-09 16:58:08 +10:00
Franck Royer 0136720b48
Merge pull request #201 from status-im/174-custom-pubsub-topic 2021-06-09 16:31:54 +10:00
Franck Royer 5ce0717f05
Enable passing a custom pubsub topic
Note that we currently only support one, and only one, pubsub topic for
a given instance across the codebase. The PubSub topic needs to be set
when instantiating the Waku* classes.

At this stage, we believe that most DApp will use, and only use, the
default PubSub topic. Some application want to use an alternative topic
but not use the default one so this behaviour should be fine. See #174
for details.
2021-06-09 15:00:03 +10:00
Franck Royer f0f14f9995
Rename type before introducing CreateOptions 2021-06-09 15:00:03 +10:00
Franck Royer eb521b4dbd
Extract subscription logic from start method 2021-06-09 15:00:02 +10:00
Franck Royer 4366618bda
Exclude internal methods from doc
At this stage we don't want developers to use any GossipSub method but
iinstead improve the WakuRelay interface.
2021-06-09 15:00:02 +10:00
Franck Royer d8629b7fbc
Define type for WakuRelay create options 2021-06-09 15:00:02 +10:00
Franck Royer f17a008278
Separate the libp2p create options from Waku's 2021-06-09 15:00:02 +10:00
Franck Royer e2e14167b3
Merge pull request #198 from status-im/discord-invite
Update discord link
2021-06-09 10:06:48 +10:00
Franck Royer 817c3b0c92
Update discord link 2021-06-08 21:12:46 +10:00
Franck Royer 8834f25111
Merge pull request #197 from status-im/split-use-effect
Split useEffect calls
2021-06-04 16:03:58 +10:00
Franck Royer 0d00328715
Split useEffect calls
Better React practice.
2021-06-04 15:25:53 +10:00
Franck Royer ad4101f612
Merge pull request #196 from status-im/195-persist-nick 2021-06-04 15:25:43 +10:00
Franck Royer 6b48c55266
Persist nick 2021-06-04 15:15:07 +10:00
Franck Royer b90b66c5f6
Add comment 2021-06-04 14:59:40 +10:00
Franck Royer a8d922d19e
Merge pull request #191 from status-im/templates 2021-06-04 10:28:12 +10:00
Franck Royer e163849c30
Update pull request template
Adopting a Problem/Solution format.
2021-06-04 10:18:54 +10:00
Franck Royer 50c50c852c
Update issue template
Adopting a Problem/Solution format.
2021-06-03 18:39:08 +10:00
Franck Royer b5be35e057
Remove extra contributing file 2021-06-03 18:39:08 +10:00
Franck Royer 9a250954c8
Merge pull request #188 from status-im/toy-chat-content-topic
Update toy-chat content topic
2021-06-03 18:38:40 +10:00
Franck Royer 03febcc276
Update toy-chat content topic
As per https://github.com/status-im/nim-waku/pull/583
2021-06-03 17:54:46 +10:00
Franck Royer 0e4a891576
Merge pull request #190 from status-im/topic-guidelines 2021-06-02 14:07:24 +10:00
Franck Royer 39f96f4a56
Add link to Waku v2 Toy Chat specs 2021-06-01 16:35:52 +10:00
Franck Royer 5de796ea70
Add link to new topic usage recommendation 2021-06-01 16:35:52 +10:00
Franck Royer fdda09973c
Merge pull request #189 from status-im/pr-board
Add new PRs to board
2021-06-01 16:33:36 +10:00
Franck Royer 1735beb798
Add new PRs to board 2021-06-01 16:03:37 +10:00
Franck Royer 7e77e7ae71
Merge pull request #183 from status-im/waku-message-timestam 2021-05-31 11:56:24 +10:00
Franck Royer 553c0154d9
Use waku message timestamp as better unique key 2021-05-28 22:38:00 +10:00
Franck Royer 9e64eec2a6
Enable test encoding and decoding of WakuMessage.timestamp 2021-05-28 22:35:59 +10:00
Franck Royer 3055881c57
Proto message is expected, not the wrapping class 2021-05-28 15:59:57 +10:00
Franck Royer ed25f823e2
Merge pull request #181 from status-im/new-chat-topic
Update chat content topic to new testnet value
2021-05-28 14:46:34 +10:00
Franck Royer ca74f7f87a
Update chat content topic to new testnet value
Resolves #180
2021-05-28 14:32:05 +10:00
Franck Royer 71f27d4411
Merge pull request #177 from status-im/release/0.5.0 2021-05-24 14:29:28 +10:00
Franck Royer 80e7ae9d1e
Release 0.5.0 2021-05-21 15:43:34 +10:00
Franck Royer 90c90dea11
Merge pull request #176 from status-im/doc-no-inherit
Do not inherit doc for Waku Relay
2021-05-21 15:40:11 +10:00
Franck Royer b13ecdd45f
Do not inherit doc for Waku Relay
As it clutters the documentation and at this stage we do not expect
users to use inherited methods.
2021-05-21 11:47:17 +10:00
Franck Royer f3c5a5dcec
Merge pull request #173 from status-im/do-not-start-unnecessary-nodes
Ensure that no unnecessary js node are started for interop tests
2021-05-21 10:16:12 +10:00
Franck Royer c347ec28b4
Ensure that no unnecessary js node are started for interop tests
Indeed, the beforeEach/afterEach methods are called for all tests in the
block, including interop tests.
2021-05-20 15:49:13 +10:00
Franck Royer 0263a38e04
Merge pull request #172 from status-im/remove-warnings
Remove warning
2021-05-20 15:48:58 +10:00
Franck Royer ed69122ac3
Remove warning 2021-05-19 12:55:39 +10:00
Franck Royer 8e1f82563e
Merge pull request #170 from status-im/151-light-push 2021-05-19 12:49:37 +10:00
Franck Royer f23310aaf5
Remove outdated comment 2021-05-19 12:29:30 +10:00
Franck Royer 90e224577f
Add `--help` command 2021-05-19 12:29:30 +10:00