fbarbu15
c1f21a65df
Merge branch 'master' of https://github.com/waku-org/js-waku into chore/new-store-tests
2023-10-02 10:04:06 +03:00
dependabot[bot]
fa6510040c
chore(deps)(deps): bump p-event from 5.0.1 to 6.0.0 ( #1610 )
...
Bumps [p-event](https://github.com/sindresorhus/p-event ) from 5.0.1 to 6.0.0.
- [Release notes](https://github.com/sindresorhus/p-event/releases )
- [Commits](https://github.com/sindresorhus/p-event/compare/v5.0.1...v6.0.0 )
---
updated-dependencies:
- dependency-name: p-event
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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-10-02 10:29:45 +05:30
fbarbu15
c83b976621
refactor store tests
2023-09-29 19:10:03 +03:00
fbarbu15
f307e9b6c6
intermediat commit
2023-09-29 14:03:43 +03:00
Danish Arora
a3c45b6e1a
feat(static-sharding)!: allow multiple pubSubTopics ( #1586 )
...
* `ProtocolCreateOptions` now has `pubSubTopic` as `pubSubTopic[]`
* chore: update encoder & decoder to support `PubSubTopic`
* feat(protocols): allow multiple `PubSubTopic[]`
* feat(relay): allow multiple `PubSubTopic[]`
* chore(tests): update for new API
* chore: minor fixes
* chore: make store more robust
* fix(relay): correctly set types
* chore(address comments): update terminology around configured pubsub topics
* chore(address comments): minor refactoring
* chore(relay): split `subscribe` into smaller functions for readability & modularity
* chore(address comments): refactor `waitForGossipSubPeerInMesh`
* chore(store): only allow to query one `pubSubTopic`
* fix: `store` bug
* feat(tests): add some basic tests
* sharding utils
* address comments
* feat(relay): re-add API for `getMeshPeers`
* update error message
Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
* refactor for new API
* feat: simplify handling of observers (#1614 )
* refactor: simplify handling of observers
* refactor: Remove redundant PubSubTopic from Observer
* use `??` instead of `||`
* update `pubsubTopic` to `pubSubTopic`
* update `interval` typo
* change occurence of `pubsubTopic` to `pubSubTopic`
* relay: rm `getAllMeshPeers` and make `pubSubTopics` public
* relay: use `push_or_init_map` and move to `utils`
* fix: update API for tests
* fix: relay waitForRemotePeer
---------
Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
2023-09-27 15:28:07 +05:30
Anton Iakimov
408f5702e4
chore: update wakuv2 fleet DNS discovery enrtree ( #1616 )
...
https://github.com/status-im/infra-misc/issues/171
2023-09-26 23:57:40 +02:00
Simon-Pierre Vivier
6fa106aa7f
fix: subscription RPC & added test subscriptions ( #1587 )
...
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-09-26 00:24:49 +02:00
Sasha
d9e4bcbe3f
feat: add Firefox and Webkit to karma ( #1598 )
...
* add Firefox and Webkit to karma testing
* try adding install to CI
* add display var
* try container prop
* try FirefoxHeadless
* set env var differently
* apply for all configs
* use root karma config
* fix relative link in karma config
* add log
* return as before
* fix path pattern
* move karma to the root
* try moving tsconfig
* return ts config
* use container for playwright
* add FF for firefox and chrome
* use command for playwright
* add retries
* remove retries
2023-09-22 17:48:07 +02:00
Sasha
281d9b2c9d
feat: add playwright CI testing ( #1542 )
...
* add tests-browser package
* rename to browser
* add playwright and experiment with karma
* add lock
* remove karma
* remove readme
* replace default app, rename
* add and configure playwright
* up package-lock
* use @waku/create-app, add scripts to handle it
* remove tsconfig
* update playwright script
* move dependency to root
* set folder
* up
* try install step
* add playwright dep
* remove step
* add es module utils
* fix import issue
* run on master
* use image prop
* use dotenv-flow, set .env.local
* add log, use dotenv-flow
* add env var to ci
* add env vars to CI
* return install of deps
* return container & log build step
* upgrade @waku/create-app
* fix firefox in container problem
2023-09-22 14:34:16 +02:00
Danish Arora
a718c40882
chore: ensure that we can dial `tls` multiaddrs ( #1580 )
...
* add a test to dial tls version of a multiaddr
* generate new lockfile
ref: https://github.com/libp2p/js-libp2p/pull/2059#issuecomment-1724031879
2023-09-22 15:56:52 +05:30
Danish Arora
8f9faf4aed
chore: upgrade engine to 18 ( #1604 )
2023-09-22 14:37:34 +05:30
Florin Barbu
9ab4e86f19
chore: bump nwaku version to 0.20 ( #1591 )
2023-09-22 02:55:49 +02:00
Sasha
020463c358
chore: update typescript ( #1528 )
...
* update typescript, define in root package.json
* update typedoc and fix typedoc comments
* update dev version of tsconfig
* set module and resolution for tsconfig dev
* bump ts plugins
* set order of typedoc generation
* turn off warnings as errors setting
2023-09-21 10:57:37 +02:00
fbarbu15
bbd3f61bc4
increase timeout and use tearDownNodes
2023-09-21 11:29:27 +03:00
fryorcraken.eth
8cbd4c1d00
test: light push should not throw an exception
2023-09-21 12:39:00 +10:00
fryorcraken.eth
fb37c89e40
fix: catch top level exception when preemptively creating streams
2023-09-21 12:39:00 +10:00
fryorcraken.eth
4a9360d4e3
test: fail on unhandled rejections and uncaught exceptions
2023-09-21 12:39:00 +10:00
fryorcraken.eth
3acc4fc86f
refactor: group import
2023-09-21 12:38:59 +10:00
fryorcraken.eth
feb6e1b92c
test: nwaku does not behave as expected
2023-09-21 12:25:38 +10:00
fryorcraken.eth
053b6545ad
feat!: return `REMOTE_PEER_REJECTED` if remote peer rejected the message
2023-09-21 11:56:02 +10:00
fryorcraken.eth
6807185f3b
doc: document potential errors
2023-09-21 11:56:02 +10:00
fryorcraken.eth
a31b6e472e
refactor: Remove nest of try/catch in favor of sequential try/catch
2023-09-21 11:56:02 +10:00
fryorcraken.eth
b696a89572
fix: catch stream creation promise rejection for `lightPush.send`
2023-09-21 11:56:02 +10:00
Simon-Pierre Vivier
7905aa478b
fix: explicit nwaku subscriptions in tests ( #1572 )
...
* Nwaku subscriptions explicit in tests
* Subscription before each & renaming
* Fix
2023-09-19 22:45:27 +02:00
fbarbu15
e284c78701
chore: new lightpush tests ( #1571 )
...
* new lightpush tests
* fixes after CI run
* split tests into 2 files
* small fix
* address code review comments
* small fix after CI run
---------
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-09-19 15:51:03 +05:30
dependabot[bot]
4bce7295e0
chore(deps)(deps-dev): bump rollup from 3.29.0 to 3.29.2 ( #1577 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 3.29.0 to 3.29.2.
- [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.29.0...v3.29.2 )
---
updated-dependencies:
- dependency-name: rollup
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-09-18 21:33:23 +05:30
dependabot[bot]
05ea276c4f
chore(deps)(deps-dev): bump karma from 6.4.1 to 6.4.2 ( #1576 )
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.4.1 to 6.4.2.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.4.1...v6.4.2 )
---
updated-dependencies:
- dependency-name: karma
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-09-18 21:20:28 +05:30
fbarbu15
aae1d9f68b
chore: move the failed retries on test level ( #1573 )
...
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-09-18 11:48:47 +02:00
dependabot[bot]
bb4fdaa248
chore(deps)(deps-dev): bump datastore-core from 9.2.2 to 9.2.3 ( #1574 )
...
Bumps [datastore-core](https://github.com/ipfs/js-stores ) from 9.2.2 to 9.2.3.
- [Release notes](https://github.com/ipfs/js-stores/releases )
- [Commits](https://github.com/ipfs/js-stores/compare/datastore-core-v9.2.2...datastore-core-v9.2.3 )
---
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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-09-18 13:04:11 +05:30
dependabot[bot]
8312871789
chore(deps)(deps-dev): bump interface-datastore from 7.0.4 to 8.2.5 ( #1575 )
...
Bumps [interface-datastore](https://github.com/ipfs/js-stores ) from 7.0.4 to 8.2.5.
- [Release notes](https://github.com/ipfs/js-stores/releases )
- [Commits](https://github.com/ipfs/js-stores/compare/interface-datastore-v7.0.4...interface-datastore-v8.2.5 )
---
updated-dependencies:
- dependency-name: interface-datastore
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-09-17 00:55:20 +05:30
dependabot[bot]
b624a1afd5
chore(deps)(deps): bump protons-runtime from 5.0.0 to 5.0.2 ( #1561 )
...
Bumps [protons-runtime](https://github.com/ipfs/protons ) from 5.0.0 to 5.0.2.
- [Release notes](https://github.com/ipfs/protons/releases )
- [Commits](https://github.com/ipfs/protons/compare/protons-runtime-v5.0.0...protons-runtime-v5.0.2 )
---
updated-dependencies:
- dependency-name: protons-runtime
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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-09-15 16:50:08 +05:30
dependabot[bot]
ea2ab025d4
chore(deps)(deps): bump @libp2p/mplex from 9.0.2 to 9.0.5 ( #1550 )
...
Bumps [@libp2p/mplex](https://github.com/libp2p/js-libp2p ) from 9.0.2 to 9.0.5.
- [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/mdns-v9.0.2...mdns-v9.0.5 )
---
updated-dependencies:
- dependency-name: "@libp2p/mplex"
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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-09-15 16:18:16 +05:30
Sasha
d049ebbc34
fix: throw error when no response ( #1567 )
2023-09-14 13:35:10 +02:00
fbarbu15
b42601d156
chore: new filter tests ( #1552 )
...
* add bulk of tests
* refactored and improved tests
* add more comments
* fixes after CI run
* split filter tests into mulitple suites
* split filter tests into mulitple suites
2023-09-12 23:31:35 +02:00
fryorcraken
55431a52e0
chore: release master ( #1558 )
2023-09-11 13:27:24 +02:00
Sasha
db686b3f7a
chore!: revert typescript eslint plugins ( #1551 )
...
* force update lock file
* revert eslint upgrades
* revert both plugins
2023-09-08 20:32:06 +02:00
dependabot[bot]
2d7fff1e20
chore(deps)(deps-dev): bump @typescript-eslint/eslint-plugin ( #1549 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.62.0 to 6.6.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/v6.6.0/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
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-09-08 21:50:05 +05:30
Danish Arora
6f09fbf4ed
feat: use the lowest latency peer for protocols ( #1540 )
...
* maintain pings in a hashmap
* convert `KeepAliveManager` into a singleton
* chore: fix an unrelated cyclic dependency error
* update `selectPeerForProtocol` to return peer with the lowest latency
* use the new KeepAliveManager API
* use the new API for `selectPeerForProtocol`
* add tests
* use PeerData to hold the ping instead of a new variable
* improve tests for readability
* move back KeepAliveManager from singleton
* reenable all tests
* minor improvements
* improve error handling
* convert .then() syntax to async/await
2023-09-08 21:36:55 +05:30
dependabot[bot]
2c0360bfe8
chore(deps)(deps): bump libp2p from 0.46.8 to 0.46.9 ( #1544 )
...
Bumps [libp2p](https://github.com/libp2p/js-libp2p ) from 0.46.8 to 0.46.9.
- [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/libp2p-v0.46.8...libp2p-v0.46.9 )
---
updated-dependencies:
- dependency-name: libp2p
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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-09-08 00:39:40 +05:30
dependabot[bot]
7ae27413a3
chore(deps)(deps-dev): bump rollup from 3.28.0 to 3.29.0 ( #1545 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 3.28.0 to 3.29.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.28.0...v3.29.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>
2023-09-08 00:12:39 +05:30
Danish Arora
81a52a8097
feat!: set peer-exchange with default bootstrap ( #1469 )
...
* set peer-exchange with default bootstrap
* only initialise protocols with bootstrap peers
* update package
* update package-lock
* refactor `getPeers` while setting up a protocol
* move codecs to `@waku/interfaces`
* lightpush: send messages to multiple peers
* only use multiple peers for LP and Filter
* fix: ts warnings
* lightpush: tests pass
* update breaking changes for new API
* move codecs back into protocol files
* refactor: `getPeers()`
* rm: log as an arg
* add tsdoc for getPeers
* add import
* add prettier rule to eslint
* add: peer exchange to sdk as a dep
* fix eslint error
* add try catch
* revert unecessary diff
* revert unecessary diff
* fix imports
* convert relaycodecs to array
* remove: peerId as an arg for protocol methods
* keep peerId as an arg for peer-exchange
* remove: peerId from getPeers()
* lightpush: extract hardcoded numPeers as a constant
* return all peers if numPeers is 0 and increase readability for random peers
* refactor considering more than 1 bootstrap peers can exist
* use `getPeers`
* change arg for `getPeers` to object
* address comments
* refactor tests for new API
* lightpush: make constant the class variable
* use `maxBootstrapPeers` instead of `includeBootstrap`
* refactor protocols for new API
* add tests for `getPeers`
* skip getPeers test
* rm: only from test
* move tests to `base_protocol.spec.ts`
* break down `getPeers` into a `filter` method
* return all bootstrap peers if arg is 0
* refactor test without stubbing
* address comments
* update test title
* move `filterPeers` to a separate file
* address comments & add more test
* make test title more verbose
* address comments
* remove ProtocolOptions
* chore: refactor tests for new API
* add defaults for getPeers
* address comments
* rm unneeded comment
* address comment: add diversity of node tags to test
* address comments
* fix: imports
2023-09-07 13:15:49 +05:30
dependabot[bot]
408b79d6a5
chore(deps)(deps-dev): bump @typescript-eslint/parser ( #1538 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.62.0 to 6.6.0.
- [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/v6.6.0/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
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-09-07 11:21:37 +05:30
dependabot[bot]
9d503adfbc
chore(deps)(deps): bump @libp2p/websockets from 7.0.3 to 7.0.5 ( #1539 )
...
Bumps [@libp2p/websockets](https://github.com/libp2p/js-libp2p ) from 7.0.3 to 7.0.5.
- [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/websockets-v7.0.3...websockets-v7.0.5 )
---
updated-dependencies:
- dependency-name: "@libp2p/websockets"
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-09-06 21:51:45 +05:30
Danish Arora
6d81d6ab0c
rename optimistically to preemptively ( #1536 )
2023-09-06 09:36:17 +05:30
dependabot[bot]
2cf4a58f62
chore(deps)(deps-dev): bump @rollup/plugin-commonjs ( #1533 )
...
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs ) from 24.1.0 to 25.0.4.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v25.0.4/packages/commonjs )
---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
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-09-06 01:07:37 +02:00
dependabot[bot]
2364b4f8e2
chore(deps)(deps): bump libp2p from 0.46.3 to 0.46.8 ( #1534 )
...
Bumps [libp2p](https://github.com/libp2p/js-libp2p ) from 0.46.3 to 0.46.8.
- [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/libp2p-v0.46.3...libp2p-v0.46.8 )
---
updated-dependencies:
- dependency-name: libp2p
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-09-05 23:39:49 +05:30
Danish Arora
9fc79f6853
chore: export `FilterCodecs` ( #1532 )
...
* export FilterCodecs
* root export
2023-09-05 15:38:02 +05:30
dependabot[bot]
aea96349d4
chore(deps)(deps-dev): bump @types/uuid from 9.0.1 to 9.0.3 ( #1529 )
...
Bumps [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid ) from 9.0.1 to 9.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/uuid )
---
updated-dependencies:
- dependency-name: "@types/uuid"
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-09-04 22:10:50 +05:30
dependabot[bot]
c8b404afb6
chore(deps)(deps-dev): bump @types/debug from 4.1.7 to 4.1.8 ( #1530 )
...
Bumps [@types/debug](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/debug ) from 4.1.7 to 4.1.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/debug )
---
updated-dependencies:
- dependency-name: "@types/debug"
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-09-04 21:57:31 +05:30
dependabot[bot]
3bf9cb83c0
chore(deps)(deps-dev): bump cspell from 7.0.1 to 7.3.2
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell ) from 7.0.1 to 7.3.2.
- [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.1...v7.3.2 )
---
updated-dependencies:
- dependency-name: cspell
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 07:10:14 +00:00
Danish Arora
78f64f60ee
chore: remove prettier, and default to eslint ( #1495 )
...
* rm: unwanted commit ff3ffdd138
* prettier: readds trailing commas
* update: .vscode settings to use eslint by default
* run eslint -- removes trailing commas
* remove: prettier
* remove linting from autogen proto
* address comments
* lint .eslintrc.json
2023-09-04 12:37:38 +05:30
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
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
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
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
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
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]
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
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
Danish Arora
96b111d07d
disable libp2p autodial ( #1437 )
2023-07-26 12:20:51 +05:30
Danish Arora
d483644a4b
chore!: remove filter v1 ( #1433 )
...
* rm: v1
* fix v2 imports
* remove tests for filter v1
* set filter v1 as default and rm v2 completely
* change import name for filter v2
* rename FilterV2 to Filter completely
* fix run check
2023-07-26 11:30:48 +05:30
dependabot[bot]
83db28956f
chore(deps)(deps-dev): bump @typescript-eslint/parser ( #1436 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.59.8 to 5.62.0.
- [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.62.0/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-07-25 22:41:55 +05:30
dependabot[bot]
01a7dd83aa
chore(deps)(deps): bump @chainsafe/libp2p-gossipsub from 6.2.0 to 9.1.0 ( #1427 )
...
Bumps [@chainsafe/libp2p-gossipsub](https://github.com/ChainSafe/js-libp2p-gossipsub ) from 6.2.0 to 9.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/v6.2.0...v9.1.0 )
---
updated-dependencies:
- dependency-name: "@chainsafe/libp2p-gossipsub"
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-07-25 14:22:46 +05:30
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
d2f675d690
feat: spec test for connection manager ( #1417 )
...
* add sinon
* use new API for libp2p to attach event listener
* add a test for event emitter/listening
* add tests to check peer dials happen as expected for bootstrap peers
* add tests for peer-exchange
* remove only and run all tests
* chore: rm extra packages
* chore(deps): revert temp
* chore(deps): revert temp
* add sinon
---------
Co-authored-by: jacques metevier <jmetevier@gmail.com>
2023-07-24 12:08:54 +05:30
Danish Arora
2cd04a1315
Merge branch 'master' into chore--rm-extra-packages
2023-07-15 17:57:12 +02:00
Danish Arora
cae38fdab4
update fleet nodes port to use 8000 ( #1420 )
2023-07-06 15:31:55 +01:00
fryorcraken.eth
008bb6ca2e
test: `topics` arg renamed to `topic` in nwaku
2023-06-30 15:14:01 +10:00
fryorcraken.eth
fff5d66d2f
test: do not run two set of nodes
...
`runNodes` was called twice for custom pubsub test.
2023-06-30 15:14:00 +10:00
fryorcraken.eth
3b1f0adb43
test: bump nwaku to v0.18.0
2023-06-30 15:14:00 +10:00
Sasha
0d9265aaf1
feat: export interfaces and relay from sdk ( #1409 )
2023-06-28 18:12:44 +02:00
fryorcraken.eth
614893ca98
chore: release master ( #1393 )
2023-06-17 01:26:12 +02:00
jacques metevier
0d0b25ae75
chore(deps): revert temp
2023-06-08 12:05:22 -07:00
jacques metevier
5f927a7243
chore: rm extra packages
2023-06-08 11:52:27 -07:00
Danish Arora
f32d7d9fe0
feat: allow passing of multiple ENR URLs to DNS Discovery & dial multiple peers in parallel ( #1379 )
...
* allow passing of multiple ENRs to DNS Discovery
* add test for >1 ENR to DNS Disc
* address comments
* feat: dial multiple peers in parallel (#1380 )
* ensure discovered peers are dialed in parallel
* cap parallel dials
* drop connection to bootstrap peer if >set connected
* switch to american english
* improve promises and error logging
2023-06-08 14:26:29 +02: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
Danish Arora
951ebdac9d
feat!: rename package from @waku/create to @waku/sdk ( #1386 )
...
* feat!(@waku/sdk): rename package from @waku/create to @waku/sdk
* feat: proxy @waku/core and @waku/utils through @waku/sdk
* address comments
* update package-lock
* Update .size-limit.cjs
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
* integrate to release please
---------
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
Co-authored-by: Sasha <oleksandr@status.im>
2023-06-05 13:40:13 +02:00
dependabot[bot]
5411a5e916
chore(deps)(deps): bump @libp2p/crypto from 1.0.15 to 1.0.17
...
Bumps [@libp2p/crypto](https://github.com/libp2p/js-libp2p-crypto ) from 1.0.15 to 1.0.17.
- [Release notes](https://github.com/libp2p/js-libp2p-crypto/releases )
- [Changelog](https://github.com/libp2p/js-libp2p-crypto/blob/master/CHANGELOG.md )
- [Commits](https://github.com/libp2p/js-libp2p-crypto/compare/v1.0.15...v1.0.17 )
---
updated-dependencies:
- dependency-name: "@libp2p/crypto"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 04:41:42 +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
dependabot[bot]
be5dde787b
chore(deps)(deps-dev): bump puppeteer from 19.8.2 to 20.4.0 ( #1383 )
...
Bumps [puppeteer](https://github.com/puppeteer/puppeteer ) from 19.8.2 to 20.4.0.
- [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-v19.8.2...puppeteer-v20.4.0 )
---
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-05-26 13:44:24 +05:30
Danish Arora
c9ce9ab3b7
move build-utils to devDep ( #1381 )
2023-05-25 21:28:19 +05:30
fryorcraken.eth
3b31004eb9
chore: removed unused pretest scripts
2023-05-24 10:44:08 +10:00
dependabot[bot]
ca3e70aa0f
chore(deps)(deps-dev): bump @libp2p/interface-peer-discovery-compliance-tests
...
Bumps [@libp2p/interface-peer-discovery-compliance-tests](https://github.com/libp2p/js-libp2p-interfaces ) from 2.0.5 to 2.0.8.
- [Release notes](https://github.com/libp2p/js-libp2p-interfaces/releases )
- [Commits](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-peer-discovery-compliance-tests-v2.0.5...@libp2p/interface-peer-discovery-compliance-tests-v2.0.8 )
---
updated-dependencies:
- dependency-name: "@libp2p/interface-peer-discovery-compliance-tests"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 23:53:32 +00:00
Danish Arora
b2caf10d03
fix: go-waku interop tests ( #1378 )
...
* fix interop for filter v1
* change to better desc
2023-05-23 23:45:08 +05:30
Danish Arora
6e2d1d674a
update nwaku image in run-tests script ( #1375 )
2023-05-23 16:53:30 +05:30
Danish Arora
8d0e647966
feat!: filter v2 ( #1332 )
...
* implement proto
* implement filter v2
* add tests
* minor improvements
- make unsubscribe functions private in
filter
- enable all tests
* enable all tests
* readd multiaddrinput
* address comment removals
* unsubscribe based on contentFilters passed
* update unsubscribe function parameters in test
* reset interfaces & filter v1
* refactor filterv2 into 2 classes
- removes generics from types on filter which means
manual typecasting to filter version is required on
consumer side
- defaults to filterv2
- splits filterv2 into 2 classes:
- one to create the subscription object with a
peer which returns the second class
- the other to manage all subscription functions
* updates filter tests for the new API
- also fixes an interface import
* update `toAsyncIterator` test for Filter V1
* implement IReceiver on FilterV2
* remove return values from subscription functions
* update `to_async_iterator`
* address variable naming
* add tsdoc comments for hidden function
* address minor comments
* update docs to default to filter v2
* address comments
* rename `wakuFilter` to `wakuFilterV1`
* chore: Remove static variables (#1371 )
* chore: Remove static variables
- Remove internal types from `@core/interfaces`
- Remove data being redundantly stored (pubsub topic)
- Remove usage of static variables
- Clean up callbacks and decoders when using `unsubscribe`
- Clean up callbacks and decoders when using `unsubscribeAll`
* fix setting activeSubscription
---------
Co-authored-by: danisharora099 <danisharora099@gmail.com>
* make activeSub getter and setter private
* update size-limit
---------
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2023-05-23 16:06:46 +05:30
fryorcraken.eth
b25f7e0acf
chore: release master ( #1343 )
2023-05-19 13:38:52 +02:00
Sasha
0ad19540d5
fix: remove typesVersions ( #1359 )
...
* export types properly
* remove typesVersion
* remove typesVersions for @waku/relay
2023-05-19 00:51:28 +02:00
Danish Arora
94e1abdd65
chore: upgrade nwaku to v0.17.0 ( #1364 )
2023-05-19 01:52:06 +05:30
Danish Arora
60304bc908
chore: rename file to node.ts ( #1363 )
...
* rename file to node.ts
* update imports
2023-05-19 01:38:43 +05:30
Danish Arora
d80042fc47
fix: failing px tests for nwaku master ( #1355 )
...
* move dockerode into a separate class
* rename `nwaku` to `WakuNode` to generalise
- nwaku and go-waku were running through
`nwaku.ts`
* move wakunode and docker into one subdir
* rename node to `NimGoNode` and update imports in tests
* update docker to host all containers in a specific network
* update the peer exchange test
* assign static IPs to containers
* enable relay on px interop
* fix px compliance tests
* fix import
2023-05-19 01:28:49 +05:30
Sasha
72f97d4545
feat: add 1MB restriction to LightPush and Relay ( #1351 )
...
* add 1MB restriction to LightPush and Relay
* fix condition
* improve lightPush test
* update test
* add isomorphic-webcrypto
* import module
* add errors to SendResult and tests
* fix lint
2023-05-17 23:40:52 +02:00
Sasha
ef87af6e7a
chore: add iterator timeout and unblock main thread ( #1357 )
...
* add iterator timeout
* add idle state to generator
* add js-doc and iterator option
2023-05-17 10:38:20 +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
Stuart
97d5659c47
chore: update ecmascript version ( #1352 )
...
* updates to ES2022
* 🚿 cleanup
2023-05-16 14:19:44 +05:30
dependabot[bot]
a543d4ba71
chore(deps)(deps-dev): bump @types/dockerode from 3.3.15 to 3.3.17 ( #1350 )
...
Bumps [@types/dockerode](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/dockerode ) from 3.3.15 to 3.3.17.
- [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-05-15 15:09:14 +05:30
Sasha
014c52a4ac
fix: add timeout to utils test ( #1348 )
2023-05-12 15:28:01 +02: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
Danish Arora
f4e31019e1
fix: improve logging for connection manager ( #1303 )
...
* merge: master
* fix: CI
* use: js script instead of shell script to run precheck and mocha
* improve logging when dial fails
* use hashmap for errors instead of redeclaring variable
2023-05-11 13:35:58 +05:30
fryorcraken.eth
55ed6e3765
chore: fix import
2023-05-11 15:04:23 +10:00
fryorcraken.eth
5724bb2b21
feat: expose `meta` on `IDecodedMessage`
...
Decoders are expected to expose this field in their return type.
Somehow missed in previous PRs.
2023-05-10 14:41:07 +10:00
fryorcraken.eth
af927933a9
chore: release master ( #1296 )
2023-05-09 20:54:20 +02:00
Sasha
7daa9d05bf
feat: toSubscriptionIterator impl for IReceiver ( #1307 )
2023-05-09 20:15:37 +02:00
dependabot[bot]
1386ff31f8
chore(deps)(deps-dev): bump @libp2p/interface-content-routing
...
Bumps [@libp2p/interface-content-routing](https://github.com/libp2p/js-libp2p-interfaces ) from 2.0.2 to 2.1.1.
- [Release notes](https://github.com/libp2p/js-libp2p-interfaces/releases )
- [Commits](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-content-routing-v2.0.2...@libp2p/interface-content-routing-v2.1.1 )
---
updated-dependencies:
- dependency-name: "@libp2p/interface-content-routing"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 15:16:28 +00: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
fryorcraken.eth
c8c2cbfbb1
chore: ignore changelog file as it's handled by release please
2023-05-06 13:50:20 +10:00
fryorcraken.eth
c781e49e1e
chore: improve var name
2023-05-06 13:50:20 +10:00
fryorcraken.eth
71985038a2
test: fix karma config
2023-05-06 13:50:20 +10:00
fryorcraken.eth
fe57461329
feat: implement deterministic message hash logic
2023-05-06 13:50:20 +10:00
fryorcraken.eth
76d1d4faf5
chore: new empty message-hash package
2023-05-06 13:32:30 +10:00
fryorcraken.eth
c9e7af470d
fix: enum used from this dependency
2023-05-06 13:25:34 +10:00
dependabot[bot]
26c0500d79
chore(deps)(deps-dev): bump fast-check from 3.7.1 to 3.8.1
...
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check ) from 3.7.1 to 3.8.1.
- [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.8.1/packages/fast-check )
---
updated-dependencies:
- dependency-name: fast-check
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-06 03:19:13 +00:00
Sasha
4615b51568
feath: use sha256 for Relay msgIdFn ( #1322 )
2023-05-05 18:26:54 +02: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