Commit Graph

387 Commits

Author SHA1 Message Date
Franck Royer 41ed5ffe66
Merge pull request #153 from status-im/disable-button 2021-05-14 09:30:47 +10:00
Franck Royer 89b35eb4df
Disable send button if no peer available
Yet keep it enabled if user tries to send a command.

Resolves #136
2021-05-13 20:48:33 +10:00
Franck Royer a8d4d494f8
Add getPeers method
To know if relay messages would be published.
2021-05-13 20:48:33 +10:00
Franck Royer eb9955314c
Align terminology with specs
In specs, this is referenced as a `pubsubTopic`.
2021-05-13 20:48:30 +10:00
Franck Royer 6dbfa3e159
Merge pull request #152 from status-im/re-rename 2021-05-13 20:46:18 +10:00
Franck Royer 065593b0cf
Revert naming to js-waku
To align with go-waku and nim-waku and keep bors working.
2021-05-13 20:27:38 +10:00
Franck Royer 8ab55f2bc6
reset-hard to install examples 2021-05-13 20:02:10 +10:00
Franck Royer 27b08ff8b6
Merge pull request #149 from status-im/dial-usage 2021-05-13 16:00:49 +10:00
Franck Royer e44776d09c
Update usage with dial peer method 2021-05-13 13:43:08 +10:00
Franck Royer 6f7c1e0ca3
Enhance addPeerToAddressBook
So that consumer does not need to import multiaddr and peer-id.
2021-05-13 13:42:40 +10:00
Franck Royer 19e265c490
Remove unneeded variable 2021-05-13 12:30:13 +10:00
Franck Royer fda65ca83b
Fix documentation 2021-05-13 12:30:13 +10:00
Franck Royer b8d2dcb2c4
Merge pull request #150 from status-im/release/0.1.0
Release 0.1.0
2021-05-13 12:25:45 +10:00
Franck Royer 76bad59d5a
Release 0.1.0
### Added
- Add usage section to the README.
- Support of [Waku v2 Relay](https://rfc.vac.dev/spec/11/).
- Support of [Waku v2 Store](https://rfc.vac.dev/spec/13/).
- [Node Chat App example](./examples/cli-chat).
- [ReactJS Chat App example](./examples/web-chat).
- [Typedoc Documentation](https://status-im.github.io/js-waku/docs).
2021-05-13 12:01:07 +10:00
Franck Royer ddaacd8a48
Merge pull request #148 from status-im/change-repo-name 2021-05-13 11:35:38 +10:00
Franck Royer 82d026c6d5
Rename repo to waku-js 2021-05-13 11:01:41 +10:00
Franck Royer 702201f7be
Set first release version to 0.1.0 2021-05-13 11:01:41 +10:00
Franck Royer 43627d27d8
Rename package to waku-js 2021-05-13 10:36:28 +10:00
bors[bot] 18b8a9f23e
Merge #147
147: Add documentation to the readme r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2021-05-12 04:17:10 +00:00
Franck Royer 0ffde9cf42
Add documentation to the readme 2021-05-12 13:35:25 +10:00
bors[bot] b227114d8e
Merge #146
146: Release 1.0.0 r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2021-05-11 23:58:54 +00:00
Franck Royer 68ee01b652
Release 1.0.0 2021-05-11 17:40:18 +10:00
bors[bot] c2112ae188
Merge #145
145: Update package with new name r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2021-05-11 06:45:38 +00:00
Franck Royer c7986a92dc
Update package with new name 2021-05-11 16:44:04 +10:00
bors[bot] acdd4ce601
Merge #143
143: Prepare for publishing r=D4nte a=D4nte

- Test out tarball generated with `npm pack`
- Change name to `web3-waku`
- Introduce changelog file
- Ensure test files are not included in the package

Co-authored-by: Franck Royer <franck@status.im>
2021-05-11 05:36:29 +00:00
Franck Royer 7c6730b4a3
Remove `declare` keyword which removes the values from generated JS 2021-05-11 14:05:13 +10:00
Franck Royer 28572fccff
Rename to web3-waku in examples 2021-05-11 14:05:13 +10:00
Franck Royer 0974f313fd
Exclude test files from build 2021-05-11 14:05:12 +10:00
Franck Royer 0e9f2c2ecc
Add CHANGELOG.md 2021-05-11 14:05:12 +10:00
Franck Royer ee04117730
Rename package to `web3-waku` 2021-05-11 14:05:12 +10:00
bors[bot] bf26f9e084
Merge #141
141: Use typedoc r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2021-05-11 00:59:02 +00:00
Franck Royer c7ffdda926
Add netlify config 2021-05-11 10:50:58 +10:00
Franck Royer faf5f46a35
Deploy docs on GH Pages 2021-05-11 09:06:22 +10:00
Franck Royer 40fd7ff365
Use Typedoc comment style 2021-05-11 09:06:22 +10:00
Franck Royer b4f31dd5e8
Fix typedoc command 2021-05-11 08:58:55 +10:00
bors[bot] cc35941803
Merge #142
142: Add debug statement in tests r=D4nte a=D4nte

Also enable debug logs in CI.

Co-authored-by: Franck Royer <franck@status.im>
2021-05-10 13:31:55 +00:00
Franck Royer 50eaa39fec
Add debug statement in tests
Also enable debug logs in CI.
2021-05-10 20:18:26 +10:00
bors[bot] dcae6c7abf
Merge #140
140: Fix imports r=D4nte a=D4nte

Resolves #112.

Co-authored-by: Franck Royer <franck@status.im>
2021-05-10 09:59:18 +00:00
Franck Royer 3663ce260d
Rework exports for an easy use of the library 2021-05-10 16:41:58 +10:00
Franck Royer 83c17fdcc2
Remove ChatMessage
The aim of this class was to remove the items in the chat list
with duplicate keys. However, the implementation does not achieve this
goal.
2021-05-10 16:35:55 +10:00
Franck Royer e91f7933c9
Pass proto in constructor
Makes the relation between the protobuf class and the wrapper more
direct. Conversion only happens at creates or on getters.
2021-05-10 16:29:25 +10:00
Franck Royer 3b7fc44419
Remove `Proto` suffix
Manage with namespace instead.
2021-05-10 15:53:23 +10:00
bors[bot] 330caa2525
Merge #139
139: Provide API to process waku messages over relay r=D4nte a=D4nte

Resolves #54

Co-authored-by: Franck Royer <franck@status.im>
2021-05-10 05:44:39 +00:00
Franck Royer ba6b67cc53
Enable observers to filter by contentTopic 2021-05-10 14:54:08 +10:00
Franck Royer de3dcd9e22
Improve test readability
By avoiding buffer comparison.
2021-05-10 14:10:37 +10:00
Franck Royer 54f32bacad
Use new observer interface in examples 2021-05-10 12:38:44 +10:00
Franck Royer 71a5b23bd2
Add observer interface that directly pass waku messages 2021-05-10 12:38:44 +10:00
Franck Royer ace5f2776f
Prefer camel case for module constants 2021-05-10 12:38:44 +10:00
Franck Royer cbe9559096
Clarify what methods should be used 2021-05-10 12:38:44 +10:00
bors[bot] 94353e813e
Merge #133
133: Upgrade nim-waku to latest version r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2021-05-07 01:31:18 +00:00