Commit Graph

854 Commits

Author SHA1 Message Date
Franck Royer 1a9ab2ec77
Merge pull request #293 from status-im/182-async-await-syntax 2021-09-15 10:36:25 +10: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 898f93371c
Merge pull request #292 from status-im/store-guide-react-js 2021-09-07 14:36:37 +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 d6d52b72dd
Merge pull request #291 from status-im/upgrade-libp2p
Upgrade libp2p libraries
2021-09-06 11:27:52 +10:00
Franck Royer ca09c34ac6
Upgrade libp2p libraries 2021-09-03 16:02:22 +10:00
Franck Royer 0b869ab07f
Merge pull request #289 from status-im/release/0.12.0
Release 0.12.0
2021-09-02 19:59:11 +10:00
Franck Royer 3bf7e2250c
Release 0.12.0 2021-09-02 16:38:56 +10:00
Franck Royer 189e8f6c4e
Merge pull request #288 from status-im/fix-typo
Fix typo
2021-09-02 16:38:29 +10:00
Franck Royer d8bdbac2a5
Fix typo 2021-09-02 16:32:38 +10:00
Franck Royer 0d38e80497
Merge pull request #287 from status-im/wait-for-connected-peer
Added `Waku.waitForConnectedPeer` helper
2021-09-02 16:28:14 +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 524fbc9361
Merge pull request #286 from status-im/encryption-api 2021-09-02 15:45:53 +10:00
Franck Royer 3c0884a96e
Update changelog 2021-09-02 15:27:39 +10:00
Franck Royer 87fd5ac171
Update guide to pass decryption keys to the `Waku` instance
Make the guide and API simpler as there is no need to learn/use both
`WakuStore` and `WakuRelay` APIs to decrypt messages.
2021-09-02 15:20:44 +10:00
Franck Royer 75f605a676
Improve error text
To make it clearer what the issue is.
2021-09-02 15:20:44 +10:00
Franck Royer 50fb533e44
test: Increase timeouts + add debug logs 2021-09-02 15:20:43 +10:00
Franck Royer cfb97b6bde
Allow passing decryption keys to `Waku` instance
Keys can be set at creation or at run time.
They are passed to `WakuStore` and `WakuRelay` instances.
2021-09-02 15:20:43 +10:00
Franck Royer 911ce5bab7
Allow passing decryption keys to `WakuStore` instance
To avoid having to pass them at every `queryHistory` call.
2021-09-02 15:17:40 +10:00
Franck Royer f4cae60ef8
Fix documentation 2021-09-02 15:15:43 +10:00
Franck Royer 931a414a3c
Allow passing decryption keys in hex string format 2021-09-02 15:13:50 +10:00
Franck Royer 75352abcac
Promote dedicated symmetric key generation API
Using the private key API for symmetric key is confusing.
2021-09-02 15:09:31 +10:00
Franck Royer f0183784a3
Merge pull request #283 from status-im/guide-encrypt-version-1
Add guide to encrypt messages using version 1
2021-08-30 20:01:08 +10:00
Franck Royer c9678aa665
Fix link 2021-08-30 19:54:36 +10:00
Franck Royer e0d199ef14
Add word 2021-08-30 15:13:03 +10:00
Franck Royer 4504de55f3
Use more precise terminology 2021-08-27 15:00:00 +10:00
Franck Royer 659e167c06
Mention CryptoSubtle for key storage/export 2021-08-27 14:40:46 +10:00
Franck Royer 6e5cbefc49
Mention Eth-PM 2021-08-26 16:34:32 +10:00
Franck Royer cc84edca9c
Rephrase, typos 2021-08-26 16:34:32 +10:00
Franck Royer 880746a0df
Add guide to encrypt messages using version 1 2021-08-26 16:34:29 +10:00
Franck Royer 6dd54d2458
Merge pull request #282 from status-im/encrypt-eth-pm 2021-08-26 16:33:31 +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 398f34b57f
Fixed Buffer.concat error when using symmetric encryption in the browser 2021-08-26 16:12:53 +10:00
Franck Royer 489fc5af08
Merge pull request #281 from status-im/node-16
Run build with NodeJS 16
2021-08-26 15:25:36 +10:00
Franck Royer 4719de31b8
Run build with NodeJS 16 2021-08-26 13:02:09 +10:00
Franck Royer 37b8056a78
Merge pull request #280 from status-im/timestamp-chat
Demonstrate usage of history time filter in web chat
2021-08-26 13:01:32 +10:00
Franck Royer 5c1cda8b2a
Demonstrate usage of history time filter in web chat 2021-08-26 11:50:20 +10:00
Franck Royer 93afc969d3
Merge pull request #278 from status-im/update-ft-api
Both or neither time parameters must be passed
2021-08-26 10:25:01 +10:00
Franck Royer 5b34da6b5f
Both or neither time parameters must be passed
The protocol does not support open-ended time filtering windows. See
https://github.com/status-im/nim-waku/issues/706
2021-08-25 12:14:53 +10:00
Franck Royer 215177bb8c
Merge pull request #275 from status-im/warnings
Remove dev warning
2021-08-25 11:30:59 +10:00
Franck Royer 8ed55c43c1
Remove stub types definition 2021-08-20 14:08:52 +10:00
Franck Royer e794fe1f18
Merge pull request #274 from status-im/release/0.11.0
Release 0.11.0
2021-08-20 13:47:46 +10:00
Franck Royer 8fce1ad884
Release 0.11.0
### Added
- Examples: New Ethereum Private Message Using Wallet Encryption
  [Web App](./examples/eth-pm-wallet-encryption/README.md)
  example that demonstrates the usage of `eth_encrypt` API (available on
  Metamask) and EIP-712 for typed structured data signing.
- New `bootstrap` option for `Waku.create` to easily connect to Waku
  nodes upon start up.
- Support for `startTime` and `endTime` in Store queries to filter by
  time window as per [21/WAKU2-FTSTORE](https://rfc.vac.dev/spec/21/).

### Changed
- Renamed `discover.getStatusFleetNodes` to
  `discovery.getBootstrapNodes`;
  Changed the API to allow retrieval of bootstrap nodes from other
  sources.
- Examples: Renamed `eth-dm` to `eth-pm`; "Direct Message" can lead to
  confusion with "Direct Connection" that
  refers to low latency network connections.
- Examples (eth-pm): Use sign typed data EIP-712 instead of personal
  sign.
- Upgraded dependencies to remove warning at installation.
- **Breaking**: Moved `DefaultPubSubTopic` to `waku.ts` and fixed the
  casing.
- **Breaking**: Rename all `pubsubTopic` occurrences to `pubSubTopic`,
  across all interfaces.

### Removed
- Examples (cli-chat): The focus of this library is Web environment;
  Several examples now cover usage of Waku Relay and Waku Store making cli-chat example obsolete;
  web-chat POC should be preferred to use the [TOY-CHAT](https://rfc.vac.dev/spec/22/) protocol.
- `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.
- Unused dependencies & scripts.
2021-08-20 12:15:23 +10:00
Franck Royer 707fe2e37c
Merge pull request #273 from status-im/npm-badge 2021-08-20 12:08:48 +10:00
Franck Royer 76e1175bf6
Merge pull request #272 from status-im/233-remove-deps 2021-08-20 12:08:05 +10:00
Franck Royer 27c4d5b1e3
Add badges
Allows user to quickly access npm page and Discord.
2021-08-20 11:02:09 +10:00