352 Commits

Author SHA1 Message Date
weboko
011ec8f1e9
remove unused dependency 2023-01-19 22:31:40 +01:00
weboko
913573a25a
remove no-extraneous-dependencies lint options, move packages to devDep section 2023-01-19 22:14:17 +01:00
Danish Arora
828f8b40e5
add ephemeral: true to relay (#1123) 2023-01-19 14:30:23 +05:30
fryorcraken.eth
665dba8f3e
chore: release @waku/proto@0.0.2 2023-01-18 15:36:22 +11:00
fryorcraken.eth
ec5118a502
chore: release @waku/peer-exchange@0.0.2 2023-01-18 15:36:20 +11:00
fryorcraken.eth
45f3823ac4
chore: release @waku/message-encryption@0.0.8 2023-01-18 15:28:51 +11:00
fryorcraken.eth
8e9d2c3a0e
chore: release @waku/libp2p-utils@0.0.2 2023-01-18 15:19:49 +11:00
fryorcraken.eth
b0c1a8a4a6
chore: release @waku/interfaces@0.0.7 2023-01-18 15:16:00 +11:00
fryorcraken.eth
15a852af57
chore: release @waku/enr@0.0.4 2023-01-18 15:00:56 +11:00
fryorcraken.eth
2b1e3ad602
chore: release @waku/dns-discovery@0.0.4 2023-01-18 14:57:44 +11:00
fryorcraken.eth
3e19f82768
chore: release core@0.0.9 2023-01-18 09:42:58 +11:00
weboko
53dfd84d4c
chore: update changelog 2023-01-11 23:22:26 +01:00
Danish Arora
fcd500e045
fix: invoke peer exchange query immediately (#1115)
when the query is set in an interval, it first
gets invoked when the interval time is reached.
refactor: invoke it immmediately, and then set an
interval
2023-01-11 11:11:49 +05:30
Danish Arora
0b083201c6
chore: refactor dns-discovery & add tests (#1084)
* temp-add: debugging

* fix: ENR root signature verification

the nodes in the TXT/fleet were updated causing the publicKey to change
and verification to fail

* add: libp2p compliance tests

* fix: bind function
`bind` was being passed an empty object reference

* fix: tests

* merge with master

* chore: address review
- move compliance test to dev dependency
- move global mocha timeout to test specific timeout

* chore: update enrtree pubkey and fqdn
ref: https://github.com/status-im/infra-nim-waku/issues/64

* chore: update libp2p-peer-discovery-compliance-tests
ref: https://github.com/libp2p/js-libp2p-interfaces/pull/328

* chore: fix typedoc errors

* add: dns-discovery to dependencies
2023-01-06 12:30:06 +05:30
danisharora099
93b12e59c9
fix: failing CI check
add `@waku/peer-exchange` as a dependency to `tests`
2023-01-05 12:54:29 +05:30
weboko
bcc7c451ed
Merge branch 'master' of github.com:waku-org/js-waku into weboko/missing-dep 2023-01-04 21:51:37 +01:00
Danish Arora
e0e8e655f8
chore: fix peer discovery peer-exchange (#1069)
* fix: discovery for peer-exchange

use the bootstrap node as a starter to send a
peer-exchange query to, and emit the response
peers received from it for further connection to
libp2p using the peer-discovery interface

* init: test for libp2p bootstrap/discovery for
peer-exchange

* temp-add: console.logs for easier debugging

* add: peer discovery test & rm: console.logs

* chore: rm  and redundant spec test

* add: interval for peer exchange queries
we set an interval to query a peer every 5 minutes
for peer exchange, and add new peers if found

* address: reviews
- add `type` for imports not using values
- better handling for peer-exchange query interval

* chore: fix tsc for peer-exchange
use node16 for module resolution

* chore: add extra exports to fix typedoc warnings
ref: https://github.com/TypeStrong/typedoc/issues/1739
2023-01-04 14:35:44 +05:30
weboko
a2d79c2551
Merge branch 'master' of github.com:waku-org/js-waku into weboko/missing-dep 2022-12-23 14:39:25 +01:00
Danish Arora
d022d8700b
chore: remove unused relay protocol identifier (#1063)
* chore: remove unused relay protocol identifier

* update: changelog
2022-12-23 17:08:41 +05:30
weboko
fb9bb35042
fix: move deps from dev deps 2022-12-23 00:24:38 +01:00
weboko
ae764bc31e
add missing deps to workspaces 2022-12-23 00:18:16 +01:00
fryorcraken.eth
ac4ff5a00a
chore: fix links in docs, treat doc warnings as errors 2022-12-21 16:47:00 +11:00
fryorcraken.eth
f48278adce
chore: remove waku dep from @waku/interfaces by defining IEnr
@waku packages are expected to (dev)depend on @waku/interfaces to
implement them. Hence, to avoid possible cyclic (dev)dependency, define
IEnr interface and use it as a type across @waku/packages.
2022-12-21 15:40:34 +11:00
dependabot[bot]
abaa29df18
build(deps-dev): bump @types/node from 17.0.45 to 18.11.17
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.45 to 18.11.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-20 13:57:43 +00:00
fryorcraken.eth
89571ff497
feat!: remove peer exchange from protocols to wait on by default
This is because peer exchange is still experimental and not enabled
on all prod fleets.

The issue is that we could be connected to a remote peer with relay/
filter/lightpush yet never resolve because peer exchange is missing.

This also shows the limit of this function logic which should be
addressed as we dive deeper in peer management.
2022-12-20 23:00:30 +11:00
fryorcraken.eth
bff9b857ec
fix: export Encoder and Decoder types
Enables API consumer to use the types.
2022-12-20 16:11:41 +11:00
fryorcraken.eth
d234c4df76
chore: release @waku/create@0.0.6 2022-12-19 16:58:30 +11:00
fryorcraken.eth
1f003e7691
chore: release @waku/message-encryption@0.0.7 2022-12-19 16:56:40 +11:00
fryorcraken.eth
b060e88c27
chore: release @waku/core@0.0.8 2022-12-19 16:54:22 +11:00
fryorcraken.eth
75c8e2be8d
fix: incorrect proto import 2022-12-19 16:27:26 +11:00
fryorcraken.eth
e292855742
fix: missing dependencies 2022-12-19 16:26:56 +11:00
fryorcraken.eth
e0fd4433e7
fix: remove invalid re-export 2022-12-19 16:16:07 +11:00
fryorcraken.eth
803a0b4a12
fix: missing dependency declarations 2022-12-16 12:48:36 +11:00
fryorcraken.eth
541056abfe
chore: release @waku/message-encryption@0.0.6 2022-12-16 12:28:40 +11:00
fryorcraken.eth
36327c9222
fix: add typesVersions so import works with moduleResolution: node 2022-12-16 12:10:14 +11:00
fryorcraken.eth
b828903ef0
chore: release @waku/create@0.0.5 2022-12-15 14:51:45 +11:00
fryorcraken.eth
c4647d58c6
chore: release @waku/message-encryption@0.0.5 2022-12-15 14:50:20 +11:00
fryorcraken.eth
e5c1e20681
chore: release @waku/dns-discovery@0.0.3 2022-12-15 14:48:55 +11:00
fryorcraken.eth
3312c6134a
chore: release @waku/core@0.0.7 2022-12-15 14:47:14 +11:00
fryorcraken.eth
de1643be61
chore: release @waku/interfaces@0.0.6 2022-12-15 14:43:15 +11:00
fryorcraken.eth
01981dc184
chore: release @waku/enr@0.0.3 2022-12-15 14:41:30 +11:00
fryorcraken.eth
63f6316b42
chore: release @waku/libp2p-utils@0.0.1 2022-12-15 14:37:56 +11:00
fryorcraken.eth
edf5d438cb
test: remove --nat option when starting nwaku 2022-12-15 13:54:07 +11:00
fryorcraken.eth
a640e2c940
refactor: remove dupe code 2022-12-13 15:23:39 +11:00
dependabot[bot]
872c9cd0df
build(deps-dev): bump cspell from 5.21.2 to 6.17.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.21.2 to 6.17.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.21.2...v6.17.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 13:46:02 +11:00
fryorcraken.eth
9ac92ef99d
test: use LightNode interface 2022-12-13 10:58:07 +11:00
fryorcraken.eth
c6b86a33bc
doc: update changelogs 2022-12-12 22:36:14 +11:00
fryorcraken.eth
f743cfd1ca
chore: rename node interfaces to include Node in name
Also rename node with only relay to `RelayNode`.
2022-12-12 22:36:14 +11:00
fryorcraken.eth
d946e443ad
refactor: remove Waku from protocol names
This is redundant with the context (waku package).
2022-12-12 22:36:13 +11:00
fryorcraken.eth
574f3ee80f
refactor: remove waku_ from module names
This is redundant with the context (waku package).
2022-12-12 22:36:13 +11:00