fryorcraken.eth
cc3b46ffbb
feat: template type on store APIs
2022-09-21 16:10:27 +10:00
fryorcraken.eth
8679adcf80
feat: enable store queries with multiple content topics and decoders
2022-09-21 10:58:18 +10:00
fryorcraken.eth
52005f8963
feat: enable custom Message type on Decoder
...
This enables the type passed on the callback functions to match the
decoder's so the consumer can access implementation specific fields.
2022-09-20 14:48:49 +10:00
fryorcraken.eth
b2c7e4185f
feat: make message encoding more generic
2022-09-20 12:23:01 +10:00
fryorcraken.eth
f70d4e4041
feat: simplified and clarified behaviour of WakuStore query functions
2022-09-19 14:13:34 +10:00
fryorcraken.eth
5a529c1cd7
feat: provide several API for store queries
2022-09-14 23:02:19 +10:00
fryorcraken.eth
65511a5888
feat: store callback takes promises
...
This enables the consumer to decide between:
1. Waiting for all promises, less efficient but maintain order;
2. Process promises as they resolve, faster to get messages through but
disrupt message order.
2022-09-14 22:55:03 +10:00
fryorcraken.eth
930c7beaef
refactor: extract peer selection logic
2022-09-14 22:55:03 +10:00
fryorcraken.eth
bdf1c9b7e3
fix: rename to avoid conflict with eponymous TypeScript type
2022-09-14 22:55:03 +10:00
fryorcraken.eth
3b05bfe988
refact: getPeersForProtocol only needs the peer store
2022-09-14 22:55:02 +10:00
fryorcraken.eth
d97201d6df
style: use log for debug across codebase
2022-09-08 13:18:07 +10:00
fryorcraken.eth
e4d4fb1edd
feat: DecryptionParams may be passed when using queryHistory
2022-09-07 12:11:08 +10:00
fryorcraken.eth
ac48792e0e
feat: implement a simple connection management
2022-09-06 12:29:13 +10:00
fryorcraken.eth
bfeaf6c14e
fix: it-length-prefixed now returns Uint8ArrayList
2022-09-05 15:02:23 +10:00
fryorcraken.eth
4d4c4430f4
refactor: rename proto enum Error to HistoryError
...
As this creates a conflict with the new protons version.
2022-09-05 14:37:54 +10:00
fryorcraken.eth
f6bb9b2fcd
chore: print content topic in logs
2022-08-31 13:14:07 +10:00
fryorcraken.eth
987eab5f8f
doc: remove warnings
2022-08-25 15:54:05 +10:00
fryorcraken.eth
863f8ee7a4
fix: do not use uint8arrays/concat as it returns Buffer in NodeJS
...
`Buffer` does not have the same behaviour as `Uint8Array` when creating
a `DataView`. This is a problem when manipulating byte for encoding and
decoding purposes.
2022-08-24 18:42:48 +10:00
fryorcraken.eth
5ddca918ca
fix: stop store pagination if response field is missing
2022-08-24 17:34:37 +10:00
fryorcraken.eth
28f77ec083
fix: use debug instead of console.log
2022-08-17 22:39:42 +10:00
fryorcraken.eth
ecb5b490e3
fix: do not throw on lack of response
...
Expected proto3 behaviour, just no message returned.
2022-08-17 22:39:19 +10:00
Franck Royer
275eb72959
fix: ignore store response unspecified error
2022-08-03 09:30:38 +10:00
Franck Royer
4a193e49e0
style: use nullish coalescing instead of if/then
2022-08-03 09:30:38 +10:00
Franck Royer
4eeca93d47
chore: bump libp2p to next (0.38.0 rc)
2022-08-03 09:30:36 +10:00
Franck Royer
f768686e51
fix: fix pipe usage
2022-08-03 09:30:33 +10:00
Franck Royer
51d5bc19a2
fix: removed usage of buffer in streams
2022-07-20 12:45:14 +10:00
Franck Royer
98c93c8283
Upgrade libp2p, peer-id, multiaddr
...
Use new packages and fix most compilation errors.
Remaining error to be dealt with in waku.ts.
2022-07-20 12:40:37 +10:00
Franck Royer
6c30e8d400
Use PeerId.toString() instead of toB58String()
...
New version of `PeerId` will only support `toString`
2022-07-20 11:55:43 +10:00
Franck Royer
43e9de6fe2
cleanup: Migrate from ts-proto to protons
2022-06-20 14:32:21 +10:00
Franck Royer
ce24c2f530
Do not fail when receiving unspecified error
2022-06-20 14:32:20 +10:00
Franck Royer
9e8d4b9bb1
Mark all proto fields as optional
...
As expected in proto version 3.
2022-06-20 14:32:20 +10:00
Franck Royer
82aba32f9e
Migrate from ts-proto to protons
...
The latter does not bring Buffer/Long and is ESM compatible.
2022-06-20 14:32:20 +10:00
Franck Royer
9ffedd1fbf
Remove circular dependencies
2022-06-01 12:14:47 +10:00
Franck Royer
f953a41546
Declare it-pipe dependency, properly import
...
As it was implicitly using it-pipe@1.0.0 that has a different import
format.
2022-04-06 13:41:15 +10:00
Franck R
a488988f37
Implement Waku Store 2.0.0-beta4 ( #566 )
2022-02-24 16:25:58 +11:00
Franck R
cfc5eee4ff
Reduce buffer usage ( #521 )
2022-02-14 10:50:02 +11:00
Franck R
0f678750df
Improve docs ( #519 )
2022-02-11 17:27:15 +11:00
Franck R
4c80f7f0df
Remove odd prettier config ( #500 )
2022-02-04 14:12:00 +11:00
Franck R
69f0005445
Bump libp2p from 0.32.4 to 0.36.2, libp2p-gossipsub from 0.12.1 to 0.13.0 ( #470 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 15:12:08 +11:00
Franck R
b257885204
test: Fix flackiness ( #474 )
2022-02-01 12:54:54 +11:00
Franck R
96cf24d34e
Allow specifying decryption methods and content topic ( #409 )
2022-01-17 14:11:05 +11:00
F
eb9057fc8f
doc: Remove warnings
2021-12-02 23:51:54 +11:00
Franck Royer
8d469ff842
Enable caller to abort store query
...
If the `callback` function passed to`WakuStore.queryHistory` returns
`true`, then no further pages are retrieved from the store.
2021-10-07 15:33:00 +11:00
Franck Royer
62b30b3f33
Log queried store peer info
2021-10-05 13:36:04 +11:00
Franck Royer
92ee5b060c
doc: Move comments to ensure they appear in generated documentation
2021-10-05 13:36:03 +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
75f605a676
Improve error text
...
To make it clearer what the issue is.
2021-09-02 15:20:44 +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
931a414a3c
Allow passing decryption keys in hex string format
2021-09-02 15:13:50 +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