Sasha
420e6c698d
feat!: upgrade to libp2p@0.45 ( #1400 )
...
* upgrade libp2p version, partially update protocols, rename to IBaseProtocol
* complete transition for protocols
* complete transition of connection maanger
* finish sdk
* complete core
* complete relay
* complete peer-exchange
* complete dns-discovery
* add components field to Libp2p interface and use it in core
* add type hack for Libp2p creation:
* finish waku node test
* complete relay test
* complete peer exchange
* complete dns peer discovery test
* add missing dependency to relay
* fix new peer store integration
* improve initialization of pubsub
* add catch for missing peer
* update test and remove extra dependency
* prevent error throw
* fix edge case with peerStore
* fix peer exchange
* fix protocols used
* fix test with another evnet
* bump libp2p and interfaces
* add missing package
* fix peer-exchange problem
* prefer libp2p peerDiscovery for integration tests
* fix import
* increate timeout
* return test against Test fleet
* remove await for peer:update
* increase timeout
* add await for peerStore
* comment event for testing
* fix lint
* remove bind
* fix stub
* decouple to separate test case
* move back to explicit build
* remove only
* do not test event
2023-07-25 02:17:52 +02:00
Danish Arora
376bcf2a0a
chore: new eslint rules ( #1416 )
...
* add new eslint rules
* remove eslint scripts for build-utils
* refactor all files to fix breaking changes with new rules
* add a basic eslintrc for build-utils
* test
* fix more linting errors
* test
* update package.lock
* update stopping container
* update px node spec
* enable tests
* fix: conn manager events
* fix: peer exchange
* increase timeout on px test
2023-07-24 16:04:24 +05:30
Danish Arora
2cd04a1315
Merge branch 'master' into chore--rm-extra-packages
2023-07-15 17:57:12 +02:00
fryorcraken.eth
614893ca98
chore: release master ( #1393 )
2023-06-17 01:26:12 +02:00
jacques metevier
5f927a7243
chore: rm extra packages
2023-06-08 11:52:27 -07:00
fryorcraken.eth
44496f0158
chore: bump eslint to 8.41.0
...
Also ensures that eslint is present in packages that uses it and removed
from packages not using it.
2023-06-06 16:07:49 +10:00
dependabot[bot]
d51030719c
chore(deps)(deps): bump it-all from 3.0.1 to 3.0.2
...
Bumps [it-all](https://github.com/achingbrain/it ) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/achingbrain/it/releases )
- [Commits](https://github.com/achingbrain/it/compare/it-all-v3.0.1...it-all-v3.0.2 )
---
updated-dependencies:
- dependency-name: it-all
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 16:07:51 +00:00
dependabot[bot]
9e9fbc9b0a
chore(deps)(deps): bump it-pipe from 2.0.5 to 3.0.1
...
Bumps [it-pipe](https://github.com/alanshaw/it-pipe ) from 2.0.5 to 3.0.1.
- [Release notes](https://github.com/alanshaw/it-pipe/releases )
- [Changelog](https://github.com/alanshaw/it-pipe/blob/master/CHANGELOG.md )
- [Commits](https://github.com/alanshaw/it-pipe/compare/v2.0.5...v3.0.1 )
---
updated-dependencies:
- dependency-name: it-pipe
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 16:05:51 +00:00
dependabot[bot]
81c34eb3ba
chore(deps)(deps-dev): bump @typescript-eslint/parser ( #1387 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.54.1 to 5.59.8.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.59.8/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 01:41:19 +05:30
fryorcraken.eth
24811e4ffc
chore: release master ( #1376 )
2023-06-01 21:50:52 +02:00
fryorcraken.eth
b25f7e0acf
chore: release master ( #1343 )
2023-05-19 13:38:52 +02:00
dependabot[bot]
27657e45a1
chore(deps)(deps-dev): bump typescript from 4.9.5 to 5.0.4
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.9.5 to 5.0.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.5...v5.0.4 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-17 05:58:36 +00:00
Danish Arora
50c2c2540f
feat!: @waku/relay ( #1316 )
...
* move constants & core's func to @waku/utils
* setup @waku/relay
* use @waku/relay for create
* address: principal review
* fix: size-limit
* move all constants to @waku/core
* move TopicOnlyDecoder to relay
* merge: master
* fix: tests
* Move constants out of core (#1340 )
* update package.lock
* change constants folder into a ts file
* use dependency version as * instead of version number
* add constants import from @waku/core
* add empty changelog file for relay
---------
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2023-05-11 14:08:00 +05:30
fryorcraken.eth
af927933a9
chore: release master ( #1296 )
2023-05-09 20:54:20 +02:00
dependabot[bot]
df8e68ff36
chore(deps)(deps): bump it-length-prefixed from 8.0.4 to 9.0.1
...
Bumps [it-length-prefixed](https://github.com/alanshaw/it-length-prefixed ) from 8.0.4 to 9.0.1.
- [Release notes](https://github.com/alanshaw/it-length-prefixed/releases )
- [Changelog](https://github.com/alanshaw/it-length-prefixed/blob/master/CHANGELOG.md )
- [Commits](https://github.com/alanshaw/it-length-prefixed/compare/v8.0.4...v9.0.1 )
---
updated-dependencies:
- dependency-name: it-length-prefixed
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-06 14:07:05 +10:00
dependabot[bot]
f1c63ee069
chore(deps)(deps-dev): bump prettier from 2.8.7 to 2.8.8
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.7 to 2.8.8.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.7...2.8.8 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 16:24:58 +00:00
dependabot[bot]
e4e719e29b
chore(deps)(deps-dev): bump rollup from 3.19.1 to 3.21.3 ( #1324 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 3.19.1 to 3.21.3.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v3.19.1...v3.21.3 )
---
updated-dependencies:
- dependency-name: rollup
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 11:29:08 +05:30
dependabot[bot]
52eb7bbe74
chore(deps)(deps-dev): bump @rollup/plugin-node-resolve
...
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve ) from 15.0.1 to 15.0.2.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v15.0.2/packages/node-resolve )
---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-27 16:04:28 +00:00
dependabot[bot]
8e7e5dfbb2
chore(deps)(deps): bump it-all from 2.0.1 to 3.0.1
...
Bumps [it-all](https://github.com/achingbrain/it ) from 2.0.1 to 3.0.1.
- [Release notes](https://github.com/achingbrain/it/releases )
- [Commits](https://github.com/achingbrain/it/compare/it-all-v2.0.1...it-all-v3.0.1 )
---
updated-dependencies:
- dependency-name: it-all
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 16:04:20 +00:00
dependabot[bot]
49dedfbd5b
chore(deps)(deps-dev): bump prettier from 2.8.4 to 2.8.7
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.4 to 2.8.7.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.4...2.8.7 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 05:01:50 +00:00
Sasha
6abee4880f
chore: use root .prettierignore ( #1285 )
...
* use root .prettierignore for fix and check
2023-04-03 23:39:59 +02:00
fryorcraken.eth
17ae7e5312
chore: release master
2023-04-03 16:15:39 +10:00
fryorcraken.eth
e8f750fa2b
chore: release master ( #1286 )
2023-03-31 03:09:02 +02:00
Sasha
45f84ed67f
chore: bump core version ( #1284 )
2023-03-31 02:04:39 +02:00
dependabot[bot]
c19212ebd1
chore(deps)(deps-dev): bump cspell from 6.29.0 to 6.31.1
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell ) from 6.29.0 to 6.31.1.
- [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/v6.29.0...v6.31.1 )
---
updated-dependencies:
- dependency-name: cspell
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-29 04:06:00 +00:00
dependabot[bot]
9fbb989dc2
chore(deps)(deps-dev): bump @typescript-eslint/eslint-plugin
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.55.0 to 5.57.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.0/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-29 03:22:08 +00:00
fryorcraken.eth
aead369227
chore: release master
2023-03-29 04:19:45 +11:00
fryorcraken.eth
08d0786bd4
chore: release master ( #1269 )
2023-03-25 00:22:44 +01:00
fryorcraken.eth
9b6448bf63
chore: release master ( #1253 )
2023-03-24 00:10:41 +01:00
fryorcraken.eth
e922ed49ec
fix: @waku/peer-exchange uses @waku/core and should depend on it
2023-03-24 09:54:08 +11:00
Danish Arora
5b0c3c3cac
feat: compliance test for peer-exchange discovery ( #1186 )
...
* skip fleet test for CI
* add: compliance test
* fix: check CI
* fix: nwaku node name
* remove: setTimeout
* force typecasting instead of ts-ignore
* rm: only for the test
* increase readability
2023-03-23 16:06:51 +05:30
fryorcraken.eth
3a92355543
chore: code improvement
...
- Replace exception pattern with a result pattern as it better fits the
usage.
- merge few maps to prefer chaining to assign var after var.
- Make `isDefined` type helper a common util function
2023-03-21 08:59:25 +11:00
dependabot[bot]
7ebd20bca4
chore(deps)(deps-dev): bump @typescript-eslint/eslint-plugin
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.54.1 to 5.55.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.55.0/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 20:31:48 +00:00
fryorcraken.eth
b3546ae692
chore: release master ( #1237 )
2023-03-16 20:29:40 +01:00
Danish Arora
a20b797c5b
chore: refactor peer-exchange according to nwaku 0.15.0 ( #1193 )
...
* merge with master: adhere acc to updated API
* bump go-waku to 0.5.2
2023-03-14 13:56:15 +05:30
Sasha
4d7b3e39e6
fix: prettier and cspell ignore CHANGELOG ( #1235 )
2023-03-13 23:40:41 +01:00
fryorcraken.eth
5a42efcd8d
chore: rename: peer exchange peers are not bootstrap peers
2023-03-10 10:23:40 +11:00
fryorcraken.eth
6dbcde041a
chore!: directly convert from ENR to `PeerInfo`, remove unneeded utility
2023-03-10 10:23:39 +11:00
fryorcraken.eth
130c49b636
chore!: extract decoder code
...
Separation of concerns by moving decoding logic in new class.
2023-03-10 10:23:38 +11:00
dependabot[bot]
9e03644f48
chore(deps)(deps-dev): bump cspell from 6.26.3 to 6.28.0
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell ) from 6.26.3 to 6.28.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/v6.26.3...v6.28.0 )
---
updated-dependencies:
- dependency-name: cspell
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 23:18:07 +00:00
fryorcraken.eth
952aadd7bb
fix(dns-discovery/peer-exchange): check if peer is already tagged
...
If we `continue` when the peer is already known by the `peerStore` then
the next step of checking the tags is useless (no tags if peer is not
known).
There are two ways around it:
1. either do nothing if peer is already in peer store
2. OR, do nothing if peer is in peer store and is already tagged
I opted for the second approach to ensure all peers are tagged properly.
2023-03-10 10:09:10 +11:00
fryorcraken.eth
56814ba740
chore: rename build-utils to avoid potential conflict
2023-03-07 16:44:57 +11:00
dependabot[bot]
28ec631432
chore(deps)(deps-dev): bump @typescript-eslint/eslint-plugin
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.53.0 to 5.54.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.54.1/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 23:23:40 +00:00
fryorcraken.eth
0b93fdd76d
chore: extract exports path from package.json for rollup
...
Also sort eslint to lint JavaScript ESM files successfully.
Fixes #933
2023-03-01 15:46:21 +11:00
fryorcraken.eth
1a9b13f902
chore: use `BaseProtocol` on `WakuPeerExchange`
...
Ref: https://github.com/waku-org/js-waku/pull/1137
2023-02-28 13:49:36 +11:00
dependabot[bot]
35dab5392d
chore(deps)(deps-dev): bump eslint from 8.34.0 to 8.35.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.34.0 to 8.35.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.34.0...v8.35.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 16:25:16 +00:00
fryorcraken.eth
7d29ed1d99
chore: move error throwing within `selectPeerForProtocol`
...
As all callers throw upon undefined result.
2023-02-27 09:48:30 +11:00
dependabot[bot]
d3156cdefb
chore(deps)(deps-dev): bump @typescript-eslint/eslint-plugin
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.52.0 to 5.53.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.53.0/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 16:11:17 +00:00
dependabot[bot]
6328ce0c39
chore(deps)(deps-dev): bump eslint from 8.33.0 to 8.34.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.33.0 to 8.34.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.34.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 16:09:45 +00:00
Danish Arora
1b41569023
fix: remove initialising peer-exchange while creating a node ( #1158 )
...
* remove peer-exchange from @waku/core
- also removes the manual test for peer-exchange (assumption is that the
only way to initialise peer-exchange is through libp2p's peerDiscovery and
not manually) (ref:
https://github.com/waku-org/js-waku/pull/1158#discussion_r1108055234 )
# Please enter the commit message for your changes. Lines
starting
* fix: build
* update interop test
* decrease test duration for px auto discovery
* rm: only for tests
* address comment
2023-02-17 13:27:37 +05:30