Commit Graph

2586 Commits

Author SHA1 Message Date
Danish Arora 574a05ff68
chore: remove `aegir` as a dependency (#1525)
* remove aegir as a dep

* upgrade @libp2p/interface-compliance-tests

* update package-lock
2023-09-04 12:26:38 +05:30
Danish Arora b4f8216761
feat: pre-emptive stream creation for protocols (#1516)
* pass log as an arg to baseprotocol

* optimistically create and use streams for light protocols

* refactor BaseProtocol for readability

* use optimistic stream selection in protocols

* use a new stream for every request instead of reusing

* replenish streams correctly

* create StreamManager

* refactor for a single stream

* fix: listener binds

* declare streamManager as a class var isntead of extending

* remove stream destruction as it happens by default

* simplify logic & address comments

* fix: bind typo

* refactor for improvements

* fix typedoc

* rm: lock

* restructure StreamManager for readbility

* remove log as an arg

* use newStream as a facade in BaseProtoocl
2023-09-04 10:27:25 +05:30
dependabot[bot] 1c090924d0
chore(deps)(deps): bump it-all from 3.0.2 to 3.0.3 (#1519)
Bumps [it-all](https://github.com/achingbrain/it) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/achingbrain/it/releases)
- [Commits](https://github.com/achingbrain/it/compare/it-all-v3.0.2...it-all-v3.0.3)

---
updated-dependencies:
- dependency-name: it-all
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-31 17:28:31 +02:00
Sasha 73dd948698
chore: add retry to test steps in CI (#1517)
* chore: add retry to test steps of ci

* use another action for retry

* fix version

* use master version

* test with error

* return working version

* add env var

* return node test
2023-08-31 12:27:25 +02:00
dependabot[bot] e7e35f05ed
chore(deps)(deps): bump @chainsafe/libp2p-gossipsub (#1499)
Bumps [@chainsafe/libp2p-gossipsub](https://github.com/ChainSafe/js-libp2p-gossipsub) from 10.0.0 to 10.1.0.
- [Release notes](https://github.com/ChainSafe/js-libp2p-gossipsub/releases)
- [Changelog](https://github.com/ChainSafe/js-libp2p-gossipsub/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ChainSafe/js-libp2p-gossipsub/compare/v10.0.0...v10.1.0)

---
updated-dependencies:
- dependency-name: "@chainsafe/libp2p-gossipsub"
  dependency-type: direct:production
  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-08-31 00:47:23 +02:00
Sasha 27177a7efa
chore: improve preparePushMessage (#1509)
* chore: improve readability a bit

* rename

* decople to a type

* fix error
2023-08-30 22:14:32 +02:00
dependabot[bot] 423abb9211
chore(deps)(deps): bump @noble/hashes from 1.3.1 to 1.3.2 (#1515)
Bumps [@noble/hashes](https://github.com/paulmillr/noble-hashes) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/paulmillr/noble-hashes/releases)
- [Commits](https://github.com/paulmillr/noble-hashes/compare/1.3.1...1.3.2)

---
updated-dependencies:
- dependency-name: "@noble/hashes"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-30 21:24:13 +05:30
fryorcraken 8537a63d34
Merge pull request #1510 from waku-org/chore/add-dispatch-to-ci 2023-08-30 16:28:36 +10:00
fbarbu15 c6abcd436d fix WAKUNODE_IMAGE input error in ci.yml 2023-08-29 20:26:57 +03:00
fbarbu15 0afba7846c Merge branch 'chore/add-dispatch-to-ci' of https://github.com/waku-org/js-waku into chore/add-dispatch-to-ci 2023-08-29 20:21:39 +03:00
fbarbu15 a904609e19 Merge branch 'master' of https://github.com/waku-org/js-waku into chore/add-dispatch-to-ci 2023-08-29 20:18:53 +03:00
fbarbu15 b7edff981f fix WAKUNODE_IMAGE input error in ci.yml 2023-08-29 20:17:35 +03:00
dependabot[bot] 39c323891c
chore(deps)(deps-dev): bump puppeteer from 20.4.0 to 21.1.1 (#1513)
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 20.4.0 to 21.1.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json)
- [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v20.4.0...puppeteer-v21.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-29 22:20:05 +05:30
fbarbu15 a66b451a3e
Merge branch 'master' into chore/add-dispatch-to-ci 2023-08-29 14:45:16 +03:00
dependabot[bot] df5f286e68
chore(deps)(deps): bump @libp2p/peer-id from 2.0.4 to 3.0.2 (#1512)
Bumps [@libp2p/peer-id](https://github.com/libp2p/js-libp2p) from 2.0.4 to 3.0.2.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/prometheus-metrics-v2.0.4...logger-v3.0.2)

---
updated-dependencies:
- dependency-name: "@libp2p/peer-id"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-28 22:12:23 +05:30
Danish Arora 2389977a98
chore!: refactor store protocol for readability (#1456)
* refactor store protocol for readability

* update interface

* fix: test

* rm: comments

* Update packages/core/src/lib/store/index.ts

Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>

* fix commit

---------

Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
2023-08-28 13:19:47 +05:30
dependabot[bot] 45baa768ad
chore(deps)(deps): bump fast-check from 3.8.1 to 3.12.0 (#1498)
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check) from 3.8.1 to 3.12.0.
- [Release notes](https://github.com/dubzzz/fast-check/releases)
- [Changelog](https://github.com/dubzzz/fast-check/blob/main/packages/fast-check/CHANGELOG.md)
- [Commits](https://github.com/dubzzz/fast-check/commits/v3.12.0/packages/fast-check)

---
updated-dependencies:
- dependency-name: fast-check
  dependency-type: direct:production
  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-08-28 12:46:48 +05:30
fbarbu15 617622c3ec manually triggerr ci with custom nim node image 2023-08-24 14:03:44 +03:00
Danish Arora 812310a816
chore: refactor LightPush `send` (#1487)
* refactor lightpush send

* add trycatch
2023-08-22 15:11:34 +05:30
dependabot[bot] 9d4fa3f159
chore(deps)(deps-dev): bump rollup from 3.21.3 to 3.28.0 (#1494)
Bumps [rollup](https://github.com/rollup/rollup) from 3.21.3 to 3.28.0.
- [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.21.3...v3.28.0)

---
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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-08-21 21:53:10 +05:30
dependabot[bot] 445f7e7cb8
chore(deps)(deps-dev): bump cspell from 7.0.0 to 7.0.1 (#1493)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 7.0.0 to 7.0.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/v7.0.0...v7.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 21:45:00 +05:30
dependabot[bot] 0d9ea1b4a8
chore(deps)(deps-dev): bump datastore-core from 9.2.0 to 9.2.2 (#1492)
Bumps [datastore-core](https://github.com/ipfs/js-stores) from 9.2.0 to 9.2.2.
- [Release notes](https://github.com/ipfs/js-stores/releases)
- [Commits](https://github.com/ipfs/js-stores/compare/datastore-core-v9.2.0...datastore-core-v9.2.2)

---
updated-dependencies:
- dependency-name: datastore-core
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-19 13:58:15 +05:30
dependabot[bot] 1d484e0546
chore(deps)(deps-dev): bump @libp2p/peer-id-factory from 2.0.4 to 3.0.3 (#1491)
Bumps [@libp2p/peer-id-factory](https://github.com/libp2p/js-libp2p) from 2.0.4 to 3.0.3.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/prometheus-metrics-v2.0.4...keychain-v3.0.3)

---
updated-dependencies:
- dependency-name: "@libp2p/peer-id-factory"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-19 13:44:17 +05:30
dependabot[bot] ba6b380da4
chore(deps)(deps-dev): bump @types/chai from 4.3.4 to 4.3.5 (#1490)
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 21:31:37 +05:30
dependabot[bot] 4db7fa1080
chore(deps)(deps-dev): bump @types/dockerode from 3.3.17 to 3.3.19 (#1489)
Bumps [@types/dockerode](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/dockerode) from 3.3.17 to 3.3.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/dockerode)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 20:55:30 +05:30
Danish Arora aab9c08cae
feat(dns-discovery): set default for `NodeRequirements` (#1466)
* add: test for multi enrtree + static multiaddr

* wrap up test

* rm: only

* move test to optional file

* dns-disc: setup default for node requirements & move to constants

* chore: restructure DNS Discovery for better readability

* fix: build

* fix: type import

* fix: test expect

* rm: only

* update packagelock

* use new libp2p interface

* fix linting errors
2023-08-17 19:50:35 +05:30
Danish Arora bb6211d675
add prettier rule to eslint (#1488) 2023-08-17 17:24:38 +05:30
Danish Arora 7a805a277a
bump nwaku to 0.19 (#1485) 2023-08-16 23:23:37 +05:30
dependabot[bot] 0c00641ca2
chore(deps)(deps-dev): bump @rollup/plugin-node-resolve (#1484)
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 15.0.2 to 15.1.0.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v15.1.0/packages/node-resolve)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
  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-08-16 23:04:48 +05:30
Danish Arora 87717981eb
chore: upgrade libp2p and related deps (#1482)
* chore: update noise

* update: package.lock

* update: @chainsafe/libp2p-gossipsub

* rm unwanted libp2p interface deps & bump up libp2p

* refactor code for new deps

* update: new package.lock

* setup prettier, refactor eslint  and rm trailing commas

* update package.lock

* fix build

* import type for interface

* fix imports for merge

* update typedoc exports

* add: CustomEvent import

* use new libp2p interface

* add aegir as dev dep for tests
2023-08-16 20:18:13 +05:30
Danish Arora 7b6ead14ac
update: tsdoc (#1476) 2023-08-16 16:11:27 +05:30
dependabot[bot] 5ad0210477
chore(deps)(deps): bump @libp2p/websockets from 6.0.3 to 7.0.3 (#1481)
Bumps [@libp2p/websockets](https://github.com/libp2p/js-libp2p) from 6.0.3 to 7.0.3.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/peer-record-v6.0.3...websockets-v7.0.3)

---
updated-dependencies:
- dependency-name: "@libp2p/websockets"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 16:04:21 +05:30
Danish Arora 3d24cd6e17
re-enable @waku/tests (#1472) 2023-08-16 12:44:53 +05:30
Danish Arora 1548a4f8e4
chore(peer-exchange): refactor/fix compliance test (#1478)
* use `peer:identify` instead of `peer:update`

* dial the peer after initialising peer-exchange
2023-08-16 11:14:33 +05:30
dependabot[bot] d97579bf53
chore(deps)(deps-dev): bump eslint-plugin-functional from 5.0.8 to 6.0.0 (#1479)
Bumps [eslint-plugin-functional](https://github.com/eslint-functional/eslint-plugin-functional) from 5.0.8 to 6.0.0.
- [Release notes](https://github.com/eslint-functional/eslint-plugin-functional/releases)
- [Changelog](https://github.com/eslint-functional/eslint-plugin-functional/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint-functional/eslint-plugin-functional/compare/v5.0.8...v6.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-functional
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-15 09:22:58 +05:30
dependabot[bot] 902914420c
chore(deps)(deps-dev): bump cspell from 6.31.2 to 7.0.0 (#1473)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.31.2 to 7.0.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.31.2...v7.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-08-12 16:11:59 +05:30
dependabot[bot] f7d6080877
chore(deps)(deps-dev): bump eslint from 8.46.0 to 8.47.0 (#1474)
Bumps [eslint](https://github.com/eslint/eslint) from 8.46.0 to 8.47.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.46.0...v8.47.0)

---
updated-dependencies:
- dependency-name: eslint
  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-08-12 15:52:58 +05:30
Sasha 51f9261a16
chore: update dependencies (#1460)
* update to latest prettier

* fix with prettier: added trailing comma

* remove deps from test package, add sinon types, fix type hack in a test, update esling prettier config

* update typescript eslint plugins

* update package-locks
2023-08-11 15:14:02 +02:00
Danish Arora 7227657d69
feat(tests): several enrtree + static multiaddr for bootstrap (#1448)
* add: test for multi enrtree + static multiaddr

* wrap up test

* rm: only

* move test to optional file

* fix: build

* fix: test expect

* rm: only
2023-08-11 13:52:44 +05:30
Danish Arora 462d614701
refactor peer exchange compliance test (#1468) 2023-08-10 11:53:53 +05:30
Sasha 75808ffc9d
chore: test agains Fleets and add optional tests (#1432)
* test Prod and Test fleets in CI

* compute predefined nodes once

* remove async

* add optional test step

* fix command
2023-08-07 10:27:16 +02:00
fryorcraken.eth af5d613e47
chore: release master (#1444) 2023-08-02 13:02:57 +02:00
Danish Arora 785df528fe
fix: improve connection manager error handling + edge cases (#1450)
* increase TTL on discovery classes

* refactor dialPeer to handle edge cases

* address comment
2023-08-02 13:49:48 +05:30
Danish Arora 0b8936f1f1
feat: ConnectionManager extends EventEmitter & exposed on the Waku interface (& minor improvements) (#1447)
* move KeepAliveOptions to dedicated interface file

* update export for KeepAlive

* expose `ConnectionManager` on the waku node

* update ConnectionManager test to use the exposed API

* rm: only for the test
2023-07-31 13:54:39 +05:30
balag3 30fcacea84
fix: Refactors message decoding to abort as soon as a suitable decoder found (#1414)
* Refactors message decoding to abort as soon as a suitable decoder found. #1369

* fix: return from the function

* improve readability

---------

Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
Co-authored-by: danisharora099 <danisharora099@gmail.com>
2023-07-28 13:09:11 +05:30
dependabot[bot] 89392dbfdf
chore(deps)(deps-dev): bump karma-chrome-launcher from 3.1.1 to 3.2.0 (#1441)
Bumps [karma-chrome-launcher](https://github.com/karma-runner/karma-chrome-launcher) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/karma-runner/karma-chrome-launcher/releases)
- [Changelog](https://github.com/karma-runner/karma-chrome-launcher/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma-chrome-launcher/compare/v3.1.1...v3.2.0)

---
updated-dependencies:
- dependency-name: karma-chrome-launcher
  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-07-28 00:42:12 +05:30
fryorcraken.eth 92238136de
chore: release master (#1410) 2023-07-26 21:47:04 +02:00
Danish Arora 6ce898d771
feat: enable event emission for peer discovery/connection in ConnectionManager (#1438)
* disable libp2p autodial

* improve logs for peer-exchange

* add a function to fetch discovered and connected peers by discovery

* connection-manager: introduce event emissions by discovery

* write a spec test for events

* minor code improvement for peer-exchange

* rm: comment

* rename peer event result interface

* switch to using libp2p EventEmitter

* rename variables for readability

* reset peer-exchange spec file

* address review

* test: minor refactor

* fix: failing test

* increase peer IDs to test against for attemptDial

* improve structuring
2023-07-26 22:51:55 +05:30
dependabot[bot] 793abe7d22
chore(deps)(deps): bump uint8arrays from 4.0.3 to 4.0.4 (#1440)
Bumps [uint8arrays](https://github.com/achingbrain/uint8arrays) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/achingbrain/uint8arrays/releases)
- [Changelog](https://github.com/achingbrain/uint8arrays/blob/master/CHANGELOG.md)
- [Commits](https://github.com/achingbrain/uint8arrays/compare/v4.0.3...v4.0.4)

---
updated-dependencies:
- dependency-name: uint8arrays
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-26 22:39:04 +05:30
Sasha 447335f633
chore: add js-waku-developers as code owners (#1439)
* add js-waku-developers as code owners

* fix name
2023-07-26 13:15:49 +02:00