34 Commits

Author SHA1 Message Date
fryorcraken.eth
d560f8ce0e
fix: bundling with exports map 2022-08-07 12:03:05 +10:00
fryorcraken.eth
889ec4d45c
feat: split bootstrap logic
Split the bootstrap logic in 2 different classes that implement the
libp2p peer discovery class.

This enables better tree shaking when not using the heaviest version
(DNS Discovery).

It also means using libp2p interface directly when customizing the peer
discovery logic.

Finally, the `default` method is still available via the
`defaultBootstrap` option.
2022-08-07 12:03:05 +10:00
fryorcraken.eth
69aee6c1cc
refactor: move createWaku to own module 2022-08-07 12:03:04 +10:00
Franck Royer
95deb6a331
fix: ensure types are available in doc 2022-08-03 09:30:40 +10:00
Franck Royer
b7b6a11f43
fix: export createWaku 2022-08-03 09:30:39 +10:00
Franck Royer
811685e041
refactor!: Move waitForRemotePeer to own file 2022-08-03 09:30:36 +10:00
Franck Royer
9ffedd1fbf
Remove circular dependencies 2022-06-01 12:14:47 +10:00
Franck Royer
20b3b5b667
Move common crypto functions to crypto.ts 2022-05-20 10:59:32 +10:00
Franck Royer
bf63e85e9e
Move utf-8 utils to utils 2022-03-25 17:08:03 +11:00
Franck R
b904114d1f
Export protocols (#609) 2022-03-10 14:00:09 +11:00
Franck R
a488988f37
Implement Waku Store 2.0.0-beta4 (#566) 2022-02-24 16:25:58 +11:00
Franck R
297d65ce03
Reduce Buffer usage in ENR module (#522) 2022-02-16 12:11:54 +11:00
Franck R
146c67e43e
Predefine bootstrap node (#528) 2022-02-16 11:43:57 +11:00
Franck R
4c80f7f0df
Remove odd prettier config (#500) 2022-02-04 14:12:00 +11:00
Franck Royer
e871da056f
Export enr, dns, entree modules 2022-01-13 16:39:52 +11:00
Franck Royer
4bfe060064
Export BootstrapOptions 2022-01-13 16:39:52 +11:00
Franck Royer
e244bae03d
Renamed getBootstrapNodes to getNodesFromHostedJson
So that the name better matches the function's behaviour.
2022-01-13 15:33:37 +11:00
F
eb9057fc8f
doc: Remove warnings 2021-12-02 23:51:54 +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
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
60290e8d84
Moved DefaultPubSubTopic to waku.ts and fixed the casing
The pubsub topic is used by several protocol, not just relay.
2021-08-20 10:12:55 +10:00
Franck Royer
c3855112d7
Rename getStatusFleetNodes
To make it more generic to allow retrieval of bootstrap nodes from
other sources.
2021-08-13 16:17:15 +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
92a76b3be0
Support multiple protocol id for relay
Support id of latest nim-waku release 0.4 and current master.
2021-07-21 15:43:30 +10:00
Franck Royer
addf9543a2
Export generatePrivateKey and getPublicKey directly from the root 2021-07-16 09:43:10 +10:00
Franck Royer
8cd5a52eba
Provide hex/bytes utils as part of js-waku 2021-07-09 15:50:17 +10:00
Franck Royer
fb7e9f2b9e
Get messages from store in chronological order 2021-05-19 12:29:29 +10:00
Franck Royer
de3aea626a
Implement Light Push protocol 2021-05-19 12:29:29 +10:00
Franck Royer
2cd87b561d
Expose Enviroment & Protocol enums to pass to getStatusFleetNodes 2021-05-18 13:45:49 +10:00
Franck Royer
79bef35460
Add and use getStatusFleetNodes to connect to Status' wakunodes 2021-05-15 19:52:05 +10:00
Franck Royer
3663ce260d
Rework exports for an easy use of the library 2021-05-10 16:41:58 +10:00
Franck Royer
4329b8006e
Use waku messages over waku relay 2021-03-10 16:22:49 +11:00
Franck Royer
be47223bae
Connects to nim-waku using waku-relay protocol 2021-03-05 14:41:20 +11:00
Franck Royer
f46ce77f57
Initial commit
Created with bitjson/typescript-starter@586cdb3029
2021-03-05 09:34:01 +11:00