Compare commits

...

2775 Commits

Author SHA1 Message Date
Fabiana Cecin
9a1e9cecc5
fix: peer cache test failure (#2770)
* fix peer cache test

* simplify test fix

---------

Co-authored-by: Arseniy Klempner <arseniyk@status.im>
2025-12-23 16:51:15 -08:00
Danish Arora
ab237410f9
chore: enable relay when lightpush is used (#2762) 2025-12-23 16:24:36 -08:00
Arseniy Klempner
f2ad23ad43
feat(rln)!: generate contract types, migrate from ethers to viem (#2705)
* feat: use wagmi to generate contract types

* feat: migrate rln from ethers to viem

* fix: remove .gitmodules

* fix: update readme

* fix: refactor to use a single viem client object

* fix: update comments, tsconfig

* feat: remove membership event tracking

* fix: script name in package.json and readme

* fix: only allow linea sepolia

* fix: consolidate viem types, typed window

* fix: use viem to infer type of decoded event

* fix: use js for generate abi script

* feat: generate abi and build rln package as release condition

* fix: check that eth_requestAccounts returns an array

* fix: handle error messages

* fix: use https instead of git for cloning in script

* fix: add warning annotations for contract typings check

* fix: install deps for rln package before building

* fix: use pnpm when installing rln contracts

* fix: use workspace flag to run abi script

* fix: add ref to checkout action

* fix: include pnpm in ci
2025-12-01 17:32:35 -08:00
Hanno Cornelius
788f7e62c5
feat: incorporate sds-r into reliable channels (#2701)
* wip

* feat: integrate sds-r with message channels

* fix: fix implementation guide, remove unrelated claude file

* feat: integrate sds-r within reliable channels SDK

* fix: fix import, export

* fix: fix build errors, simplify parallel operation

* fix: sigh. this file has 9 lives

* fix: simplify more

* fix: disable repair if not part of retrieval strategy

* fix: remove dead code, simplify

* fix: improve repair loop

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

* chore: make retrievalStrategy mandatory argument

* chore: add repair multiplier, safer checks

---------

Co-authored-by: fryorcraken <commits@fryorcraken.xyz>
Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
2025-11-21 15:03:48 +00:00
fryorcraken
e5f51d7df1
feat: Reliable Channel: Status Sync, overflow protection, stop TODOs (#2729)
* feat(sds): messages with lost deps are delivered

This is to re-enable participation in the SDS protocol. Meaning the
received message with missing dependencies becomes part of the causal
history, re-enabling acknowledgements.

* fix(sds): avoid overflow in message history storage

* feat(reliable-channel): Emit a "Synced" Status with message counts

Return a "synced" or "syncing" status on `ReliableChannel.status` that
let the developer know whether messages are missing, and if so, how many.

* fix: clean up subscriptions, intervals and timeouts when stopping

# Conflicts:
#	packages/sdk/src/reliable_channel/reliable_channel.ts

* chore: extract random timeout

* fix rebase

* revert listener changes

* typo

* Ensuring no inconsistency on missing message

* test: streamline, stop channels

* clear sync status sets when stopping channel

* prevent sync status event spam

* test: improve naming

* try/catch for callback

* encapsulate/simplify reliable channel API

* sanity checks

* test: ensure sync status cleanup
2025-11-16 08:57:12 +11:00
fryorcraken
84a6ea69cf
fix: cleanup routines on reliable channel and core protocols (#2733)
* fix: add stop methods to protocols to prevent event listener leaks

* fix: add abort signal support for graceful store query cancellation

* fix: call protocol stop methods in WakuNode.stop()

* fix: improve QueryOnConnect cleanup and abort signal handling

* fix: improve MissingMessageRetriever cleanup with abort signal

* fix: add stopAllRetries method to RetryManager for proper cleanup

* fix: implement comprehensive ReliableChannel stop() with proper cleanup

* fix: add active query tracking to QueryOnConnect and await its stop()

* fix: add stop() to IRelayAPI and IStore interfaces, implement in SDK wrappers

* align with usual naming (isStarted)

* remove unnecessary `await`

* test: `stop()` is now async

* chore: use more concise syntax

---------

Co-authored-by: Levente Kiss <levente.kiss@solarpunk.buzz>
2025-11-13 12:32:15 +11:00
049e564e89
ci: add missing jenkins lib 2025-11-06 18:02:33 +01:00
Sasha
101ffe8a04
chore: release master (#2663) 2025-11-04 15:56:42 +01:00
Hanno Cornelius
5334a7fcc9
feat: add SDS-Repair (SDS-R) to the SDS implementation (#2698)
* wip

* feat: integrate sds-r with message channels

* feat: add SDS-R events

* fix: fixed buffer handling incoming and outgoing

* fix: more buffer fixes

* fix: remove some magic numbers

* fix: buffer optimisation, backwards compatible senderId

* fix: fix implementation guide, remove unrelated claude file

* fix: further buffer optimisations

* fix: linting errors

* fix: suggestions from code review

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

* fix: remove implementation guide

* fix: build errors, remove override, improve buffer

* fix: consistent use of MessageId and ParticipantId

* fix: switch to conditionally constructed from conditionally executed

---------

Co-authored-by: fryorcraken <commits@fryorcraken.xyz>
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
2025-10-28 10:27:06 +00:00
Arseniy Klempner
115cdd28fe
chore: update hardcoded version of nwaku to 0.36.0, remove unused ci job (#2710)
* fix: update hardcoded version of nwaku to 0.36.0

* fix: remove unused/outdated rln-sync-tree job
2025-10-27 17:02:48 -07:00
Arseniy Klempner
0daa81d3d7
fix: run npm audit fix (#2696)
* fix: run npm audit fix

* fix: bump playwright image in CI
2025-10-27 13:47:14 -07:00
e2c9364053
ci: move it to a container
Add nix flake and use it in the pipeline for reliability and reproducability.

Referenced issue:
* https://github.com/status-im/infra-ci/issues/188
2025-10-23 12:53:04 +02:00
Arseniy Klempner
0df18b2a75
feat: create @waku/run package for local dev env (#2678)
* feat: create @waku/run package for local dev env

* chore: add @waku/run to release please config

* feat: test @waku/run with playwright

* fix: don't run waku/run tests in CI

* fix: cache images so docker-compose can work offline

* feat: set nodekey and staticnode flags for each nwaku node

* fix: use constants for node ids

* chore: set directories for running via npx

* fix: remove .env, support env vars for nwaku ports

* fix: use separate db (same instance) for each node

* feat: add command to test dev env

* chore: use package version in container name

* fix: replace hardcoded WS/REST ports with constants/env vars

* chore: clean up README

* fix: refactor config printing into own function

* fix: add run package to release please manifest

* fix: defer to root folder gitignore/cspell

* fix: update node version and remove tsx

* fix: remove browser tests and express dep

* fix: replace magic values with constants

* fix: move to root .gitignore

* fix: move cspell to root
2025-10-22 21:38:28 -07:00
Sasha
ff9c43038e
chore: use npm token (#2693) 2025-10-22 14:26:13 +02:00
fryorcraken
b8a9d132c1
chore: npm publication (#2688)
* chore: npm publication

Fixing npm publication and warnings

* Upgrade workflow to use trusted publishing

https://docs.npmjs.com/trusted-publishers

* bump node js to 24

To avoid having to reinstall npm in pre-release for npmjs trusted publishers
2025-10-21 16:35:01 +11:00
Sasha
37c6c1e529
chore: expose sdk from waku/react (#2676) 2025-10-09 00:38:54 +02:00
Sasha
ad0bed69ba
feat: add waku/react package and make it compatible with React frameworks (#2656)
* chore: add waku/react package

* fix check

* remove not needed logic from waku/react package

* make it compatible with expo/next

* add to release please

* remove tests
2025-10-08 15:37:49 +02:00
Arseniy Klempner
d803565b30
feat(browser-tests): simplify, refactor, update dockerized browser node (#2623)
* feat(browser-tests): simplify, refactor, update dockerized browser node

* Update packages/browser-tests/web/index.ts

* fix: remove comments and console.logs from tests

* fix: add temporary logging

* fix: debugging static sharding

* fix: replace console with logger

* fix: remove use of any

* fix: log dial error

* fix: replace any with libp2p options

* fix: remove unused logic around sourcing address.env

* fix: uncomment log

* fix: add more logging and fix tests

* feat: add types for test-config

* fix: add types to server.ts

* fix: remove more uses of any

* fix: remove use of any in endpoint handlers
2025-10-07 10:54:19 -07:00
fryorcraken
e92f6a2409
feat!: do not send sync messages with empty history (#2658)
* feat!: do not send sync messages with empty history

A sync message without any history as no value. If there are no messages in the channel, then a sync messages does not help.

If there are messages in the channel, but this participant is not aware of them, then it can confuse other participants to assume that the channel is empty.

* fix test by adding a message to channel history

* make `pushOutgoingSyncMessage` return true even if no callback passed
2025-10-02 15:17:10 +10:00
fryorcraken
c0ecb6abba
fix!: SDS lamport timestamp overflow and keep it to current time (#2664)
* fix!: avoid SDS lamport timestamp overflow

The SDS timestamp is initialized to the current time in milliseconds, which is a 13 digits value (e.g. 1,759,223,090,052).

The maximum value for int32 is 2,147,483,647 (10 digits), which is clearly less than the timestamp.
Maximum value for uint32 is 4,294,967,295 (10 digits), which does not help with ms timestamp.

uint64 is BigInt in JavaScript, so best to be avoided unless strictly necessary as it creates complexity.
max uint64 is 18,446,744,073,709,551,615 (20 digits).

Using seconds instead of milliseconds would enable usage of uint32 valid until the year 2106.

The lamport timestamp is only initialized to current time for a new channel. The only scenario is when a user comes in a channel, and thinks it's new (did not get previous messages), and then starts sending messages. Meaning that there may be an initial timestamp conflict until the logs are consolidated, which is already handled by the protocol.

* change lamportTimestamp to uint64 in protobuf

* lamport timestamp remains close to current time
2025-10-02 09:07:10 +10:00
fryorcraken
593bc45225
feat: reliable channels search up to 30 days to find message (#2657)
* feat: query on connect stops on predicate

* test: query on connect stops at predicate

* feat: reliable channels search up to 30 days to find message

Queries stop once a valid sync or content message is found in the channel.

* fix: protect against decoding exceptions

* stop range queries on messages with a causal history
2025-10-01 21:35:52 +10:00
Arseniy Klempner
bbcfc94879
feat(rln)!: use zerokit for credential generation (#2632)
Co-authored-by: Danish Arora <danisharora099@gmail.com>
2025-09-30 16:49:18 -07:00
Sasha
016a25d578
chore: stop updating TTL for peer store (#2653) 2025-10-01 00:33:26 +02:00
Sasha
79dd001b1f
chore: release master (#2576) 2025-09-20 11:37:22 +02:00
Sasha
11d84ad342
feat: implement peer-store re-bootstrapping (#2641)
* implement peer-store re-bootstrapping

* add peer cache support

* implement TTL update for open connections, add re-bootstrapping in case reaches zero peers

* fix query tests, skip missing message retrival

* up tests

* up sds tests

* skip

* skip
2025-09-20 09:40:51 +02:00
fryorcraken
cb3af8cd4d
fix(sds): initialize lamport timestamp with current time (#2610) 2025-09-11 18:06:54 +10:00
fryorcraken
4d5c152f5b
feat: introduce reliable channels (#2526)
* SDS: pushOutgoingMessage is actually sync

* SDS: ensure that `ContentMessage` class is stored in local history with `valueOf` method

* feat: introduce reliable channels

Easy to use Scalable Data Sync (SDS, e2e reliability) wrapper, that includes:
- store queries upon connection to store nodes
- store queries to retrieve missing messages

* remove `channel` prefix

* attempt to improve performance when processing a lot of incoming messages

* test: split test file

* use index.ts for re-export only.

* improve if condition

* use getter for isStarted

* waku node already auto-start

* rename send

* fix lightPush.send type post rebase

* test: remove extra console.log

* SDS: emit messages as missing as soon as they are received

* make configurable elapse time for task process

* typo

* use string instead of enum for event types

* ReliableChannel.send returns the message id
2025-09-09 12:43:48 +10:00
Sasha
8f09f5fa5a
fix: nwaku master interop tests (#2625)
* fix REST endpoint

* disable px in peer cache test
2025-09-08 22:48:18 +02:00
Arseniy Klempner
16253026c6
feat: implement lp-v3 error codes with backwards compatibility (#2501)
* feat: implement LightPush v3 protocol support

Add comprehensive LightPush v3 protocol implementation with:

Core Features:
- LightPush v3 protocol codec and multicodec detection
- Status code-based error handling and validation
- Protocol version inference and compatibility layers
- Enhanced error types with detailed failure information

Protocol Support:
- Automatic v3/v2 protocol negotiation and fallback
- Status code mapping to LightPush error types
- Protocol version tracking in SDK results
- Mixed protocol environment support

Testing Infrastructure:
- Comprehensive v3 error code handling tests
- Mock functions for v3/v2 response scenarios
- Protocol version detection and validation tests
- Backward compatibility verification

Implementation Details:
- Clean separation between v2 and v3 response handling
- Type-safe status code validation with isSuccess helper
- Enhanced failure reporting with protocol version context
- Proper error propagation through SDK layers

This implementation maintains full backward compatibility with v2
while providing enhanced functionality for v3 protocol features.

* feat: handle both light push protocols

* fix: unsubscribe test

* feat: consolidate lpv2/v3 types

* feat(tests): bump nwaku to 0.36.0

* fix: remove extraneous exports

* fix: add delay to tests

* fix: remove protocol result types

* feat: consolidate light push codec branching

* fix: revert nwaku image

* fix: remove multicodec

* fix: remove protocolversion

* feat: simplify v2/v3 branching logic to use two stream managers

* fix: remove unused utils

* fix: remove comments

* fix: revert store test

* fix: cleanup lightpush sdk

* fix: remove unused util

* fix: remove unused exports

* fix: rename file from public to protocol_handler

* fix: use proper type for sdk result

* fix: update return types in filter

* fix: rebase against latest master

* fix: use both lightpush codecs when waiting for peer

* fix: handle both lp codecs

* fix: remove unused code

* feat: use array for multicodec fields

* fix: add timestamp if missing in v3 rpc

* fix: resolve on either lp codec when waiting for peer

* fix: remove unused util

* fix: remove unnecessary abstraction

* feat: accept nwaku docker image as arg, test lp backwards compat

* fix: revert filter error

* feat: add legacy flag to enable lightpushv2 only

* Revert "feat: accept nwaku docker image as arg, test lp backwards compat"

This reverts commit 857e12cbc73305e5c51abd057665bd34708b2737.

* fix: remove unused test

* feat: improve lp3 (#2597)

* improve light push core

* move back to singualar multicodec property, enable array prop only for light push

* implement v2/v3 interop e2e test, re-add useLegacy flag, ensure e2e runs for v2 and v3

* fix v2 v3 condition

* generate message package earlier

* add log, fix condition

---------

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
Co-authored-by: Sasha <oleksandr@status.im>
2025-09-05 00:52:37 +02:00
Sasha
a7f30b1211
feat: add debounce to health indicator (#2594) 2025-09-04 00:49:10 +02:00
Sasha
2fba052b8b
feat: add start/stop to filter (#2592) 2025-08-30 01:32:59 +02:00
fryorcraken
914beb6531
fix: (sds) ensure incoming messages have their retrieval hint stored (#2604)
* SDS: export `MessageId`

* SDS: attach retrieval hints to incoming messages

* sds: ensure items are ordered by timestamp

* test: sds: avoid using "as any" as it bypasses type checks

* test: filter: avoid using "as any" as it bypasses type checks

* test: fix tests without introducing proxy
2025-08-28 15:57:23 +10:00
fryorcraken
8542d04bf5
feat: query on connect (#2602)
* feat: query on connect

Perform store time-range queries upon connecting to a store node.
Some heuristics are applied to ensure the store queries are not too frequent.

* make `maybeQuery` private

* query-on-connect: use index.ts only for re-export

* query-on-connect: update doc
2025-08-28 13:58:16 +10:00
fryorcraken
826aedd558
log: logs are already prefixed with waku (#2603) 2025-08-27 23:32:41 +10:00
fryorcraken
0dfbcf6b6b
feat: StoreConnect events (#2601)
* store connect evt: use enum instead of free strings for Waku event types

* store connect evt: more accurate enum name

* store connect evt: add store connect event on peer manager

* store connect evt: simplify logic statements

* store connect evt: test store connect

* store connect evt: export event types

* test: use enum

* Shorter name for waku events
2025-08-27 12:29:22 +10:00
fryorcraken
78c856d079
fix: remove sharding circular dependency (#2590) 2025-08-25 10:49:05 +10:00
Sasha
836d6b8793
feat: expose message hash from IDecodedMessage (#2578)
* expose message hash from IDecodedMessage

* up mock

* optimize hashing and add tests
2025-08-21 11:58:43 +02:00
Sasha
c8dfdb1ace
fix: make health events emission consistent (#2570)
* fix health events emission

* fix bloom test flakiness due to bloom filter properties
2025-08-20 13:13:38 +02:00
Sasha
26de2d11c8
chore: release master (#2515) 2025-08-15 21:56:59 +02:00
Sasha
dfb2baf004
fix: prevent setting shard info from PX if it exists (#2561)
* prevent setting px shard info

* address review
2025-08-15 00:30:07 +02:00
Sasha
eab8ce81b4
feat!: local peer discovery improvements (#2557)
* update local peer discovery, make it configurable for cache

* move to separate file

* up tests, remove local storage from tests

* pass local peer cache options

* add e2e tests

* add aditional e2e tests for local cache

* rename local-peer-cache into peer-cache

* update tests, ci

* prevent filterign ws addresses
2025-08-15 00:14:32 +02:00
Sasha
95da57a870
feat: peer exchange discovery improvements (#2537)
* rename, mark stuff to remove

* rename type

* update exports from discovery package, improve PX implementation

* re-structure px discovery, comment tests

* implement UT, E2E Tests, clean code a bit, implement recurring PX discovery, move DNS E2E Tests to separate folder, remove not needed E2E tests

* fix discovery dialer e2e test

* mark as started

* fix dns tests

* attempt to fix e2e

* skip test

* update tests

* fix typo

* add catch all in stream manager, update tests

* update mock

* update test
2025-08-14 09:47:55 +02:00
fryorcraken
c161b37d08
fix!: SDS acknowledgements (#2549)
* SDS: change default causal history size to 200

# Conflicts:
#	packages/sds/src/index.ts
#	packages/sds/src/message_channel/message_channel.ts

* SDS: add some comments

* SDS: segregate messages types, introduce LocalHistory

* SDS: fix miss-acks

* SDS: logs and more explicit variable names

* SDS: shorten event name

* SDS: shorten var name

* SDS: move message classes to own file.

* SDS: use lodash instead of custom SortedArray implementation

* SDS: move Message to own file

* SDS: add comparison tests
2025-08-14 10:44:18 +10:00
fryorcraken
de972d6694
fix: reduce emission of health events (#2554) 2025-08-13 23:42:22 +10:00
Sasha
ada265731a
fix: improve error handling for stream manager (#2546)
* fix: improve error handling for stream manager

* fix browser tests

* update logs for stream manager

* fix tests

* fix playwright
2025-08-12 23:25:23 +02:00
fryorcraken
dc5155056b
feat!: SDS improvements and fixes (#2539)
* introduce `MessageId` type

# Conflicts:
#	packages/sds/src/message_channel/message_channel.ts

* fix: own messages are not used for ack

* fix: own messages are not used for ack

* doc: long term solution is SDS protocol change

* SDS: renaming to match message function

* SDS: introduce `Message` class for easier encoding/decoding

# Conflicts:
#	packages/sds/src/message_channel/events.ts
#	packages/sds/src/message_channel/message_channel.ts

* SDS Message is a class now

* SDS: it's "possibly" not "partially" acknowledged.

* SDS: TODO

* SDS: fix tests

* SDS: make logs start with `waku`

* SDS: add bloom filter test

# Conflicts:
#	packages/sds/src/message_channel/events.spec.ts

* SDS: improve naming

* SDS: improve naming

Messages are not "sent" or received, but pushed for processing in local queues.

* SDS: sync message should not be delivered

* SDS: renaming from earlier

* SDS: remove useless variable

* SDS: Fix comment

* SDS: sync messages do not get "delivered"

* SDS: acks

* SDS: simplify delivered event

* SDS: improve event naming

* SDS: fix comment

* SDS: make task error an official event

* SDS: Mark messages that are irretrievably lost

* SDS: remove default for irretrievable and simplify config

* SDS: typo on sync event

* SDS: add and user sender id

* SDS: resent message never get ack'd

* SDS: fix cylic dependencies

* SDS: helpful logs

* SDS: avoid duplicate history entries

* SDS: export options
2025-08-12 10:47:52 +10:00
fryorcraken
459fe96fe6
fix: should not self-acknowledge messages (#2528)
* introduce `MessageId` type

* fix deprecated import

* test: own messages are not used for acks

* fix: own messages are not used for ack

* fix: own messages are not used for ack

* test: do not self-possible-ack

* doc: long term solution is SDS protocol change
2025-08-08 10:18:01 +10:00
fryorcraken
52e5c34520
test: add browser tests for sds (#2527)
* tests: add browser tests for sds

* test: use FIREFOX_BIN if set
2025-08-06 10:30:00 +10:00
fryorcraken
449797d5c1
fix: bloom filter protobuf decoding (#2529)
* SDS: add bloom filter test

* fix: ensure bloom filter can be decoded from protobuf
2025-08-05 14:55:57 +10:00
Arseniy Klempner
103f21ef85
Merge pull request #2313 from waku-org/fix/do-not-limit-dns-discovered-peers
feat!: do not limit DNS Peer Discovery on capability
2025-07-31 17:06:23 -07:00
fryorcraken
d7919e8c9b
improve var name 2025-07-29 19:29:21 +10:00
fryorcraken
f4a2778e02
test: return first peer without traversing branch 2025-07-29 19:29:20 +10:00
fryorcraken
25f884e05b
feat: retrieve peers from all passed enrtree URLs
Order retrieval is random, but it attemps to retrieve from all ENR trees.
2025-07-29 19:29:20 +10:00
fryorcraken
0dfe35281c
fix: do not limit DNS Peer Discovery on capability
Nodes returned by DNS Discovery are not guaranteed to be reachable.
Hence, setting an upfront limit based on sought capability does not provide
any guarantees that such capability should be reached.

The discovery's mechanism role is to find Waku 2 nodes. As many as possible.

It is then the role of the peer manager to decide:
- whether to attempt connecting to the node based on advertised capabilities
- retain connection to the node based on actual mounted protocols.

We still want to prevent infinite loops, hence the `maxGet` parameter.
Also, there was a dichotomy between code tested, and code actually used by libp2p peer discovery, now resolved.

# Conflicts:
#	packages/discovery/src/dns/constants.ts
2025-07-29 19:29:13 +10:00
fbarbu15
c1f9471cd7
chore: extra reliability tests 2 (#2450)
* chore: add throughput reliability tests

* chore: add capability to run all

* chore: add network-latency reliability tests

* chore: add network-latency reliability tests

* chore: add other network reliability tests

* chore: add other network reliability tests

* chore: fix tc cleanup

* chore: refactor common code

* chore: refactor common code

* chore: refactor common code

* chore: refactor common code

* chore: refactor common code

* chore: refactor common code

* chore: refactor common code

* chore: fix

* chore: fix tests

* chore: fix tests
2025-07-29 10:17:43 +03:00
fryorcraken
0be4861c79
Merge pull request #2471 from waku-org/waku-api/fix-nwaku-master
feat!: Introduce routing info concept
2025-07-22 11:37:53 +10:00
fryorcraken
f8f20db85c
small optimization 2025-07-22 10:59:47 +10:00
fryorcraken
cd265ba1ae
fix test for nwaku master 2025-07-21 15:54:05 +10:00
fryorcraken
39c139158c
Delete dual test (makes it hard to work on nwaku master) 2025-07-21 15:44:30 +10:00
fryorcraken
77c694095d
fixing test against nwaku nightly 2025-07-21 15:40:05 +10:00
fryorcraken
158f6ecf98
fix retry_manager test 2025-07-21 15:02:26 +10:00
fryorcraken
d4429702c2
introduce interface for better mocking
As one could fall in a trap of not defining the right methods on the mock
2025-07-21 14:47:07 +10:00
fryorcraken
1e7e0291fa
separate file tests
To not have 2 `runTests` in same file.
2025-07-21 14:10:00 +10:00
fryorcraken
b51d598581
re-enable commented test 2025-07-21 13:57:06 +10:00
fryorcraken
ec8ded9c6a
revert distracting changes 2025-07-21 12:26:51 +10:00
fryorcraken
3bb5a4931f
fix peer exchange test 2025-07-21 12:26:29 +10:00
fryorcraken
0739fd1dd2
revert shard info -> relay shard renaming 2025-07-19 21:50:51 +10:00
fryorcraken
e5919a6bd9
revert most invasive changes 2025-07-19 21:25:21 +10:00
fryorcraken
97a26b2373
revert test changes 2025-07-19 19:21:39 +10:00
fryorcraken
e53717cd08
revert temporary change 2025-07-19 19:03:51 +10:00
fryorcraken
3c930dedfc
revert change on encoder 2025-07-19 18:07:38 +10:00
fryorcraken
065ef0adb0
getRoutingInfo is best as a method as it can use the context from this. 2025-07-19 17:32:58 +10:00
fryorcraken
8d278f8132
revert change that is just noise 2025-07-19 17:24:34 +10:00
fryorcraken
1bbb129d04
fix relay test 2025-07-19 17:19:58 +10:00
fryorcraken
3200b19a02
Simplify IRouting interface 2025-07-19 14:45:06 +10:00
fryorcraken
d04130feb6
use IRouting info for typing 2025-07-19 14:30:44 +10:00
fryorcraken
b8867dee38
test: re-introduce usage of ensureSubscriptions 2025-07-19 14:24:30 +10:00
fryorcraken
b4787e0e87
remove default values for cluster id and num shards in cluster
These are high level configuration values, that need to be consistent within a given execution. Setting them as default value at such a low level is a footgun risk.
2025-07-19 13:22:45 +10:00
fryorcraken
3842d84b55
feat!: Introduce routing info concept
Concepts are being mixed up between the global network config (static vs auto sharding), that needs to be the same of all nodes in the network, individual node configuration (eg relay node subscribing to a given shard), and the routing characteristic of a specific message (eg pubsub topic, shard).

This stops proper configuration of nwaku post 0.36.0 because we know need to be deliberate on whether nwaku nodes are running with auto or static sharding.

It also included various back and forth conversions between shards, pubsub topics, etc.

With this change, we tidy up the network configuration, and make it explicit whether it is static or auto sharded.
We also introduce the concept of routing info, which is specific to a message, and tied to the overall network configuration.

Routing info abstract pubsub topic, shard, and autosharding needs. Which should lead to easier tidy up of the pubsub concept at a later stage.

# Conflicts:
#	packages/core/src/lib/connection_manager/connection_manager.ts
#	packages/core/src/lib/metadata/metadata.ts
#	packages/interfaces/src/metadata.ts
#	packages/interfaces/src/sharding.ts
#	packages/relay/src/create.ts
#	packages/sdk/src/filter/filter.ts
#	packages/sdk/src/filter/types.ts
#	packages/sdk/src/light_push/light_push.spec.ts
#	packages/tests/tests/sharding/auto_sharding.spec.ts
#	packages/tests/tests/sharding/static_sharding.spec.ts

# Conflicts:
#	packages/sdk/src/store/store.ts
2025-07-19 13:22:45 +10:00
Arseniy Klempner
e92cc570f2
Merge pull request #2441 from waku-org/release-please--branches--master
chore: release master
2025-07-18 18:54:31 -07:00
Sasha
79f319cc86 chore: release master 2025-07-19 01:52:31 +02:00
Sasha
36f6884d22
feat: implement store query chunking (#2511)
* feat: implement store query chunking

* add unit tests for store core

* add Store SDK utils

* add e2e test
2025-07-19 01:37:28 +02:00
Siddarth Kumar
7fc2895b6a
ci: disable restart from stage in jenkins (#2502)
related issue : https://github.com/status-im/infra-ci/issues/202
2025-07-18 22:16:39 +05:30
fryorcraken
c24842a4a5
Merge pull request #2467 from waku-org/waku-api/remove-pubsub-topic-from-metadata-queries
fix!: remove node level pubsub topic concept
2025-07-17 11:37:07 +10:00
fryorcraken
6d55af947e
fix!: remove node level pubsub topic concept
For an edge node, there is no such thing as a "pubsub topic configuration". An edge node should be able to operate for any possible shard, and it is a per-protocol matter (eg send message with light push).

A relay node do subscribe to shards, but in this case, even metadata protocol does not need to advertise them, this is already handled by gossipsub.

Only service node should advertise their shards via metadata protocol, which is out of scope for js-waku.

# Conflicts:
#	packages/interfaces/src/connection_manager.ts
2025-07-17 09:57:15 +10:00
fryorcraken
188e4bf928
fix typo 2025-07-17 09:56:15 +10:00
Sasha
ed389ccbc9
feat: add recovery and connection maintenance (#2496)
* add FF for auto recovery

* implement connection locking, connection maintenance, auto recovery, bootstrap connections maintenance and fix bootstrap peers dropping

* add ut for peer manager changes

* implement UT for Connection Limiter

* increase connection maintenance interval

* update e2e test
2025-07-17 01:15:36 +02:00
Danish Arora
7f7f772d93
feat(rln): price calculator for rate limits (#2480)
* chore: add ABI for PriceCalculator

* chore: rename LINEA_CONTRACT to RLN_CONTRACT

* chore: add price calculator & test

* fix: import

* chore: convert e2e test to unit

* fix: test
2025-07-16 15:16:13 +05:30
Sasha
35acdf8fa5
feat: don't dial peers that failed before, make dialer use dial queue (#2478)
* make dialer use dial queue

* skip undiable peers

* cover new cases in tests

* expose dialer config at connection manager

* update tests with new config

* add more tests
2025-07-15 23:13:58 +02:00
Sasha
27292edabc
feat!: unify events under one source (#2473)
* move health indicator under waku.events and expose from Waku as a value

* update tests

* make new type for libp2p event handlers

* fix types
2025-07-15 00:59:45 +02:00
Arseniy Klempner
14085de3c4
Merge pull request #2439 from waku-org/feat/lp-v3-proto
feat(proto): add light push v3 definition
2025-07-14 08:54:37 -07:00
Arseniy Klempner
94788d0dfc
feat(proto): add light push v3 definition 2025-07-14 08:39:41 -07:00
Danish Arora
9b0c5e8311
fix: idCommitmentBigInt must always be less than the contract Q (#2394)
* chore: idCommitmentBigInt validates against contract Q

* chore: fix linting

* chore: add log

* chore: rename Q and make sync

* fix: test

* chore: remove stubbed contract test

* chore: hardcode default constant for Q

* use non deprecated sha256

* chore: use full 32 bytes for bigint

* chore: all storage in LE, but smart contract interactions in BE

* chore: remove references to idCOmmitmentBigInt in Identity

* chore: don't fetch Q from contract

* chore: ByteUtils as a class

* chore: store Identity in BE, convert during Keystore

* chore: add IDCommitmentBigInt part of Identity

* chore: minor improvements

* chore: switch idTrapdoor to LE

* chore: add logs

* chore: rename `DEFAULT_Q` to `RLN_Q`

* chore: rm spec test

* chore: improve modulo logging

* fix(tests): add IDCommitmentBigInt
2025-07-14 16:35:34 +05:30
fbarbu15
5d8cfff7eb
chore: add throughput reliability tests (#2444)
* chore: add throughput reliability tests

* chore: add capability to run all
2025-07-14 11:38:42 +03:00
Sasha
f75634d9c5
feat: update logger format (#2472) 2025-07-11 22:15:22 +02:00
Sasha
c7682ea67c
feat!: re-architect connection manager (#2445)
* remove public pubsub field and redundant util

* add hangUp and improve dial operations, improve keepAliveManager and remove unused method, move utils and add tests

* improve public dial method to start keep alive checks

* move dial method

* implement discovery dialer

* implement discovery dialer with queue with tests

* add discovery dialer e2e tests, change local discovery log tag, update other tests

* remove comment

* add issue link, remove only

* implement shard reader component

* create evetns module, remove unused connection manager events and related tests

* implement network indicator

* implement connection limiter, change public API of connection manager, implement recovery strategy

* decouple keep alive maanger

* add connection manager js-doc

* refactor keep alive manager, cover with tests

* add tests for connection manager main facade

* add tests for connection limiter

* add e2e tests for connection manager modules
pass js-waku config during test node init
remove dns discovery for js-waku

* restructure dialing tests

* address last e2e tests

* address review

* add logging for main methods

* decouple pure dialer class, update network monitor with specific metrics

* remove console.log

* remove usage of protocols

* update sdk package tests

* add connect await promise

* add debug for e2e tests

* enable only packages tests

* use only one file

* revert debugging

* up interface for netwrok manager

* add logs

* add more logs

* add more logs

* add another logs

* remove .only

* remove log statements

* skip the test with follow up
2025-07-09 21:23:14 +02:00
Sasha
bfda249aa6
chore: remove fitler codec initiator in filter core (#2443) 2025-07-03 13:28:32 +02:00
Sasha
058f2ff620
feat: make peer manager aware of codec and shard, fix retry manager and shut down subscriptions (#2425)
* implement new peer manager, use in lightPush, improve retry manager and fix retry bug

* fix unsubscribe issue

* remove not needed usage of pubsub, use peer manager in store sdk

* chore: remove deprecated filter implementation

* update tests

* update next filter for new peer manager

* skip IReceiver test, remove unused utility

* remove comment

* fix typo

* remove old connection based peer manager

* update types, export, and edge case for light push

* add retry manager tests

* add new peer manager tests

* refactor tests

* use peer manager events in filter and check for pubsub topic as well

* update test names

* address comments

* unskip Filter e2e test

* address more comments, remove duplication

* skip CI test

* update after merge

* move to peer:idenfity and peer:disconnect events, improve mapping in filter subscriptions

* update tests

* add logs and change peer manager time lock to 10s
2025-07-02 23:03:47 +02:00
Sasha
981248eedd
chore!: remove deprecated filter implementation (#2433)
* chore: remove deprecated filter implementation

* update tests

* skip IReceiver test, remove unused utility

* fix typo

* address comments

* unskip Filter e2e test

* address more comments, remove duplication

* skip CI test
2025-07-02 12:37:54 +02:00
Sasha
cd1d909de3
chore: release master (#2390) 2025-06-23 22:29:40 +02:00
Sasha
f55db3eb4b
feat: shard retrieval for store and store peers selection (#2417)
* feat: implement shard retrieval for store and improve set store peers usage

* remove log

* remove only, improve condition

* implement smarter way to retrieve peers

* up tests

* update mock

* address nits, add target to eslint, revert to es2022
2025-06-23 10:01:54 +02:00
Sasha
fcc6496fef
chore!: upgrade libp2p, nodejs and typescript (#2401)
* remove react native package

* upgrade nodejs

* upgrade libp2p

* upgrade typescript, use 22 node

* up lock

* fix node compatibility

* upgrade playwright

* upgrade proto

* update tests
2025-06-22 17:41:23 +02:00
Danish Arora
fecc026dd7
fix: DIRVER -> DRIVER typo in nwaku (#2406)
* fix: DIRVER -> DRIVER nwaku

* chore: empty commit

* chore: access CI/test env vars and conditionally check test

* fix: undefined nwaku version

* chore: improve splitting

* simplify, test error string only for new versions

---------

Co-authored-by: Sasha <oleksandr@status.im>
2025-06-20 15:34:51 +02:00
Sasha
7c8d1073b0
chore!: remove IBaseProtocol and improve interface on PeerExchange (#2422)
* remove IBaseProtocol

* fix references, interfaces and integration

* fix ci

* up mock

* up lock

* add mock for local storage

* add missing prop, fix tests

* up lock
2025-06-20 12:53:42 +02:00
Arseniy Klempner
a0fc9e05d4
Merge pull request #2322 from waku-org/feat/sds-command-queue
feat: add command queue architecture and improve message handling
2025-06-13 16:47:38 -07:00
Arseniy Klempner
8444bc940f
fix: reorder methods by visibility 2025-06-13 15:22:52 -07:00
Arseniy Klempner
a2c3b2e6aa
feat(sds)_: add command queue architecture and improve message handling
- Introduce command queue system for sequential task processing
- Add comprehensive event system for message lifecycle tracking
- Restructure codebase with separate bloom_filter directory
- Export encode/decode helpers for SDS proto messages
- Use Set for deduplication in missing message detection
- Fix sync message handling for empty content messages
- Always emit MissedMessages event even with empty array
- Improve duplicate message detection logic
2025-06-10 20:19:22 -07:00
fbarbu15
4997440225
chore: add reliability tests package with longevity tests (#2361)
* chore: add reliability tests package with longevity tests

* chore: add reliability tests package with longevity tests

* chore: fix ci errors

* chore: fix

* chore: fix timeout
2025-06-05 11:19:00 +03:00
Arseniy Klempner
49f26d89a8
Merge pull request #2397 from waku-org/fix/store-hash-query
fix(store): update store query validation logic to support msg hash q…
2025-06-03 14:26:57 -07:00
Arseniy Klempner
f649f59e64
fix: rebase package lock 2025-06-03 11:24:37 -07:00
Arseniy Klempner
5f63cb5bfb
fix: remove unnecessary comments from store validation
- Remove inline comments that explain obvious code behavior
- Keep only the reference URL comment which provides useful context
- Address review feedback about excessive commenting
2025-06-03 09:05:54 -07:00
Arseniy Klempner
2d92191029
fix: address review feedback for message hash tests
- Remove all console.log statements (8 instances)
- Update type usage from DecodedMessage[] to IDecodedMessage[]
- Replace assert.equal() with expect().to.equal() for consistency
- Import expect from chai alongside existing imports

These changes address all feedback from PR review without altering test logic.
2025-06-03 09:05:54 -07:00
Arseniy Klempner
9f7a15dfb1
fix(store): update store query validation logic to support msg hash queries 2025-06-03 09:05:54 -07:00
Sasha
1905558753
feat!: re-work messaging parts and sharding (#2399)
* remove message-hash package, move it to core

* add js-doc to message hash

* up

* address type changes

* fix lint
2025-06-03 11:08:02 +02:00
Danish Arora
16328a3f11
feat: enable/disable discoveries without defaultBootstrap: true (#2363)
* feat: enable/disable discoveries without defaultBootstrap: true

* chore: rm .only

* chore: don't redefine default discoveries object

* chore: don't export default const from library

* chore: rename discoveriesEnabled to discovery

* fix: rename

* address comments

* chore: reset default

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>

* chore: address comments

* chore: update tests

---------

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2025-05-30 16:27:00 +05:30
Arseniy Klempner
6d6e256fec
Merge pull request #2371 from waku-org/feat/browser-headless-test
feat: headless app and api for testing js-waku in browser
2025-05-29 11:38:08 -07:00
Arseniy Klempner
5ed35471ca
feat: headless app and api for testing js-waku in browser 2025-05-29 10:19:56 -07:00
Danish Arora
3b23bceb9d
feat: refine work with membership info and other meta information (#2341)
* chore: update definitions to match the ABI

* chore: improve exports and types

* chore: use big endian instead of little endian

* chore: improve logging

* chore: update import

* fix: use overloaded function call

* chore: estimate gas

* test

* npm i

* chore: regen locl

* chore: update

* chore: update playwright docker images

* chore: cannot erase membership if it isn't expired/in grace period

* chore: fix condition

* chore: add `getMembershipStatus` method

* refactor(rln): cache min/max rate limits at contract instantiation

* chore: fix accessor

* chore: rename arg

* chore: allow chromebin path through env
2025-05-29 16:09:08 +05:30
Sasha
a4dfd3455c
feat: event based approach to Filter (#2300)
* create new filter api

* implement await on main methods on new Filter

* add info logs in new filter

* add logs to subscription impl

* remove lint supress

* add unit tests

* introduce E2E tests

* update e2e tests and add case for testing filter recovery after nwaku nodes replacement

* add new test cases for max limits and enable decoders as array on new filter

* fix edge case testing, correct test cases

* skip test

* update error message

* up text

* up text

* fix lint

* implement unsubscribeAll

* add js-dock to new filter

* add cspell

* implement TTL set for message history
2025-05-28 00:44:44 +02:00
Arseniy Klempner
f85a476261
Merge pull request #2337 from waku-org/release-please--branches--master
chore: release master
2025-04-23 08:47:46 -07:00
Sasha
e22f211d46 chore: release master 2025-04-23 07:38:08 +02:00
Sasha
fa1beca7f1
chore: fix shard info for wss checker (#2373)
* feat: introduce WSS checker CI

* rename CI step

* specify nodejs

* try

* remove not needed dep

* use npx and fail on failure

* run by dispatch only and improve naming

* fix fail detection

* chore: fix shard info for wss checker
2025-04-22 18:47:20 +02:00
Arseniy Klempner
bb927424f4
Merge pull request #2359 from waku-org/fix/npm-audit-fix-2024-04-16
fix: npm audit without force
2025-04-22 08:27:25 -07:00
Arseniy Klempner
6456d09809
fix: npm audit without force 2025-04-22 08:11:02 -07:00
Arseniy Klempner
4da382d594
Merge pull request #2299 from waku-org/feat/sds-message-history
feat(sds): add retrieval hint to causal history
2025-04-22 08:05:41 -07:00
Arseniy Klempner
408be95a13
feat(sds): add retrieval hint to causal history 2025-04-22 07:45:05 -07:00
Arseniy Klempner
0826f32b69
feat(sds): adds ephemeral messages, delivered message callback and event 2025-04-22 07:41:52 -07:00
Arseniy Klempner
18e08f94df
Merge pull request #2302 from waku-org/feat/sds-ephemeral
feat(sds): adds ephemeral messages, delivered message callback and event
2025-04-22 07:38:28 -07:00
Arseniy Klempner
6b4848c853
feat(sds): adds ephemeral messages, delivered message callback and event 2025-04-22 07:16:14 -07:00
Sasha
e45736ff98
feat: introduce WSS checker CI (#2366)
* feat: introduce WSS checker CI

* rename CI step

* specify nodejs

* try

* remove not needed dep

* use npx and fail on failure

* run by dispatch only and improve naming

* fix fail detection
2025-04-18 22:51:07 +02:00
Sasha
fd2f5b7b8d
chore: up readme (#2367) 2025-04-18 20:44:22 +02:00
Sasha
551238006c
fix: health indicator properly handle peer:identify event (#2369) 2025-04-18 20:11:09 +02:00
Sasha
3038c48917
feat: introduce createDecoder and createEncoder on IWaku (#2352)
* feat: introduce createDecoder and createEncoder on IWaku

* add tests, refactor

* fix type
2025-04-14 10:46:47 +02:00
Sasha
163bea56c3
chore: skip flaky test due to nwaku bug (#2349)
* chore: skip flaky test due to nwaku bug

* return full test cases for lightpush
2025-04-11 18:30:28 +02:00
Sasha
3793e6f5c0
chore: update interop test suit for latest nwaku (0.35.1) (#2345)
* update Filter test suit, make service nodes connected to each other, remove single node Filter test suit, use 0.35 nwaku image

* update light push tests

* improve auto shard tests

* update static sharding test

* skip blocked tests

* fix test

* remove usage of pusubtopic with nwaku

* remove comment
2025-04-11 01:34:11 +02:00
Danish Arora
28f28d0d36
fix(rln): update types to match nwaku (#2339)
* chore: update types to match nwaku

* chore: add userMessageLimit // not in spec
2025-04-10 14:42:57 +05:30
Danish Arora
4adf8706c3
feat(rln): create CredentialsManager without Zerokit (#2295)
* chore: update ABI

* chore: update contract address and chain ID to Linea Sepolia

* chore: improve error handling

* fix: bigint conversion

* chore: update tests

* chore: clean comments

* chore: export keystore types

* chore: update README with contract address

* tests: add reusable mock functions

* chore: LINEA_CONTRACT instead of SEPOLIA_CONTRACT

* chore: add linea to cspell

* chore: add rateLimit to MembershipInfo

* fix: determine start options

* feat: RLNLight

* chore: fix

* chore: export

* fix: returns for ratelimit

* chore: big number conversions

* chore: rename RLNLight to CredentialsManager, add logs

* chore: setup and use rln_base_contract

* chore: use CredentialsManager for rln.ts

* chore: public methods written above private methods

* fix: rate limit getter

* chore: simplify getters/setters

* chore: insert empty line
2025-04-07 16:04:06 +05:30
Danish Arora
a8ff776962
chore(rln): update ABI and contract address to Linea Sepolia, enhancements (#2294)
* chore: update ABI

* chore: update contract address and chain ID to Linea Sepolia

* chore: improve error handling

* fix: bigint conversion

* chore: update tests

* chore: clean comments

* chore: export keystore types

* chore: update README with contract address

* tests: add reusable mock functions

* chore: LINEA_CONTRACT instead of SEPOLIA_CONTRACT

* chore: add linea to cspell

* chore: add rateLimit to MembershipInfo

* fix(tests): rate limit additions

* chore: update gitignore
2025-03-31 14:32:29 +05:30
Sasha
ea6daae927
chore: release master (#2311) 2025-03-24 14:41:33 +01:00
Sasha
1ee77c0423
fix: downgraid chainsafe (#2316)
* fix: downgraid chainsafe

* up lock

* up lock

* bump playwright

* add override section
2025-03-24 13:07:29 +01:00
fryorcraken
d27db21ba5
fix: do not use waku test fleet as default bootstrap (#2312)
The waku test fleet is unstable and should not be used as boostrap.

The issue is that DNS Discovery looks for "2" nodes and stop there. Meaning that if those "discovered" nodes are not reachable (ie, coming from test suite). js-waku does not connect.
2025-03-20 16:32:27 +01:00
Sasha
e0b8bd8c9c
chore: update release please and add packages (#2305) 2025-03-20 00:40:34 +01:00
Sasha
044da751bd
fix: npm action branch detection (#2308) 2025-03-19 11:55:59 +01:00
fryorcraken
edfb56243d
doc: build first to avoid not found deps issues (#2307)
* doc: build first to avoid not found deps issues

* fix: Remove XMLHttpRequest usage

XMLHttpRequest API is deprecated and not available in browser extensions.

Replace the culprit dependency with a more modern one.

Some options are removed. The assumption is that nobody uses them. It can always be added if a developer wants the flexibility.

* test: simplify test

The test focus on testing DNS Discovery, there is no need to also have a nwaku local node for bootstrap.

Bootstrap on nwaku local node is used in many other tests.
2025-03-19 09:43:41 +01:00
Sasha
c315b363c5
chore: update ci npm command (#2304) 2025-03-17 09:57:16 +01:00
Arseniy Klempner
8db7690233
Merge pull request #2293 from waku-org/feat/sds-sync
feat(sds): send and receive sync messages
2025-03-13 11:52:21 -07:00
Arseniy Klempner
13ae5d4f73
feat(sds): send and receive sync messages 2025-03-13 11:29:55 -07:00
Arseniy Klempner
5b3a256b4c
Merge pull request #2280 from waku-org/feat/sds-buffer-sweep
feat(sds): adds logic to sweep incoming and outgoing buffers
2025-03-04 07:01:23 -08:00
Arseniy Klempner
f7666a6588
feat(sds): adds logic to sweep incoming and outgoing buffers 2025-03-03 22:09:44 -08:00
Danish Arora
6fc6bf3916
feat(rln): migrate from v1 to v2, rate limiting, memberships, test coverage (#2262)
* chore: update ABIs and deployed address

* chore: remove storage contract references

* feat: upgrading adapter to basic rlnv2

* feat: rate limit

* chore: upgrade packages revert

* fix: tests

* chore: remove uneeded file

* feat(rln): implement RLNv2 rate limiting and membership states

- Add rate limit validation and handling in proof generation/verification
- Implement membership lifecycle state management (Active/GracePeriod/Expired)
- Add new membership management methods:
  - getMembershipInfo
  - extendMembership
  - eraseMembership
  - registerMembership
- Update proof verification to include rate limit checks
- Refactor message serialization to include rate limit data

Breaking changes:
- verifyWithRoots now takes roots as array instead of spread parameters
- Proof verification methods now accept optional rateLimit parameter

* fix: typo

* chore: add to cspell

* chore: reduce diff

* chore: simplify subdir for abi

* chore: address comments

* chore: simplify access to variables

* chore: address comments

* chore: simplify constants

* chore: add error handling

* chore: change rln v2 references to rln

* fix: check
2025-03-03 18:14:06 +05:30
Sasha
09108d9284
feat: enable auto start upon node creation (#2291)
* feat: enable auto start upon node creation

* update the state
2025-02-27 14:00:28 +01:00
Sasha
f199d92d60
feat: migrate to latest LightPush version (#2281)
* create retry manager

* update tests

* add retry manager tests, update peer manager

* fix start & merge with master

* return send to many logic

* add new error handling

* add sections to protocol errors

* fix check

* up test

* add waku.start in test

* fix check and test

* improve name
2025-02-25 22:40:03 +01:00
Sasha
0ede57f387
chore: simplify protocol creation (#2283)
* simplify protocol creation

* up relay

* fix check

* up size limit config
2025-02-25 18:41:32 +01:00
Sasha
87a918d9cc
chore: remove go-waku related code in tests (#2285)
* remove go-waku related code in tests

* remove not needed

* remove args level for go-waku
2025-02-25 17:56:55 +01:00
Arseniy Klempner
4cd1eea05a
Merge pull request #2261 from waku-org/feat/sds-participant-state
feat(sds): add message channel with buffers and send/receive logic
2025-02-21 15:23:32 -08:00
Arseniy Klempner
389ca4062e
feat(sds): add message channel with buffers and send/receive logic
This commit creates the class for an SDS message channel, including
buffers for outgoing and incoming messages. Adds logic for sending
messages, receiving messages, delivering messages, and reviewing
acknowledgement status of messages. Also adds byte serialization
for bloom filters.
2025-02-21 14:12:29 -08:00
Danish Arora
a3fb1d7a5b
Revert "chore: upgrade nwaku to 0.34.0 and update tests suite for compatibili…" (#2273)
This reverts commit 26ab836900d907b0ca185e6ad5fb6b3b548350fb.
2025-02-21 23:06:45 +01:00
Danish Arora
582c4e1c81
chore: sds and rln before tests (#2263) 2025-02-18 16:46:33 +05:30
Danish Arora
26ab836900
chore: upgrade nwaku to 0.34.0 and update tests suite for compatibility (#2170)
* chore: upgrade nwaku to v0.33.1

* chore: upgrade to nwaku 0.34.0

* feat: connect nwaku nodes amongst each other over relay

* chore(lightpush): use multiple service nodes for lightpush (instead of just one)
- nwaku now expects >=1 nodes at least connected

* chore: all single-node lightpush requests should now be expected to fail

* chore: update sharding tests

* chore: update tests

* chore: improve Docker network config reliability

* chore: deduplicate ecies encrypted payloads

* chore: update to precise expects

* fix: return early if expect passes

* chore: lightpush 5 times instead of 30

* fix: non duplicacy should happen in application-specific scenario

* chore: update mocha config + fix epehermal tests

* chore: reinstall deps after rebase

* chore: attempt stability for test suite

* fix: store tests to now use multiple nodes, delete uneeded test

* fix: memory leak

* chore: switch while loop with timeout-promise

* chore: remove redundant nodes startup

* chore: add delays for nwaku setup
2025-02-17 19:21:33 +05:30
Danish Arora
0a0a92bccb
feat: @waku/rln (#2244)
* chore: setup rln as a new package

* chore: migrate src

* fix: wasm loading, tests, config

* chore: fix Karma CI

* fix: bundler

* chore: copy dist resources

* chore(rln): enable all tests

* chore: increase karma timeouts
2025-02-11 15:28:00 +05:30
Danish Arora
becb46f3a5
chore(sds): use allure reporting (#2255) 2025-02-11 00:56:00 +05:30
Arseniy Klempner
053e4901e7
Merge pull request #2253 from waku-org/feat/sds-bigint-nimhashn
feat(sds): migrate bloomfilter to bigint and import hashn function from nim
2025-02-07 11:59:27 -08:00
Arseniy Klempner
be93e4b71f
feat(sds): migrate bloomfilter to bigint and import hashn function from nim
Uses an array of bigint to store sufficient bits in bloom filter.
Updates all arithmetic to explicitly cast to bigint where necessary.
Makes the hashn function for bloomfilter a parameter.
Adds an implementation of hashn generated using nim compiler.
Adds tests.
2025-02-05 17:27:41 -08:00
Sasha
3136f3a704
feat: add HealthIndicator with simplified logic and testing (#2251)
* implement HealthIndicator

* up libp2p interface version

* up lock

* remove unused tests

* expose HealthIndicator from Waku

* update test, add start and stop

* fix error handling
2025-02-05 13:24:50 +01:00
Sasha
fc93fae873
feat: move Peer to PeerId (#2246)
* feat: move Peer to PeerId

* up tests

* update tests
2025-02-05 11:21:22 +01:00
fbarbu15
2a7f4b6e86
chore: add back allure (#2247) 2025-02-03 13:59:55 +05:30
Sasha
62f93dc842
feat: improve peer manager and re-integrate to light push (#2191)
* up lock

* make ConnectionManager use ctor

* reform connection manager configurations

* remove log param from peerManager

* make PeerManager use only ConnectionManager, move getPeers to ConnectionManager, remove not needed code

* remove allPeers and connectedPeers from BaseProtocolCore, update tests, add getPeers for IWaku

* use only one peerManager from Waku object

* remove IBaseProtocolSDK and merge with PeerManager

* re-implement peerManager, remove ProtocolUseOptions

* remove not needed test, up lock

* update deps and lock

* remove old test for peerManager, fix check and spell

* rename to getConnectedPeers

* feat: improve filter subscriptions (#2193)

* add message cache to Filter

* remove WakuOptions and use only ProtocolCreateOptions

* move subscribe options to createLightNode Fitler protocol options

* rename SubscriptionManager to Subscription

* rename to CreateNodeOptions

* add warning

* feat: introduce subscription manager (#2202)

* feat: inroduce subscription manager

* fix: make pipeline succeed (#2238)

* fix test

* use hardcoded value

* update playwright

* fix test:browser

* up lock

* make peer retrieval probabilistic

* add comments

* up lightpush tests

* add tests for peer_manager, improve folder structure

* create named files for protocols

* create named files, simplify project structure

* remove only
2025-01-31 00:16:00 +01:00
Ivan FB
d706fe146c
replace pubsub topic param with clusterid plus shard (#2239)
We are in the process of deprecating pubsub-topic param from nim-waku.
The pubsub-topic shouldn't be used to start nim-waku and instead, a
combination of 1 cluster-id plus n shard should be given. This aims to
start using the new added param: shard.
2025-01-30 18:16:07 +05:30
Arseniy Klempner
6abd2d18a1
Merge pull request #2233 from waku-org/feat/init-sds
feat(sds): create package for sds and add protobuf def
2025-01-29 11:48:29 -08:00
Arseniy Klempner
468512fa85
feat(sds): create package for sds and add protobuf def
Adds a new package for the browser implementation of scalable data
sync. Ports some of the nim implementation of bloom filter to ts.
Adds protobuf definition for SDS messages.
2025-01-28 18:53:41 -08:00
Danish Arora
f2ce43c7d9
chore: remove log level to make logs readable in the CI (#2237) 2025-01-28 20:43:39 +05:30
Danish Arora
4153396014
feat(store): allow specifying node to use (#2192)
* feat: API allows using specific nodes for protocol

* chore: dial provided now

* chore: store uses the node

* chore: update API

* chore: use protocol-level class for getting peer

* chore: use ConnectionManager for dial ops

* chore: address comments

* chore: fix type error

* chore: Waku.dial() proxies through ConnectionManager.dialPeer

* chore: fix dial

* chore: add ts-doc for dialPeer()

* chore: remove log

* chore: reduce ts-doc for an internal function

* chore: address comments

* chore: return types from connmanager.dialpeer()

* chore: reduce diff by not introducing breaking changes
2025-01-28 17:57:49 +05:30
Danish Arora
a73dd4f083
chore: improve naming for test reports job (#2234) 2025-01-28 16:24:16 +05:30
Danish Arora
e7bb092fac
chore: upgrade upload-artifacts (#2221) 2025-01-28 15:44:07 +05:30
Danish Arora
f3aed7074b
chore: switch out of allure reporters (#2222)
* chore: switch out of allure

* chore: fix config

* fix: test file patterns
2025-01-27 21:14:34 +05:30
Sasha
4b28f250e3
chore: update issue templates (#2206)
* feat: update issue templates

* remove old issue template, add new pull request template
2025-01-16 14:57:14 +01:00
Sasha
f34fc4b244
fix: remove peer deps (#2200) 2025-01-16 14:27:46 +01:00
Sasha
b5d2c013a1
fix access to process variable (#2201) 2025-01-16 13:32:40 +01:00
Danish Arora
ef78e52c45
fix: CI browser/karma (#2204)
* fix: browser tests

* chore: remove redundant replacement
2025-01-16 12:52:08 +05:30
Sasha
88e33a90fd
fix: remove window reference and improve waitForRemotePeer (#2194)
* fix: remove window reference and improve waitForRemotePeer

* remove only

* up lock

* debug: try * as version

* return version

* up lock
2024-11-08 12:34:31 +07:00
Danish Arora
7c0ce7b2ec
chore: upgrade to libp2p v2 (#2143)
* chore: upgrade libp2p to v2 and related deps

* chore: fix ENR

* chore(core): remove CustomEvent polyfill import

* chore: `peer-id-factory` has been removed

* chore(discovery): fix local-cache & remove CustomEvent imports

* chore(sdk): update config

* chore(tests): update tests without peer-id-factory

* fix: spec tests

* chore: fix test

* chore: upgrade dataset-core

* chore: upgrade libp2p and stale references

* chore: upgrade playwright

* chore: rm console log

* fix: lock
2024-10-21 16:43:24 +05:30
Sasha
c591e6d294
chore: release master (#2135) 2024-10-17 14:06:38 +02:00
Sasha
ded994f8ec
fix: attempt to fix some of the Filter issues (#2183)
* feat: lighten retry logic for LightPush

* update tests

* remove base protocol sdk from light push, add unit tests for light push

* remove replaced test

* ensure numPeersToUse is respected

* turn off check for missing messages

* fix recurring ping

* add useful logs

* skip tests

* remove comment

* feat: check filter subscriptions against lightPush (#2185)
2024-10-17 01:01:21 +02:00
Sasha
4049123f14
feat!: lighten retry logic for LightPush (#2182)
* feat: lighten retry logic for LightPush

* update tests

* remove base protocol sdk from light push, add unit tests for light push

* remove replaced test

* ensure numPeersToUse is respected

* skip tests
2024-10-17 00:49:24 +02:00
Danish Arora
19a5d29aa7
chore: change filter ping interval to 1 min (#2184) 2024-10-16 15:30:56 +05:30
Danish Arora
b2efce5ec2
feat(filter): enhancing protocol peer management with mutex locks (#2137)
* chore: improvements

* chore: add logs for subscription maintenance

* chore: update logging

* chore: trimming down BaseProtocolCore

* chore: track peers in a hashmap instead of array

* chore: peer mgmt responds to conenction/disconnection and improve logging

* feat: add mutex locks to tackle race conditions over shared state

* fix: build

* chore: some mutex lock-release improvements

* feat: peer manager

* chore: rm tests for remove internal util

* chore: update HealthManager updates

* chore: update tests

* rm: only

* fix: hasPeers management

* chore: add modularity to getting connected peers

* chore: improve logs & add debug

* chore: renewal doesnt disconnect, only removes

* chore: await for sequential operations

* chore: add TODO

* chore: minor improvements

* chore: fix rebase

* chore: update playright

* chore: remove additional arg

* chore: update interafce

* feat(peer-manager): unit tests

* chore: improve hasPeers()

* chore: update lockfile

* feat: Filter reacts to peer:disconnect event, add tests

* chore: fix lock

* chore: update playright

* chore: update protocol health for lightpush

* chore: remove .only

* chore: address comments and improvements

* fix: tsconfig
2024-10-10 23:47:12 +02:00
Sasha
75fcca4cd9
feat: replace waitForRemotePeers() with waku.waitForPeer() method (#2161)
* fix comment of default number of peers

* export default number of peers from base protocol sdk

* rename to light_push, move class to separate file

* move waitForRemotePeer to sdk package

* add todo to move waitForGossipSubPeerInMesh into @waku/relay

* clean up waitForRemotePeer, split metadata await from event and optimise, decouple from protocol implementations

* simplify and rename ILightPush interface

* use only connected peers in light push based on connections instead of peer renewal mechanism

* improve readability of result processing in light push

* fix check & update tests

* address tests, add new test cases, fix racing condition in StreamManager

* use libp2p.getPeers

* feat: confirm metadata and protocols needed in waitForRemotePeer

* rely on passed protocols and fallback to mounted

* add I prefix to Waku interface

* implement waku.connect method

* add docs to IWaku interface

* remove export and usage of waitForRemotePeer

* move wait for remote peer related to Realy out of @waku/sdk

* change tests to use new API

* fix linting

* update size limit

* rename .connect to .waitForPeer

* export waitForRemotePeer and mark as deprecated

* feat: add mocha tests to @waku/sdk and cover waitForRemotePeer (#2163)

* feat: add mocha tests to @waku/sdk and cover waitForRemotePeer

* add waitForRemote UTs

* remove junk

* feat: expose peerId and protocols from WakuNode (#2166)

* chore: expose peerId and protocols from WakuNode

* remove unused method

* move to private method

* rename to waitForPeers

* up test
2024-10-09 00:43:34 +02:00
Sasha
d37e0245cf
feat: confirm metadata and protocols needed in waitForRemotePeer (#2160)
* fix comment of default number of peers

* export default number of peers from base protocol sdk

* rename to light_push, move class to separate file

* move waitForRemotePeer to sdk package

* add todo to move waitForGossipSubPeerInMesh into @waku/relay

* clean up waitForRemotePeer, split metadata await from event and optimise, decouple from protocol implementations

* simplify and rename ILightPush interface

* use only connected peers in light push based on connections instead of peer renewal mechanism

* improve readability of result processing in light push

* fix check & update tests

* address tests, add new test cases, fix racing condition in StreamManager

* use libp2p.getPeers

* feat: confirm metadata and protocols needed in waitForRemotePeer

* rely on passed protocols and fallback to mounted

* imrpove iteration for existing connections

* address protocol adverisement in CI

* add protocols needed

* add missing protocols

* make lightpush and filter default for tests

* up
2024-10-05 01:49:54 +02:00
Sasha
2be0e81a0a
chore: rename IProtocolSDK interfaces to IProtocol naming convention (#2159)
* chore: rename IProtocolSDK interfaces to IProtocol
2024-10-04 13:53:54 +02:00
Sasha
1d68526e72
feat(lightPush): improve peer usage and improve readability (#2155)
* fix comment of default number of peers

* export default number of peers from base protocol sdk

* rename to light_push, move class to separate file

* move waitForRemotePeer to sdk package

* add todo to move waitForGossipSubPeerInMesh into @waku/relay

* clean up waitForRemotePeer, split metadata await from event and optimise, decouple from protocol implementations

* simplify and rename ILightPush interface

* use only connected peers in light push based on connections instead of peer renewal mechanism

* improve readability of result processing in light push

* fix check & update tests

* address tests, add new test cases, fix racing condition in StreamManager

* use libp2p.getPeers
2024-10-04 10:50:58 +02:00
Sasha
b93134a517
fix: peer renewal connection drop & stream management (#2145)
* fix: peer renewal connection drop

* fix stream manager

* fix over iteration during stream creation

* remove timeout and use only open peers

* add logs

* refactor code, add tests

* debug test

* up debug

* remove debug, supress check for timestamps

* remove only

* add more debug

* remove debug

* remove check for timestamps
2024-10-01 12:54:55 +02:00
chair
3e821591c9
Merge pull request #2142 from waku-org/chair28980-update-codeowners-20240917
chore: Update CODEOWNERS to reference correct team
2024-09-17 23:42:08 -07:00
chair
1ed9ca5b33
Update CODEOWNERS to reference correct team 2024-09-17 21:57:54 -07:00
Danish Arora
7a6247cb70
feat(lightpush): introduce ReliabilityMonitor and allow send retries (#2130)
* chore: restructure reliabiltiy monitors

* feat: setup sender monitor

* chore: update tests

* chore: minor fixes

* chore: comment for doc
2024-09-17 11:34:59 +05:30
Danish Arora
7ad1d321ca
feat(filter): reliability monitor as a separate class to handle reliability logic (#2117)
* chore: move SubscriptionManager to a separate file

* feat: introduce ReliabilityMonitor

* fix: peer data updates

* fix: logical error when returning includesMessage

* chore: handle edge case

* chore: move ping failures handling inside monitor

* chore: move renewal logic to monitor

* chore: improve structuring

* chore: update logger

* chore: readd connectionListener() logic from merge

* chore: minor fixes

* chore: improve

* chore: setup destruction of ReliabilityMonitors

* fix: condition for ping failure

* fix: setters

* chore: handle race condition & fix test
2024-09-13 14:57:29 +05:30
Danish Arora
9d9a696024
chore: mandate .js extensions for imports (#2128)
* feat: add eslint rule

* chore: update codebase import extensions
2024-09-13 14:18:29 +05:30
Sasha
a2c5dba32d
chore: release master (#2122) 2024-09-06 01:42:16 +02:00
Sasha
0263cb80c5
fix: improve node bootstrapping (#2121)
* fix: improve node bootstrapping

* implement dns discovery on failed dials

* update const to match RFC

* up
2024-09-06 01:10:54 +02:00
Sasha
f4b6bb04b3
fix: temporarily remove peer cross dependencies (#2123)
* chore: temporarily remove peer cross dependencies

* up lock

* add missing dep
2024-09-06 00:44:59 +02:00
Sasha
5d3cc5fd45
fix: filter missing messages (#2119)
* bug: fix filter missing messages

* fix keep alive

* fix const
2024-09-03 00:59:21 +02:00
Sasha
5cfe9327b6
chore: remove relay from sdk package (#2040)
* remove full node

* remove relay from sdk

* comment node counter check

* try using logline

* up comment
2024-08-31 15:18:51 +02:00
Sasha
f9361bf774
chore: release master (#2066) 2024-08-29 11:49:04 +02:00
Sasha
a022433851
feat(lightpush)!: return new error messages (#2115)
* feat: return new error messages

* fix test, remove unused

* up

* up

* rollback

* up test
2024-08-29 11:20:19 +02:00
Sasha
eadb85ab83
feat: offline state recovery for Filter subscription (#2049)
* up

* fix window reference

* add tests

* up

* add e2e renew test

* address comments

* remove unused

* add test

* try

* remove only

* up test

* up

* remove only

* add tmp logs, use before/after hooks

* up

* fix check

* remove only

* fix test

* up
2024-08-28 18:00:18 +02:00
Sasha
71384dfdfd
chore: change amount of used peers to 2 (#2111)
* chore: change amount of used peers to 2

* up

* up

* up tests
2024-08-27 21:53:16 +02:00
chair
f0a5c6f056
chore: update add-action-project.yml (#2114) 2024-08-27 11:11:35 +02:00
Danish Arora
69b6612ec9
chore: upgrade node to LTS 20 (#2110)
* chore: upgrade nodejs to new LTS 20

* chore: update other references
2024-08-23 15:57:20 +05:30
Sasha
8f56d90cf1
fix: import of base_protocol and networkConfig type guard (#2109)
* bug: fix import

* fix type guard
2024-08-23 11:44:55 +02:00
Sasha
c33844eddf
chore: update husky to new api (#2102) 2024-08-22 18:01:29 +02:00
Sasha
2beb359cef
chore: enabile back filterAll if set by consumer (#2103) 2024-08-22 15:55:29 +02:00
Danish Arora
409642d7d3
chore: upgrade libp2p and related packages (#2084)
* chore: upgrade libp2p and related packages

* fix: public key on peer id can now be undefined

* chore: upgrade remainder packages

* chore: fix tests

* chore: address comments

* chore: upgrade playwright and proto
2024-08-14 04:23:04 +05:30
Danish Arora
5ce36c8f18
feat!: deprecate named pubsub topics and use static/auto sharding (#2097)
* feat: deprecate named sharding & protocols adhere
simplify network config type, all protocols use pubsub topic internally

* chore: update tests

* tests: rm application info

* chore: use static sharding and auto sharding terminologies

* chore: update docs for network config

* chore: update interfaces

* tests: update tests error message

* chore: remove `ShardingParams` type and fix test
2024-08-13 05:23:20 +05:30
Danish Arora
86f730f958
feat!: store v3 (#2036)
* feat: write proto

* chore: move store v2 to a subdir

* chore: update v3 proto

* feat: create custom RPC

* feat: implement storev3 core

* chore: set store v3 as default

* chore: move v2 related code

* chore: update v2 imports

* feat: add store-v3 sdk implementation

* fix: rebase

* chore: add ts-doc for store query request params

* chore: update tests for new API

* fix: use nanoseconds instead of millisecond for timerange

* chore: improve store

* chore: remove store v2

* chore: update tests

* chore: fix legacy imports & proto

* tests: remove manual reversal as its part of the API, update incorrect cursor error msg

* chore: update default page size

* chore: account for MAX_PAGE_SIZE from nwaku

* fix: test

* fix: sorting tests
2024-08-06 12:06:37 +05:30
Danish Arora
fdd9dc44a4
feat(filter)!: new simpler filter API (#2092)
* chore: rename IReceiver subscribe

* feat!: new `subscribe() API that only takes in decoders and callback

* chore: `to_async_iterator` uses new function name

* chore: make `createSubscription` private, and shorten error handling

* chore: update subscribe return type

* tests: use new API

* fix: tests
2024-08-05 15:52:58 +05:30
Danish Arora
fea4f2577b
chore(message-hash): use timestamp in nanoseconds instead of milliseconds (#2094)
* chore: convert timestamp from miliseconds to nanoseconds

* chore: test against hash accounting for nanoseconds instead of milliseconds
the hash used was calculated using timestamp in milliseconds, instead of nanoseconds (not part of the RFC test vectors)Y
2024-08-01 15:19:35 +05:30
Danish Arora
33a9172bbb
chore: upgrade nwaku to 0.31 (#2091)
* chore: upgrade nwaku to 0.31

* tests: fix tests by removing reliance on named sharding
2024-08-01 14:33:42 +05:30
Danish Arora
d464af3645
feat: node and protocols health (#2080)
* feat: introduce HealthManager

* feat: make health accessible on Waku object

* feat: update health from protocols

* chore: add access modifiers to healthmanager

* feat: use a HealthManager singleton

* chore: add tests for Filter, LightPush and Store

* feat: add overall node health

* chore: update protocol health to consider Store protocol

* chore: setup generic test utils instead of using filter utils

* tests: add a health status matrix check from 0-3

* chore: increase timeout for failing tests in CI
tests pass locally without an increased timeout, but fail in CI

* chore: move name inference to HealthManager

* tests: abstract away node creation and teardown utils

* fix: import
2024-07-27 18:27:54 +05:30
Danish Arora
defe41bb9a
feat(peer-exchange): support continuous peer information updates (#2088)
* feat(peer-exchange): update peer info if new is found

* chore: move diff checking logic to a private function

* chore: add tests

* chore: increase verbosity for mulltiaddr

* chore: use merge for metadata nad patch for multiaddrs

* chore: use peerId from peerInfo

* chore: remove unused import
2024-07-26 17:14:55 +05:30
gabrielmer
08fc2d133a
chore: changing default pubsub topic to its static sharding version (#2083)
* changing default pubsub topic to its static sharding version

* keeping RFC's Waku Message test vectors

* reverting change in changelog

* setting pubsub topic when creating nwaku node

* adding shardInfo to runMultipleNodes call

* adding shardInfo to runMultipleNodes call in lightpush tests

* add pubsub topics to nwaku.start

* get rid of it.only that remained

* fixing compliance tests

* setting clusterId to 0

* removing unnecessary fix

* adding shardInfo when creating nodes

* fixing wait for remote peer tests

* fixing peer exchange test

* refactor

* removing unnecessary variable

* feat: create default shard info, update tests (#2085)

* feat: create default shard info, update tests

* add link

* fix tests

* remoe only

* up tests

* up test

---------

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2024-07-26 00:21:52 +02:00
Sasha
04bd518210
chore: remove content_topic specific API (#2081) 2024-07-23 17:25:36 +02:00
Danish Arora
a739ada33a
chore(peer-exchange): use an event listener to gauge if the service is mounted (#2071)
* chore: use service mounted event listener

* chore: update event name

* chore: change event name to isStarted

* chore: address comments
2024-07-22 18:01:15 +05:30
Sasha
2b02f829c2
chore: throw if more than one network config is passed (#2056)
* chore: throw if more than one network config is passed

* up

* update init

* up message

* improve project structure

* address nit
2024-07-19 19:35:00 +02:00
Danish Arora
169a09d552
chore: enforce access modifiers (#2068)
* feat: introduce eslint flag

* chore: update logger

* chore: update enr

* chore: update core

* chore: update sdk

* chore: update relay

* chore: update discovery

* chore: update message-encryption

* chore: update tests

* chore: fix modifiers

* chore(tests): fix access modifiers

* chore: fix rebase
2024-07-19 15:58:17 +05:30
Danish Arora
9b0f1e855a
feat: validate messages for individual filter nodes & perform renewals (#2057)
* feat: validate messages for individual filter nodes & perform renewals

* chore: fix spell check

* chore: use a max threshold before peer renewal

* chore: switch from a validation cycle timer to adhoc validation

* chore: add test

* fix: test

* chore: address comments

* fix: renewal without a new peer available

* chore: validating messages should be non-blocking

* chore: minor improvements

* chore: rm only

* chore: fix test
2024-07-18 00:41:21 +05:30
Sasha
00635b7afe
feat: fix peer renewal, change Filter keep alive (#2065)
* move util, create stream manager folder

* change default keep alive, improve peer renewal

* address nit
2024-07-16 18:35:24 +02:00
Sasha
09a81302c1
chore: bump @waku peer dependencies (#2062) 2024-07-16 12:00:36 +02:00
dependabot[bot]
c0c2907131
chore(deps)(deps): bump fast-check from 3.17.1 to 3.19.0 (#2060)
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check) from 3.17.1 to 3.19.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.19.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>
2024-07-11 23:51:25 +05:30
dependabot[bot]
14f84017be
chore(deps)(deps): bump sinon from 17.0.1 to 18.0.0 (#2058)
Bumps [sinon](https://github.com/sinonjs/sinon) from 17.0.1 to 18.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v17.0.1...v18.0.0)

---
updated-dependencies:
- dependency-name: sinon
  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>
2024-07-10 21:34:26 +05:30
Sasha
ccdf84e593
chore: release master (#2004)
reliability improvements
2024-07-10 17:25:22 +02:00
Danish Arora
318667e442
feat(filter): peer/subscription renewal with recurring Filter pings (#2052)
* chore: renewPeer() returns the new found peer

* feat: ping & peer renewal

* chore: add tests

* fix: tests

* chore: remove only

* chore: remove comments

* chore(tests): decrease timeout

* chore: add array index validation

* chore: remove only

* chore: move defaults into a separate variable

* chore: update lightpush with new API

* chore: include peer renewals within `ping` instead of `interval`

* chore: update tests

* chore: add new test

* chore: address comments
2024-07-10 15:34:16 +05:30
dependabot[bot]
68590f0a3d
chore(deps)(deps-dev): bump serve from 14.2.1 to 14.2.3 (#2041)
Bumps [serve](https://github.com/vercel/serve) from 14.2.1 to 14.2.3.
- [Release notes](https://github.com/vercel/serve/releases)
- [Commits](https://github.com/vercel/serve/compare/14.2.1...14.2.3)

---
updated-dependencies:
- dependency-name: serve
  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>
2024-07-10 02:48:19 +02:00
Danish Arora
4db508b962
feat(filter): use protocol peer management (#2047)
* feat: leverage protocol peer management

* chore: add test

* chore: address comments

* chore: add todo
2024-07-03 12:09:34 +05:30
Danish Arora
42126a6301
chore: upgrade nwaku to 0.29.0 (#2042) 2024-06-20 11:30:55 -04:00
Danish Arora
93e78c3b87
feat(lightpush): peer management for protocols (#2003)
* chore: make `dropConnection` to be a public function

* feat: peers are maintained for protocols
- passes `ConnectionManager` to ProtocolSDK to allow disconnecting from within protocol
- maintains `numPeersToUse` for each protocol within BaseProtocolSDK

* fix: pass options to protocols

* chore: update interfaces to allow public access

* chore: improve logging on protocol

* fix: renew peer upon failure

* chore(tests): allow DefaultPubsubTopic

* feat(lightpush): write peer management tests

* chore: rename test

* feat: add lock to `maintainPeers()` to handle parallelisation of requests
fixes parallelisation of lightpush.send() requests

* fix: concurrent lightpush requests

* fix: test & improve peers fetching

* chore: use getter

* address comments

* chore: smaller improvements

* feat: attempt to improve time for first lightpush.send()

* chore: use `window.interval` for type-safety

* chore: remove delays

* feat: add autoRetry

* feat: `forceUseAllPeers` to wait for all connected peers to be resoled
2024-06-19 01:52:16 -04:00
dependabot[bot]
69f9045bed
chore(deps)(deps-dev): bump expo from 50.0.14 to 51.0.14 (#2038)
Bumps [expo](https://github.com/expo/expo/tree/HEAD/packages/expo) from 50.0.14 to 51.0.14.
- [Changelog](https://github.com/expo/expo/blob/main/packages/expo/CHANGELOG.md)
- [Commits](https://github.com/expo/expo/commits/HEAD/packages/expo)

---
updated-dependencies:
- dependency-name: expo
  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>
2024-06-18 16:12:48 -04:00
Danish Arora
984fb94b5b
fix: failing node_optional check (#2025)
* chore: remove predefine nodes list

* remove import

* chore: update & fix test

* chore: remove console logs
2024-06-18 13:43:22 -04:00
Danish Arora
16e9116c7c
fix: bootstrapping with default pubsub topic (#2031)
* fix: bootstrapping into default pubsub topic

* chore: update tests

* chore: update TODO with GH issue

* chore: rename fleets

* feat: use TWN fleets, or wakuv2.prod if DefaultPubsubTopic

* chore: update imports for enrtree
2024-06-06 12:55:57 -04:00
fbarbu15
c5302fd0c8
remove try catch no longer needed after 1790 got fixed (#2026) 2024-05-30 21:29:16 +05:30
gabrielmer
2311a595b2
fix: increasing maxInboundStreams for lightpush from 32 to 100 (#2021)
* increasing maxInboundStreams for lightpush from 32 to 100

* allowing test to fail
2024-05-30 13:58:50 +05:30
Danish Arora
e49e7289ae
chore: improve StreamManager (#1994)
* chore: improve stream manager

* chore: some cleaning

* chore: update API

* chore: rename `getConnectionStatus` to `isConnected`

* chore: use throw/catch

* chore: remove await

* remove redundant function and rename

* chore: increase test timeout
2024-05-14 16:31:38 +05:30
Arseniy Klempner
6f188ef379
fix: add .js to base protocol import in filter sdk (#2009) 2024-05-14 13:06:10 +05:30
Arseniy Klempner
f78495a5a2
Merge pull request #1997 from waku-org/feat/docker-sepolia-rpc
feat: add rpc url to nwaku, persist rln tree in docker and ci
2024-05-13 09:41:04 -07:00
Arseniy Klempner
aad819bb1f
feat: add rpc url to nwaku, persist rln tree in docker and ci 2024-05-13 07:42:08 -07:00
Danish Arora
4eb06c64eb
feat(filter)!: return error codes instead of throwing errors (#1971)
* move protocol result type to interfaces

* chore: update type names for verbosity

* feat(filter-core): convert error throws to return types

* chore: update types & imports

* update Filter API

* chore: update createSubscription

* chore: update imports & rename

* chore: update all tests

* chore: resolve conflicts & merge (2/n)

* chore: resolve conflicts & merge (3/n)

* chore: resolve conflicts & merge (4/n)

* chore: resolve conflicts & merge (5/n)

* chore: resolve conflicts & merge (6/n)

* chore: use idiomatic approach

* chore: fix tests

* chore: address comments

* chore: fix test

* rm: only
2024-05-09 16:51:08 +05:30
Arseniy Klempner
5df41b0adf
fix: add shard arg to nwaku in peer management tests (#2005) 2024-05-09 10:25:35 +02:00
Arseniy Klempner
21aa22f320
Merge pull request #1989 from waku-org/fix/transport-filter-wss
fix: filter for wss in libp2p websocket transport
2024-05-06 16:45:57 -07:00
Arseniy Klempner
682cc66232
fix: filter for wss in libp2p websocket transport 2024-04-30 20:18:11 -07:00
Sasha
3d92f194a7
chore: release master (#1957) 2024-04-30 17:50:00 +02:00
Sasha
e5293356d8
feat: make message hash compatible with decoded message (#1993)
* feat: make message hash compatible with decoded message

* add util fn

* fix test

* up hashes

* up
2024-04-30 15:37:10 +02:00
Sasha
5b03709dfe
feat: lift contentTopics and make shardInfo mandatory for createLight… (#1959)
* feat: lift contentTopics and make shardInfo mandatory for createLightNode

* add default shard info and wanring

* fix

* fix lint

* fix

* fix types

* remove breaking changes
2024-04-30 01:47:45 +02:00
Arseniy Klempner
fb34b7262a
fix: only override ping metadata in peer store (#1984)
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2024-04-30 00:39:02 +02:00
Sasha
1a6bc4f8ce
feat: add keep alive to Filter (#1970)
* fix: use pubsubTopic from current ones if not set

* fix: improve type on dial method

* enforce same pubusb on filter.subscribe, make content topic to pubsub mapping default for decoder / encoder

* fix mapping problem

* update tests

* add error handling

* fix typo

* up lock

* rm lock

* up lock

* remove only

* feat: implement keep alive for filter subscription

* remove

* address comments
2024-04-29 23:31:09 +02:00
Arseniy Klempner
bc98b4fb0d
Merge pull request #1987 from waku-org/feat/max-inbound-ping
feat: add libp2p option for max ping connections
2024-04-29 08:58:09 -07:00
Arseniy Klempner
fa523b78af
feat: add libp2p option for max ping connections 2024-04-29 08:21:37 -07:00
Danish Arora
73d4f19746
fix(message-hash): account for timestamp (#1986)
* fix: message-hash algo + tests

* rm: only

* chore: move numberToBytes to utils package

* chore: shorten implementation
2024-04-29 15:35:23 +05:30
gabrielmer
1562f0fd6f
debug: fixing peer exchange tests (#1990)
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2024-04-29 11:22:36 +02:00
Sasha
f3627c46a4
feat!: use ShardingParams on subscriptions, make Decoder/Encoder auto sharding friendly by default (#1958)
* fix: use pubsubTopic from current ones if not set

* fix: improve type on dial method

* enforce same pubusb on filter.subscribe, make content topic to pubsub mapping default for decoder / encoder

* fix mapping problem

* update tests

* add error handling

* fix typo

* up lock

* rm lock

* up lock

* remove only

* fix content topic

* fix ephemeral test

* fix filter unsubscribe test

* up utils

* fix subscribe test

* up interfaces and filter api

* remove only

* up ping test

* fix subscribe test

* fix push test

* fix lightPush

* fix multiple pubsub

* remove only, fix subscribe filter test

* remove only

* fix cluster ID selection and named sharding subscription test

* fix unsubscribe test

* fix light push test

* fix light push test

* fix push test

* fix relay publish

* create runNode and fix relay tests

* generalize runNodes, fix some tests

* fix store tests

* fix toAsyncIterator tests

* remove only

* fix lightPush

* use generics

* try fix test

* run failing tests

* remove only

* address failed tests, remove DefaultPubsubTopic dependency in some tests
2024-04-28 11:15:17 +02:00
fbarbu15
86249dfe29
fix: unskip shard 0 test fixed by 1874 (#1978) 2024-04-25 15:22:16 +05:30
Arseniy Klempner
66081d6c95
Merge pull request #1885 from waku-org/fix/encoder-cluster-id
fix: use correct shard index when creating encoder
2024-04-24 20:57:16 -07:00
Arseniy Klempner
9514653428
fix: use correct shard index when creating encoder 2024-04-24 18:40:17 -07:00
Arseniy Klempner
3b0f330b02
Merge pull request #1976 from waku-org/fix/history-error-code
fix: use correct error message for store rate limit
2024-04-24 18:03:18 -07:00
Arseniy Klempner
6990e6f4e0
fix: use correct error message for store rate limit 2024-04-24 15:00:26 -07:00
fbarbu15
7ee02faf48
chore: use nwaku:v0.27.0 and adjust tests for it (#1975)
* use nwaku:v0.27.0 and adjust tests for it

* fix sharding tests
2024-04-24 21:30:55 +02:00
gabrielmer
80a9525157
fix: adding delay between dials (#1973)
* fix: adding delay between dials

* removing comment
2024-04-24 19:18:33 +03:00
Danish Arora
5fb100602b
chore(lightpush)!: move protocol implementation to @waku/sdk (1/n) (#1964)
* chore: decouple `Filter` between `core` and `sdk`
moves `SubscriptionManager` to `sdk` side

* chore: update package dependencies
also update peer deps in sdk

* chore: update imports

* chore: update tests

* chore(side-change): update lightpush

* chore: update size-limit import

* chore(sdk): update dependencies
2024-04-19 17:20:34 +05:30
Guru
e5e8cd5e17
fix: add try catch to local store (#1956) 2024-04-12 17:04:48 +02:00
Arseniy Klempner
4607d9ea86
Merge pull request #1952 from waku-org/fix/missing-history-error-values
fix: Added missing values for HistoryError to be sync with nwaku
2024-04-10 08:55:56 -07:00
NagyZoltanPeter
aa3ce1fc40
Added missing values for HistoryError to be sync with nwaku 2024-04-09 15:11:20 +02:00
Sasha
6758265021
chore: remove forced version config (#1944)
* chore: bump discovery

* chore: initialize new packages from 0.0.0

* chore: force release version

* chore: remove forced version config
2024-04-09 14:44:55 +03:00
Sasha
01a99ce33c
chore: release master (#1950) 2024-04-09 14:11:20 +03:00
Sasha
8763173d2e
fix: make rollup replace env var (#1951)
* fix: make rollup replace env var

* up version

* up package name

* up name

* update replace pattern
2024-04-09 13:43:28 +03:00
Sasha
efe9b8d794
chore: update release-please config and fix missing dependency on discovery (#1948) 2024-04-09 10:04:51 +03:00
Sasha
0616d8267f
chore: force release version (#1943)
* chore: bump discovery

* chore: initialize new packages from 0.0.0

* chore: force release version
2024-04-08 10:41:11 +03:00
Sasha
39c817cc10
chore: initialize new packages from 0.0.0 version (#1941)
* chore: bump discovery

* chore: initialize new packages from 0.0.0
2024-04-08 10:07:18 +03:00
Sasha
0683e90930
chore: bump discovery (#1939) 2024-04-08 09:22:39 +03:00
Sasha
db86d83936
chore: set release version of ReactNative pollyfills (#1937) 2024-04-07 15:39:50 +03:00
Anton Iakimov
9f2c0ed6b5
chore: switch wakuv2 fleet to waku (#1910)
* chore: switch from decomissioned wakuv2 fleet

* chore: minor fixes + CI

* chore: fix eslint

* fix: eslint

* chore: fix test

---------

Co-authored-by: danisharora099 <danisharora099@gmail.com>
2024-04-07 15:21:00 +03:00
Danish Arora
86058c59a1
chore: remove stale references to deprecated packages (#1936) 2024-04-07 14:19:47 +03:00
Danish Arora
8ec11b2cde
chore: bump protons (#1898)
* regen lockfile

* commit new proto code

* chore: upgrade protons-runtime to 5.4.0

* chore: have src/generated as a dedicated directory for generated proto code

* chore: ignore unused vars in proto

* chore: update lockfile

* fix: eslint errors

* chore: handle flaky tests edge case

* chore: update playright docker image

* rm: only

* rm: console

* chore: regen lockfile

* chore: update playright docker image
2024-04-07 10:55:09 +03:00
dependabot[bot]
0b54d2e3d7
chore(deps)(deps-dev): bump cspell from 8.6.0 to 8.6.1 (#1930)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 8.6.0 to 8.6.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v8.6.1/packages/cspell)

---
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>
2024-04-04 16:42:51 +03:00
Sasha
9be942fc23
feat: add react-native polyfills (#1915)
* make publishing from any branch

* feat: add @waku/pollyills package

* add package tracking

* up lock

* add peer dependencies and other improvements

* up lock

* up lock

* use es module syntax, remove usage of rollup

* rename to react-native-polyfills

* up command

* up lock
2024-04-02 13:53:06 +02:00
Danish Arora
bf42c8f53a
chore(store)!: move protocol implementation opinions to @waku/sdk (#1913)
* refactor the Store protocol into Core and SDK, simplify `queryGenerator()`

* update imports & types

* chore: `@noble/hashes` moves to `sdk`

* chore: update tests

* chore: update size-limit import path

* fix: cursor tests, use `Cursor` type from `proto.Index` instead of redefining

* export wakuStore from sdk

* fix: imports

* chore: use specific version for package

* chore: handle error for peer access

* use type instead of interface

* rm: comment

* add TODO

* chore!: remove deprecated function definition

* chore: improve logging
2024-04-01 16:47:47 +05:30
dependabot[bot]
0a8382e7a2
chore(deps)(deps): bump p-event from 6.0.0 to 6.0.1 (#1931)
Bumps [p-event](https://github.com/sindresorhus/p-event) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/sindresorhus/p-event/releases)
- [Commits](https://github.com/sindresorhus/p-event/compare/v6.0.0...v6.0.1)

---
updated-dependencies:
- dependency-name: p-event
  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>
2024-03-26 22:34:20 +01:00
dependabot[bot]
946ec82d79
chore(deps)(deps): bump dockerode from 3.3.5 to 4.0.2 (#1928)
Bumps [dockerode](https://github.com/apocas/dockerode) from 3.3.5 to 4.0.2.
- [Release notes](https://github.com/apocas/dockerode/releases)
- [Commits](https://github.com/apocas/dockerode/compare/v3.3.5...v4.0.2)

---
updated-dependencies:
- dependency-name: dockerode
  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>
2024-03-25 21:26:36 +01:00
dependabot[bot]
485ead8592
chore(deps)(deps-dev): bump husky from 8.0.3 to 9.0.11 (#1926)
Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.0.11.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v8.0.3...v9.0.11)

---
updated-dependencies:
- dependency-name: husky
  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>
2024-03-23 00:25:50 +01:00
dependabot[bot]
cb8921e4a2
chore(deps)(deps-dev): bump cspell from 8.3.2 to 8.6.0 (#1927)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 8.3.2 to 8.6.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/v8.3.2...v8.6.0)

---
updated-dependencies:
- dependency-name: cspell
  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>
2024-03-22 23:50:36 +01:00
dependabot[bot]
901e648d81
chore(deps)(deps-dev): bump gh-pages from 6.1.0 to 6.1.1 (#1924)
Bumps [gh-pages](https://github.com/tschaub/gh-pages) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/tschaub/gh-pages/releases)
- [Changelog](https://github.com/tschaub/gh-pages/blob/main/changelog.md)
- [Commits](https://github.com/tschaub/gh-pages/compare/v6.1.0...v6.1.1)

---
updated-dependencies:
- dependency-name: gh-pages
  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>
2024-03-21 23:28:36 +01:00
Florin Barbu
f4c7c02f83
test: sharding tests refactor (#1883)
* sharding tests refactor

* small fixes

* adjust clusterID based on version

* fix typo

* fix dispatchEvent test

* sharding unit tests

* port adjustment

* update unit tests

* fix 1902

* adjust content topic tests

* adjust metdata tests

* small adjustments

* fix

* update resolveAutoshardingCluster version

* skip autosharding tests for nwaku < 0.27.0

* skip autosharding tests for nwaku < 0.27.0
2024-03-18 13:40:08 +02:00
Arseniy Klempner
40c5e0ec30
Merge pull request #1921 from waku-org/bug/check-process
fix: check if process is defined before accessing it
2024-03-16 19:45:42 -07:00
Václav Pavlín
def8a259ca
bug: check if process is defined before accessing it 2024-03-15 22:02:12 +01:00
dependabot[bot]
703779b58f
chore(deps)(deps-dev): bump karma-firefox-launcher from 2.1.2 to 2.1.3 (#1917)
Bumps [karma-firefox-launcher](https://github.com/karma-runner/karma-firefox-launcher) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/karma-runner/karma-firefox-launcher/releases)
- [Changelog](https://github.com/karma-runner/karma-firefox-launcher/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma-firefox-launcher/compare/v2.1.2...v2.1.3)

---
updated-dependencies:
- dependency-name: karma-firefox-launcher
  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>
2024-03-14 16:50:09 +05:30
Danish Arora
639da72aad
chore: upgrade nwaku to v0.26 (#1906)
* chore: upgrade to v0.26

* skip TWN tests
2024-03-13 20:51:51 +05:30
Danish Arora
877fe1dc1d
feat: peer-exchange uses error codes (#1907)
* setup a generic protocol result type (DRY)

* metadata: use generic

* lightpush: use generic

* peer-exchange: use error codes + generic + update tests

* add issue link to skipped test

* tests: improve while loop readability
2024-03-13 19:33:50 +05:30
dependabot[bot]
5296bfbad8
chore(deps)(deps-dev): bump @waku/create-app (#1908)
Bumps [@waku/create-app](https://github.com/waku-org/js-waku-examples/tree/HEAD/packages/create-app) from 0.1.1-7c24ffa to 0.1.1-504bcd4.
- [Commits](https://github.com/waku-org/js-waku-examples/commits/HEAD/packages/create-app)

---
updated-dependencies:
- dependency-name: "@waku/create-app"
  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>
2024-03-12 22:36:23 +01:00
Danish Arora
1882023c58
feat(metadata): use error codes (#1904) 2024-03-12 16:40:08 +05:30
Danish Arora
1e86c3d63e
feat!: @waku/discovery (#1876)
* initialise the new package

* move dns-discovery

* move peer-exchange

* move local-peer-cache-discovery

* add polyfill for node - dynamic import

* update size-limit

* update release-please

* chore: update pacakge desc

* chore: cleanup

* add peer-exchange and local peer cache to size-limit
2024-03-12 15:56:49 +05:30
Sasha
8f867404e3
feat: add cross peer dependency for @waku packages (#1889)
* move core package

* move dns-discovery

* move enr

* move local discovery

* move message encryption

* move message encryption[2]

* move message-hash

* move peer exchange

* move relay

* move sdk

* move utils
2024-03-12 02:18:40 +01:00
dependabot[bot]
8ff15db44b
chore(deps)(deps-dev): bump allure-commandline from 2.24.1 to 2.27.0 (#1896)
Bumps [allure-commandline](https://github.com/allure-framework/allure-npm) from 2.24.1 to 2.27.0.
- [Release notes](https://github.com/allure-framework/allure-npm/releases)
- [Commits](https://github.com/allure-framework/allure-npm/compare/2.24.1...2.27.0)

---
updated-dependencies:
- dependency-name: allure-commandline
  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>
2024-03-12 00:20:10 +01:00
Danish Arora
8deab11890
chore(lightpush)!: move protocol implementation opinions to @waku/sdk (#1887)
* chore: restructure @waku/sdk

* chore: introduce `BaseProtocolCore` and `BaseProtocolSDK`

* chore: introduce `LightPushCore` and `LightPushSDK`

* chore: update `relay` for new types

* chore(sdk): update structure

* chore(filter): add `numPeersToUse`

* chore: update tests

* update: size-limit

* chore: update more tests

* attach issue link to TODOs
2024-03-11 18:50:34 +05:30
Danish Arora
49c39682e4
fix(tests): sharding (#1893) 2024-03-11 01:53:03 +05:30
Florin Barbu
36dfcc9560
test: fix dispatchEvent test (#1897)
* fix dispatchEvent test

* skip failing test
2024-03-10 04:10:33 +05:30
dependabot[bot]
fb41f4c723
chore(deps)(deps): bump @libp2p/ping from 1.0.11 to 1.0.12 (#1892)
Bumps [@libp2p/ping](https://github.com/libp2p/js-libp2p) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/ping-v1.0.11...ping-v1.0.12)

---
updated-dependencies:
- dependency-name: "@libp2p/ping"
  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>
2024-03-07 23:10:37 +01:00
Sasha
25f838ab9f
chore: add checklist to PR template (#1873)
* chore: add checklist to PR template

* remove line

* add ! reminder

* remove link reminder
2024-03-06 16:00:42 +01:00
dependabot[bot]
eebf127253
chore(deps)(deps-dev): bump eslint-plugin-prettier from 5.0.1 to 5.1.3 (#1888)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.0.1 to 5.1.3.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.0.1...v5.1.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  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>
2024-03-06 01:03:10 +01:00
Sasha
8eb5703a27
chore: release master (#1881) 2024-03-05 00:11:44 +01:00
dependabot[bot]
82ca60edac
chore(deps)(deps-dev): bump typescript from 5.3.2 to 5.3.3 (#1879)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.2 to 5.3.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.3.2...v5.3.3)

---
updated-dependencies:
- dependency-name: typescript
  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>
2024-03-04 23:49:47 +01:00
Sasha
2613b091b2
chore: add local peer discovery package to release tracking (#1882) 2024-03-04 23:31:16 +01:00
Arseniy Klempner
5e1bce494f
Merge pull request #1880 from waku-org/fix/remove-rpc
fix: remove rpc settings when starting nwaku image
2024-03-04 10:08:05 -08:00
Arseniy Klempner
37f24e9ea1
fix: remove rpc settings when starting nwaku image 2024-03-04 07:16:16 -08:00
Sasha
9f198dd149
feat: add bootstrapPeers option and refactor sdk (#1871)
* move relay related code

* move libp2p to utils

* define CreateWakuNodeOptions

* improve options

* make libp2p use from create function

* add bootstrapPeers option

* fix lint

* fix types, imports

* fix exports

* use bootstrap along default bootstrap

* fix test as REST does not return peer though connection is made

* rollback condition change

* enable gossipSub back for every node
2024-03-04 10:56:20 +01:00
dependabot[bot]
fcc3f10f7c
chore(deps)(deps-dev): bump @size-limit/preset-big-lib (#1854)
Bumps [@size-limit/preset-big-lib](https://github.com/ai/size-limit) from 8.2.6 to 11.0.2.
- [Changelog](https://github.com/ai/size-limit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/size-limit/compare/8.2.6...11.0.2)

---
updated-dependencies:
- dependency-name: "@size-limit/preset-big-lib"
  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: Sasha <118575614+weboko@users.noreply.github.com>
2024-03-01 17:16:08 +01:00
Florin Barbu
13b31df9dd
chore: fix peer ex tests (#1869)
* fix peer ex tests

* remove only

* check for undefined

* add timeout

* timeout for query

* remove logs

* add log back

* whitelist 2nd erorr

* use beforeAll

* remove only

* revert last changes

* remove console logs

* skip query suite

* leave just one query test
2024-03-01 12:31:44 +02:00
dependabot[bot]
eb3d5604ef
chore(deps)(deps-dev): bump ts-loader from 9.4.4 to 9.5.1 (#1875)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.4.4 to 9.5.1.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.4.4...v9.5.1)

---
updated-dependencies:
- dependency-name: ts-loader
  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>
2024-02-29 22:28:51 +01:00
dependabot[bot]
4f2c0bcb9e
chore(deps)(deps-dev): bump rollup from 4.9.5 to 4.12.0 (#1870)
Bumps [rollup](https://github.com/rollup/rollup) from 4.9.5 to 4.12.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/v4.9.5...v4.12.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>
2024-02-29 01:16:50 +01:00
Danish Arora
f3cb10d484
chore!: rename local-discovery to local-peer-cache-discovery (#1867) 2024-02-29 01:05:54 +05:30
Arseniy Klempner
78ee39a2e2
Merge pull request #1823 from waku-org/feat/create-subscription-content-topic
feat: subscribe to content topic via SDK
2024-02-28 07:27:13 -08:00
Arseniy Klempner
ee2d4176f8
feat: create node and subscription by content topic 2024-02-27 15:37:57 -08:00
dependabot[bot]
382af3387e
chore(deps)(deps-dev): bump eslint-plugin-functional from 6.0.0 to 6.0.1 (#1868)
Bumps [eslint-plugin-functional](https://github.com/eslint-functional/eslint-plugin-functional) from 6.0.0 to 6.0.1.
- [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/v6.0.0...v6.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-functional
  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>
2024-02-27 23:07:28 +01:00
dependabot[bot]
6d3ed304a8
chore(deps)(deps): bump @chainsafe/libp2p-gossipsub (#1866)
Bumps [@chainsafe/libp2p-gossipsub](https://github.com/ChainSafe/js-libp2p-gossipsub) from 11.1.0 to 12.0.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/v11.1.0...v12.0.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>
2024-02-27 22:01:02 +05:30
Florin Barbu
df8c0d79f7
test: peer exchange tests (#1859)
* peer exchange tests

* adjust after test with nwaku 25
2024-02-27 09:54:34 +02:00
dependabot[bot]
44dc47c2b1
chore(deps)(deps-dev): bump typedoc from 0.25.7 to 0.25.9 (#1864)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.7 to 0.25.9.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.25.7...v0.25.9)

---
updated-dependencies:
- dependency-name: typedoc
  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>
2024-02-26 22:10:09 +01:00
Florin Barbu
7af6b71d24
upgrade nwaku to v0.25 (#1861) 2024-02-22 16:04:43 +02:00
Arseniy Klempner
26eb7dd540
Merge pull request #1856 from waku-org/feat/rpc-to-rest
feat: migrates e2e tests to use rest instead of rpc
2024-02-19 07:39:15 -08:00
Arseniy Klempner
6009af7453
feat: migrates e2e tests to use rest instead of rpc 2024-02-16 18:52:51 -08:00
Danish Arora
199f6ab2ff
feat: local discovery (#1811)
* initialise the new package

* feat: implement LocalStorageDiscovery

* add: Startable to cspell

* add compliance test

* add: discovery tests

* rm: browser tests script

* address comments

* add type safety to getting peers from local

* only dispatch peer if it does not exist

* move ws ma extraction to utils

* chore: update package name to local-discovery

* fix: add compliance test with no external deps on service node

* use peer:identify instead of peer:update

* add: unit tests & remove sdk dependency

* move tests to self package

* update cspell + remove unrequired deps

* add types

* maintain in-memory peers for localstorage

* address comments

* chore: rename

* use name from options

* fix: saving peers

* rm: only
2024-02-16 20:06:27 +05:30
Arseniy Klempner
aabd907f6a
Merge pull request #1852 from waku-org/feat/messages-subscription-rest
feat: switches to REST for calling nwaku messages/subscription endpoints
2024-02-15 14:58:08 -08:00
Arseniy Klempner
739f2bc2c9
feat: switches to REST for calling nwaku messages/subscription endpoints
This commit modifies functions in ServiceNode to use the REST API
instead of JSON RPC when reading messages for a pubsub topic or
content topic, and when ensuring a nwaku node is subscribed to a
pubsub topic. Also modifies default Docker params to enable the
rest API and provide a port.
2024-02-15 14:39:40 -08:00
dependabot[bot]
a787e306b9
chore(deps)(deps): bump @libp2p/ping from 1.0.9 to 1.0.11 (#1851)
Bumps [@libp2p/ping](https://github.com/libp2p/js-libp2p) from 1.0.9 to 1.0.11.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/ping-v1.0.9...ping-v1.0.11)

---
updated-dependencies:
- dependency-name: "@libp2p/ping"
  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>
2024-02-15 19:35:23 +01:00
Florin Barbu
de5be4413b
chore: use graceful timeout mechanism (#1841)
* use graceful timeout mechanism

* set max timeout for all hooks

* small fix

* small fix

* use MOCHA_HOOK_MAX_TIMEOUT as default timeoutDuration

* force retry even when the hook fails

* use custom hooks

* fix global timeout problem

* fix unwanted change

* fix enr issue

* force retry on before error as well
2024-02-15 08:50:03 +02:00
Florin Barbu
a9fb796a7b
chore: nwaku latest fixes (#1844)
* nwaku latest fixes

* small fixes

* other fixes

* other fixes
2024-02-14 10:45:00 +02:00
Sasha
90fc9a3e94
chore: fix export of crypto submodule (#1849) 2024-02-14 01:57:52 +01:00
dependabot[bot]
275499c315
chore(deps)(deps-dev): bump mocha from 10.2.0 to 10.3.0 (#1847)
Bumps [mocha](https://github.com/mochajs/mocha) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.3.0)

---
updated-dependencies:
- dependency-name: mocha
  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>
2024-02-13 22:21:57 +05:30
dependabot[bot]
c6b31c38e2
chore(deps)(deps-dev): bump karma-webkit-launcher from 2.1.0 to 2.4.0 (#1839)
Bumps [karma-webkit-launcher](https://github.com/google/karma-webkit-launcher) from 2.1.0 to 2.4.0.
- [Commits](https://github.com/google/karma-webkit-launcher/commits)

---
updated-dependencies:
- dependency-name: karma-webkit-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>
2024-02-12 23:40:47 +01:00
dependabot[bot]
73d66ea7d9
chore(deps)(deps-dev): bump lint-staged from 14.0.1 to 15.2.2 (#1842)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 14.0.1 to 15.2.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/okonet/lint-staged/compare/v14.0.1...v15.2.2)

---
updated-dependencies:
- dependency-name: lint-staged
  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>
2024-02-12 22:52:19 +01:00
dependabot[bot]
51ec7d9510
chore(deps)(deps-dev): bump @types/sinon from 17.0.2 to 17.0.3 (#1840)
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 17.0.2 to 17.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  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>
2024-02-12 16:29:54 +05:30
Florin Barbu
928e634677
test: connection manager (#1836)
* connection management tests

* remove stric checks in test dev tsconfig

* fix after ci run

* small fix

* fix conflict

* fixes after ci run

* debug ci failure

* revert debug test
2024-02-10 11:57:01 +02:00
dependabot[bot]
a717708f37
chore(deps)(deps): bump fast-check from 3.15.0 to 3.15.1 (#1837)
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check) from 3.15.0 to 3.15.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.15.1/packages/fast-check)

---
updated-dependencies:
- dependency-name: fast-check
  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>
2024-02-09 00:06:00 +01:00
Arseniy Klempner
f6b62b848b
Merge pull request #1827 from waku-org/chore/autosharding-test-vectors
chore: add autosharding test vectors
2024-02-08 11:04:06 -08:00
Arseniy Klempner
7e88d3b565
chore: add autosharding test vectors 2024-02-08 10:42:41 -08:00
Arseniy Klempner
1ffa5db7e7
Merge pull request #1816 from waku-org/feat/decouple-sharding-params
feat: decouple sharding params out of core
2024-02-08 10:42:07 -08:00
Arseniy Klempner
e138b4f5c4
feat: decouple sharding params out of core 2024-02-08 08:42:47 -08:00
Danish Arora
601f78a8c0
chore: use updated flag for eslint (#1831) 2024-02-08 12:25:00 +05:30
dependabot[bot]
b875569f41
chore(deps)(deps-dev): bump @typescript-eslint/parser (#1832)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.5 to 6.21.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.21.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>
2024-02-07 23:40:06 +01:00
dependabot[bot]
1c5a359463
chore(deps)(deps-dev): bump @types/uuid from 9.0.7 to 9.0.8 (#1833)
Bumps [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid) from 9.0.7 to 9.0.8.
- [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>
2024-02-07 17:07:27 +01:00
dependabot[bot]
be54c2e3e1
chore(deps)(deps-dev): bump dotenv-flow from 3.3.0 to 4.1.0 (#1830)
Bumps [dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow) from 3.3.0 to 4.1.0.
- [Release notes](https://github.com/kerimdzhanov/dotenv-flow/releases)
- [Changelog](https://github.com/kerimdzhanov/dotenv-flow/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kerimdzhanov/dotenv-flow/compare/v3.3.0...v4.1.0)

---
updated-dependencies:
- dependency-name: dotenv-flow
  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>
2024-02-07 12:07:53 +05:30
dependabot[bot]
8fb0a74767
chore(deps)(deps): bump uint8arrays from 4.0.6 to 5.0.1 (#1829)
Bumps [uint8arrays](https://github.com/achingbrain/uint8arrays) from 4.0.6 to 5.0.1.
- [Release notes](https://github.com/achingbrain/uint8arrays/releases)
- [Changelog](https://github.com/achingbrain/uint8arrays/blob/main/CHANGELOG.md)
- [Commits](https://github.com/achingbrain/uint8arrays/compare/v4.0.6...v5.0.1)

---
updated-dependencies:
- dependency-name: uint8arrays
  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>
2024-02-07 01:38:10 +01:00
Danish Arora
f8e02ab19e
fix(tests): append p2p with the multiaddrs from ENR (#1817)
* append `p2p` with the multiaddrs from ENR

* fix(tests): add p2p checks for ENR multiaddrs

* fix(tests): type getter

* chore(ci): remove debug flag from nwaku_master and go-waku tests
2024-02-07 01:57:41 +05:30
dependabot[bot]
749d84d5e4
chore(deps)(deps-dev): bump cspell from 7.3.6 to 8.3.2 (#1825)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 7.3.6 to 8.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.3.6...v8.3.2)

---
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>
2024-02-05 22:57:20 +01:00
dependabot[bot]
3c0806b224
chore(deps)(deps-dev): bump @types/mocha from 10.0.1 to 10.0.6 (#1824)
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 10.0.1 to 10.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

---
updated-dependencies:
- dependency-name: "@types/mocha"
  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>
2024-02-05 22:41:46 +01:00
dependabot[bot]
9b8f1d4a7a
chore(deps)(deps-dev): bump typedoc from 0.25.4 to 0.25.7 (#1805)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.4 to 0.25.7.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.25.4...v0.25.7)

---
updated-dependencies:
- dependency-name: typedoc
  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>
2024-02-02 00:31:41 +01:00
dependabot[bot]
28f441bc88
chore(deps)(deps): bump @libp2p/interface-compliance-tests (#1813)
Bumps [@libp2p/interface-compliance-tests](https://github.com/libp2p/js-libp2p) from 5.1.2 to 5.2.0.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/peer-collections-v5.1.2...utils-v5.2.0)

---
updated-dependencies:
- dependency-name: "@libp2p/interface-compliance-tests"
  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>
2024-01-31 23:14:04 +01:00
Florin Barbu
87998700e5
remove go waku tests from ci (#1821) 2024-01-31 18:22:26 +02:00
Florin Barbu
dbb51e4c86
test: fix for nwaku 24 (#1820)
* bump nwaku to v0.24.0

* fix tests on nwaku 0.24

* fix multiple service node filter sub tests

* fix timeout for metadata tests
2024-01-31 17:31:09 +02:00
Arseniy Klempner
66824d6daa
Merge pull request #1780 from waku-org/adklempner/default-cluster-id
feat: set cluster ID as optional when specifying shard info
2024-01-24 08:33:10 -08:00
Arseniy Klempner
68d3229644
feat: make ShardingParams optional in sdk, required internally 2024-01-24 07:36:00 -08:00
dependabot[bot]
f772dc36ce
chore(deps)(deps-dev): bump @libp2p/peer-id-factory from 4.0.4 to 4.0.5 (#1807)
Bumps [@libp2p/peer-id-factory](https://github.com/libp2p/js-libp2p) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/utils-v4.0.4...utils-v4.0.5)

---
updated-dependencies:
- dependency-name: "@libp2p/peer-id-factory"
  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>
2024-01-24 18:51:56 +05:30
Danish Arora
7affbe222d
feat: lightpush & filter send requests to multiple peers (#1779)
* feat: lightpush & filter send requests to multiple peers

* build message-hash before core

* chore: restructure folder heirrarchy

* fix: imports

* chore: move @waku/core to dev deps

* feat: create a new `ServiceNodes` wrapper class to encapsulate service node and message collector with redundancy accounted for

* chore(filter): move tests against single service node to a subdir

* feat: support relay, add strict checking, add tests

* fix(filter): handle errors

* chore(tests): add tests for ping

* add tests for push

* chore: abstract redundancy

* feat: add unsubscribe tests

* fix: tests

* add lightpush tests

* fix: imports

* fix: merge & add warning

* merge: master

* fix: breaking tests with master

* address comments

* make num peers configurable

* fix: typo
2024-01-24 18:24:03 +05:30
Florin Barbu
3e7b95e604
chore: split 100 topics tests in old and new behaviour (#1803)
* chore: split 100 topics tests in old and new behavioud

* add remove test TODO
2024-01-22 10:38:59 +02:00
dependabot[bot]
09295c76a2
chore(deps)(deps): bump @libp2p/identify from 1.0.10 to 1.0.11 (#1804)
Bumps [@libp2p/identify](https://github.com/libp2p/js-libp2p) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/ping-v1.0.10...libp2p-v1.0.11)

---
updated-dependencies:
- dependency-name: "@libp2p/identify"
  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>
2024-01-19 18:58:53 +01:00
Danish Arora
477c2a5918
feat!: protocols filter peers as per configured shard (#1756)
* merge: master

* fix: tests

* update: interfafces

* rm: comments

* metadata: store peerIdStr instead of peerId

* chore(utils): move fast-utils to dev deps

* fix: allow autosharding nodes to get peers (#1785)

* fix: merge

* fix: build

* fix: failing tests from master merge

---------

Co-authored-by: Arseniy Klempner <arseniyk@status.im>
2024-01-19 20:42:52 +05:30
dependabot[bot]
bb680e49f7
chore(deps)(deps-dev): bump rollup from 4.6.0 to 4.9.5 (#1802)
Bumps [rollup](https://github.com/rollup/rollup) from 4.6.0 to 4.9.5.
- [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/v4.6.0...v4.9.5)

---
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>
2024-01-19 13:12:18 +01:00
dependabot[bot]
dcfa73b320
chore(deps)(deps-dev): bump ts-node from 10.9.1 to 10.9.2 (#1801)
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.9.1 to 10.9.2.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Changelog](https://github.com/TypeStrong/ts-node/blob/main/development-docs/release-template.md)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.9.1...v10.9.2)

---
updated-dependencies:
- dependency-name: ts-node
  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>
2024-01-19 12:53:42 +01:00
Florin Barbu
13d3d70609
chore: increase max sub topic size to 100 (#1791)
* increase max sub topic size to 100

* make tests run fine both ways

* fix:import error

* update nwaku and gowaku master images

* prepare for pr
2024-01-18 21:22:51 +05:30
dependabot[bot]
191027de7e
chore(deps)(deps): bump @chainsafe/libp2p-gossipsub (#1798)
Bumps [@chainsafe/libp2p-gossipsub](https://github.com/ChainSafe/js-libp2p-gossipsub) from 10.1.1 to 11.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.1.1...v11.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>
2024-01-18 12:34:32 +01:00
dependabot[bot]
602ce16087
chore(deps)(deps): bump @libp2p/mplex from 9.0.10 to 10.0.12 (#1799)
Bumps [@libp2p/mplex](https://github.com/libp2p/js-libp2p) from 9.0.10 to 10.0.12.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/tcp-v9.0.10...mdns-v10.0.12)

---
updated-dependencies:
- dependency-name: "@libp2p/mplex"
  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>
2024-01-18 12:23:47 +01:00
Sasha
ea4b30752d
chore: fix nwaku interop test failures (#1792)
* chore: investigate interop test failures

* try some fixes

* remove only

* remove comment

* use getConnections for waku node
2024-01-18 11:05:35 +01:00
Arseniy Klempner
a859243b76
Merge pull request #1789 from waku-org/chore/bump-libp2p-packages
chore: bump all libp2p packages to latest version
2024-01-17 12:57:45 -08:00
Arseniy Klempner
ae7bc3eeec
chore: bump all libp2p packages to latest version 2024-01-17 11:59:08 -08:00
Danish Arora
d3bd7f8f7c
chore(tests): move filter and lp tests to subdir (#1800) 2024-01-18 01:28:28 +05:30
Danish Arora
2e6d9836bf
chore(tests): restructure & cleanup (#1796)
* chore: restructure folder heirrarchy

* fix: imports
2024-01-18 00:26:31 +05:30
Sasha
7a8ef875dd
chore: supress websocket warning in tests (#1797) 2024-01-17 15:37:09 +01:00
dependabot[bot]
00bd51a42e
chore(deps)(deps-dev): bump interface-datastore from 8.2.5 to 8.2.10 (#1794)
Bumps [interface-datastore](https://github.com/ipfs/js-stores) from 8.2.5 to 8.2.10.
- [Release notes](https://github.com/ipfs/js-stores/releases)
- [Commits](https://github.com/ipfs/js-stores/compare/interface-datastore-v8.2.5...interface-datastore-v8.2.10)

---
updated-dependencies:
- dependency-name: interface-datastore
  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>
2024-01-16 19:15:28 +01:00
dependabot[bot]
e6e61f347e
chore(deps)(deps-dev): bump eslint from 8.49.0 to 8.56.0 (#1793)
Bumps [eslint](https://github.com/eslint/eslint) from 8.49.0 to 8.56.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.49.0...v8.56.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>
2024-01-16 18:29:24 +01:00
dependabot[bot]
c31a7613f5
chore(deps)(deps): bump it-length-prefixed from 9.0.3 to 9.0.4 (#1787)
Bumps [it-length-prefixed](https://github.com/alanshaw/it-length-prefixed) from 9.0.3 to 9.0.4.
- [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/v9.0.3...v9.0.4)

---
updated-dependencies:
- dependency-name: it-length-prefixed
  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>
2024-01-16 00:35:56 +01:00
Sasha
1bc0b0a4fa
chore: upgrade playwright (#1786)
* chore: upgrade playwright

* bump image version
2024-01-15 17:02:26 +01:00
dependabot[bot]
7f7943fcd8
chore(deps)(deps-dev): bump datastore-core from 9.2.6 to 9.2.7 (#1782)
Bumps [datastore-core](https://github.com/ipfs/js-stores) from 9.2.6 to 9.2.7.
- [Release notes](https://github.com/ipfs/js-stores/releases)
- [Commits](https://github.com/ipfs/js-stores/compare/datastore-core-v9.2.6...datastore-core-v9.2.7)

---
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>
2024-01-12 13:10:08 +01:00
Danish Arora
906c93329e
chore!: discourage the use of relay in browsers (#1778)
* add a comment discouraging relay

* move createRelayNode under an explicit export

* fix: build
2024-01-11 19:08:21 +05:30
Danish Arora
b99f828cfb
chore: minor refactoring for protocols (#1762)
* remove: unnecessary function

* remove: test

* update doc

* add: tests

* revert unintended change

* fix: ping return

* fix(tests): stub connections

* log warning instead of throwing an error
2024-01-11 17:25:47 +05:30
Danish Arora
dc96074c81
fix(tests): peer-exchange interop (#1773)
* fix(tests): px interop

* optimize waitFor utility

* address minor comments

* fix: test refactoring
2024-01-11 16:39:48 +05:30
fryorcraken
aaa16f3ece
chore: release master (#1721) 2024-01-10 23:27:39 +01:00
Arseniy Klempner
69406bf1f0
reintroduce and deprecate named sharding (#1751)
Co-authored-by: danisharora099 <danisharora099@gmail.com>
2024-01-10 13:04:30 +05:30
Danish Arora
528803f4c8
fix(tests): multiple pubsub topics (#1774) 2024-01-09 13:43:44 +05:30
Danish Arora
c81872ae0e
supress info log for tests (#1763) 2024-01-02 16:30:18 +05:30
Danish Arora
9983549e8b
chore: use connected peers instead of discovered peers for protocols (#1758)
* switch to use connected peers instead of discovered peers for protocols

* switch to use connected peers instead of discovered peers for protocols
2024-01-02 15:49:31 +05:30
Arseniy Klempner
0d534e3848
Merge pull request #1769 from waku-org/adjust-test-to-max-msg-size
test: light-push/index.node.spec.ts: adjust metadata size to nwaku max size adjustment
2023-12-27 09:23:11 -08:00
Ivan Folgueira Bande
b7e78ca370
light-push/index.node.spec.ts: adjust metadata size to nwaku max size adjustment
The "Fails to push message with large meta" test used 10 ** 6 when
`nwaku` node had MaxWakuMessageSize == 1MiB ( 1*2^20 .)

`nwaku` establishes the max lightpush msg size as `const MaxRpcSize* =
MaxWakuMessageSize + 64 * 1024`
see:
07beea0209/waku/waku_lightpush/rpc_codec.nim (L15)

In the PR https://github.com/waku-org/nwaku/pull/2298 we reduced the
MaxWakuMessageSize
from 1MiB to 150KiB. Therefore, the 105024 number comes from
substracting ( 1*2^20 - 150*2^10 )
to the original 10^6 that this test had when MaxWakuMessageSize ==
1*2^20
2023-12-22 11:04:09 +01:00
Arseniy Klempner
197926d52f
Merge pull request #1723 from waku-org/adklempner/autoshard-encoder-decoder
feat: add support for autosharded pubsub topics
2023-12-21 10:43:47 -08:00
danisharora099
2bc3735e4d
feat: add support for autosharded pubsub topics
tests: use a generator for sharded pubsub topics
set pubsub topic in encoder/decoder based on sharding type
add function for grouping content topics by pubsub topic
add autosharding config to create options
add autoshard rpc endpoints to nwaku and use in tests
set autoshard pubsub topics in all protocols
fix rebase with static sharding
removes unused function
remove console logs
remove autosharding from ShardInfo, add to EncoderOptions
fix enr and encoder/decoder options
test that same application/version hashes to same shard index
update comment on shard field
fix spelling of autosharding
fix content topic protocol in tests
add sharding type alias and function to determine topic in encoders/decoders
move DefaultPubsubTopic from core to interfaces
2023-12-21 10:03:22 -08:00
Florin Barbu
6dc3882657
chore: sanitize test log names before uploading (#1766)
* sanitize test log names before uploading

* sanitize only if needed

* prepare for pr

---------

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-12-21 09:54:31 +02:00
dependabot[bot]
9014de8aca
chore(deps)(deps): bump @libp2p/crypto from 2.0.8 to 3.0.2 (#1767)
Bumps [@libp2p/crypto](https://github.com/libp2p/js-libp2p) from 2.0.8 to 3.0.2.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json)
- [Commits](https://github.com/libp2p/js-libp2p/compare/crypto-v2.0.8...perf-v3.0.2)

---
updated-dependencies:
- dependency-name: "@libp2p/crypto"
  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-12-20 21:34:47 +01:00
dependabot[bot]
4de54865ca
chore(deps)(deps-dev): bump @types/tail from 2.2.1 to 2.2.3 (#1760)
Bumps [@types/tail](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/tail) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/tail)

---
updated-dependencies:
- dependency-name: "@types/tail"
  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-12-19 20:47:33 +01:00
dependabot[bot]
566e02e0cf
chore(deps)(deps-dev): bump datastore-core from 9.2.3 to 9.2.6 (#1757)
Bumps [datastore-core](https://github.com/ipfs/js-stores) from 9.2.3 to 9.2.6.
- [Release notes](https://github.com/ipfs/js-stores/releases)
- [Commits](https://github.com/ipfs/js-stores/compare/datastore-core-v9.2.3...datastore-core-v9.2.6)

---
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-12-15 02:50:25 +05:30
dependabot[bot]
c0709b4a5d
chore(deps)(deps-dev): bump size-limit from 9.0.0 to 11.0.1 (#1753)
Bumps [size-limit](https://github.com/ai/size-limit) from 9.0.0 to 11.0.1.
- [Changelog](https://github.com/ai/size-limit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/size-limit/compare/9.0.0...11.0.1)

---
updated-dependencies:
- dependency-name: size-limit
  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-12-14 12:58:31 +05:30
fryorcraken
8ad470fa89
Merge pull request #1755 from waku-org/feat/validate-signature 2023-12-12 12:05:11 +11:00
fryorcraken.eth
853ac7464d
test: increase timeout
Seems fair as one more byte array comparison is done.
2023-12-12 11:47:34 +11:00
fryorcraken.eth
2f67a3baff
feat: new verifySignature
To enable comparison with expected public key
2023-12-08 21:52:34 +11:00
dependabot[bot]
411b76059c
chore(deps)(deps-dev): bump @types/debug from 4.1.10 to 4.1.12 (#1750)
Bumps [@types/debug](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/debug) from 4.1.10 to 4.1.12.
- [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-12-06 00:10:49 +03:00
Danish Arora
9ac2a3f363
feat: metadata protocol (#1732)
* add proto

* add rpc and interfaces

* add protocol implementation

* update faulty proto def

* add rpc and interfaces

* refactor implementation & write test

* setup the metadata protocol as a service

* fix cases where metadata service needs to be undefined

* remove redundant catch block

* remove addressed TODO

* update import path

* log errors

* remove redundant code from handling incoming metadata request

* update tests

* add test to check for active connections

* change expects

* save remote peer's shard info after successful connection
2023-12-05 19:26:52 +05:30
dependabot[bot]
12a553494f
chore(deps)(deps): bump sinon and @types/sinon (#1747)
Bumps [sinon](https://github.com/sinonjs/sinon) and [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon). These dependencies needed to be updated together.

Updates `sinon` from 16.0.0 to 17.0.1
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v16.0.0...v17.0.1)

Updates `@types/sinon` from 10.0.16 to 17.0.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: "@types/sinon"
  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-12-05 14:29:06 +05:30
dependabot[bot]
66440ae383
chore(deps)(deps-dev): bump rollup from 3.29.2 to 4.6.0 (#1745)
Bumps [rollup](https://github.com/rollup/rollup) from 3.29.2 to 4.6.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.29.2...v4.6.0)

---
updated-dependencies:
- dependency-name: rollup
  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-11-30 18:29:12 +05:30
dependabot[bot]
e40e084429
chore(deps)(deps): bump @chainsafe/libp2p-gossipsub (#1744)
Bumps [@chainsafe/libp2p-gossipsub](https://github.com/ChainSafe/js-libp2p-gossipsub) from 10.1.0 to 10.1.1.
- [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.1.0...v10.1.1)

---
updated-dependencies:
- dependency-name: "@chainsafe/libp2p-gossipsub"
  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-11-30 00:38:21 +01:00
Danish Arora
bbd372120a
chore: update all references of shard info to RFC terminology (#1740)
* update all references of shard info to RFC terminology

* bump nwaku to v0.22.0 (#1741)
2023-11-29 17:37:59 +05:30
Danish Arora
7ce642c2cc
chore: fix encoder/decoder creation (#1742)
* fix encoder creation

* bump nwaku to v0.22.0 (#1741)
2023-11-29 17:30:56 +05:30
Danish Arora
4d19fc7b75
bump nwaku to v0.22.0 (#1741) 2023-11-29 15:48:50 +05:30
dependabot[bot]
b36c3e2bd6
chore(deps)(deps): bump fast-check from 3.13.1 to 3.14.0 (#1739)
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check) from 3.13.1 to 3.14.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.14.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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-11-28 17:02:37 +01:00
dependabot[bot]
4a23b0f4e2
chore(deps)(deps-dev): bump typescript from 5.2.2 to 5.3.2 (#1738)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.2.2 to 5.3.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.2.2...v5.3.2)

---
updated-dependencies:
- dependency-name: typescript
  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-11-28 21:26:42 +05:30
Danish Arora
4cf2ffefa7
feat!: add support for sharded pubsub topics & remove support for named pubsub topics (#1697)
* merge branches

* tests: use a generator for sharded pubsub topics

* fix namespace edge case

* move shardInfo to pubsubTopic logic in waku.ts

* simplify encoder/decoder creation logic + update tests

* sharding utils: add error handling

* remove redundant test util

* baseprotocol: create abstraction for initialising pubsub topics

* fix: `createDecoder` interface

* filter: createSubscription takes shardInfo instead of pubsubTopicStr

* fix: sharding utils for error handling

* SingleShardInfo: use a new interface instead of omitting and rename namespace

* change redundant namespaces
2023-11-28 15:57:18 +05:30
Sasha
7eb3375f50
feat!: export crypto primitives (#1728)
* export crypto primitives

* export crypto

* update imports

* fix size limit

* rename crypto.js

* move Signature type

* fix path

* fix: size-limit (#1734)

* fix paths, revert change to config

---------

Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-11-28 01:02:12 +01:00
Sasha
7df21b7756
chore: add info message with expected WebSocket connection failures (#1733)
* audit deps

* add info message

* add option to hide message

* add test

* remove only
2023-11-28 00:40:59 +01:00
dependabot[bot]
9ede6eb8cc
chore(deps)(deps-dev): bump @types/uuid from 9.0.6 to 9.0.7 (#1735)
Bumps [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid) from 9.0.6 to 9.0.7.
- [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-11-27 19:10:17 +01:00
dependabot[bot]
681095dbd0
chore(deps)(deps): bump @chainsafe/libp2p-noise from 13.0.1 to 13.0.4 (#1736)
Bumps [@chainsafe/libp2p-noise](https://github.com/ChainSafe/js-libp2p-noise) from 13.0.1 to 13.0.4.
- [Release notes](https://github.com/ChainSafe/js-libp2p-noise/releases)
- [Changelog](https://github.com/ChainSafe/js-libp2p-noise/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ChainSafe/js-libp2p-noise/compare/v13.0.1...v13.0.4)

---
updated-dependencies:
- dependency-name: "@chainsafe/libp2p-noise"
  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-11-27 16:38:35 +01:00
Arseniy Klempner
1d0e2ace7f
feat: track node connection state (#1719)
Co-authored-by: chair <29414216+chair28980@users.noreply.github.com>
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-11-27 12:44:49 +01:00
dependabot[bot]
affdc265b8
chore(deps)(deps): bump chai and @types/chai (#1731)
Bumps [chai](https://github.com/chaijs/chai) and [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai). These dependencies needed to be updated together.

Updates `chai` from 4.3.8 to 4.3.10
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.8...v4.3.10)

Updates `@types/chai` from 4.3.6 to 4.3.11
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:production
  update-type: version-update:semver-patch
- 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-11-27 12:26:31 +01:00
dependabot[bot]
9744417d69
chore(deps)(deps-dev): bump @rollup/plugin-commonjs (#1730)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 25.0.4 to 25.0.7.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v25.0.7/packages/commonjs)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
  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-11-27 12:11:15 +01:00
dependabot[bot]
e681007ec4
chore(deps)(deps-dev): bump gh-pages from 6.0.0 to 6.1.0 (#1726)
Bumps [gh-pages](https://github.com/tschaub/gh-pages) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/tschaub/gh-pages/releases)
- [Changelog](https://github.com/tschaub/gh-pages/blob/main/changelog.md)
- [Commits](https://github.com/tschaub/gh-pages/compare/v6.0.0...v6.1.0)

---
updated-dependencies:
- dependency-name: gh-pages
  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-11-24 02:36:14 +03:00
dependabot[bot]
0670c2990d
chore(deps)(deps): bump it-all from 3.0.3 to 3.0.4 (#1727)
Bumps [it-all](https://github.com/achingbrain/it) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/achingbrain/it/releases)
- [Commits](https://github.com/achingbrain/it/compare/it-all-v3.0.3...it-all-v3.0.4)

---
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-11-24 02:20:49 +03:00
dependabot[bot]
bedf099b22
chore(deps)(deps-dev): bump eslint-plugin-prettier from 5.0.0 to 5.0.1 (#1708)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  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-11-21 23:10:28 +01:00
dependabot[bot]
4770388edd
chore(deps)(deps): bump @libp2p/crypto from 1.0.17 to 2.0.8 (#1714)
Bumps [@libp2p/crypto](https://github.com/libp2p/js-libp2p) from 1.0.17 to 2.0.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/commits/crypto-v2.0.8)

---
updated-dependencies:
- dependency-name: "@libp2p/crypto"
  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-11-21 23:03:23 +01:00
Florin Barbu
b5e420de91
add test summary to github actions run (#1724) 2023-11-20 08:31:44 +02:00
fryorcraken
e484388723
Merge pull request #1722 from waku-org/chore/deps-reviews 2023-11-17 16:10:03 +11:00
fryorcraken.eth
034256cca1
chore: remove reviewers for dependabot.
js-waku developers are automatically added as reviewers.
2023-11-17 15:59:51 +11:00
Arseniy Klempner
5715d7fd5a
Merge pull request #1718 from waku-org/adklempner/autoshard-topic-hashing
feat: add function for determining shard index from content topic
2023-11-16 14:18:50 -08:00
Arseniy Klempner
86da6962ba
feat: add function for determining shard index from content topic 2023-11-16 00:31:50 -08:00
Arseniy Klempner
5e9c981e60
Merge pull request #1711 from waku-org/adklempner/validate-content-topics
feat: add function to validate autoshard content topic
2023-11-15 22:43:53 -08:00
Arseniy Klempner
1bc1eb5091
feat: add function to validate autoshard content topic 2023-11-15 22:28:25 -08:00
Arseniy Klempner
f4affdad85
Merge pull request #1720 from waku-org/adklempner/fix-karma-webpack
chore: fix karma webpack
2023-11-15 21:09:28 -08:00
Arseniy Klempner
03921339d6
chore: fix karma webpack 2023-11-15 20:21:24 -08:00
Danish Arora
3166a5135e
chore!: change all instances of PubSubTopic to PubsubTopic (#1703)
* rename all PubSub patterns

* feat: forbid identifiers with camelcase pubSub (#1709)

---------

Co-authored-by: Arseniy Klempner <adklempner@gmail.com>
2023-11-14 18:52:52 +03:00
dependabot[bot]
535a748ae9
chore(deps)(deps-dev): bump @types/uuid from 9.0.4 to 9.0.6 (#1706)
Bumps [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid) from 9.0.4 to 9.0.6.
- [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-11-07 01:17:38 +05:30
Sasha
5dd882c969
chore: make pre-release manual (#1702)
* make pre-release manual

* update md file
2023-11-06 10:39:06 +01:00
dependabot[bot]
678635ec9f
chore(deps)(deps): bump @libp2p/mplex from 9.0.6 to 9.0.10 (#1701)
Bumps [@libp2p/mplex](https://github.com/libp2p/js-libp2p) from 9.0.6 to 9.0.10.
- [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.6...mdns-v9.0.10)

---
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>
2023-11-04 00:27:32 +01:00
dependabot[bot]
4c5a8a9b64
chore(deps)(deps-dev): bump @libp2p/bootstrap from 9.0.6 to 9.0.10 (#1700)
Bumps [@libp2p/bootstrap](https://github.com/libp2p/js-libp2p) from 9.0.6 to 9.0.10.
- [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.6...mdns-v9.0.10)

---
updated-dependencies:
- dependency-name: "@libp2p/bootstrap"
  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-11-04 00:18:11 +01:00
fryorcraken
34a25c2f40
chore: release master (#1669) 2023-11-02 23:32:59 +01:00
Sasha
a42b7be60d
feat: add ability to pre release (#1664)
* feat: add ability to pre release

* changes versions for packages that are getting published

* fix
2023-11-01 16:15:24 +01:00
Danish Arora
49a3666208
revert logger namespace (#1696) 2023-10-30 19:16:03 +05:30
fryorcraken
b7dc3d7576
fix: measure total message size (#1643)
Network message limitations are imposed on the whole message, not just
the payload.

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-10-26 13:14:47 +02:00
Vaclav Pavlin
b3864f8772
fix: handle all empty responses in filter (#1688) 2023-10-26 10:46:08 +02:00
Florin Barbu
9593a8a8a5
test: fix ci logs (#1687)
* fix ci logs

* replace lodash with uint8arrays/equals
2023-10-25 10:39:04 +03:00
Florin Barbu
1ec0c200ca
chore: new relay tests (#1649)
* make relay folder

* make relay folder

* adjust message collector for relay

* small fix

* small fix

* small fix

* split tests more

* small fixes

* small fix

* new test

* fix pubsubtopic name

* new subscribe tests

* new subscribe tests

* new tests

* small fix after ci run

* small fix after ci run2

* fix skipped test

* added issue for skipped test
2023-10-23 18:08:33 +03:00
Florin Barbu
80a33b9c2b
chore: allure test reporting (#1668)
* allure test reporting

* make reports only for the main job

* fail a test for demo

* fail a test for demo

* revert

* fail a test for demo

* revert

* deploy to allure-jswaku

* use PAT

* add pat as secret

* check if pat exists

* debug secrets issue

* remove debug steps

* debug1

* debug2

* debug3

* debug4

* set reports for all tests

* fix after ci run

* self review

---------

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-10-23 17:53:56 +03:00
Danish Arora
491366bd4f
fix: filter subscription with pubsubTopic1 and decoder with pubsubTopic2 (#1675)
* add a test for a failing case

* add error handling & update test

* remove only

* rename test
2023-10-23 14:17:02 +05:30
Danish Arora
81b2bf46ab
allow filtering based on log levels (#1677) 2023-10-23 13:26:35 +05:30
dependabot[bot]
f82add16ab
chore(deps)(deps-dev): bump @rollup/plugin-node-resolve (#1641)
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 15.2.1 to 15.2.3.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v15.2.3/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>
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-23 13:20:20 +05:30
dependabot[bot]
1ca39fce42
chore(deps)(deps-dev): bump @types/debug from 4.1.8 to 4.1.10 (#1673)
Bumps [@types/debug](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/debug) from 4.1.8 to 4.1.10.
- [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>
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-10-23 13:12:46 +05:30
Danish Arora
1892f5093d
fix: don't dial discovered peers if have already been attempted dial (#1657)
* don't dial peers if they exist in PeerStore already

* fix(tests): bugs & add types to dispatch event

* fix: more tests

* fix: dial validation

* update doc & reduce delay

* refactor test

* use -1 instead of Infinity

* fix comment

* fix rebase
2023-10-20 18:16:48 +05:30
Danish Arora
0f7d63ef93
feat: Logger with log levels (#1672)
* setup a custom Logger with log level support

* refactor codebase for to use new Logger with log levels

* disallow usage of `debug` directly / only allow usage in/through custom Logger

* remove `debug` from logger
2023-10-20 16:36:47 +05:30
Florin Barbu
1150ddcd02
fix: remote peer rejected (#1645)
* update empty payload light push tests response

* bump up nwaku version

* remove only

* remove diff between gowaku and nwaku
2023-10-20 10:21:15 +03:00
fryorcraken
2af96281cd
test: ensure filter/light push work with message-encryption (#1671)
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-10-18 13:07:11 +02:00
dependabot[bot]
6aade791cc
chore(deps)(deps): bump libp2p from 0.46.12 to 0.46.14 (#1670)
Bumps [libp2p](https://github.com/libp2p/js-libp2p) from 0.46.12 to 0.46.14.
- [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.12...libp2p-v0.46.14)

---
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-10-18 11:49:20 +05:30
dependabot[bot]
c4ed9d8b90
chore(deps)(deps): bump @libp2p/peer-id from 3.0.2 to 3.0.3 (#1663)
Bumps [@libp2p/peer-id](https://github.com/libp2p/js-libp2p) from 3.0.2 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/logger-v3.0.2...logger-v3.0.3)

---
updated-dependencies:
- dependency-name: "@libp2p/peer-id"
  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-10-17 12:22:19 +05:30
fryorcraken
6bad4ea7d1
feat: fail early when trying to send empty payload (#1642)
* refactor: rename as this method does not check empty payloads

* feat: fail early when trying to send empty payload

---------

Co-authored-by: Sasha <oleksandr@status.im>
2023-10-17 00:14:45 +02:00
fryorcraken
0e4ceb6ac9
chore: release master (#1568) 2023-10-16 16:18:34 +02:00
Danish Arora
9fe04d85f3
chore: use pubsubTopic/pubsubTopics across the codebase (#1653)
* chore: change all references of pubSubTopic to pubsubTopic

* change references of pubSubTopics to pubsubTopics

* flag words in cspell
2023-10-16 12:52:32 +05:30
Florin Barbu
b96c3bd3e1
chore: disable paralles runs locally (#1662)
* disable paralles runs locally

* add logs

* add readme info about local execution
2023-10-13 17:32:28 +03:00
Florin Barbu
ce5a48c13c
gowaku store bugfixes (#1661) 2023-10-13 17:21:30 +03:00
Danish Arora
b8d006bee7
chore: refactor ConnectionManager for readability & maintainability (#1658)
* restructure shouldDialPeer for readability & maintainability:

* fix return & add logs

* fix: check on dialPeer instead of attemptDial

* rm: console log
2023-10-13 18:08:37 +05:30
Danish Arora
e6527e9ab1
chore: add error handling for an uncaught dial attempt (#1660) 2023-10-13 17:33:42 +05:30
Danish Arora
d39d4507ef
chore: add a test that uses ping to check filter subscription (#1656)
* add a test that uses ping to check filter subscription

* remove comment
2023-10-13 16:53:15 +05:30
Florin Barbu
347cbfa08a
chore: run tests in parallel (#1655)
* run tests in parallel

* small fixes

* small fixes

* fix setup of nodes

* fix relay tests

* fix Static Sharding: Running Nodes tests

* try with 5 threads

* try with 6 threads

* use startWithRetries as default start

* revert to 6

* set 10 jobs

* revert to back to 6

* add CI info in readme
2023-10-13 12:36:43 +03:00
dependabot[bot]
9f14dab626
chore(deps)(deps-dev): bump @typescript-eslint/parser (#1651)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.2 to 6.7.5.
- [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.7.5/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  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-10-12 21:18:51 +05:30
Danish Arora
1d60c4ba44
feat: enable pinging connected peers by default (#1647)
* enable pinging peers by default

* handle ping failure
2023-10-11 18:01:42 +05:30
Danish Arora
124a29ebba
feat(static-sharding): filter peer connections per shards (#1626)
* add interface for `ShardInfo`

* enr: add deserialization logic & setup getters

* add sharding related utils

* utils: add shard<-> bytes conversion helpers

* pass `pubSubTopics` to `Waku`

* add `rs`/`rsv` details during discovery

* connection-manager: discard irrelevant peers

* add tests for static sharding - peer exchange

* update `ConnectionManager` tests to account for topic validity

* add js suffix to import

* address some comments

* move shardInfo encoding to ENR

* test: update for new API

* enr: add tests for serialisation & deserialisation

* address comment

* update test

* move getPeershardInfo to ConnectionManager and return ShardInfo instead of bytes

* update encoding and decoding relay shards to also factor for shards>64

* relay shard encoding decoding: use DataView and verbose spec tests

* improve tests for relay shard encoding decoding

* rm: only

* improve log message for unconfigured pubsub topic

* minor improvement

* fix: buffer <> Uint8array problems with shard decoding

* fix: test

* rm: only
2023-10-10 20:18:02 +05:30
Florin Barbu
fe64da1881
Merge pull request #1592 from waku-org/fix/flaky-teardown
fix: increase timeout and use tearDownNodes
2023-10-10 10:45:49 +03:00
fbarbu15
9ccde73a16
Merge branch 'master' of https://github.com/waku-org/js-waku into fix/flaky-teardown 2023-10-10 10:33:09 +03:00
fbarbu15
aa195a75ed
fix unsubscribes test 2023-10-10 10:18:01 +03:00
dependabot[bot]
1b84ae8006
chore(deps)(deps-dev): bump gh-pages from 5.0.0 to 6.0.0 (#1638)
Bumps [gh-pages](https://github.com/tschaub/gh-pages) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/tschaub/gh-pages/releases)
- [Changelog](https://github.com/tschaub/gh-pages/blob/main/changelog.md)
- [Commits](https://github.com/tschaub/gh-pages/compare/v5.0.0...v6.0.0)

---
updated-dependencies:
- dependency-name: gh-pages
  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-10-10 12:44:38 +05:30
fbarbu15
7e96644ba8
merge master into branch 2023-10-10 09:59:24 +03:00
Florin Barbu
ac000042bf
Merge pull request #1627 from waku-org/chore/new-store-tests
chore: new store tests
2023-10-10 09:42:35 +03:00
fbarbu15
6f8cf039df
remove .only 2023-10-10 09:23:51 +03:00
fbarbu15
aa93a441d5
use loadash instead of custom function 2023-10-10 09:15:36 +03:00
fbarbu15
c9389e3d07
improve teardown nodes 2023-10-10 09:03:44 +03:00
fbarbu15
1d1c7a28a8
updated wrong cursor test 2023-10-10 08:51:41 +03:00
Danish Arora
94d63f4548
Merge branch 'master' into chore/new-store-tests 2023-10-09 22:05:34 +05:30
Danish Arora
b10c46b910
fix(store)!: use pubSubTopic from DecodedMessage for createCursor (#1640)
* fix!(store): Cursor: use pubsubtopic from Message

* add control to check cursor topic should match decoder

* fix
2023-10-09 21:25:38 +05:30
fbarbu15
b0d658c4a1
add comments for known issues 2023-10-09 14:52:40 +03:00
fbarbu15
95dbac3c57
self review 2023-10-06 13:34:30 +03:00
fbarbu15
0e5ff3e13d
add final tests 2023-10-06 12:45:00 +03:00
fbarbu15
5519877b5e
adjustments 2023-10-06 11:24:10 +03:00
fbarbu15
0b1f2ec31d
Merge branch 'master' of https://github.com/waku-org/js-waku into chore/new-store-tests 2023-10-05 19:07:02 +03:00
fbarbu15
c52b895c1e
new store tests 2023-10-05 19:06:37 +03:00
dependabot[bot]
0bc4a96807
chore(deps)(deps): bump js-sha3 from 0.8.0 to 0.9.2 (#1633)
Bumps [js-sha3](https://github.com/emn178/js-sha3) from 0.8.0 to 0.9.2.
- [Changelog](https://github.com/emn178/js-sha3/blob/master/CHANGELOG.md)
- [Commits](https://github.com/emn178/js-sha3/compare/v0.8.0...v0.9.2)

---
updated-dependencies:
- dependency-name: js-sha3
  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-10-05 14:12:20 +05:30
dependabot[bot]
d06591378f
chore(deps)(deps): bump @libp2p/interface-compliance-tests (#1636)
Bumps [@libp2p/interface-compliance-tests](https://github.com/libp2p/js-libp2p) from 4.0.6 to 4.1.0.
- [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/interface-compliance-tests-v4.0.6...interface-compliance-tests-v4.1.0)

---
updated-dependencies:
- dependency-name: "@libp2p/interface-compliance-tests"
  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-10-05 10:05:45 +05:30
fbarbu15
6c35a51f67
new store tests 2023-10-04 16:00:55 +03:00
fbarbu15
8fbb9c0c1b
new store tests 2023-10-04 15:40:50 +03:00
fbarbu15
00cb2c6b28
Merge branch 'master' of https://github.com/waku-org/js-waku into chore/new-store-tests 2023-10-04 11:57:40 +03:00
dependabot[bot]
923f21ab64
chore(deps)(deps): bump p-retry from 6.0.0 to 6.1.0 (#1634)
Bumps [p-retry](https://github.com/sindresorhus/p-retry) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/sindresorhus/p-retry/releases)
- [Commits](https://github.com/sindresorhus/p-retry/compare/v6.0.0...v6.1.0)

---
updated-dependencies:
- dependency-name: p-retry
  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-10-04 12:56:54 +05:30
Florin Barbu
29d83786b2
chore: update org (#1632)
* update org

* update other images as well

* small fix
2023-10-03 16:11:41 +05:30
fbarbu15
6778eb3809
new test 2023-10-03 12:46:22 +03:00
fbarbu15
a7ef4b80da
Merge branch 'master' of https://github.com/waku-org/js-waku into chore/new-store-tests 2023-10-03 10:06:14 +03:00
fbarbu15
9371477069
new store tests 2023-10-03 10:05:32 +03:00
Florin Barbu
856d3de265
chore: add missing ensureSubscriptions call (#1628)
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-10-02 22:32:18 +02:00
dependabot[bot]
d02838164f
chore(deps)(deps): bump fast-check from 3.13.0 to 3.13.1 (#1629)
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check) from 3.13.0 to 3.13.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.13.1/packages/fast-check)

---
updated-dependencies:
- dependency-name: fast-check
  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-10-02 22:28:51 +05:30
dependabot[bot]
64f38651bf
chore(deps)(deps): bump libp2p from 0.46.11 to 0.46.12 (#1630)
Bumps [libp2p](https://github.com/libp2p/js-libp2p) from 0.46.11 to 0.46.12.
- [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.11...libp2p-v0.46.12)

---
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-10-02 22:11:49 +05:30
fbarbu15
2ff19c7901
merge master 2023-10-02 13:11:12 +03:00
Florin Barbu
f1d8d6097f
chore(static sharding): add tests for multiple pubsub topics (#1624)
* new tests for static sharding

* store tests

* small fixes after ci run

* small fixes after ci run

* small fixes after ci run

* multiple pubsubtopics on nwaku node
2023-10-02 15:07:00 +05:30
dependabot[bot]
94b8fd34ca
chore(deps)(deps): bump sinon from 15.2.0 to 16.0.0 (#1611)
Bumps [sinon](https://github.com/sinonjs/sinon) from 15.2.0 to 16.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v15.2.0...v16.0.0)

---
updated-dependencies:
- dependency-name: sinon
  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-10-02 13:38:23 +05:30
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
Sasha
077d9a76d3
remove webkit from running (#1621) 2023-09-27 15:15: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
Florin Barbu
bcd65a1935
chore: add comment warnings to node ci (#1609)
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-09-25 23:57:29 +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
Ivan Folgueira Bande
db4621728b
chore: README.md: fix quick start link (#1607)
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-09-22 17:32:34 +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
dependabot[bot]
36785fcb15
chore(deps)(deps-dev): bump lint-staged from 13.2.2 to 14.0.1 (#1582)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.2 to 14.0.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Changelog](https://github.com/okonet/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.2.2...v14.0.1)

---
updated-dependencies:
- dependency-name: lint-staged
  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-22 15:15:42 +05:30
dependabot[bot]
3f469ddd22
chore(deps)(deps-dev): bump size-limit from 8.2.6 to 9.0.0 (#1596)
Bumps [size-limit](https://github.com/ai/size-limit) from 8.2.6 to 9.0.0.
- [Changelog](https://github.com/ai/size-limit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/size-limit/compare/8.2.6...9.0.0)

---
updated-dependencies:
- dependency-name: size-limit
  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-22 15:02:22 +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
fryorcraken
c8def0c577
Merge pull request #1584 from waku-org/fix/lightpush-error-1569 2023-09-21 18:40:26 +10: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
6d7b235eec
Merge pull request #1585 from waku-org/fix/light-error-1553 2023-09-21 12:38:28 +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
fryorcraken
a0c96bb3f3
Merge pull request #1566 from waku-org/chore/split-ci-into-chunks 2023-09-21 11:54:31 +10:00
Sasha
4d54027f35
Merge branch 'master' into chore/split-ci-into-chunks 2023-09-21 03:36:06 +02: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
fbarbu15
884d37634c merge master into branch and resolve conflicts 2023-09-18 19:42:22 +03:00
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
999e95a24a fix typo 2023-09-13 11:20:50 +03:00
fbarbu15
7a52dd64a5 move back node to workflows 2023-09-13 11:12:12 +03:00
fbarbu15
9baf52af5c move back node to workflows 2023-09-13 11:12:01 +03:00
fbarbu15
a15b027c37 remove file name from the node call 2023-09-13 11:00:28 +03:00
fbarbu15
442e18cee7 add sha to the node call 2023-09-13 10:58:24 +03:00
fbarbu15
c577b2cce8 add ref to the node call 2023-09-13 10:55:33 +03:00
fbarbu15
8eac299654 move node to action folder 2023-09-13 10:52:41 +03:00
fbarbu15
ba49fa1f7d Merge branch 'master' of https://github.com/waku-org/js-waku into chore/split-ci-into-chunks 2023-09-13 10:33:33 +03: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
fbarbu15
5b9935e118 fix debug mismatch 2023-09-12 18:12:18 +03:00
fbarbu15
7fd6803ec1 small fix after ci run 2023-09-12 18:01:21 +03:00
fbarbu15
a95202f8f5 small fix after ci run 2023-09-12 18:00:45 +03:00
fbarbu15
27ec0752f6 small fix after ci run 2023-09-12 17:59:31 +03:00
fbarbu15
4683d246ea make reusable test node workflow 2023-09-12 17:33:34 +03:00
fbarbu15
c3c31b192e remove ref 2023-09-12 15:53:21 +03:00
fbarbu15
1dbb1e5636 fix calling the node 2023-09-12 15:38:18 +03:00
fbarbu15
4c9233e2c3 split node from CI 2023-09-12 15:28:46 +03:00
Sasha
833b02abdb
fix: enable logging for npm install action (#1559)
* add debug step to npm action
* add another log
* up package-lock
2023-09-11 15:30:36 +02:00
fryorcraken
55431a52e0
chore: release master (#1558) 2023-09-11 13:27:24 +02:00
Sasha
1f0cf29b78
fix: use npm i always (for now) (#1557) 2023-09-11 13:11:40 +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
fbarbu15
1cfe0fcb5d
chore: added workflow_call to the ci.yml (#1541)
* added workflow call for reusable workflows

* explicitly checkout js-waku

* fix wrong org

* fix input passing

* excluded unneded jobs for when caller is nwaku

* excluded check and proto as well

---------

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-09-08 10:38:31 +02:00
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
fryorcraken
ffc73b47e3
Merge pull request #1522 from waku-org/dependabot/npm_and_yarn/cspell-7.3.2
chore(deps)(deps-dev): bump cspell from 7.0.1 to 7.3.2
2023-09-04 20:19:35 +10:00
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
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
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
fryorcraken.eth
92bb35a4f8
Merge pull request #1425 from waku-org/chore-update-docs-link 2023-07-26 13:58:38 +10:00
Sasha
1feea5c24b
Merge branch 'master' into chore-update-docs-link 2023-07-25 21:53:46 +02:00
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
fryorcraken.eth
2ceac3bdf3
Merge pull request #1399 from jmetev1/chore--rm-extra-packages 2023-07-20 15:17:21 +10:00
Danish Arora
2cd04a1315
Merge branch 'master' into chore--rm-extra-packages 2023-07-15 17:57:12 +02:00
fryorcraken.eth
d2c81339ae
chore: upgrade add-to-project GitHub action (#1422)
Previous version uses API that will be deprecated.
2023-07-13 12:10:43 +02:00
LordGhostX
a1a8ad7936
chore: update docs link 2023-07-11 17:47:19 +01:00
Danish Arora
cae38fdab4
update fleet nodes port to use 8000 (#1420) 2023-07-06 15:31:55 +01:00
fryorcraken.eth
86c2e9e014
Merge pull request #1402 from waku-org/chores/nwaku-v0.18.0 2023-07-04 15:59:27 +10: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
ee9a4d711f
Merge pull request #1407 from waku-org/remove-submodule 2023-06-21 10:08:13 +10:00
fryorcraken.eth
2905514a36
chore: remove the nwaku folder (artefact from old submodule) 2023-06-20 13:24:26 +10:00
Sasha
b760acd9d3
chore: remove forced release version of sdk (#1406) 2023-06-17 01:46:29 +02:00
fryorcraken.eth
614893ca98
chore: release master (#1393) 2023-06-17 01:26:12 +02:00
jacques metevier
e04e9d5a9e chore(deps): revert temp 2023-06-08 12:06:38 -07: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
fefc7aebee
Merge pull request #1374 from waku-org/fix/eslint-upgrade 2023-06-06 16:16:07 +10: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
fryorcraken.eth
f3d3c66126
Merge pull request #1395 from waku-org/dependabot/npm_and_yarn/it-all-3.0.2 2023-06-06 13:47:28 +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
fryorcraken.eth
259b39f207
Merge pull request #1390 from waku-org/dependabot/npm_and_yarn/libp2p/crypto-1.0.17 2023-06-05 15:04:28 +10: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
fryorcraken.eth
d4d48075cb
Merge pull request #1391 from waku-org/dependabot/npm_and_yarn/it-pipe-3.0.1 2023-06-05 14:40:26 +10: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
3a2d281d44
Merge pull request #1373 from waku-org/test/remove-unused-pretest 2023-05-24 11:01:38 +10:00
fryorcraken.eth
3b31004eb9
chore: removed unused pretest scripts 2023-05-24 10:44:08 +10:00
fryorcraken.eth
9596a93e5d
Merge pull request #1377 from waku-org/dependabot/npm_and_yarn/libp2p/interface-peer-discovery-compliance-tests-2.0.8 2023-05-24 10:43:45 +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
Sasha
6870c9e9d7
chore: remove forced relay version (#1367) 2023-05-19 14:09:03 +02:00
fryorcraken.eth
b25f7e0acf
chore: release master (#1343) 2023-05-19 13:38:52 +02:00
Sasha
fb4bc2d1b4
chore: explicitly set next release version for @waku/relay (#1366)
* set release-as for @waku/relay
2023-05-19 01:35:11 +02:00
Sasha
3328661db5
chore: track relay package by release-please (#1365)
* add relay to manifest

* track relay package by release please

* remove from manifest of already released packages
2023-05-19 01:02:30 +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
123eabec95
chore: add relay to manifest (#1362) 2023-05-18 13:35:44 +02:00
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
fryorcraken.eth
bc2615e0ad
Merge pull request #1356 from waku-org/dependabot/npm_and_yarn/typescript-5.0.4 2023-05-17 16:10:59 +10: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
cc0b375018
Merge pull request #1339 from waku-org/chore/type-import 2023-05-11 17:16:57 +10:00
fryorcraken.eth
55ed6e3765
chore: fix import 2023-05-11 15:04:23 +10:00
fryorcraken.eth
5557f52d42
Merge pull request #1341 from waku-org/feat/meta 2023-05-10 22:47:17 +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
fryorcraken.eth
60c9a6286e
Merge pull request #1333 from waku-org/dependabot/npm_and_yarn/libp2p/interface-content-routing-2.1.1 2023-05-09 14:45:11 +10: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
fryorcraken.eth
72d1a80207
Merge pull request #1330 from waku-org/chore/it-length-prefixed-9.0.1 2023-05-06 14:16:33 +10: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
9eb3384177
Merge pull request #1233 from waku-org/feat/hash-message-hashing 2023-05-06 13:59:39 +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
84b20feec0
Merge pull request #1319 from waku-org/fix/deps 2023-05-06 13:30:06 +10:00
fryorcraken.eth
c9e7af470d
fix: enum used from this dependency 2023-05-06 13:25:34 +10:00
fryorcraken.eth
c9a72f3ef9
Merge pull request #1329 from waku-org/dependabot/npm_and_yarn/fast-check-3.8.1 2023-05-06 13:25:23 +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
fryorcraken.eth
d65996b210
Merge pull request #1328 from waku-org/dependabot/npm_and_yarn/prettier-2.8.8 2023-05-05 13:48:52 +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]
1156be6090
chore(deps)(deps-dev): bump @libp2p/peer-id-factory from 2.0.2 to 2.0.3 (#1321)
Bumps [@libp2p/peer-id-factory](https://github.com/libp2p/js-libp2p-peer-id) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/libp2p/js-libp2p-peer-id/releases)
- [Commits](https://github.com/libp2p/js-libp2p-peer-id/compare/@libp2p/peer-id-factory-v2.0.2...@libp2p/peer-id-factory-v2.0.3)

---
updated-dependencies:
- dependency-name: "@libp2p/peer-id-factory"
  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-03 15:01:55 +05:30
dependabot[bot]
619f6b6cae
chore(deps)(deps-dev): bump lint-staged from 13.2.0 to 13.2.2 (#1320)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.0 to 13.2.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.2.0...v13.2.2)

---
updated-dependencies:
- dependency-name: lint-staged
  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-02 09:35:23 +05:30
fryorcraken.eth
6b7b6531bf
Merge pull request #1317 from waku-org/dependabot/npm_and_yarn/rollup/plugin-node-resolve-15.0.2 2023-04-28 15:06:07 +10:00
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
fryorcraken.eth
ae7992d9e1
Merge pull request #1314 from waku-org/dependabot/npm_and_yarn/it-all-3.0.1 2023-04-27 11:44:36 +10: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]
afe8442776
chore(deps)(deps-dev): bump @libp2p/interface-metrics (#1311)
Bumps [@libp2p/interface-metrics](https://github.com/libp2p/js-libp2p-interfaces) from 4.0.5 to 4.0.7.
- [Release notes](https://github.com/libp2p/js-libp2p-interfaces/releases)
- [Commits](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-metrics-v4.0.5...@libp2p/interface-metrics-v4.0.7)

---
updated-dependencies:
- dependency-name: "@libp2p/interface-metrics"
  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-04-25 22:15:17 +05:30
fryorcraken.eth
6be7bfffbb
Merge pull request #1308 from waku-org/dependabot/npm_and_yarn/libp2p/crypto-1.0.15 2023-04-24 14:16:11 +10:00
dependabot[bot]
6ab8cfe605
chore(deps)(deps): bump @libp2p/crypto from 1.0.14 to 1.0.15
Bumps [@libp2p/crypto](https://github.com/libp2p/js-libp2p-crypto) from 1.0.14 to 1.0.15.
- [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.14...v1.0.15)

---
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-04-24 04:05:47 +00:00
Sasha
763dc0125d
feat: add mapping function to multiaddr of peerid (#1306)
* feat: add mapping function to multiaddr of peerid

* remove unused
2023-04-19 20:03:27 +02:00
Danish Arora
b7d4b675bd
fix: peer-exchange go-waku interop (#1300)
* merge: master

* fix: CI

* use: js script instead of shell script to run precheck and mocha

* check for peer id instead of ws multiaddr in response
2023-04-19 13:07:29 +05:30
fryorcraken.eth
306e38ba14
Merge pull request #1299 from waku-org/dependabot/npm_and_yarn/libp2p/peer-id-2.0.3 2023-04-19 13:57:50 +10:00
dependabot[bot]
3df5f8b376
chore(deps)(deps): bump @libp2p/peer-id from 2.0.2 to 2.0.3
Bumps [@libp2p/peer-id](https://github.com/libp2p/js-libp2p-peer-id) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/libp2p/js-libp2p-peer-id/releases)
- [Commits](https://github.com/libp2p/js-libp2p-peer-id/compare/@libp2p/peer-id-v2.0.2...@libp2p/peer-id-v2.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 05:11:12 +00:00
Danish Arora
dc3774c0ed
feat: use nwaku/go-waku docker images instead of building binaries (#1259)
* merge: master

* fix: CI

* use: js script instead of shell script to run precheck and mocha

* use `console.log` instead of `debug.log` for `run-tests.js`
2023-04-17 10:29:36 +05:30
fryorcraken.eth
0a80cd4315
Merge pull request #1282 from waku-org/dependabot/npm_and_yarn/prettier-2.8.7 2023-04-06 15:06:38 +10: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
fryorcraken.eth
f4ff142086
Merge pull request #1295 from waku-org/feat/stop-empty-content-topic 2023-04-04 15:01:40 +10:00
fryorcraken.eth
bd9d07394f
feat: ensure content topic is defined
Waku Messages are considered invalid if the content topic is undefined
or an empty string.

Avoid user error by throwing.
2023-04-04 14:56:59 +10:00
Sasha
6abee4880f
chore: use root .prettierignore (#1285)
* use root .prettierignore for fix and check
2023-04-03 23:39:59 +02:00
Sasha
7075f10780
fix diplay workspace name (#1291)
Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-04-03 16:22:27 +05:30
fryorcraken.eth
3722ae7487
Merge pull request #1289 from waku-org/release-please--branches--master 2023-04-03 16:24:53 +10:00
fryorcraken.eth
17ae7e5312 chore: release master 2023-04-03 16:15:39 +10:00
fryorcraken.eth
bcdbe8af73
Merge pull request #1293 from waku-org/fix/dns-discovery-doh 2023-04-03 16:11:09 +10:00
fryorcraken.eth
1dd32101ba
fix(dns-discovery): Use DOH list from dns-query
To make the library more robust as not all DOH allow CORS. Previous
default DOH got CORS disabled.
2023-04-03 16:05:21 +10:00
fryorcraken.eth
e385652411
Merge pull request #1292 from waku-org/fix/utils-types 2023-04-03 15:59:49 +10:00
fryorcraken.eth
03c9cac3d0
fix(utils): typescript to able to find types 2023-04-03 14:57:43 +10:00
Sasha
e11e5b4870
feat!: add and implement IReceiver (#1219)
- remove extend Relay by GossipSub and use it as public property;
- detach GossipSub initialisation;
2023-03-31 03:17:41 +02:00
fryorcraken.eth
e8f750fa2b
chore: release master (#1286) 2023-03-31 03:09:02 +02:00
Sasha
789fbb89b5
fix: change release-please bootstrap commit (#1288) 2023-03-31 02:59:34 +02:00
Sasha
5def8ddb4d
fix: update @waku/core changelog (#1287) 2023-03-31 02:44:51 +02:00
dependabot[bot]
6f12c15bda
chore(deps)(deps-dev): bump puppeteer from 19.7.4 to 19.8.2 (#1283)
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 19.7.4 to 19.8.2.
- [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.7.4...puppeteer-v19.8.2)

---
updated-dependencies:
- dependency-name: puppeteer
  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: Sasha <118575614+weboko@users.noreply.github.com>
2023-03-31 02:13:06 +02:00
Sasha
45f84ed67f
chore: bump core version (#1284) 2023-03-31 02:04:39 +02:00
Sasha
aab59ce633
chore: introduce custom publish script and move to a new secret for publishing (#1279) 2023-03-29 10:36:37 +02:00
fryorcraken.eth
3ee29c30f6
Merge pull request #1277 from waku-org/dependabot/npm_and_yarn/cspell-6.31.1 2023-03-29 15:11:54 +11: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
fryorcraken.eth
a4aca31b7b
Merge pull request #1276 from waku-org/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.57.0 2023-03-29 15:01:53 +11: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
c70977f3c8
Merge pull request #1278 from waku-org/release-please--branches--master 2023-03-29 14:18:29 +11:00
fryorcraken.eth
aead369227 chore: release master 2023-03-29 04:19:45 +11:00
fryorcraken.eth
94940411b0
fix: ensure that websocket multiaddrs are returned from ENR (#1275)
Closes: #1271

Co-authored-by: Danish Arora <35004822+danisharora099@users.noreply.github.com>
2023-03-28 22:44:03 +05:30
fryorcraken.eth
c68f29adc3
Merge pull request #1273 from waku-org/dependabot/npm_and_yarn/libp2p/interface-libp2p-1.1.2 2023-03-28 16:56:28 +11:00
dependabot[bot]
5549ac2be5
chore(deps)(deps-dev): bump @libp2p/interface-libp2p from 1.1.1 to 1.1.2
Bumps [@libp2p/interface-libp2p](https://github.com/libp2p/js-libp2p-interfaces) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/libp2p/js-libp2p-interfaces/releases)
- [Commits](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-libp2p-v1.1.1...@libp2p/interface-libp2p-v1.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 16:10:31 +00:00
fryorcraken.eth
08d0786bd4
chore: release master (#1269) 2023-03-25 00:22:44 +01:00
fryorcraken.eth
c284159ac8
fix(utils): include all ts files (#1267)
Also remove superfluous GLOB in other packages.

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
2023-03-24 23:43:40 +01:00
dependabot[bot]
600309425d
chore(deps)(deps-dev): bump @libp2p/bootstrap from 6.0.0 to 6.0.3 (#1256)
Bumps [@libp2p/bootstrap](https://github.com/libp2p/js-libp2p-bootstrap) from 6.0.0 to 6.0.3.
- [Release notes](https://github.com/libp2p/js-libp2p-bootstrap/releases)
- [Changelog](https://github.com/libp2p/js-libp2p-bootstrap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/libp2p/js-libp2p-bootstrap/compare/v6.0.0...v6.0.3)

---
updated-dependencies:
- dependency-name: "@libp2p/bootstrap"
  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-03-24 16:39:49 +05:30
Sasha
48f77f94f3
chore: set npm token to .npmrc (#1266) 2023-03-24 00:38:45 +01:00
fryorcraken.eth
9b6448bf63
chore: release master (#1253) 2023-03-24 00:10:41 +01:00
fryorcraken.eth
bfc51af258
Merge pull request #1257 from waku-org/fix/peer-exchange-dep
fix: @waku/create should not depend on @waku/peer-exchange
2023-03-24 09:58:49 +11:00
fryorcraken.eth
e922ed49ec
fix: @waku/peer-exchange uses @waku/core and should depend on it 2023-03-24 09:54:08 +11:00
fryorcraken.eth
f0ac886593
fix: @waku/create should not depend on @waku/peer-exchange 2023-03-24 09:54:08 +11:00
Sasha
0824345f0e
chore: make latest default tag for publishing (#1260) 2023-03-23 14:27:26 +01: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
3059a652dc
Merge pull request #1252 from waku-org/chore/nwaku-v0.16.0 2023-03-23 15:28:14 +11:00
fryorcraken.eth
de0a2e595c
test: bump nwaku to v0.16.0 2023-03-23 14:51:10 +11:00
fryorcraken.eth
b78479983c
Merge pull request #1255 from waku-org/dependabot/npm_and_yarn/fast-check-3.7.1 2023-03-23 14:48:09 +11:00
dependabot[bot]
3de7d466d0
chore(deps)(deps-dev): bump fast-check from 3.7.0 to 3.7.1
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check) from 3.7.0 to 3.7.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.7.1/packages/fast-check)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 16:09:17 +00:00
Sasha
45284db963
feat: add getActiveSubscriptions method (#1249) 2023-03-21 02:44:35 +01:00
Sasha
0f6a594644
feat!: use ISender and deprecate Light Push .push (#1217) 2023-03-21 02:07:59 +01:00
fryorcraken.eth
b8f7db21c7
Merge pull request #1244 from waku-org/chore/peer-exchange 2023-03-21 10:00:29 +11:00
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
fryorcraken.eth
7621fab48e
Merge pull request #1250 from waku-org/dependabot/npm_and_yarn/multiformats/multiaddr-12.0.0 2023-03-21 08:59:18 +11:00
dependabot[bot]
cd38fe117d
chore(deps)(deps): bump @multiformats/multiaddr from 11.6.1 to 12.0.0
Bumps [@multiformats/multiaddr](https://github.com/multiformats/js-multiaddr) from 11.6.1 to 12.0.0.
- [Release notes](https://github.com/multiformats/js-multiaddr/releases)
- [Changelog](https://github.com/multiformats/js-multiaddr/blob/master/CHANGELOG.md)
- [Commits](https://github.com/multiformats/js-multiaddr/compare/v11.6.1...v12.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 21:39:40 +00:00
dependabot[bot]
714ff61582
chore(deps)(deps): bump @noble/hashes from 1.2.0 to 1.3.0 (#1251)
Bumps [@noble/hashes](https://github.com/paulmillr/noble-hashes) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/paulmillr/noble-hashes/releases)
- [Commits](https://github.com/paulmillr/noble-hashes/compare/1.2.0...1.3.0)

---
updated-dependencies:
- dependency-name: "@noble/hashes"
  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-03-20 22:36:46 +01:00
fryorcraken.eth
47560793dc
Merge pull request #1239 from waku-org/chore/badges 2023-03-20 16:12:20 +11:00
fryorcraken.eth
56d3cce402
chore: add code climate maintainability badge 2023-03-20 16:06:51 +11:00
fryorcraken.eth
077f4a863f
chore: fix Discord invite link 2023-03-20 16:06:50 +11:00
fryorcraken.eth
98549d3acc
chore: fix build badge
Ref: https://github.com/badges/shields/issues/8671
2023-03-20 16:06:50 +11:00
fryorcraken.eth
437f72fae0
Merge pull request #1246 from waku-org/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.55.0 2023-03-20 15:52:22 +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
Sasha
e1a87fe1a3
chore: fix release-please output var & update package-lock (#1248) 2023-03-16 21:05:19 +01:00
fryorcraken.eth
b3546ae692
chore: release master (#1237) 2023-03-16 20:29:40 +01:00
fryorcraken.eth
483e7fa663
Merge pull request #1243 from waku-org/dependabot/npm_and_yarn/libp2p/interface-content-routing-2.0.2 2023-03-16 12:30:34 +11:00
dependabot[bot]
24f4c5c389
chore(deps)(deps-dev): bump @libp2p/interface-content-routing
Bumps [@libp2p/interface-content-routing](https://github.com/libp2p/js-libp2p-interfaces) from 2.0.1 to 2.0.2.
- [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.1...@libp2p/interface-content-routing-v2.0.2)

---
updated-dependencies:
- dependency-name: "@libp2p/interface-content-routing"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 01:01:16 +00:00
Sasha
275b16641e
feat!: add custom events to Relay and make observers private (#1213) 2023-03-15 21:47:56 +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
Danish Arora
a30b2bd747
chore!: add exports map to @waku/utils (#1201)
* add exports map

* merge: master

* export  subdir with default export path

* import according to the export path
2023-03-14 10:10:38 +05:30
fryorcraken.eth
8c4dfe566c
Merge pull request #1234 from waku-org/dependabot/npm_and_yarn/libp2p/crypto-1.0.14 2023-03-14 13:30:03 +11:00
dependabot[bot]
687f9bec5f
chore(deps)(deps): bump @libp2p/crypto from 1.0.12 to 1.0.14
Bumps [@libp2p/crypto](https://github.com/libp2p/js-libp2p-crypto) from 1.0.12 to 1.0.14.
- [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.12...v1.0.14)

---
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-03-14 02:25:11 +00:00
fryorcraken.eth
99155e619f
Merge pull request #1236 from waku-org/dependabot/npm_and_yarn/libp2p/interface-peer-routing-1.0.8 2023-03-14 13:22:15 +11:00
dependabot[bot]
a159e3ca62
chore(deps)(deps-dev): bump @libp2p/interface-peer-routing
Bumps [@libp2p/interface-peer-routing](https://github.com/libp2p/js-libp2p-interfaces) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/libp2p/js-libp2p-interfaces/releases)
- [Commits](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-peer-routing-v1.0.7...@libp2p/interface-peer-routing-v1.0.8)

---
updated-dependencies:
- dependency-name: "@libp2p/interface-peer-routing"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 00:43:39 +00:00
fryorcraken.eth
09407d7ba9
Merge pull request #1238 from waku-org/feat/message-meta-simple 2023-03-14 11:26:25 +11:00
fryorcraken.eth
bd983ea48e
feat!: enable encoding of meta field 2023-03-14 11:21:09 +11:00
fryorcraken.eth
497588bc36
chore: make topics arbitrary data 2023-03-14 11:21:08 +11:00
fryorcraken.eth
dbaf89831f
Merge pull request #1228 from waku-org/fix/keep-alive-payload 2023-03-14 11:20:35 +11:00
fryorcraken.eth
560c393662
fix: add payload to relay ping messages to avoid poor relay peer scoring
Note that this keep alive mechanism should probably be removed.
2023-03-14 11:14:52 +11:00
fryorcraken.eth
e359ab8616
Merge pull request #1229 from waku-org/chore/remove-code-dupe-enr 2023-03-14 11:14:27 +11:00
fryorcraken.eth
b3228a2dfe
chore: refactor delete undefined logic 2023-03-14 11:07:57 +11:00
fryorcraken.eth
5a8de54d50
chore: remove some code duplication 2023-03-14 11:07:57 +11:00
fryorcraken.eth
a2966c2e9b
Merge pull request #1226 from waku-org/chore/dependabot 2023-03-14 10:59:14 +11:00
fryorcraken.eth
82b210961a
chore: update dependabot reviewers and number of max PRs
Dependabot is working well now that config was fixed for monorepo so we
can increase the number of ongoing PRs for deps.
2023-03-14 10:45:40 +11:00
Sasha
4d7b3e39e6
fix: prettier and cspell ignore CHANGELOG (#1235) 2023-03-13 23:40:41 +01:00
fryorcraken.eth
809681aee8
Merge pull request #1231 from waku-org/feat/pubsub-topic-message 2023-03-13 14:00:57 +11:00
fryorcraken.eth
628ac50d71
feat!: expose pubsub topic in IDecodedMessage
Needed for deterministic message hash.

Ref: #1208
2023-03-13 13:49:24 +11:00
fryorcraken.eth
0c63b291f7
Merge pull request #1227 from waku-org/feat/gossipsub-waku-message-validation 2023-03-13 13:43:51 +11:00
fryorcraken.eth
96847374d6
feat(relay): validate waku message at gossip layer 2023-03-13 13:04:24 +11:00
fryorcraken.eth
9debf5aea7
Merge pull request #1232 from waku-org/dependabot/npm_and_yarn/types/uuid-9.0.1 2023-03-13 13:00:20 +11:00
dependabot[bot]
930e54c292
chore(deps)(deps-dev): bump @types/uuid from 9.0.0 to 9.0.1
Bumps [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid) from 9.0.0 to 9.0.1.
- [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>
2023-03-10 16:08:28 +00:00
Sasha
35fe1de8dc
chore: pass token param to release please (#1225) 2023-03-10 12:46:52 +01:00
fryorcraken.eth
36534af0e6
Merge pull request #1216 from waku-org/chore/libp2p-crypto-enr 2023-03-10 11:02:57 +11:00
fryorcraken.eth
5a42efcd8d
chore: rename: peer exchange peers are not bootstrap peers 2023-03-10 10:23:40 +11:00
fryorcraken.eth
1181eadcf8
doc: fix references in comments 2023-03-10 10:23:39 +11:00
fryorcraken.eth
81ad14cad3
chore: segregate basic access to fields and more advanced logic
Move basic access to ENR fields (with conversion) to `RawEnr`

`ENR` inherits from `RawEnr` and add a layer of logic.
2023-03-10 10:23:39 +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
84f114bfa4
chore: extract and simplify getLocationMultiaddr
Using switch/case when appropriate.
2023-03-10 10:23:39 +11:00
fryorcraken.eth
af5c5733a5
chore: split functions 2023-03-10 10:23:39 +11:00
fryorcraken.eth
22ffcf571a
chore!: extract encoder code
Separation of concerns by moving encoding logic in new class.
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
fryorcraken.eth
8fd1455122
chore: extract test code
createFrom* functions are only used in test.
By extracting them in different class it should help
bundlers.
2023-03-10 10:23:38 +11:00
fryorcraken.eth
031f4c0c21
chore: improve function name
By describe why one would use it.
2023-03-10 10:23:38 +11:00
fryorcraken.eth
a513087637
chore: remove functions not used in prod 2023-03-10 10:23:38 +11:00
fryorcraken.eth
93ba160791
chore: remove unused keypair api 2023-03-10 10:23:38 +11:00
fryorcraken.eth
46a020c6b4
chore: split function as one part was only used in test 2023-03-10 10:23:38 +11:00
fryorcraken.eth
05b122e646
chore: remove unnecessary functions 2023-03-10 10:23:38 +11:00
fryorcraken.eth
4eacc39a9d
Merge pull request #1224 from waku-org/dependabot/npm_and_yarn/cspell-6.28.0 2023-03-10 10:23:06 +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
98695f12e7
Merge pull request #1222 from waku-org/fix/peer-tag-discovery 2023-03-10 10:14:31 +11: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
b7bc09d493
Merge pull request #1221 from waku-org/feat/export-decoder-from-root 2023-03-08 09:59:26 +11:00
fryorcraken.eth
5cd6b6b10b
chore: fix size script: DecodedMessage is now only exported as a type 2023-03-08 09:52:27 +11:00
fryorcraken.eth
da1b18d995
feat: export Decoder, Encoder and DecodedMessage types from root
Fixes #1010
2023-03-08 09:52:27 +11:00
fryorcraken.eth
abe1e204b1
Merge pull request #1223 from waku-org/dependabot/npm_and_yarn/fast-check-3.7.0 2023-03-08 09:50:46 +11:00
dependabot[bot]
b9a5032930
chore(deps)(deps-dev): bump fast-check from 3.6.3 to 3.7.0
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check) from 3.6.3 to 3.7.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.7.0/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-03-07 16:10:09 +00:00
fryorcraken.eth
3993ef66f5
Merge pull request #1214 from waku-org/chore/build-utils 2023-03-07 18:27:22 +11:00
fryorcraken.eth
56814ba740
chore: rename build-utils to avoid potential conflict 2023-03-07 16:44:57 +11:00
fryorcraken.eth
a9986ff304
Merge pull request #1218 from waku-org/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.54.1 2023-03-07 10:30:01 +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
Sasha
93f2c4e478
feat: create workflow for npm install (#1200) 2023-03-03 00:31:34 +01:00
fryorcraken.eth
5ca94b1ea3
Merge pull request #1211 from waku-org/dependabot/npm_and_yarn/libp2p/peer-id-2.0.2 2023-03-02 11:36:34 +11:00
dependabot[bot]
6e3953e210
chore(deps)(deps): bump @libp2p/peer-id from 2.0.1 to 2.0.2
Bumps [@libp2p/peer-id](https://github.com/libp2p/js-libp2p-peer-id) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/libp2p/js-libp2p-peer-id/releases)
- [Commits](https://github.com/libp2p/js-libp2p-peer-id/compare/@libp2p/peer-id-v2.0.1...@libp2p/peer-id-v2.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-01 16:14:08 +00:00
fryorcraken.eth
a6b8478597
Merge pull request #1204 from waku-org/chore/auto-complete-exports-map 2023-03-01 15:54:00 +11:00
fryorcraken.eth
a76c7f1582
doc: fix typedoc config 2023-03-01 15:46:30 +11: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
5381644606
Merge pull request #1206 from waku-org/docs/discord-invite 2023-03-01 15:46:08 +11:00
fryorcraken.eth
8d3152c876
Merge branch 'master' into docs/discord-invite 2023-03-01 09:29:45 +11:00
fryorcraken.eth
db4d686af8
Merge pull request #1207 from waku-org/dependabot/npm_and_yarn/typedoc-0.23.26 2023-03-01 09:29:16 +11:00
dependabot[bot]
cb32e09e0e
chore(deps)(deps-dev): bump typedoc from 0.23.25 to 0.23.26
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.25 to 0.23.26.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.25...v0.23.26)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-28 16:13:48 +00:00
fryorcraken.eth
f0af197a75
doc: update links 2023-02-28 16:01:18 +11:00
fryorcraken.eth
4aed28ea17
Merge pull request #1202 from waku-org/chore/remove-dupe-code-px 2023-02-28 15:00:13 +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
fryorcraken.eth
3c7c5d290c
Merge pull request #1203 from waku-org/chore/remove-any 2023-02-28 12:08:48 +11:00
fryorcraken.eth
60e866f00d
chore: remove usage of any 2023-02-28 12:00:53 +11:00
fryorcraken.eth
6c37ee5f19
chore: make variable used as boolean, a boolean 2023-02-28 12:00:53 +11:00
fryorcraken.eth
ea6b5ab767
Merge pull request #1205 from waku-org/dependabot/npm_and_yarn/eslint-8.35.0 2023-02-28 11:31:15 +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
7a3c9a8df2
Merge pull request #1196 from waku-org/chore/update-proto-definition 2023-02-27 14:12:09 +11:00
fryorcraken.eth
81d6638067
chore: use pascal case for class name 2023-02-27 14:00:49 +11:00
fryorcraken.eth
967e6ffc7e
chore!: update store.proto
Ref: https://github.com/vacp2p/waku
2023-02-27 14:00:33 +11:00
fryorcraken.eth
5cf8ed2030
chore!: update message.proto: payload and content topic are always defined
Ref: https://github.com/vacp2p/waku
2023-02-27 14:00:33 +11:00
fryorcraken.eth
18d31381d2
chore: use pascal case for class name 2023-02-27 14:00:32 +11:00
fryorcraken.eth
3e93e8f49e
chore: update light_push.proto
Ref: https://github.com/vacp2p/waku/blob/main/waku/lightpush/v2beta1/lightpush.proto
2023-02-27 14:00:32 +11:00
fryorcraken.eth
d6184fb41a
fixup! chore: update filter.proto 2023-02-27 14:00:32 +11:00
fryorcraken.eth
f6130d65c9
chore: use pascal case for class name 2023-02-27 14:00:31 +11:00
fryorcraken.eth
5f0e8b72f5
chore: update filter.proto
Ref: https://github.com/vacp2p/waku
2023-02-27 14:00:31 +11:00
fryorcraken.eth
31740e7a3d
chore: add build:esm script so it can be called from root script 2023-02-27 14:00:31 +11:00
fryorcraken.eth
d8f757428f
Merge pull request #1197 from waku-org/dependabot/npm_and_yarn/puppeteer-19.7.2 2023-02-27 13:59:20 +11:00
dependabot[bot]
911ccd0074
chore(deps)(deps-dev): bump puppeteer from 19.7.1 to 19.7.2
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 19.7.1 to 19.7.2.
- [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.7.1...puppeteer-v19.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-26 23:12:33 +00:00
fryorcraken.eth
6cdcc0546b
Merge pull request #1137 from waku-org/chore/remove-dupe-code
chore: reduce cross duplication across req-resp protocols
2023-02-27 10:05:16 +11:00
fryorcraken.eth
a78d72b7fd
chore: re-order package build
peer-exchange now depends on core.
2023-02-27 09:48:30 +11:00
fryorcraken.eth
c5546e7eee
test: build tools are expected to use dev dependencies 2023-02-27 09:48:30 +11:00
fryorcraken.eth
789bebed00
chore: add BaseProtocol class to req-resp protocols
Each protocol implementation have some common functionality.
Implements those in `BaseProtocol`, to be extended by each protocol
implementation.
2023-02-27 09:48:30 +11: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
fryorcraken.eth
c85b113df7
chore: use this.multicodec over constant
To enable extraction of common functions.
2023-02-27 09:48:10 +11:00
Danish Arora
6b87ca1c4d
chore: move random_subset.ts to @waku/utils (#1191) 2023-02-26 12:31:55 -07:00
fryorcraken.eth
604ba1a889
Merge pull request #1195 from waku-org/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.53.0 2023-02-24 14:20:00 +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
fryorcraken.eth
c008341dfa
Merge pull request #1194 from waku-org/test/go-waku-0.5.1 2023-02-23 14:18:01 +11:00
fryorcraken.eth
f7cdfca677
test: bump go-waku to 0.5.1 2023-02-23 10:57:24 +11:00
fryorcraken.eth
a949b6ba61
Merge pull request #1188 from waku-org/chore/update-go-waku
test: bump go-waku to 0.5.0 and re-enable a CI run against it
2023-02-21 20:15:55 +11:00
fryorcraken.eth
8748484048
test: bump go-waku to 0.5.0 and re-enable a CI run against it 2023-02-20 21:32:42 +11:00
Danish Arora
24c24cc27d
feat!: ConnectionManager and KeepAliveManager (#1135)
* initialises ConnectionManager and KeepAliveManager
ports from previous PR and makes necessary improvements and reductions

* address: comments

* map a ConnectionManager instance with a WakuNode

* abstract event listeners logic

* minor fix

* minor cleaning

* instantiate KeepAliveManager instead of extending

* fix build and enable all tests

* fix CI

* address review

* refine event handlers
- only removes the previously attached callback from
the event handlers while shutting down service
- removes the requirement of passing around
`keepAliveOptions` and `relay` inside of
`ConnectionManager`

* add verbosity to interface

* make `dialPeer()` more readable

* use set to push tags to avoid duplicates

* fix: merge build

* remove: logging function

* rename startService and stopService

* remove: future TODO

added that as part of future refactor

* use the new libp2p api

* initialise options in constructor//fix TS error

* remove stale export

* address principal review

* reset test timeout to master
2023-02-20 15:30:59 +05:30
fryorcraken.eth
35b276804c
Merge pull request #1187 from waku-org/dependabot/npm_and_yarn/eslint-8.34.0 2023-02-20 15:10:38 +11: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
8d8874d2bb
fix: enable all tests (#1184) 2023-02-17 13:59:21 +05:30
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
fryorcraken.eth
fa6ecd6e93
Merge pull request #1183 from waku-org/dependabot/npm_and_yarn/cspell-6.26.3 2023-02-17 13:14:38 +11:00
dependabot[bot]
431815cf32
chore(deps)(deps-dev): bump cspell from 6.22.0 to 6.26.3
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.22.0 to 6.26.3.
- [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.22.0...v6.26.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 01:57:03 +00:00
Danish Arora
d8419d9e5c
feat: nwaku interop test for peer-exchange (#1129)
* handle a breaking edge case
- changes interval from static to increasing
- handles an edge case which resulted in unwanted return
from a function

* modularise code & make defaults configurable
- breaks the backoff code into a separate function
- makes default values configurable
- improve interval handling

* clean code for checking peer in peerStore

* address comments

* rename `backoff` to `abort`

* add locally run nwaku interop test for peer-exchange

* replace `--listen-address` with `--nat:extip`

* address improvements
2023-02-17 01:07:44 +05:30
fryorcraken.eth
d8d7b8389b
Merge pull request #1182 from waku-org/chore/nwaku-0.15.0 2023-02-16 18:47:09 +11:00
fryorcraken.eth
f66e9835f1
test: nwaku JSON RPC API now uses base64 encoding 2023-02-16 13:45:25 +11:00
fryorcraken.eth
5a92d74c62
test: bump nwaku from v0.13.0 to v0.15.0
Used by the test suite.
2023-02-16 13:45:25 +11:00
fryorcraken.eth
c6bd894b94
Merge pull request #1180 from waku-org/dependabot/npm_and_yarn/rollup-3.15.0 2023-02-16 13:39:56 +11:00
dependabot[bot]
5ea04579a2
chore(deps)(deps-dev): bump rollup from 3.14.0 to 3.15.0
Bumps [rollup](https://github.com/rollup/rollup) from 3.14.0 to 3.15.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.14.0...v3.15.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 16:25:26 +00:00
Sasha
dcb5908d5b
chore: update note in CHANGELOG and add missing (#1178) 2023-02-14 01:11:40 +01:00
fryorcraken.eth
ed85bd125f
Merge pull request #1177 from waku-org/dependabot/npm_and_yarn/size-limit/preset-big-lib-8.2.4 2023-02-14 10:25:29 +11:00
dependabot[bot]
02f3d87861
chore(deps)(deps-dev): bump @size-limit/preset-big-lib
Bumps [@size-limit/preset-big-lib](https://github.com/ai/size-limit) from 8.1.2 to 8.2.4.
- [Release notes](https://github.com/ai/size-limit/releases)
- [Changelog](https://github.com/ai/size-limit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/size-limit/commits)

---
updated-dependencies:
- dependency-name: "@size-limit/preset-big-lib"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 16:22:57 +00:00
fryorcraken.eth
87ad83b252
Merge pull request #1170 from waku-org/chore/bump-ts-loader 2023-02-13 13:23:15 +11:00
fryorcraken.eth
0fde93c34a
chore: bump ts-loader and install where needed 2023-02-13 10:12:21 +11:00
Sasha
f945eb90c4
feat: add mocha to dns-discovery (#1154) 2023-02-11 22:25:11 +01:00
Sasha
596c71a962
chore: release bump patch only (#1173) 2023-02-11 20:23:52 +01:00
fryorcraken.eth
3ae2181f30
Merge pull request #1168 from waku-org/chore/bump-gh-pages 2023-02-11 15:35:05 +11:00
fryorcraken.eth
97c3e8cfe5
chore: bump gh-pages and move it to root package (used by Jenkins) 2023-02-11 15:26:24 +11:00
fryorcraken.eth
9142a954b7
Merge pull request #1169 from waku-org/chore/bump-protons 2023-02-11 15:11:31 +11:00
fryorcraken.eth
2f2d266e81
chore!: bump protons from 5.1.0 to 7.0.2
Notable change: optionality of singular fields and optional values.

See https://github.com/ipfs/protons/releases
2023-02-10 22:26:46 +11:00
fryorcraken.eth
e8a66d2f82
Merge pull request #1171 from waku-org/chore/fix-dependabot 2023-02-10 22:26:22 +11:00
fryorcraken.eth
0f324d80fe
chore: move dependabot config file to the right place 2023-02-10 22:18:30 +11:00
fryorcraken.eth
5a2a100183
Merge pull request #1166 from waku-org/chore/remove-jsdom
chore: remove usage of jsdom
2023-02-10 19:56:21 +11:00
fryorcraken.eth
d73f2a84db
chore: remove usage of jsdom 2023-02-10 19:44:59 +11:00
fryorcraken.eth
c36c56eeaa
Merge pull request #1167 from waku-org/chore/bump-deps
chore: bump dependencies
2023-02-10 18:35:53 +11:00
fryorcraken.eth
f2706c21b6
chore: remove unused test configs 2023-02-10 16:34:52 +11:00
fryorcraken.eth
985dcb6414
chore: bump karma, puppeteer and plugins and install where used 2023-02-10 16:30:18 +11:00
fryorcraken.eth
f473e751f7
chore: remove p-timeout from core, bump it in tests 2023-02-10 16:09:06 +11:00
fryorcraken.eth
cb6d464021
chore: bump cspell 2023-02-10 16:09:05 +11:00
fryorcraken.eth
5953abee17
Merge pull request #1165 from waku-org/chore/bump-deps 2023-02-10 16:03:03 +11:00
fryorcraken.eth
1bf740b7b4
chore: bump fast-check 2023-02-10 15:45:41 +11:00
fryorcraken.eth
0eb7ae5781
chore: bump and install @types/chai 2023-02-10 15:37:36 +11:00
fryorcraken.eth
c0bbfd32c3
chore: bump and install @types/mocha 2023-02-10 15:32:38 +11:00
fryorcraken.eth
6b4dc1acf2
chore: bump eslint, prettier and related plugins 2023-02-10 15:18:29 +11:00
fryorcraken.eth
a8be044d32
Merge pull request #1164 from waku-org/chore/bump-deps 2023-02-10 15:08:39 +11:00
fryorcraken.eth
938157560f
chore: bump chai
Also install mocha in packages that uses it.
2023-02-10 14:02:02 +11:00
fryorcraken.eth
eb3443c4b6
chore: bump mocha
Also install mocha in packages that uses it.
2023-02-10 13:59:44 +11:00
fryorcraken.eth
12d86e6abc
chore!: bump typescript
`module: "nodenext"` has been introduced. Enabling it for NodeJS tests
only.
2023-02-10 13:54:41 +11:00
fryorcraken.eth
8e3795f038
chore: bump rollup dependencies 2023-02-10 13:14:02 +11:00
fryorcraken.eth
88cc76d2b8
chore!: bump all prod dependencies 2023-02-10 13:06:33 +11:00
fryorcraken.eth
0594f62edd
chore: bump dependencies of root package 2023-02-10 13:00:30 +11:00
fryorcraken.eth
f31400c8c4
chore: bump @noble dependencies 2023-02-10 11:22:25 +11:00
Sasha
21ae7ef182
chore: enable release-please & add it to CI (#1155)
* enable release-please & add it to CI
* use manifest config file
* increment only patch
2023-02-09 23:13:51 +01:00
fryorcraken.eth
79838d8c69
Merge pull request #1160 from waku-org/chore/bump-libp2p-deps 2023-02-10 08:41:32 +11:00
fryorcraken.eth
c3b01751ce
chore: fix doc generation 2023-02-10 08:32:41 +11:00
fryorcraken.eth
c2cef9a319
chore: run npm update 2023-02-10 08:32:41 +11:00
fryorcraken.eth
4fb3ab191d
chore: bump uint8arraylist and uint8arrays deps 2023-02-10 08:32:40 +11:00
fryorcraken.eth
3343a4acec
chore: bump multiformat deps 2023-02-10 08:32:40 +11:00
fryorcraken.eth
a3c5050c1d
chore: fix dependencies for @waku/proto` package 2023-02-10 08:32:32 +11:00
fryorcraken.eth
ab735908d3
chore: fix dependencies for @waku/peer-exchange` package 2023-02-09 19:31:12 +11:00
fryorcraken.eth
719ec8e2e7
chore: fix dev dependencies for tests package 2023-02-09 19:31:12 +11:00
fryorcraken.eth
b9f526d3ff
chore: fix dev dependencies for @waku/message-encryption 2023-02-09 19:31:12 +11:00
fryorcraken.eth
9c3deccd89
chore: fix dependencies for @waku/interfaces 2023-02-09 19:31:12 +11:00
fryorcraken.eth
6f3a6d00d8
chore: fix dependencies for @waku/enr 2023-02-09 19:31:12 +11:00
fryorcraken.eth
81bb74fa97
chore: fix dependencies for @waku/dns-discovery 2023-02-09 19:31:12 +11:00
fryorcraken.eth
a4f6d3b98e
chore: fix dependencies for @waku/create 2023-02-09 19:31:12 +11:00
fryorcraken.eth
6b8779b3be
chore: fix dependencies for @waku/core 2023-02-09 19:31:12 +11:00
fryorcraken.eth
803ae7bd8e
chore!: bump libp2p dependencies 2023-02-09 19:30:59 +11:00
Danish Arora
3b4bc8b25b
chore: update changelog & minor improvements (#1153)
* address comments from https://github.com/waku-org/js-waku/pull/1145

* fix: typedoc

* address comments in https://github.com/waku-org/js-waku/pull/1146#pullrequestreview-1286307508

- update changelog
- change naming for `EciesEncoderOptions` and
`SymmetricEncoderOptions`
2023-02-09 13:15:23 +05:30
fryorcraken.eth
598c8d3b93
Merge pull request #1152 from waku-org/chore/bump-deps 2023-02-09 12:34:18 +11:00
fryorcraken.eth
7e2e31253c
chore: remove semantic-release
Not used for releasing.
2023-02-09 11:33:34 +11:00
Danish Arora
2a7d72be14
chore: decrease delay on the peer-exchange tests (#1141)
* decrease timeouts for peer-exchange tests

* reset dns test timeout
2023-02-08 11:09:52 +05:30
fryorcraken.eth
c0ca308502
Merge pull request #1150 from waku-org/chore/enable-nwaku-master 2023-02-06 17:08:04 +11:00
fryorcraken.eth
b2f011f871
chore: re-enable nwaku master CIs jobs
All issues have been resolved on nwaku master.
Note that 0.14.0 contains regressions and hence cannot be used
for CI run.
2023-02-06 16:55:07 +11:00
Danish Arora
b33306655a
chore: move libp2p and byte utils to a single utils package (#1149)
* move libp2p and byte utils to a single `utils`
package

* set package version to 0.0.1
2023-02-06 11:22:36 +05:30
Danish Arora
8910a6d76a
chore: move args for createEncoder into non-repeating options & fix typedoc (#1146)
* move args for `createEncoder` into non-repeating `options` & fix typedoc

* update tests with new API
2023-02-02 11:37:28 +05:30
Danish Arora
10b3898762
chore: move protocols CreateOptions into interfaces (#1145)
* move protocols `CreateOptions` into interfaces and
add possible TODO

* remove: createOptions for PeerExchange

* update test with new API
2023-02-02 08:02:06 +05:30
Danish Arora
11819fc7b1
feat: DNS discovery as default bootstrap discovery (#1114)
* use DNS discovery as default bootstrap discovery

* fix: failing CI

* fix: typo

* introduce tagging, components & explicit tests

    libp2p wasn't by default tagging peers with dns-discovery as
"bootstrap"
    -- we are manually now tagging peers with "dns-discovery", and then
    running tests according to that

* fix: package installs

* fix: typedoc CI

* change tag name from dns-discovery to bootstrap

* update tag name in test

* fix CI

* address review

* add: prod enrtree and use as default
2023-01-31 19:47:46 +05:30
fryorcraken.eth
1166dbc51e
Merge pull request #1140 from waku-org/chore/disable-ci-failure 2023-01-30 22:02:49 +11:00
fryorcraken.eth
76371e58bc
chore: disable go-waku and nwaku master CIs jobs
Currently fails due to various issues. Can be re-enabled once sorted.
2023-01-30 21:52:39 +11:00
fryorcraken.eth
7f5e1f61e6
Merge pull request #1139 from waku-org/chore/test-improvements 2023-01-30 21:37:40 +11:00
fryorcraken.eth
3aed340cb2
chore: only build what is necessary to test
Script to build enough to run tests locally and in CI (skip bundling).
2023-01-30 20:32:43 +11:00
fryorcraken.eth
afa7262604
test: replace nwaku ip with local ip 2023-01-30 20:08:04 +11:00
fryorcraken.eth
c8fa8ea20e
chore: remove unnecessary compilation flag for nwaku 2023-01-30 20:08:04 +11:00
fryorcraken.eth
171fd1e6df
fix: randomize the first port tried by portfinder 2023-01-30 20:07:46 +11:00
Danish Arora
380ba6987a
disable tests connecting to test fleet on the CI (#1138) 2023-01-30 11:29:12 +05:30
fryorcraken.eth
f2f3cdc2a7
Merge pull request #1134 from waku-org/chore/remove-peer-exchange-dep 2023-01-27 10:16:52 +11:00
fryorcraken.eth
372ff6454f
chore: remove @waku/peer-exchange dependency
As per its name, `@waku/core` aims to contain, and only contains, the
minimal set of core functionalities needed for a developer to use Waku
in their webapp.

Hence, `@waku/core` should avoid depending on other Waku packages. If a
developer wishes to use functionality from other packages, they should
explicitly import such packages.
2023-01-27 09:08:28 +11:00
fryorcraken.eth
a5ff788eed
feat: codec as a property of the protocol implementations
For easy access from `@waku/core` without the need to depend on package
implementing the protocol.
2023-01-27 09:08:02 +11:00
fryorcraken.eth
13183350fa
Merge pull request #1133 from waku-org/release/core@0.0.10 2023-01-25 16:09:44 +11:00
fryorcraken.eth
9a59e9dd64
chore: release @waku/message-encryption@0.0.9 2023-01-25 15:37:52 +11:00
fryorcraken.eth
a5a748e2fd
chore: release @waku/dns-discovery@0.0.5 2023-01-25 15:35:12 +11:00
fryorcraken.eth
4e72cf2cff
chore: release @waku/core@0.0.10 2023-01-25 15:29:23 +11:00
fryorcraken.eth
1cd04dbb33
chore: release @waku/peer-exchange@0.0.3 2023-01-25 15:23:10 +11:00
fryorcraken.eth
f356ac56fc
chore: release @waku/enr@0.0.5 2023-01-25 15:22:06 +11:00
fryorcraken.eth
6969131346
chore: release @waku/libp2p-utils@0.0.3 2023-01-25 15:19:20 +11:00
Danish Arora
cc1d8bb3d5
feat: change DoH DNS provider (#1131)
* fix: change DoH DNS provider
opendns did not support CORS -- switched it with AhaDNS that does not
persist logs

* Update packages/dns-discovery/src/dns_over_https.ts

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

* add ahadns to cspell

* increase timeout on compliance test
possibly the new dns provider we use is taking longer than
opendns to resolve is why the test did not pass with
5000ms

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2023-01-24 23:42:21 +05:30
Danish Arora
5fae073ebd
fix: edge case with peer-exchange (#1125)
* address comments

* rename to maxRetries

* use timeout instead of interval

* remove: only from test
2023-01-24 22:50:16 +05:30
Sasha
4d38aaa731
Merge pull request #1127 from waku-org/weboko/packages
chore: move dependencies to devDependency section, remove unused
2023-01-20 21:48:21 +01:00
weboko
5a56b6432f
add configuration to determine devDependencies, move them in package 2023-01-19 22:49:11 +01:00
weboko
011ec8f1e9
remove unused dependency 2023-01-19 22:31:40 +01:00
weboko
913573a25a
remove no-extraneous-dependencies lint options, move packages to devDep section 2023-01-19 22:14:17 +01:00
Danish Arora
828f8b40e5
add ephemeral: true to relay (#1123) 2023-01-19 14:30:23 +05:30
fryorcraken.eth
6fb6615484
Merge pull request #1122 from waku-org/release/core@0.0.9 2023-01-18 16:27:44 +11:00
fryorcraken.eth
665dba8f3e
chore: release @waku/proto@0.0.2 2023-01-18 15:36:22 +11:00
fryorcraken.eth
ec5118a502
chore: release @waku/peer-exchange@0.0.2 2023-01-18 15:36:20 +11:00
fryorcraken.eth
45f3823ac4
chore: release @waku/message-encryption@0.0.8 2023-01-18 15:28:51 +11:00
fryorcraken.eth
8e9d2c3a0e
chore: release @waku/libp2p-utils@0.0.2 2023-01-18 15:19:49 +11:00
fryorcraken.eth
b0c1a8a4a6
chore: release @waku/interfaces@0.0.7 2023-01-18 15:16:00 +11:00
fryorcraken.eth
15a852af57
chore: release @waku/enr@0.0.4 2023-01-18 15:00:56 +11:00
fryorcraken.eth
2b1e3ad602
chore: release @waku/dns-discovery@0.0.4 2023-01-18 14:57:44 +11:00
fryorcraken.eth
3e19f82768
chore: release core@0.0.9 2023-01-18 09:42:58 +11:00
Sasha
12c29f0997
Merge pull request #1120 from waku-org/weboko/changelog
chore: update changelog
2023-01-13 00:45:28 +01:00
weboko
53dfd84d4c
chore: update changelog 2023-01-11 23:22:26 +01:00
Danish Arora
fcd500e045
fix: invoke peer exchange query immediately (#1115)
when the query is set in an interval, it first
gets invoked when the interval time is reached.
refactor: invoke it immmediately, and then set an
interval
2023-01-11 11:11:49 +05:30
Danish Arora
0b083201c6
chore: refactor dns-discovery & add tests (#1084)
* temp-add: debugging

* fix: ENR root signature verification

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

* add: libp2p compliance tests

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

* fix: tests

* merge with master

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

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

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

* chore: fix typedoc errors

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

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

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

* temp-add: console.logs for easier debugging

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

* chore: rm  and redundant spec test

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

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

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

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

* update: changelog
2022-12-23 17:08:41 +05:30
fryorcraken.eth
c8ddb40cc1
Merge pull request #1112 from waku-org/chore/update-package-lock 2022-12-23 16:59:04 +11:00
fryorcraken.eth
ecfd855651
chore: update package lock 2022-12-23 16:45:39 +11:00
weboko
fb9bb35042
fix: move deps from dev deps 2022-12-23 00:24:38 +01:00
weboko
ae764bc31e
add missing deps to workspaces 2022-12-23 00:18:16 +01:00
weboko
bef68ee081
add lint rule to warn about missing deps in workspaces 2022-12-23 00:17:46 +01:00
fryorcraken.eth
2cd1ac2e0e
Merge pull request #1109 from waku-org/chore/typedoc-warnings 2022-12-23 09:33:23 +11:00
fryorcraken.eth
ac4ff5a00a
chore: fix links in docs, treat doc warnings as errors 2022-12-21 16:47:00 +11:00
fryorcraken.eth
9db50cd95b
Merge pull request #1110 from waku-org/chore/dependabot 2022-12-21 16:46:10 +11:00
fryorcraken.eth
f153aed3c7
chore: attempt to enable dependabot for monorepo
Ref: https://github.com/dependabot/dependabot-core/issues/4993#issuecomment-1289133027
2022-12-21 16:37:39 +11:00
fryorcraken.eth
49f06989e3
Merge pull request #1065 from waku-org/chore/avoid-interface-dep 2022-12-21 16:36:42 +11:00
fryorcraken.eth
f48278adce
chore: remove waku dep from @waku/interfaces by defining IEnr
@waku packages are expected to (dev)depend on @waku/interfaces to
implement them. Hence, to avoid possible cyclic (dev)dependency, define
IEnr interface and use it as a type across @waku/packages.
2022-12-21 15:40:34 +11:00
fryorcraken.eth
42f07df969
Merge pull request #1107 from waku-org/dependabot/npm_and_yarn/types/node-18.11.17 2022-12-21 15:35:21 +11:00
dependabot[bot]
abaa29df18
build(deps-dev): bump @types/node from 17.0.45 to 18.11.17
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.45 to 18.11.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-20 13:57:43 +00:00
fryorcraken.eth
e42a50bfc8
Merge pull request #1080 from waku-org/chore/remove-dependabot 2022-12-20 23:56:03 +11:00
fryorcraken.eth
29afa8925a
chore: remove dependabot
Useless in a monorepo because dependabot expects all manifest files to
be in the same directory, which is not the case (lock file at root
and package.json file in packages/*).
2022-12-20 23:38:23 +11:00
fryorcraken.eth
17cdbc800e
Merge pull request #1082 from waku-org/feat/remove-default-wait-to-peer-exchange 2022-12-20 23:37:54 +11:00
fryorcraken.eth
89571ff497
feat!: remove peer exchange from protocols to wait on by default
This is because peer exchange is still experimental and not enabled
on all prod fleets.

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

This also shows the limit of this function logic which should be
addressed as we dive deeper in peer management.
2022-12-20 23:00:30 +11:00
fryorcraken.eth
68423196ec
Merge pull request #1108 from waku-org/fix/expose-codec-types 2022-12-20 22:56:57 +11:00
fryorcraken.eth
bff9b857ec
fix: export Encoder and Decoder types
Enables API consumer to use the types.
2022-12-20 16:11:41 +11:00
fryorcraken.eth
26b9d04912
Merge pull request #1106 from waku-org/release/core@0.0.8 2022-12-20 11:47:12 +11:00
fryorcraken.eth
e37e9c3ab2
Merge branch 'master' into release/core@0.0.8 2022-12-20 09:55:02 +11:00
fryorcraken.eth
2d6049fb7a
Merge pull request #1087 from waku-org/dependabot/npm_and_yarn/lint-staged-13.1.0
chore(deps-dev): bump lint-staged from 13.0.3 to 13.1.0
2022-12-19 17:41:55 +11:00
fryorcraken.eth
d234c4df76
chore: release @waku/create@0.0.6 2022-12-19 16:58:30 +11:00
fryorcraken.eth
1f003e7691
chore: release @waku/message-encryption@0.0.7 2022-12-19 16:56:40 +11:00
fryorcraken.eth
b060e88c27
chore: release @waku/core@0.0.8 2022-12-19 16:54:22 +11:00
dependabot[bot]
0a57151982
build(deps-dev): bump lint-staged from 13.0.3 to 13.1.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.0.3 to 13.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.0.3...v13.1.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-19 05:42:25 +00:00
fryorcraken.eth
11cb7b2d88
Merge pull request #1100 from waku-org/fix/invalid-export 2022-12-19 16:40:36 +11:00
fryorcraken.eth
75c8e2be8d
fix: incorrect proto import 2022-12-19 16:27:26 +11:00
fryorcraken.eth
e292855742
fix: missing dependencies 2022-12-19 16:26:56 +11:00
fryorcraken.eth
e0fd4433e7
fix: remove invalid re-export 2022-12-19 16:16:07 +11:00
fryorcraken.eth
737ecf007f
Merge pull request #1099 from waku-org/fix/missing-deps 2022-12-16 12:57:04 +11:00
fryorcraken.eth
803a0b4a12
fix: missing dependency declarations 2022-12-16 12:48:36 +11:00
fryorcraken.eth
eddf5c0bfd
Merge pull request #1098 from waku-org/release/message-encryption@0.0.6 2022-12-16 12:48:19 +11:00
fryorcraken.eth
541056abfe
chore: release @waku/message-encryption@0.0.6 2022-12-16 12:28:40 +11:00
fryorcraken.eth
248b7bd320
Merge pull request #1097 from waku-org/feat/moduleresolution-node 2022-12-16 12:25:26 +11:00
fryorcraken.eth
36327c9222
fix: add typesVersions so import works with moduleResolution: node 2022-12-16 12:10:14 +11:00
fryorcraken.eth
b1f2e6fbe1
Merge pull request #1083 from waku-org/release/core@0.0.7 2022-12-16 11:11:47 +11:00
fryorcraken.eth
b828903ef0
chore: release @waku/create@0.0.5 2022-12-15 14:51:45 +11:00
fryorcraken.eth
c4647d58c6
chore: release @waku/message-encryption@0.0.5 2022-12-15 14:50:20 +11:00
fryorcraken.eth
e5c1e20681
chore: release @waku/dns-discovery@0.0.3 2022-12-15 14:48:55 +11:00
fryorcraken.eth
3312c6134a
chore: release @waku/core@0.0.7 2022-12-15 14:47:14 +11:00
fryorcraken.eth
de1643be61
chore: release @waku/interfaces@0.0.6 2022-12-15 14:43:15 +11:00
fryorcraken.eth
01981dc184
chore: release @waku/enr@0.0.3 2022-12-15 14:41:30 +11:00
fryorcraken.eth
63f6316b42
chore: release @waku/libp2p-utils@0.0.1 2022-12-15 14:37:56 +11:00
fryorcraken.eth
e36cb752a5
Merge pull request #1081 from waku-org/chore/no-nat 2022-12-15 14:22:05 +11:00
fryorcraken.eth
edf5d438cb
test: remove --nat option when starting nwaku 2022-12-15 13:54:07 +11:00
fryorcraken.eth
bdf613b9d2
Merge pull request #1068 from waku-org/dependabot/npm_and_yarn/prettier-2.8.1 2022-12-15 13:39:31 +11:00
dependabot[bot]
2d694d6f51
build(deps-dev): bump prettier from 2.7.1 to 2.8.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.7.1 to 2.8.1.
- [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.7.1...2.8.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-15 02:33:27 +00:00
fryorcraken.eth
404fefe50e
Merge pull request #1066 from waku-org/chore/dependabot 2022-12-15 10:55:01 +11:00
fryorcraken.eth
58ada61dc8
chore: update dependabot config to apply to all packages 2022-12-13 21:10:29 +11:00
fryorcraken.eth
c0ee7bf015
Merge pull request #1067 from waku-org/refactor/multiaddr-to-peer-info 2022-12-13 21:09:44 +11:00
fryorcraken.eth
a640e2c940
refactor: remove dupe code 2022-12-13 15:23:39 +11:00
fryorcraken.eth
39e96c554d
Merge pull request #1058 from waku-org/dependabot/npm_and_yarn/cspell-6.17.0 2022-12-13 13:52:54 +11:00
fryorcraken.eth
795e3b67b5
chore: update dictionary 2022-12-13 13:46:03 +11:00
dependabot[bot]
872c9cd0df
build(deps-dev): bump cspell from 5.21.2 to 6.17.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.21.2 to 6.17.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.21.2...v6.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 13:46:02 +11:00
fryorcraken.eth
2ff4ac16ee
Merge pull request #1054 from waku-org/feat/protocol-interfaces 2022-12-13 11:07:32 +11:00
fryorcraken.eth
9ac92ef99d
test: use LightNode interface 2022-12-13 10:58:07 +11:00
fryorcraken.eth
c6b86a33bc
doc: update changelogs 2022-12-12 22:36:14 +11:00
fryorcraken.eth
f743cfd1ca
chore: rename node interfaces to include Node in name
Also rename node with only relay to `RelayNode`.
2022-12-12 22:36:14 +11:00
fryorcraken.eth
d946e443ad
refactor: remove Waku from protocol names
This is redundant with the context (waku package).
2022-12-12 22:36:13 +11:00
fryorcraken.eth
574f3ee80f
refactor: remove waku_ from module names
This is redundant with the context (waku package).
2022-12-12 22:36:13 +11:00
fryorcraken.eth
53af8994bd
feat: added I prefix to protocols interfaces
This will enable the remove of `Waku` prefix on all protocol
implementations, which is redundant due to the context.
2022-12-12 22:36:09 +11:00
fryorcraken.eth
84ac89e0e8
Merge pull request #1052 from waku-org/feat/interfaces 2022-12-12 22:21:04 +11:00
fryorcraken.eth
1fff8962b0
chore: fix size-limit 2022-12-12 22:15:49 +11:00
fryorcraken.eth
98ac346325
chore: prettier cjs files in root dir 2022-12-12 22:15:20 +11:00
fryorcraken.eth
8f01a453f7
test: usage of DecodedMessage class is preferred
This is because `IDecodedMessage` does not include all possible field of
messages from a specific decoder (ie, signature public key, etc) so
usage of the `DecodedMessage` class associated with the used decoder is
preferred.
2022-12-12 22:13:47 +11:00
fryorcraken.eth
cc691e26ce
feat: added I prefix to message/codec interfaces
To make it easier to differentiate with their implementations.
2022-12-12 22:13:46 +11:00
fryorcraken.eth
a7c4bb9cbf
refactor: split interface definition in separate files 2022-12-12 22:13:45 +11:00
Danish Arora
d6de62a391
chore: remove relay as default when starting nwaku for tests (#1044)
* chore: redeploy

* remove: relay as default for nwaku

* address: comments

* remove relay as default and add where needed

* Update packages/tests/tests/light_push.node.spec.ts

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

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2022-12-12 11:08:08 +05:30
Danish Arora
eecdb6aeeb
chore: upgrade to node 18 (#1061)
* chore: change `localhost` -> `127.0.0.1`

There is a change in how Node does DNS resolution in Node 18 vs
16 -- `localhost` resolves to `::1`, which is the equivalent of
`127.0.0.1` but in IPv6 instead of IPv4. The server however is
only listening on IPv4.
Reference:
https://github.com/nodejs/node/issues/40702#issuecomment-958143154

* refactor: change node version on CI from 16 to 18
2022-12-12 10:52:17 +05:30
Danish Arora
6e4ff0f2b8
fix: revert timeout on test (#1059) 2022-12-07 20:37:10 +05:30
Danish Arora
0ca7fd790c
feat!: implement peer exchange (#1027)
* wip -- yet to test

* update: draft

* wip

* support passing flags manually to nwaku node

* refactor peer-exchange test

* switch response from uint8array to ENR

* rm: unnecesary logs

* implement clas

* fix: for loop

* init-wip: directories

* setup: new package & fix circular deps

* bind a response handler

* wip: refactor & update test

* test logs

* wip code - debugging

* address: comments

* Update packages/core/src/lib/waku_peer_exchange/peer_discovery.ts

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

* Update packages/core/src/lib/waku_peer_exchange/peer_discovery.ts

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

* address: comments

* address: comments

* address: comments

* address: comments

* address: comments

* fix: test build

* refactor

* fix: build

* comply with API

* numPeers: use number instead of bigint

* fix: build

* Update packages/peer-exchange/package.json

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

* Update packages/peer-exchange/src/waku_peer_exchange.ts

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

* Update packages/peer-exchange/src/waku_peer_exchange.ts

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

* Update packages/peer-exchange/src/waku_peer_exchange.ts

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

* address: comments, add eslint config

* Update packages/peer-exchange/.eslintrc.cjs

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

* Update packages/peer-exchange/src/index.ts

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

* address comments

* test works with test fleet

* rm: only for px test => run all tests

* fix: tests

* reorder packages for build, and fix imports

* remove: px test doesnt work with local nodes

* chore: move proto into a separate package

* fix: proto dir

* fix: build

* fix: ci

* add: index for proto

* fix: ci

* Update packages/proto/package.json

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

* address comments

* chore: run failing test with higher timeout

* chore: run failing test with higher timeout

* fix: ci

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2022-12-07 11:35:30 +05:30
Danish Arora
56009d3b26
chore: move proto into a separate package (#1057)
* chore: move proto into a separate package

* fix: proto dir

* fix: build

* fix: ci

* add: index for proto

* fix: ci

* Update packages/proto/package.json

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

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2022-12-07 10:19:40 +05:30
Danish Arora
03e00225bd
chore: move libp2p utils from @waku/core to new package (#1056)
* add: libp2p-utils

* address: comments
2022-12-06 15:46:10 +05:30
fryorcraken.eth
a15436d786
Merge pull request #1050 from waku-org/ci/fix-deploy
package.json: set type to module
2022-12-06 10:16:49 +11:00
10d0ba400c
package.json: set type to module
Fixes errors like:
```
SyntaxError: Cannot use import statement outside a module
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-05 10:06:59 +01:00
fryorcraken.eth
54397f597a
Merge pull request #1049 from waku-org/feat/api-improvements 2022-12-05 16:41:05 +11:00
fryorcraken.eth
80d7215e15
doc: createEncoder and createDecoder 2022-12-05 16:05:20 +11:00
fryorcraken.eth
84c477984f
fix: remove ephemeral argument for Decoder 2022-12-05 16:05:20 +11:00
fryorcraken.eth
9cd1759a06
doc: update changelogs 2022-12-05 16:05:20 +11:00
fryorcraken.eth
a4ddb45af1
chore: do not use Partial when not needed 2022-12-05 15:14:51 +11:00
fryorcraken.eth
f80c3ded0f
chore: fix size-limit 2022-12-05 15:14:51 +11:00
fryorcraken.eth
6121aa78d7
doc: add readme for @waku/message-encryption 2022-12-05 15:14:51 +11:00
fryorcraken.eth
33ed43c068
feat: waitForRemotePeer can now be directly imported from @waku/core 2022-12-05 15:14:51 +11:00
fryorcraken.eth
f7fabec8b3
feat: easy import by having an export map for each type of encryption 2022-12-05 15:14:17 +11:00
fryorcraken.eth
563b66eab5
refactor: separate symmetric and asymmetric encoders 2022-12-05 09:34:17 +11:00
fryorcraken.eth
1d727b2bc0
refactor: extract 26/WAKU-PAYLOAD related function to waku_payload.ts 2022-12-05 09:34:17 +11:00
fryorcraken.eth
e65e0a0a80
refactor: move module that define cryptographic operations to crypto/
This is to prepare the split of encoder/decoder/message definition
from index.ts.
2022-12-05 09:34:17 +11:00
fryorcraken.eth
e8efd5e962
feat!: export user functions from package root
`createEncoder`, `createDecoder` and `DecodedMessage` are function/types
useful to the user so they should have easy access to it.

We still export `Decoder` and `Encoder` but in a path so it cam be
re-used by `@waku/message-encryption`.
2022-12-05 09:34:17 +11:00
fryorcraken.eth
ad15f861c3
feat!: hide Decoder/Encoder classes to user
Reasoning: by exposing the `Decoder` and `Encoder` classes to the user,
the user may care about them, try to use the method etc.

By "hiding" them away and providing `create*` help, the aim is for the
user to just call a function instead of instantiating a class.

Also, `V0` does not provide much information to the user so removing it.
2022-12-05 09:34:17 +11:00
fryorcraken.eth
0f5bef78d1
feat: remove V0 suffix from Decoder/Encoder 2022-12-05 09:34:17 +11:00
e0c738c092
ci: fix builds broken by moving to packages/core
Broken by:
https://github.com/waku-org/js-waku/commit/b975943e

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-02 11:44:52 +01:00
fryorcraken.eth
c7100fb820
Merge pull request #1048 from waku-org/chore/align-tsconfig 2022-12-02 16:07:16 +11:00
fryorcraken.eth
88c6ec6ef4
chore: add '.js' extensions to local import
As per ESM standard.
2022-12-02 15:54:30 +11:00
fryorcraken.eth
e678b84119
chore: use ESM module resolution
Fixes #1039
2022-12-02 15:54:30 +11:00
fryorcraken.eth
2dddaa193a
chore: merge tsconfig
No need to duplicate the config.
2022-12-02 15:54:30 +11:00
fryorcraken.eth
25f104a769
Merge pull request #1047 from waku-org/chore/remove-lerna 2022-12-02 15:53:23 +11:00
fryorcraken.eth
e7a2203bea
chore: ensure all packages are built
Add a check that no package has been forgotten from the `workspace`
property.
2022-12-02 15:44:59 +11:00
fryorcraken.eth
31fe78d5a7
chore: remove lerna
This was a premature optimization of workspace handling.
Lerna tries to be clever and cache build artefact, etc, but the step
to decide what packages to build takes more than 5s.

For now, using workspaces feature of npm.

Note that npm execute scripts in the order of the `workspaces` field of
`package.json`.
2022-12-02 15:44:59 +11:00
fryorcraken.eth
3fb0f364c2
Merge pull request #1046 from waku-org/chore/no-console
chore: make no-console an error
2022-12-02 15:40:17 +11:00
fryorcraken.eth
280d4a60dc
chore: make no-console an error
We use `debug` across the codebase, this ensures no `console.log` slips
in by mistake.
2022-12-02 13:23:57 +11:00
Danish Arora
50c6ea9ea9
Merge pull request #1031 from waku-org/danisharora/improve-cursor-api
feat: improve the cursor API
2022-11-22 23:06:50 +05:30
danisharora099
1314930765
fix: store 2022-11-22 23:03:31 +05:30
danisharora099
b8c5d27a3c
chore: redeploy 2022-11-22 22:53:15 +05:30
danisharora099
9c8d7a5cd4
chore: redeploy 2022-11-22 22:47:04 +05:30
Danish Arora
2215e44985
Merge branch 'master' into danisharora/improve-cursor-api 2022-11-21 17:56:18 +05:30
danisharora099
36a01c3c30
address comments 2022-11-21 13:20:21 +05:30
fryorcraken.eth
a85db50abd
Merge pull request #1029 from waku-org/feat/multiaddr-optional-dep 2022-11-21 11:14:02 +11:00
fryorcraken.eth
2ecb761ea7
feat: add @multiformats/multiaddr as peer dep
This dep often has breakings changes on type and is used by several
APIs. Declaring as an optional peer dependency will hopefully help the
user know what version to install.
2022-11-21 11:02:39 +11:00
fryorcraken.eth
5ba874065d
Merge pull request #900 from waku-org/filter 2022-11-21 10:57:52 +11:00
fryorcraken.eth
2a0b06f361
test: use createLightNode instead of a full node
As full node was only necessary due to an issue nwaku v0.11.

Ref: https://github.com/status-im/nwaku/pull/1090
2022-11-21 10:52:33 +11:00
fryorcraken.eth
613cfea023
Merge pull request #985 from waku-org/dependabot/npm_and_yarn/uuid-9.0.0 2022-11-21 10:37:02 +11:00
dependabot[bot]
62f300ce81
build(deps): bump uuid from 8.3.2 to 9.0.0
Bumps [uuid](https://github.com/uuidjs/uuid) from 8.3.2 to 9.0.0.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v8.3.2...v9.0.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-18 15:58:49 +00:00
fryorcraken.eth
110f15d16b
Merge pull request #1028 from waku-org/release/core-0.0.6 2022-11-18 13:49:24 +11:00
fryorcraken.eth
ab861431d5
doc: release core@0.0.6 (changelog) 2022-11-18 13:35:09 +11:00
fryorcraken.eth
dfa7c6b107
chore: release core@0.0.6 2022-11-18 13:27:36 +11:00
Danish Arora
a3da9f4f9b
Merge pull request #1024 from waku-org/danisharora/cursor-support-store
feat!: support for cursors on store API
2022-11-17 13:07:56 +05:30
danisharora099
9f0493221e
commit package-lock 2022-11-17 13:03:36 +05:30
danisharora099
100eb4c4b4
Merge branch 'master' into danisharora/cursor-support-store 2022-11-17 13:00:48 +05:30
Danish Arora
9860ef496f
Merge pull request #1016 from waku-org/danisharora/add-user-agent
feat!: add support for adding/setting user agent
2022-11-17 12:56:52 +05:30
fryorcraken.eth
ee009742c3
Merge branch 'master' of github.com:waku-org/js-waku into danisharora/add-user-agent 2022-11-17 14:41:01 +11:00
fryorcraken.eth
83e4b2713c
Merge pull request #1026 from waku-org/chore/libp2p-0.40.0 2022-11-17 14:35:32 +11:00
fryorcraken.eth
a8ab53a6c5
tests: Use in-memory DB instead of sqlite (in memory) 2022-11-17 14:28:01 +11:00
fryorcraken.eth
8984721d47
chore: upgrade artifact action, ensure no artifact override 2022-11-17 13:01:00 +11:00
fryorcraken.eth
0cabd9a38e
chore: move debug log to file, upload it 2022-11-17 12:53:51 +11:00
fryorcraken.eth
12de3a14e7
chore: fix log path for ci upload 2022-11-17 12:53:38 +11:00
fryorcraken.eth
c8e286a42a
test: Fix flaky ephemeral test and general improvement
The messages were sent at the same time over light push so there was
no strong order preservation from the behaviour.
Correction: order does not matter, just check that messages aren't
present.

Messages were only checked for `ephemeral` being false + one test was
doing several checks.
Correction: split the test and use light push + filter to check
ephemeral field value preservation.
2022-11-17 12:31:33 +11:00
fryorcraken.eth
ee7e22b17d
doc: update changelog 2022-11-17 12:31:33 +11:00
fryorcraken.eth
b6faebc422
test: fix flaky test 2022-11-17 12:31:32 +11:00
fryorcraken.eth
909a8f94c2
test: set nwaku logs to trace
Can now be done via command line argument.
2022-11-17 12:07:53 +11:00
fryorcraken.eth
a372307a30
refactor: adopt dependency injection patter for other Waku protocols
It actually simplies the API as the caller does not need to pass
libp2p to each protocol anymore (when not using a `create*` helper).
2022-11-17 12:06:43 +11:00
fryorcraken.eth
e3e1197a91
fix: correct usage of the libp2p API 2022-11-17 11:30:07 +11:00
fryorcraken.eth
c7920f09f3
test: check both custom and default agents 2022-11-17 11:29:34 +11:00
danisharora099
1cfba385c9
rn persist 2022-11-17 01:34:49 +05:30
Danish Arora
708d48a914
Merge branch 'master' into danisharora/add-user-agent 2022-11-17 01:21:46 +05:30
danisharora099
07d6d226a4
chore: redeploy 2022-11-17 00:49:48 +05:30
danisharora099
0e0660f5b1
revert: timeout 2022-11-16 19:06:32 +05:30
danisharora099
0627a803ea
verbose error message 2022-11-16 19:06:04 +05:30
danisharora099
0f73c0f331
address comments 2022-11-16 19:00:09 +05:30
danisharora099
5c4118041e
fix: cursor 2022-11-16 18:57:46 +05:30
fryorcraken.eth
8dfb133cd7
fix: libp2p upgrade (no more autodial + constructor dependency injection) 2022-11-16 21:27:33 +11:00
fryorcraken.eth
910fc5a6b2
chore: bump several libp2p dependencies 2022-11-16 21:27:33 +11:00
fryorcraken.eth
9d2df1d620
chore: bump libp2p to 0.40.0 2022-11-16 21:27:32 +11:00
Danish Arora
9613e9c41d
Merge branch 'master' into danisharora/cursor-support-store 2022-11-16 13:26:35 +05:30
fryorcraken.eth
efe5b326a5
Merge pull request #1014 from waku-org/danisharora/add-ephemeral-support 2022-11-16 11:06:42 +11:00
fryorcraken.eth
59992832fe
feat!: add Waku Message ephemeral support 2022-11-16 11:00:43 +11:00
fryorcraken.eth
07e3a1ad69
Merge pull request #1025 from waku-org/nwaku-v0.13.0 2022-11-16 10:11:49 +11:00
danisharora099
f3575afdfd
add: test case 2022-11-16 00:57:42 +05:30
danisharora099
a49786fc83
chore: redeploy 2022-11-15 23:56:21 +05:30
Danish Arora
ae5ab0d1e0
Merge branch 'master' into danisharora/add-user-agent 2022-11-15 23:45:48 +05:30
Danish Arora
4e730eff9d
Merge branch 'master' into danisharora/cursor-support-store 2022-11-15 18:12:05 +05:30
danisharora099
c012748bb7
address comments 2022-11-15 18:08:21 +05:30
danisharora099
8f243eb325
fix: git diff 2022-11-15 18:07:29 +05:30
danisharora099
1a5a57f756
fix: git diff 2022-11-15 18:06:59 +05:30
danisharora099
f3635f1fe8
address comments 2022-11-15 18:06:33 +05:30
danisharora099
69b64af548
add: tests 2022-11-15 17:30:35 +05:30
fryorcraken.eth
ab61eac84f
chore(ci/tests): bump nwaku to v0.13.0 2022-11-15 22:01:27 +11:00
fryorcraken.eth
a0162febc7
chore: remove unnecessary ts-ignore 2022-11-15 22:01:27 +11:00
fryorcraken.eth
12fa89c930
fix: defaults to mounted protocol when dialing 2022-11-15 22:01:27 +11:00
fryorcraken.eth
1b85373472
test: use esnext for NodeJS tests 2022-11-15 22:01:27 +11:00
fryorcraken.eth
74d7bb90c7
test: compare all messages at once
Makes it easier to understand the order mismatch.
2022-11-15 22:01:27 +11:00
fryorcraken.eth
11c9823a9d
test: use byte payload to more easily read nwaku's logs 2022-11-15 22:01:27 +11:00
fryorcraken.eth
c3c3833b1b
test: nwaku's store now reject messages older than 20s 2022-11-15 22:01:27 +11:00
fryorcraken.eth
862a33f239
test: reduce log verbosity 2022-11-15 22:01:27 +11:00
fryorcraken.eth
584fe29b39
chore: improve log format 2022-11-15 22:01:26 +11:00
fryorcraken.eth
66270836f8
test: need to specify in memory sqlite
So that messages are not persisted between tests.
2022-11-15 22:01:26 +11:00
fryorcraken.eth
9cdc9f96ac
test: nwaku's --persist-message is now deprecated
`--store=true` is enough to enable message persist for waku store.
2022-11-15 22:01:26 +11:00
fryorcraken.eth
25565aa2c1
Merge pull request #1017 from waku-org/nwaku-master
test: run CI against nwaku origin/master
2022-11-15 20:31:51 +11:00
fryorcraken.eth
d165b5a1d5
test: run CI against nwaku origin/master
To pick up any upcoming issue.
2022-11-15 15:24:14 +11:00
danisharora099
0169a0ccb1
functionality works! test wip 2022-11-15 05:17:24 +05:30
danisharora099
593a037e1f
address comments 2022-11-14 15:15:53 +05:30
danisharora099
7d8c410b5b
address comments 2022-11-14 15:13:16 +05:30
Danish Arora
55890f1b9e
Update packages/create/src/index.ts
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2022-11-11 19:51:34 +05:30
Danish Arora
00e57d61ec
Update packages/core/src/lib/waku.ts
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2022-11-11 19:51:27 +05:30
fryorcraken.eth
b8a44a6060
Merge pull request #1020 from waku-org/release/core@0.0.5 2022-11-11 16:55:45 +11:00
fryorcraken.eth
e05216a282
chore: update changelog 2022-11-11 16:49:12 +11:00
fryorcraken.eth
7a75eb03b7
chore(interfaces): release @waku/interfaces@0.0.4 2022-11-11 16:47:28 +11:00
fryorcraken.eth
56568b7f79
chore(core): release @waku/core@0.0.5 2022-11-11 16:45:40 +11:00
fryorcraken.eth
a0581c5ac7
Merge pull request #1019 from waku-org/chore/libp2p@0.39.5 2022-11-11 16:39:24 +11:00
fryorcraken.eth
3ab78eacee
chore(interfaces/core): bump libp2p to 0.39.5
Fixes connection-manager bug
2022-11-11 16:12:52 +11:00
fryorcraken.eth
566f0c8479
Merge pull request #1018 from waku-org/release/core-v0.0.4 2022-11-11 15:58:07 +11:00
fryorcraken.eth
bca31a6fa5
chore(interfaces): release 0.0.3 2022-11-11 15:48:14 +11:00
danisharora099
71fe047254
add: support for user agent to identify libp2p 2022-11-10 22:44:53 +05:30
fryorcraken.eth
0a3944ee8c
chore(core): release 0.0.4 2022-11-09 15:47:34 +11:00
fryorcraken.eth
589d2b3d8a
Merge pull request #1011 from waku-org/chore/multiaddr 2022-11-09 15:44:51 +11:00
fryorcraken.eth
063fac71e2
chore(interfaces): bump libp2p 2022-11-09 14:48:44 +11:00
fryorcraken.eth
a60f2e529c
test: remove todo now that @multiformats/multiaddr@11 is used by all deps 2022-11-09 14:47:13 +11:00
fryorcraken.eth
81422b7abb
chore(core): bump libp2p 2022-11-09 14:44:03 +11:00
fryorcraken.eth
ea822b206e
chore(core): bump @libp2p/interface-connection 2022-11-09 13:28:55 +11:00
fryorcraken.eth
6e0503631e
Merge pull request #1007 from waku-org/chore/release/core-create 2022-11-04 16:49:05 +11:00
fryorcraken.eth
b678772ca3
chore(create): release 0.0.3 2022-11-04 16:43:09 +11:00
fryorcraken.eth
bf6992effb
chore(core): release 0.0.3 2022-11-04 16:42:13 +11:00
fryorcraken.eth
d6266004b8
Merge pull request #1006 from waku-org/fix/create/deps 2022-11-04 16:41:38 +11:00
fryorcraken.eth
cb835ada65
fix(core,create): dependencies mismatch
Some `create` dependencies were still in the `core` package.json file.
2022-11-04 16:35:42 +11:00
fryorcraken.eth
8b3fe74902
Merge pull request #1005 from waku-org/chore/message-encryption/release-0.0.3 2022-11-04 16:32:12 +11:00
fryorcraken.eth
5d64f8b90a
chore(message-encryption): release 0.0.3 2022-11-04 16:26:53 +11:00
fryorcraken.eth
158f04b051
Merge pull request #1004 from waku-org/fix/waku-message-encryption/constants 2022-11-04 16:25:35 +11:00
fryorcraken.eth
148123a756
fix: missing extension 2022-11-04 16:18:55 +11:00
fryorcraken.eth
d9cdb78f8a
fix: missing dependency 2022-11-04 16:18:54 +11:00
fryorcraken.eth
2f5e08e52b
Merge pull request #1003 from waku-org/chore/release-script 2022-11-04 15:35:39 +11:00
fryorcraken.eth
d9799ada56
chore: remove unneeded release script
We now release from the root.
2022-11-04 15:26:50 +11:00
fryorcraken.eth
eaafb431cc
Merge pull request #1002 from waku-org/release/v0.0.2 2022-11-04 15:26:26 +11:00
fryorcraken.eth
4c2ffebca2
core: fresh lock file 2022-11-04 15:10:20 +11:00
fryorcraken.eth
be45358e9c
Release 0.0.2 2022-11-04 14:54:12 +11:00
fryorcraken.eth
21f249b73b
Merge pull request #1001 from waku-org/feat/split-message-interface 2022-11-04 14:37:38 +11:00
fryorcraken.eth
2be2718531
chore: check:tsc needs to check test files too 2022-11-04 14:31:15 +11:00
fryorcraken.eth
8aa9b43f61
feat!: split outgoing and incoming message interface
While the data structure are similar, they serve different purposes.
Having the same type has show to confuse API consumers

Resolves #979
2022-11-04 14:30:59 +11:00
fryorcraken.eth
de6415f4f1
Merge pull request #999 from waku-org/feat/split-message 2022-11-04 13:40:12 +11:00
fryorcraken.eth
3346dbbe57
chore: fix size config 2022-11-04 13:34:01 +11:00
fryorcraken.eth
1a09aa18d5
chore: fix tests 2022-11-04 11:45:15 +11:00
fryorcraken.eth
e6efd0438c
chore: make message-encryption compile 2022-11-04 11:38:32 +11:00
fryorcraken.eth
256b7223f3
chore!: extract version-1 from chore 2022-11-04 11:28:14 +11:00
fryorcraken.eth
a20b7809d6
chore: init message-encryption package 2022-11-04 11:25:53 +11:00
fryorcraken.eth
051263b00a
chore: use multi-semantic-release in release script 2022-11-04 11:25:53 +11:00
fryorcraken.eth
fa53d3c3b6
Merge pull request #998 from waku-org/chore/fix-releasing 2022-11-04 10:59:07 +11:00
fryorcraken.eth
6e774389df
chore: fix releasing 2022-11-04 10:52:41 +11:00
fryorcraken.eth
55020efd87
Merge pull request #997 from waku-org/chore/remove-semantic-releaes-multirepo 2022-11-04 10:22:58 +11:00
fryorcraken.eth
ed31857d62
chore: remove semantic-release-monorepo config 2022-11-04 10:16:37 +11:00
fryorcraken.eth
12f1972e9a
Merge pull request #996 from waku-org/chore/multi-semantic-release 2022-11-04 10:13:50 +11:00
fryorcraken.eth
6b5c18f4a1
chore: remove release action in CI 2022-11-04 10:07:35 +11:00
fryorcraken.eth
788713f169
chore: install multi-semantic-release 2022-11-04 10:07:13 +11:00
fryorcraken.eth
5a78b5f246
chore: Remove semantic-release-monorepo, move semantic-release to root 2022-11-04 10:04:38 +11:00
fryorcraken.eth
d1476d6e1c
Merge pull request #995 from waku-org/feat/split-dns-discovery
feat!: extract utils, dns discovery and enr from core
2022-11-03 23:18:19 +11:00
fryorcraken.eth
1a77aca0a4
doc: add new packages to config 2022-11-03 23:06:41 +11:00
fryorcraken.eth
16cca33a59
chore: fix size-limit 2022-11-03 23:04:33 +11:00
fryorcraken.eth
55192a2774
chore: fix tests test + karma tests 2022-11-03 22:40:42 +11:00
fryorcraken.eth
e901e7f69d
chore: fix tests build 2022-11-03 21:48:04 +11:00
fryorcraken.eth
d78a40f273
chore: fix dns-discovery build 2022-11-03 21:37:55 +11:00
fryorcraken.eth
81c855314d
chore: move dependencies from core to enr 2022-11-03 14:42:01 +11:00
fryorcraken.eth
21e5e41b0a
chore: build core package 2022-11-03 14:24:08 +11:00
fryorcraken.eth
25dfe9d969
chore: get dns-discovery to compile (almost) 2022-11-03 14:24:08 +11:00
fryorcraken.eth
9cc32c1032
tests: fix karma 2022-11-03 14:24:08 +11:00
fryorcraken.eth
8a00bc1b85
chore!: extract utils from core 2022-11-03 14:24:08 +11:00
fryorcraken.eth
f7f28f03b0
feat!: extract dns discovery and enr from core 2022-11-03 14:24:08 +11:00
fryorcraken.eth
2e5cb3c601
Merge pull request #993 from waku-org/chore/ci 2022-11-02 20:26:32 +11:00
fryorcraken.eth
719ce121d4
chore: discourage reporting of unavailable npm package name 2022-11-02 16:56:50 +11:00
fryorcraken.eth
86e62a0ed1
chore(ci): release all packages, not the root one 2022-11-02 16:56:50 +11:00
fryorcraken.eth
468a910004
Merge pull request #991 from waku-org/release/v0.0.1 2022-11-02 15:44:56 +11:00
fryorcraken.eth
093d84605f
chore: release 0.0.1 2022-11-02 15:36:11 +11:00
fryorcraken.eth
39ae77ea07
Merge pull request #990 from waku-org/feat/split-create-waku 2022-11-02 15:24:51 +11:00
fryorcraken.eth
613ba08fc2
chore: fix doc 2022-11-02 15:17:02 +11:00
fryorcraken.eth
69c94db23a
chore: fix doc 2022-11-02 15:05:12 +11:00
fryorcraken.eth
ef2475ffb8
chore: fix size-limit 2022-11-02 14:20:20 +11:00
fryorcraken.eth
5df320de32
chore: must always build first now 2022-11-02 14:16:31 +11:00
fryorcraken.eth
6d717f2e55
tests: all files in tests are actually node only
Except for a live test that always fails.
2022-11-02 14:08:32 +11:00
fryorcraken.eth
5ba1ee12c7
test: re-introduce build 2022-11-02 13:53:26 +11:00
fryorcraken.eth
b11d465a9d
chore: move tests to remove circular dep 2022-11-01 21:31:53 +11:00
fryorcraken.eth
9d54462893
chore: lerna skip non-existent scripts 2022-11-01 20:14:01 +11:00
fryorcraken.eth
3d08cb28c8
chore: move tests to separate package 2022-11-01 20:13:09 +11:00
fryorcraken.eth
ce9938e464
chore: move tests to separate package 2022-11-01 19:57:19 +11:00
fryorcraken.eth
fb2b58898d
chore: must build before we check 2022-11-01 19:48:44 +11:00
fryorcraken.eth
a30354cbd0
test: fix ENR test 2022-11-01 19:46:02 +11:00
fryorcraken.eth
052d5c9d20
chore: only bump patch versions for now 2022-11-01 19:41:34 +11:00
fryorcraken.eth
9d74c9f6fe
fix: core check pass 2022-11-01 19:33:33 +11:00
fryorcraken.eth
fe818580f2
fix: @waku/interfaces 2022-11-01 19:20:07 +11:00
fryorcraken.eth
c409076365
fix: @waku/interfaces 2022-11-01 19:15:06 +11:00
fryorcraken.eth
a185b5a0ec
fix: @waku/interfaces 2022-11-01 16:33:42 +11:00
fryorcraken.eth
057507f94f
fix: @waku/interfaces 2022-11-01 16:30:24 +11:00
fryorcraken.eth
4eddad3166
fix: @waku/interfaces 2022-11-01 15:16:38 +11:00
fryorcraken.eth
16eaa911a9
chore: new @waku/interfaces package 2022-11-01 14:48:52 +11:00
fryorcraken.eth
8a84cd07b3
fixup! chore: new @waku/create package 2022-10-31 14:56:29 +11:00
fryorcraken.eth
80d16346e0
fixup! chore: new @waku/create package 2022-10-31 14:49:39 +11:00
fryorcraken.eth
37c1e6b968
chore: new @waku/create package 2022-10-31 14:47:12 +11:00
fryorcraken.eth
db1a3a4127
Merge pull request #989 from waku-org/chore/semantic-release-workspace 2022-10-31 14:22:12 +11:00
fryorcraken.eth
a6276a49b0
chore: only attempt to release for a push on master branch 2022-10-31 14:17:34 +11:00
fryorcraken.eth
2e6d740f40
chore: setup semantic-release for workspace 2022-10-31 14:09:08 +11:00
fryorcraken.eth
eeab832590
Merge pull request #988 from waku-org/chore/auto-release 2022-10-31 12:41:50 +11:00
fryorcraken.eth
3a077cdf4b
chore: do not skip build when running size-limit in ci 2022-10-31 12:36:39 +11:00
fryorcraken.eth
592bbb0579
chore: do not miss markdown files when running lint-staged 2022-10-31 12:36:39 +11:00
fryorcraken.eth
fe0a3d938f
doc: update readmes 2022-10-31 12:36:39 +11:00
fryorcraken.eth
88a3c2adf0
chore: setup automated releasing from master 2022-10-31 12:15:37 +11:00
fryorcraken.eth
792d80857a
chore: update urls 2022-10-31 11:47:06 +11:00
fryorcraken.eth
fdd617de3c
Merge pull request #987 from waku-org/chore/monorepo 2022-10-31 11:46:07 +11:00
fryorcraken.eth
b3c68fec4d
chore: remove release @next 2022-10-31 11:40:46 +11:00
fryorcraken.eth
6a98998ae8
chore: cache lerna actions 2022-10-31 11:32:03 +11:00
fryorcraken.eth
670816049a
chore: remove unneeded declaration 2022-10-31 11:27:07 +11:00
fryorcraken.eth
e902231873
chore: fix conventional commit setup 2022-10-31 11:22:26 +11:00
fryorcraken.eth
052925e8e8
chore: rename js-waku package to @waku/core 2022-10-31 11:22:26 +11:00
fryorcraken.eth
cd1d7b813b
chore: fix ci 2022-10-31 11:22:25 +11:00
fryorcraken.eth
3f71a0a857
chore: fix test script 2022-10-31 09:32:46 +11:00
fryorcraken.eth
44e2890301
chore: fix eslint config for lint-staged 2022-10-31 09:32:46 +11:00
fryorcraken.eth
6b2accbb28
chore: use prettierignore to select files to format 2022-10-31 09:32:46 +11:00
fryorcraken.eth
a13b2c3f70
chore: remove unneeded file 2022-10-31 09:32:46 +11:00
fryorcraken.eth
2cef9d43ea
chore: move size-limit to root 2022-10-31 09:32:46 +11:00
fryorcraken.eth
c2e8feba28
chore: remove unneeded lock file 2022-10-31 09:32:45 +11:00
fryorcraken.eth
42478472ae
chore: ignore generated files 2022-10-31 09:32:45 +11:00
fryorcraken.eth
e280d957db
chore: keep build-scripts for ./core only 2022-10-31 09:32:45 +11:00
fryorcraken.eth
c3ef7cb6c2
chore: fix fix script 2022-10-31 09:32:45 +11:00
fryorcraken.eth
2e60d90d7d
chore(deps): bump @multiformats/multiaddr to 11.0.6 2022-10-31 09:32:45 +11:00
fryorcraken.eth
81f3af0f66
chore: fix eslint 2022-10-30 21:19:14 +11:00
fryorcraken.eth
7cc7439ed6
chore: setup workspace scripts 2022-10-30 21:16:02 +11:00
fryorcraken.eth
dc4089a1dd
chore: setup husky/lint-staged at root 2022-10-30 21:12:01 +11:00
fryorcraken.eth
2f8eb0fbcc
chore: move hidden files to ./core 2022-10-30 21:03:23 +11:00
fryorcraken.eth
4e340eb045
chore: install lerna 2022-10-30 21:02:12 +11:00
fryorcraken.eth
b975943e90
chore: move js-waku to ./core 2022-10-30 17:57:15 +11:00
fryorcraken.eth
d25e7c1fb3
chore: remove guides & examples folder
Moved to:
- https://github.com/waku-org/js.waku.guide
- https://github.com/waku-org/js-waku-examples
2022-10-30 17:51:45 +11:00
fryorcraken.eth
00db169878
Merge pull request #986 from waku-org/chore/conventional-commits 2022-10-30 17:45:07 +11:00
fryorcraken.eth
54ee144c5e
chore: add conventional commit check for PRs
By splitting the repo in multiple packages, it is going to be more
difficult to manually maintain a changelog. Using conventional commit,
we can automatically generate the changelog from PR titles.
2022-10-30 17:35:00 +11:00
fryorcraken.eth
2af5b3db44
Merge pull request #976 from waku-org/dependabot/npm_and_yarn/p-timeout-6.0.0 2022-10-28 16:04:49 +11:00
dependabot[bot]
baf2ff0386
build(deps-dev): bump p-timeout from 4.1.0 to 6.0.0
Bumps [p-timeout](https://github.com/sindresorhus/p-timeout) from 4.1.0 to 6.0.0.
- [Release notes](https://github.com/sindresorhus/p-timeout/releases)
- [Commits](https://github.com/sindresorhus/p-timeout/compare/v4.1.0...v6.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-28 15:59:08 +11:00
fryorcraken.eth
0be8daec1a
Merge pull request #983 from waku-org/release/0.30.0 2022-10-28 11:13:56 +11:00
fryorcraken.eth
a502d153e5
Release 0.30.0 2022-10-28 10:49:28 +11:00
fryorcraken.eth
b7d86c3266
Merge pull request #982 from waku-org/chore/store-clean-up 2022-10-28 10:06:20 +11:00
fryorcraken.eth
4b1f0ef795
chore: clean-up store protocol 2022-10-28 09:38:02 +11:00
fryorcraken.eth
d6b7aee989
Merge pull request #981 from waku-org/fix/abort-callback 2022-10-28 09:37:31 +11:00
fryorcraken.eth
0cca9a73a1
fix: queryOrderedCallback not stopping when callback returns true
Fixes #978.
2022-10-28 09:28:16 +11:00
fryorcraken.eth
f3bd7a7ba5
Merge pull request #980 from waku-org/remove-store-v2beta3 2022-10-28 09:09:47 +11:00
fryorcraken.eth
bf1988cda8
fix: incorrect cursor encoding in Store queries
Fixes https://github.com/status-im/nwaku/issues/1157
2022-10-28 09:01:00 +11:00
fryorcraken.eth
29436eafdc
Merge pull request #975 from waku-org/proof-attached 2022-09-30 13:12:51 +10:00
fryorcraken.eth
25fe598082
refactor: better express what the function members do 2022-09-30 13:07:24 +10:00
fryorcraken.eth
26967b6334
fix: ensure that some fields are not omitted by Message implementation 2022-09-30 13:07:24 +10:00
fryorcraken.eth
0e36c8e95c
Merge pull request #974 from waku-org/message-protected 2022-09-28 14:03:31 +10:00
fryorcraken.eth
6ec0628223
feat: enable external library to extend MessageV0 and access proto 2022-09-28 13:57:22 +10:00
fryorcraken.eth
7714812cc9
Merge pull request #973 from richard-ramos/rlnIdentifier
chore: add rlnIdentifier to message.proto
2022-09-27 07:29:30 +10:00
Richard Ramos
aec3822972
chore: add rlnIdentifier to message.proto 2022-09-26 14:29:41 -04:00
fryorcraken.eth
5bab85f93f
Merge pull request #971 from waku-org/feat/ratelimitproof 2022-09-26 10:10:23 +10:00
fryorcraken.eth
0ac10c0c19
doc: update changelog 2022-09-26 10:02:59 +10:00
fryorcraken.eth
f59f00b7e9
test: fix spelling 2022-09-26 10:02:06 +10:00
Richard Ramos
b37a9285da
feat: add rate limit proof to waku message 2022-09-25 11:59:16 -04:00
fryorcraken.eth
309bebf2fe
Merge pull request #969 from waku-org/release/0.29.0 2022-09-21 16:50:22 +10:00
fryorcraken.eth
1508a9169a
Release 0.29.0 2022-09-21 16:41:02 +10:00
fryorcraken.eth
9e4b3acd81
Merge pull request #968 from waku-org/type-store 2022-09-21 16:20:50 +10:00
fryorcraken.eth
2d98977ac6
refactor: improve type handling 2022-09-21 16:14:23 +10:00
fryorcraken.eth
cc3b46ffbb
feat: template type on store APIs 2022-09-21 16:10:27 +10:00
fryorcraken.eth
879734b780
Merge pull request #967 from waku-org/filter-type 2022-09-21 15:56:58 +10:00
fryorcraken.eth
dbe832c1f8
feat: allow filter callback to process any type of message 2022-09-21 15:48:37 +10:00
fryorcraken.eth
cb43229b3a
Merge pull request #965 from danBamikiya/dan-typescript-upgrade 2022-09-21 11:11:37 +10:00
Dan Bamikiya
fc0ff3acc8
chore: upgrade typescript version to 4.6.3 2022-09-21 11:05:09 +10:00
fryorcraken.eth
dc50c176c4
Merge pull request #963 from waku-org/template-decoder 2022-09-21 11:04:24 +10:00
fryorcraken.eth
50348a6d91
chore: remove unused buf files 2022-09-21 10:58:20 +10:00
fryorcraken.eth
dc639370bc
chore: ensure size-limit conf file is formatted 2022-09-21 10:58:20 +10:00
fryorcraken.eth
49e16de396
feat: WakuLightPush.push and WakuRelay.send returns SendResult with the list of recipients. 2022-09-21 10:58:20 +10:00
fryorcraken.eth
ae46640ba8
test: group encoder/decoder declaration 2022-09-21 10:58:20 +10:00
fryorcraken.eth
8679adcf80
feat: enable store queries with multiple content topics and decoders 2022-09-21 10:58:18 +10:00
fryorcraken.eth
c0c4965e28
feat: use a content topic only decoder for first pass decoding 2022-09-21 10:57:53 +10:00
fryorcraken.eth
52005f8963
feat: enable custom Message type on Decoder
This enables the type passed on the callback functions to match the
decoder's so the consumer can access implementation specific fields.
2022-09-20 14:48:49 +10:00
fryorcraken.eth
9ff602da7e
doc: fix changelog 2022-09-20 12:38:24 +10:00
fryorcraken.eth
c0e2bb04d4
Merge pull request #935 from waku-org/waku-message-interface 2022-09-20 12:31:15 +10:00
fryorcraken.eth
b2c7e4185f
feat: make message encoding more generic 2022-09-20 12:23:01 +10:00
fryorcraken.eth
96e8d0ebd5
Merge pull request #962 from waku-org/release/0.28.1 2022-09-20 12:08:02 +10:00
fryorcraken.eth
d891c35f86
chore: release 0.28.1
### Added

- `WakuRelay.addObserver` now returns a function to delete the observer.

### Changed

- `queryCallbackOnPromise`'s return value has been simplified to
  `Promise<void>`.
- doc: clarified behaviour of `WakuStore` query functions.
2022-09-20 11:42:02 +10:00
fryorcraken.eth
f93dc15768
Merge pull request #961 from waku-org/return-delete 2022-09-19 14:53:11 +10:00
fryorcraken.eth
1295a34481
feat: return function to delete observer 2022-09-19 14:44:52 +10:00
fryorcraken.eth
32a55f707a
Merge pull request #960 from waku-org/simplify-store-return 2022-09-19 14:41:00 +10:00
fryorcraken.eth
f70d4e4041
feat: simplified and clarified behaviour of WakuStore query functions 2022-09-19 14:13:34 +10:00
fryorcraken.eth
e5103adfef
Merge pull request #959 from waku-org/release/0.28.0 2022-09-16 13:25:59 +10:00
fryorcraken.eth
3874843e7b
Release 0.28.0 2022-09-16 12:45:14 +10:00
fryorcraken.eth
2df4c5b968
Merge pull request #958 from waku-org/go-waku-0.2.2 2022-09-16 12:35:19 +10:00
fryorcraken.eth
5421008ff3
ci: bump go-waku to 0.2.2 2022-09-16 12:29:40 +10:00
fryorcraken.eth
8daa6d5c95
Merge pull request #947 from waku-org/split-waku-store 2022-09-15 11:34:22 +10:00
fryorcraken.eth
5a529c1cd7
feat: provide several API for store queries 2022-09-14 23:02:19 +10:00
fryorcraken.eth
65511a5888
feat: store callback takes promises
This enables the consumer to decide between:

1. Waiting for all promises, less efficient but maintain order;
2. Process promises as they resolve, faster to get messages through but
disrupt message order.
2022-09-14 22:55:03 +10:00
fryorcraken.eth
930c7beaef
refactor: extract peer selection logic 2022-09-14 22:55:03 +10:00
fryorcraken.eth
bdf1c9b7e3
fix: rename to avoid conflict with eponymous TypeScript type 2022-09-14 22:55:03 +10:00
fryorcraken.eth
056aed59fb
refactor: selectRandomPeer doesn't need to be async 2022-09-14 22:55:02 +10:00
fryorcraken.eth
3b05bfe988
refact: getPeersForProtocol only needs the peer store 2022-09-14 22:55:02 +10:00
fryorcraken.eth
0c83953e55
Merge pull request #957 from waku-org/relay-type 2022-09-14 22:54:13 +10:00
fryorcraken.eth
b113f3fc25
fix: correct options type to enable passing gossipsub options on create* 2022-09-14 22:24:00 +10:00
fryorcraken.eth
d34b64a671
Merge pull request #955 from waku-org/release/0.27.0 2022-09-13 23:02:04 +10:00
fryorcraken.eth
a25b16cb54
chore: add peer id log 2022-09-13 22:55:23 +10:00
fryorcraken.eth
0906125834
Release 0.27.0 2022-09-13 22:55:22 +10:00
fryorcraken.eth
d83b2b7419
Merge pull request #956 from waku-org/log-peer-id 2022-09-13 20:39:56 +10:00
fryorcraken.eth
2a355df487
chore: add peer id log 2022-09-13 20:25:40 +10:00
fryorcraken.eth
c193ba10c5
Merge pull request #954 from waku-org/audit 2022-09-13 13:49:20 +10:00
fryorcraken.eth
ade8277c00
chore: fix spelling 2022-09-13 13:37:52 +10:00
fryorcraken.eth
3a562ebfcf
chore: run npm update 2022-09-13 13:25:11 +10:00
fryorcraken.eth
f2d667d418
Merge pull request #953 from waku-org/restore-mplex 2022-09-13 13:20:38 +10:00
fryorcraken.eth
69a1e9988b
Revert "fix: downgrade @libp2p/mplex"
This reverts commit 4755f2896985b3405404658aef5dc4e73ec10b1b.
2022-09-13 13:14:24 +10:00
fryorcraken.eth
9a4834a824
Merge pull request #952 from waku-org/downgrade-mplex 2022-09-13 12:08:27 +10:00
fryorcraken.eth
4755f28969
fix: downgrade @libp2p/mplex
Ref: https://github.com/libp2p/js-libp2p-mplex/issues/215
2022-09-13 12:03:19 +10:00
fryorcraken.eth
fb47fcc8a6
Merge pull request #951 from waku-org/revert-util 2022-09-13 11:01:34 +10:00
fryorcraken.eth
9a50e5e65c
Revert "fix: util polyfill not needed"
This reverts commit cf6eafdff356e8339e8589fb2b3c01b5da241879.
2022-09-13 10:05:27 +10:00
fryorcraken.eth
b8640e89bd
Merge pull request #948 from waku-org/no-util-polyfill
fix: util polyfill not needed
2022-09-12 15:15:00 +10:00
fryorcraken.eth
cf6eafdff3
fix: util polyfill not needed
Ref: https://github.com/libp2p/js-libp2p-mplex/pull/213#issuecomment-1243219007
2022-09-12 14:57:10 +10:00
fryorcraken.eth
bbd035f248
Merge pull request #946 from waku-org/rpc-type 2022-09-11 08:25:12 +10:00
fryorcraken.eth
ff292f37ba
test: fix typing of JSON RPC response
Ref: https://github.com/status-im/nwaku/issues/1139
2022-09-11 02:10:59 +10:00
fryorcraken.eth
9c43905444
Merge pull request #945 from waku-org/ci/change-domain 2022-09-11 00:55:46 +10:00
fryorcraken.eth
f47affad45
doc: update changelog 2022-09-11 00:39:02 +10:00
fryorcraken.eth
54ac43677f
doc: fix infra link 2022-09-11 00:38:12 +10:00
91fbcb5fb9
ci: fix deploy.js script to use import
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-11 00:38:11 +10:00
fa43c0ce05
ci: update site domain to js.waku.org
Resolves: https://github.com/waku-org/js-waku/issues/943

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-11 00:38:11 +10:00
fryorcraken.eth
70547db2be
Merge pull request #940 from waku-org/ignored-promise 2022-09-11 00:32:06 +10:00
fryorcraken.eth
07007eadb0
fix: do not ignore promise in addPeerToAddressBook 2022-09-11 00:16:07 +10:00
fryorcraken.eth
31873e2ee2
Merge pull request #944 from waku-org/fix-project-action
ci: remove classic project actions
2022-09-09 18:58:10 +10:00
fryorcraken.eth
e4362c80e1
ci: remove classic project actions 2022-09-09 16:41:19 +10:00
fryorcraken.eth
7cc0289132
Merge pull request #939 from status-im/gen-doc 2022-09-09 13:41:19 +10:00
fryorcraken.eth
01baf4b6e6
docs: reinstate Jenkins deployment of docs 2022-09-09 10:18:49 +10:00
fryorcraken.eth
4d29698128
Merge pull request #931 from status-im/optional-protocols 2022-09-08 19:30:00 +10:00
fryorcraken.eth
c9963a4aea
docs: fix links 2022-09-08 18:44:16 +10:00
fryorcraken.eth
6ef0a69d07
ci: fix size-limit config 2022-09-08 18:35:21 +10:00
fryorcraken.eth
91e4d1b435
test: uses full nodes in tests
Ref:  https://github.com/status-im/nwaku/issues/1085
2022-09-08 18:35:21 +10:00
fryorcraken.eth
9fc16143fa
feat: createLightNode and createPrivacyNode helpers 2022-09-08 18:35:20 +10:00
fryorcraken.eth
f56f6e2e83
feat: define Waku interface 2022-09-08 18:35:20 +10:00
fryorcraken.eth
aee054d9d6
feat: merge gossipsub type in CreateOptions interface 2022-09-08 18:35:20 +10:00
fryorcraken.eth
a54494dbbf
build: run make update before building nwaku 2022-09-08 18:35:13 +10:00
fryorcraken.eth
39f5b83501
Merge pull request #936 from status-im/release/0.26.0 2022-09-08 17:31:10 +10:00
fryorcraken.eth
f9abc79297
Release 0.26.0 2022-09-08 15:08:53 +10:00
fryorcraken.eth
bcb9082ea1
Merge pull request #926 from status-im/console-log
refactor: remove console.log usage
2022-09-08 15:00:43 +10:00
fryorcraken.eth
d97201d6df
style: use log for debug across codebase 2022-09-08 13:18:07 +10:00
fryorcraken.eth
3c5f1d89df
style: add warning for usage of console 2022-09-08 13:18:07 +10:00
fryorcraken.eth
c5e1f50cc8
refactor: remove console.log usage 2022-09-08 13:18:07 +10:00
fryorcraken.eth
023e175267
Merge pull request #934 from status-im/doc
doc: add missing modules
2022-09-08 13:04:03 +10:00
fryorcraken.eth
3a125dfcbe
doc: add missing modules 2022-09-08 11:12:44 +10:00
fryorcraken.eth
0c7ce367a6
Merge pull request #932 from status-im/remove-examples
chore: remove examples folder
2022-09-08 11:12:23 +10:00
fryorcraken.eth
c201cbd3dd
chore: remove examples folder 2022-09-07 16:47:22 +10:00
fryorcraken.eth
d9d237b7ac
Merge pull request #927 from status-im/todos 2022-09-07 13:28:30 +10:00
fryorcraken.eth
76251c922e
test: make it easier to understand test failure 2022-09-07 12:11:08 +10:00
fryorcraken.eth
e4d4fb1edd
feat: DecryptionParams may be passed when using queryHistory 2022-09-07 12:11:08 +10:00
fryorcraken.eth
f44e13885c
chore: replace todo with issue reference 2022-09-06 12:29:13 +10:00
fryorcraken.eth
ac48792e0e
feat: implement a simple connection management 2022-09-06 12:29:13 +10:00
fryorcraken.eth
9dd00fc026
chore(deps): upgrade @libp2p/interface-connection-manager 2022-09-06 12:29:13 +10:00
fryorcraken.eth
b2b14625bb
refactor: remove unused function 2022-09-06 12:29:13 +10:00
fryorcraken.eth
ad85c84a22
Merge pull request #928 from status-im/audit 2022-09-06 12:25:29 +10:00
fryorcraken.eth
579e6bc920
chore(deps): run npm audit fix 2022-09-05 22:10:47 +10:00
fryorcraken.eth
1d3f618523
Merge pull request #925 from status-im/ci-node 2022-09-05 22:07:55 +10:00
fryorcraken.eth
3766962b47
ci: fix node version for go-waku 2022-09-05 21:02:01 +10:00
fryorcraken.eth
62cc475322
Merge pull request #924 from status-im/release/0.25.0 2022-09-05 15:49:39 +10:00
fryorcraken.eth
d2ac62c708
Release 0.25.0 2022-09-05 15:36:57 +10:00
fryorcraken.eth
158b789ff5
Merge pull request #922 from status-im/libp2p-0.38.0 2022-09-05 15:08:43 +10:00
fryorcraken.eth
bfeaf6c14e
fix: it-length-prefixed now returns Uint8ArrayList 2022-09-05 15:02:23 +10:00
fryorcraken.eth
ab76063f33
chore(deps): bump protons to 5.10, protons-runtime to 3.1.0 2022-09-05 14:39:55 +10:00
fryorcraken.eth
4d4c4430f4
refactor: rename proto enum Error to HistoryError
As this creates a conflict with the new protons version.
2022-09-05 14:37:54 +10:00
fryorcraken.eth
d8bb0c7759
chore(deps): bump it-length-prefixed to 8.0.2 2022-09-05 12:23:46 +10:00
fryorcraken.eth
c23e504d0e
chore(deps): bump @multiformats/multiaddr to 10.4.0 2022-09-05 10:57:01 +10:00
fryorcraken.eth
6127d566c6
chore(deps): bump @libp2p/websocket to 3.0.3 2022-09-05 10:54:52 +10:00
fryorcraken.eth
574a5ad58f
chore(deps): bump @libp2p/mplex to 5.1.1 2022-09-05 10:49:22 +10:00
fryorcraken.eth
185bf8dd56
chore(deps): bump @libp2p/crypto to 1.0.4 2022-09-05 10:46:47 +10:00
fryorcraken.eth
ef891bc585
chore(deps): bump @chainsafe/libp2p-noise to 8.0.1 2022-09-05 10:43:33 +10:00
fryorcraken.eth
34a82105fb
chore(deps): bump @chainsafe/libp2p-gossipsub to 4.1.1 2022-09-05 10:36:39 +10:00
fryorcraken.eth
ece1ca53c7
chore(deps): bump libp2p to 0.38.0 2022-09-05 10:34:49 +10:00
status-bors-ng[bot]
f52dd9ef9a
Merge #919
919: include wait_for_remote_peer in exports map r=fryorcraken a=fryorcraken

This module will just consume a generate Waku and Waku Relay interfaces so we already we want to extract it.

It is also one opinionated to handle connection management, other ways might come with #914.

Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-09-01 04:43:30 +00:00
fryorcraken.eth
2108e56dfa
fix: export wait_for_remote_peer in exports map
This module will just consume a generate Waku and Waku Relay interfaces
so we already we want to extract it.

It is also one opinionated to handle connection management, other ways
might come with https://github.com/status-im/js-waku/issues/914.
2022-09-01 14:42:21 +10:00
status-bors-ng[bot]
71ca4c9c91
Merge #918
918: fix: do not export waitForRemotePeer from index r=fryorcraken a=fryorcraken

It is already present in the exports map.

Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-09-01 00:49:18 +00:00
fryorcraken.eth
282a7f256f
fix: do not export waitForRemotePeer from index
It is already present in the exports map.
2022-09-01 10:48:16 +10:00
status-bors-ng[bot]
4740eabb5f
Merge #912
912: chore(deps-dev): bump lint-staged from 12.3.6 to 13.0.3 r=fryorcraken a=dependabot[bot]

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.6 to 13.0.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/okonet/lint-staged/releases">lint-staged's releases</a>.</em></p>
<blockquote>
<h2>v13.0.3</h2>
<h2><a href="https://github.com/okonet/lint-staged/compare/v13.0.2...v13.0.3">13.0.3</a> (2022-06-24)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>correctly handle git stash when using MSYS2 (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/1178">#1178</a>) (<a href="0d627a5284">0d627a5</a>)</li>
</ul>
<h2>v13.0.2</h2>
<h2><a href="https://github.com/okonet/lint-staged/compare/v13.0.1...v13.0.2">13.0.2</a> (2022-06-16)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>use new <code>--diff</code> and <code>--diff-filter</code> options when checking task modifications (<a href="1a5a66a957">1a5a66a</a>)</li>
</ul>
<h2>v13.0.1</h2>
<h2><a href="https://github.com/okonet/lint-staged/compare/v13.0.0...v13.0.1">13.0.1</a> (2022-06-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>correct spelling of &quot;0 files&quot; (<a href="f27f1d45ea">f27f1d4</a>)</li>
<li>suppress error from <code>process.kill</code> when killing tasks on failure (<a href="f2c6bdd911">f2c6bdd</a>)</li>
<li><strong>deps:</strong> update pidtree@^0.6.0 to fix screen size error in WSL (<a href="1a77e4224a">1a77e42</a>)</li>
<li>ignore &quot;No matching pid found&quot; error (<a href="cb8a4328ed">cb8a432</a>)</li>
<li>prevent possible race condition when killing tasks on failure (<a href="bc92aff5fd">bc92aff</a>)</li>
</ul>
<h3>Performance Improvements</h3>
<ul>
<li>use <code>EventsEmitter</code> instead of <code>setInterval</code> for killing tasks on failure (<a href="c508b46a15">c508b46</a>)</li>
</ul>
<h2>v13.0.0</h2>
<h1><a href="https://github.com/okonet/lint-staged/compare/v12.5.0...v13.0.0">13.0.0</a> (2022-06-01)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> update <code>execa@^6.1.0</code> (<a href="659c85c5cd">659c85c</a>)</li>
<li><strong>deps:</strong> update <code>yaml@^2.1.1</code> (<a href="2750a3d9d9">2750a3d</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>remove support for Node.js 12 (<a href="5fb6df94cc">5fb6df9</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0d627a5284"><code>0d627a5</code></a> fix: correctly handle git stash when using MSYS2 (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/1178">#1178</a>)</li>
<li><a href="1a5a66a957"><code>1a5a66a</code></a> fix: use new <code>--diff</code> and <code>--diff-filter</code> options when checking task modifica...</li>
<li><a href="32806dacff"><code>32806da</code></a> test: split integration tests into separate files and improve isolation</li>
<li><a href="438411437a"><code>4384114</code></a> refactor: reuse Listr stuff better</li>
<li><a href="f27f1d45ea"><code>f27f1d4</code></a> fix: correct spelling of &quot;0 files&quot;</li>
<li><a href="f2c6bdd911"><code>f2c6bdd</code></a> fix: suppress error from <code>process.kill</code> when killing tasks on failure</li>
<li><a href="c5cec0a37f"><code>c5cec0a</code></a> docs: add section about task concurrency to README.md</li>
<li><a href="5bf1f188f6"><code>5bf1f18</code></a> docs: remove <code>mrm</code> from README.md</li>
<li><a href="c508b46a15"><code>c508b46</code></a> perf: use <code>EventsEmitter</code> instead of <code>setInterval</code> for killing tasks on failure</li>
<li><a href="1a77e4224a"><code>1a77e42</code></a> fix(deps): update pidtree@^0.6.0 to fix screen size error in WSL</li>
<li>Additional commits viewable in <a href="https://github.com/okonet/lint-staged/compare/v12.3.6...v13.0.3">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=12.3.6&new-version=13.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 04:29:26 +00:00
status-bors-ng[bot]
9195f8fcf5
Merge #916
916: fix: do not discard messages with no payload r=fryorcraken a=fryorcraken

While they do not need to be decoded, they might still be used.
e.g. timestamp, network connectivity, etc.

Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-08-31 04:23:38 +00:00
fryorcraken.eth
d79984fdba
fix: do not discard messages with no payload
While they do not need to be decoded, they might still be used.
e.g. timestamp, network connectivity, etc.
2022-08-31 14:22:06 +10:00
fryorcraken.eth
9248b01958
Merge pull request #915 from status-im/logs 2022-08-31 13:26:09 +10:00
fryorcraken.eth
482a75fddc
chore: print log when sending relay ping 2022-08-31 13:14:52 +10:00
fryorcraken.eth
f6bb9b2fcd
chore: print content topic in logs 2022-08-31 13:14:07 +10:00
dependabot[bot]
91a9512573
chore(deps-dev): bump lint-staged from 12.3.6 to 13.0.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.6 to 13.0.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.3.6...v13.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 01:08:43 +00:00
status-bors-ng[bot]
e3bef47680
Merge #907
907: chore(deps-dev): bump rollup from 2.75.0 to 2.78.1 r=fryorcraken a=dependabot[bot]

Bumps [rollup](https://github.com/rollup/rollup) from 2.75.0 to 2.78.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/rollup/rollup/releases">rollup's releases</a>.</em></p>
<blockquote>
<h2>v2.78.1</h2>
<p><em>2022-08-19</em></p>
<h3>Bug Fixes</h3>
<ul>
<li>Avoid inferring &quot;arguments&quot; as name for a default export placeholder variable (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4613">#4613</a>)</li>
</ul>
<h3>Pull Requests</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rollup/rollup/pull/4613">#4613</a>: Prevent using arguments for generated variable names (<a href="https://github.com/lukastaegert"><code>`@​lukastaegert</code></a>)</li>`
</ul>
<h2>v2.78.0</h2>
<p><em>2022-08-14</em></p>
<h3>Features</h3>
<ul>
<li>Support writing plugin hooks as objects with a &quot;handler&quot; property (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4600">#4600</a>)</li>
<li>Allow changing execution order per plugin hook (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4600">#4600</a>)</li>
<li>Add flag to execute plugins in async parallel hooks sequentially (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4600">#4600</a>)</li>
</ul>
<h3>Pull Requests</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rollup/rollup/pull/4600">#4600</a>: Allow using objects as hooks to change execution order (<a href="https://github.com/lukastaegert"><code>`@​lukastaegert</code></a>)</li>`
</ul>
<h2>v2.77.3</h2>
<p><em>2022-08-11</em></p>
<h3>Bug Fixes</h3>
<ul>
<li>Correctly resolve preserveModulesRoot in Vite (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4591">#4591</a>)</li>
</ul>
<h3>Pull Requests</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rollup/rollup/pull/4591">#4591</a>: resolve currentPath (<a href="https://github.com/cleverpp"><code>`@​cleverpp</code></a>)</li>`
</ul>
<h2>v2.77.2</h2>
<p><em>2022-07-27</em></p>
<h3>Bug Fixes</h3>
<ul>
<li>Avoid a rendering failure when mixing outputs with inlined and non-inlined dynamic imports (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4589">#4589</a>)</li>
</ul>
<h3>Pull Requests</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rollup/rollup/pull/4589">#4589</a>: Handle generating non-inlined imports after inlined ones (<a href="https://github.com/lukastaegert"><code>`@​lukastaegert</code></a>)</li>`
</ul>
<h2>v2.77.1</h2>
<h2>2.77.1</h2>
<p><em>2022-07-26</em></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rollup/rollup/blob/master/CHANGELOG.md">rollup's changelog</a>.</em></p>
<blockquote>
<h2>2.78.1</h2>
<p><em>2022-08-19</em></p>
<h3>Bug Fixes</h3>
<ul>
<li>Avoid inferring &quot;arguments&quot; as name for a default export placeholder variable (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4613">#4613</a>)</li>
</ul>
<h3>Pull Requests</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rollup/rollup/pull/4613">#4613</a>: Prevent using arguments for generated variable names (<a href="https://github.com/lukastaegert"><code>`@​lukastaegert</code></a>)</li>`
</ul>
<h2>2.78.0</h2>
<p><em>2022-08-14</em></p>
<h3>Features</h3>
<ul>
<li>Support writing plugin hooks as objects with a &quot;handler&quot; property (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4600">#4600</a>)</li>
<li>Allow changing execution order per plugin hook (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4600">#4600</a>)</li>
<li>Add flag to execute plugins in async parallel hooks sequentially (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4600">#4600</a>)</li>
</ul>
<h3>Pull Requests</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rollup/rollup/pull/4600">#4600</a>: Allow using objects as hooks to change execution order (<a href="https://github.com/lukastaegert"><code>`@​lukastaegert</code></a>)</li>`
</ul>
<h2>2.77.3</h2>
<p><em>2022-08-11</em></p>
<h3>Bug Fixes</h3>
<ul>
<li>Correctly resolve preserveModulesRoot in Vite (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4591">#4591</a>)</li>
</ul>
<h3>Pull Requests</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rollup/rollup/pull/4591">#4591</a>: resolve currentPath (<a href="https://github.com/cleverpp"><code>`@​cleverpp</code></a>)</li>`
</ul>
<h2>2.77.2</h2>
<p><em>2022-07-27</em></p>
<h3>Bug Fixes</h3>
<ul>
<li>Avoid a rendering failure when mixing outputs with inlined and non-inlined dynamic imports (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4589">#4589</a>)</li>
</ul>
<h3>Pull Requests</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/rollup/rollup/pull/4589">#4589</a>: Handle generating non-inlined imports after inlined ones (<a href="https://github.com/lukastaegert"><code>`@​lukastaegert</code></a>)</li>`
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="398d0c4970"><code>398d0c4</code></a> 2.78.1</li>
<li><a href="3d79e2a8a6"><code>3d79e2a</code></a> Update changelog</li>
<li><a href="a85327cf31"><code>a85327c</code></a> Prevent using arguments for generated variable names (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4613">#4613</a>)</li>
<li><a href="a8647dac0f"><code>a8647da</code></a> Update changelog</li>
<li><a href="105b264847"><code>105b264</code></a> 2.78.0</li>
<li><a href="12aba9181a"><code>12aba91</code></a> Update changelog</li>
<li><a href="8db7fd8e5c"><code>8db7fd8</code></a> Allow using objects as hooks to change execution order (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4600">#4600</a>)</li>
<li><a href="1165d46685"><code>1165d46</code></a> 2.77.3</li>
<li><a href="1c217a35bb"><code>1c217a3</code></a> Update changelog</li>
<li><a href="983c0cac83"><code>983c0ca</code></a> resolve currentPath (<a href="https://github-redirect.dependabot.com/rollup/rollup/issues/4591">#4591</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rollup/rollup/compare/v2.75.0...v2.78.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rollup&package-manager=npm_and_yarn&previous-version=2.75.0&new-version=2.78.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 01:03:26 +00:00
fryorcraken.eth
aa40959375
Merge pull request #911 from status-im/lower-case-hex 2022-08-29 16:44:54 +10:00
fryorcraken.eth
3053d27b2c
feat: hexToBytes can handle Ethereum address with case checksum 2022-08-29 16:37:05 +10:00
dependabot[bot]
06abb4164a
chore(deps-dev): bump rollup from 2.75.0 to 2.78.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.75.0 to 2.78.1.
- [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/v2.75.0...v2.78.1)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-25 05:59:58 +00:00
fryorcraken.eth
528bb19425
Merge pull request #884 from status-im/dependabot/npm_and_yarn/typedoc-0.23.10 2022-08-25 15:59:25 +10:00
fryorcraken.eth
3eb9c80041
ci: generate & check doc 2022-08-25 15:54:05 +10:00
fryorcraken.eth
987eab5f8f
doc: remove warnings 2022-08-25 15:54:05 +10:00
fryorcraken.eth
0d34c44a02
doc: remove no-inherit
It is not needed anymore, Waku Relay doc does ot automatically include
the GossipSub doc.
2022-08-25 15:54:05 +10:00
dependabot[bot]
3181d8497c
chore(deps-dev): bump typedoc from 0.22.12 to 0.23.10
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.12 to 0.23.10.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.12...v0.23.10)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-25 15:54:05 +10:00
status-bors-ng[bot]
b35187359b
Merge #906
906: misc: fix secret for add issue to project action r=fryorcraken a=fryorcraken



Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-08-25 05:19:27 +00:00
fryorcraken.eth
11df2f7544
misc: fix secret for add issue to project action 2022-08-25 15:17:45 +10:00
fryorcraken.eth
9f52d2b49d
Merge pull request #763 from status-im/go-waku-drop-in 2022-08-25 15:16:49 +10:00
fryorcraken.eth
def951e4ac
ci: wait 100ms after go-waku seems ready as it is sometimes not 2022-08-25 14:48:58 +10:00
fryorcraken.eth
2cb46b9924
ci: fix relative path of waku bin 2022-08-25 14:48:58 +10:00
fryorcraken.eth
3bbdb9d98d
ci: print go-waku version when testing 2022-08-25 14:48:58 +10:00
fryorcraken.eth
9feef9367c
test: go-waku needs --persist-messages to enable store
ref: https://github.com/status-im/go-waku/issues/292
2022-08-25 14:48:58 +10:00
fryorcraken.eth
61701f0086
feat: improve log format for DNS discovery peers 2022-08-25 14:48:58 +10:00
Franck Royer
e1bb2b351c
ci: run with go-waku 2022-08-25 14:48:57 +10:00
Franck Royer
a7dc6936bc
fix: nwaku's response differs from RFC but go-waku does not 2022-08-25 14:48:57 +10:00
Franck Royer
10c32c84c8
test: add delay for filter un/subscribe 2022-08-25 14:48:57 +10:00
Franck Royer
0564c4f95c
test: Increase timeout
go-waku takes 9s to start, partially because nat cannot be deactivated.
2022-08-25 14:48:57 +10:00
status-bors-ng[bot]
2d229e489f
Merge #904
904: misc: add issues to Waku project r=fryorcraken a=fryorcraken



Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-08-25 02:37:22 +00:00
fryorcraken.eth
252a1616c5
misc: add issues to Waku project 2022-08-25 12:36:03 +10:00
fryorcraken.eth
392deadeb8
misc: current action is for classic projects 2022-08-25 12:36:03 +10:00
fryorcraken.eth
b6612e9835
Merge pull request #903 from status-im/run-full-suite
test: fix test suite
2022-08-24 19:27:15 +10:00
fryorcraken.eth
db22c2e86b
fix: set default value for version if not on the wire 2022-08-24 19:06:53 +10:00
fryorcraken.eth
a58691aabd
refact: move default value to function signature 2022-08-24 19:04:31 +10:00
fryorcraken.eth
5eec4564fe
style: typo 2022-08-24 18:43:00 +10:00
fryorcraken.eth
863f8ee7a4
fix: do not use uint8arrays/concat as it returns Buffer in NodeJS
`Buffer` does not have the same behaviour as `Uint8Array` when creating
a `DataView`. This is a problem when manipulating byte for encoding and
decoding purposes.
2022-08-24 18:42:48 +10:00
fryorcraken.eth
79146711c5
fix: ensure the content topics that needs to be decrypted are passed 2022-08-24 17:51:06 +10:00
fryorcraken.eth
5ddca918ca
fix: stop store pagination if response field is missing 2022-08-24 17:34:37 +10:00
fryorcraken.eth
cfece62e2a
misc: enable lint-staged for config cjs files 2022-08-24 16:14:43 +10:00
fryorcraken.eth
f4da5a8266
test: tsconfig file for karma with esnext enabled 2022-08-24 16:10:13 +10:00
fryorcraken.eth
b984888993
build: add missing exports map entries 2022-08-24 15:56:12 +10:00
fryorcraken.eth
931028e0ac
build: bump ts-node to 10.9.1 and ts-loader to 9.3.1 2022-08-24 15:25:37 +10:00
fryorcraken.eth
280058de4a
test: deep.equal crashes when comparing Buffer and UInt8Array 2022-08-24 12:46:51 +10:00
fryorcraken.eth
ebb0e786cb
Merge pull request #901 from status-im/parameterized-tests 2022-08-24 10:05:01 +10:00
fryorcraken.eth
d2bb50adda
test: doc specifies log level capitalized 2022-08-24 07:53:34 +10:00
fryorcraken.eth
f0eb925838
test: enable passing arguments to service node 2022-08-24 07:46:36 +10:00
Franck Royer
5f4e14e56c
test: parameterize waku service node dir/bin 2022-08-24 07:46:36 +10:00
Franck Royer
cd665a1803
test: pass --store 2022-08-24 07:46:35 +10:00
Franck Royer
953bda781f
test: Ensure pubsub topic is used when sending and retrieving messages 2022-08-24 07:46:35 +10:00
Franck Royer
4a96472084
test: improve RPC call debugging 2022-08-24 07:46:34 +10:00
Franck Royer
d65e99275b
test: parameterized some nwaku options 2022-08-24 07:46:33 +10:00
Franck Royer
024209fdd0
test: remove dupe functions 2022-08-24 07:46:32 +10:00
fryorcraken.eth
cdd0752ad6
Merge pull request #899 from status-im/nwaku-v0.11 2022-08-20 01:08:05 +10:00
fryorcraken.eth
771d515b6f
ci: rename nim-waku to nwaku and upgrade to v0.11 2022-08-20 01:04:19 +10:00
fryorcraken.eth
3635b43c01
Merge pull request #898 from status-im/ci/split-tests 2022-08-19 23:49:28 +10:00
fryorcraken.eth
e229aa1a19
ci: update bors 2022-08-19 23:37:02 +10:00
fryorcraken.eth
501a3329f0
ci: remove trivial descriptions 2022-08-19 23:34:52 +10:00
fryorcraken.eth
0ec17c2f96
ci: split in several jobs 2022-08-19 23:34:52 +10:00
fryorcraken.eth
6019082240
ci: bump actions/checkout to v3 2022-08-19 23:34:52 +10:00
fryorcraken.eth
b47fe21e39
ci: only test on ubuntu
Browser is what actually matter.
2022-08-19 23:34:52 +10:00
fryorcraken.eth
e689b13106
ci: buildbuf is not used 2022-08-19 23:34:52 +10:00
status-bors-ng[bot]
63bfb9b2e2
Merge #896
896: Auto-release merged PRs r=fryorcraken a=fryorcraken



Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-08-19 13:21:11 +00:00
fryorcraken.eth
d120b0f3e3
Merge pull request #897 from status-im/export-predefined-nodes 2022-08-19 23:12:08 +10:00
fryorcraken.eth
db6e7921d5
ci: test name has changed 2022-08-19 23:10:35 +10:00
fryorcraken.eth
b0b2880746
fix: export predefined bootstrap nodes 2022-08-19 23:05:03 +10:00
fryorcraken.eth
215aa59b77
feat(ci): published merged PRs 2022-08-19 21:17:17 +10:00
fryorcraken.eth
fd54d21e1a
refactor(ci): move node to env var, move env var up
So it can be used by all jobs.
2022-08-19 18:28:57 +10:00
fryorcraken.eth
8d1b461d61
chore(ci): upgrade setup-node action to v3 2022-08-19 18:26:46 +10:00
fryorcraken.eth
dd30a56f15
fix(ci): caching is already handled by npm-install action 2022-08-19 18:26:08 +10:00
status-bors-ng[bot]
d7181da98b
Merge #892
892: fix: type export via `typesVersions` r=fryorcraken a=filoozom

## Problem

Importing anything from TypeScript in `js-waku/lib/` (`v0.25.0-rc.0`) does not work. It can't find the types despite the `exports.*.types` in `package.json`.

## Solution

This solution was inspired by `libp2p` ([example in ``@libp2p/interfaces`](https://github.com/libp2p/js-libp2p-interfaces/blob/master/packages/interfaces/package.json#L24-L39)),` and just adds `typesVersions` to `package.json`.

Documentation: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#folder-redirects-using-

## Notes

- See https://github.com/status-im/js-waku/issues/891#issuecomment-1217388556


Co-authored-by: Philippe Schommers <philippe@schommers.be>
2022-08-19 04:52:27 +00:00
Philippe Schommers
5137f28cbf
fix: type export via typesVersions 2022-08-19 12:41:49 +10:00
status-bors-ng[bot]
25869b82c4
Merge #894
894: fix: add peer_discovery_static_list to exports map r=fryorcraken a=fryorcraken

Needed to access `PeerDiscoveryStaticPeers`.


Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-08-19 02:18:55 +00:00
status-bors-ng[bot]
67811662d9
Merge #893
893: fix: do not throw on lack of response r=fryorcraken a=fryorcraken

Expected proto3 behaviour, just no message returned.

Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-08-17 16:19:20 +00:00
fryorcraken.eth
9cad6d5d72
fix: add peer_discovery_static_list to exports map
Needed to access `PeerDiscoveryStaticPeers`.
2022-08-17 23:29:23 +10:00
fryorcraken.eth
28f77ec083
fix: use debug instead of console.log 2022-08-17 22:39:42 +10:00
fryorcraken.eth
ecb5b490e3
fix: do not throw on lack of response
Expected proto3 behaviour, just no message returned.
2022-08-17 22:39:19 +10:00
fryorcraken.eth
28cb144b23
Merge pull request #888 from status-im/chore/libp2p 2022-08-17 12:00:16 +10:00
fryorcraken.eth
1c2df434e0
fix(deps): freeze @libp2p/interface-connection 2022-08-16 15:24:11 +10:00
fryorcraken.eth
e488f120e0
fix(deps): free uint8arraylist
Some issue with transient dependencies.
2022-08-16 15:07:30 +10:00
fryorcraken.eth
38e39e71be
fix(deps): free uint8arraylist
Some issue with transient dependencies.
2022-08-16 15:06:11 +10:00
fryorcraken.eth
574e99c768
chore(deps): upgrade it-pipe 2022-08-16 14:48:31 +10:00
fryorcraken.eth
b866c650bb
chore(deps): install used transient dep 2022-08-16 14:47:16 +10:00
fryorcraken.eth
d9d8c4c23c
chore(deps): upgrade libp2p
To bring in @libp2p/multistream-select@3.0.0 and fix #886.
2022-08-16 14:43:29 +10:00
fryorcraken.eth
d66dfad37e
Merge pull request #883 from status-im/dependabot/npm_and_yarn/libp2p/interface-peer-store-1.2.1 2022-08-15 13:27:48 +10:00
dependabot[bot]
cf675c4224
chore(deps): bump @libp2p/interface-peer-store from 1.2.0 to 1.2.1
Bumps [@libp2p/interface-peer-store](https://github.com/libp2p/js-libp2p-interfaces) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/libp2p/js-libp2p-interfaces/releases)
- [Commits](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-peer-store-v1.2.0...@libp2p/interface-peer-store-v1.2.1)

---
updated-dependencies:
- dependency-name: "@libp2p/interface-peer-store"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 15:25:05 +00:00
status-bors-ng[bot]
5eda1ec8aa
Merge #882
882: build: run npm audit fix r=fryorcraken a=fryorcraken



Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-08-08 03:24:49 +00:00
fryorcraken.eth
ee1cdb02cf
build: run npm audit fix 2022-08-08 13:23:44 +10:00
status-bors-ng[bot]
dbe8737552
Merge #868
868: chore(deps): bump @chainsafe/libp2p-noise from 7.0.1 to 7.0.3 r=fryorcraken a=dependabot[bot]

Bumps [`@chainsafe/libp2p-noise](https://github.com/ChainSafe/js-libp2p-noise)` from 7.0.1 to 7.0.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/ChainSafe/js-libp2p-noise/releases"><code>`@​chainsafe/libp2p-noise</code>'s` releases</a>.</em></p>
<blockquote>
<h2>v7.0.3</h2>
<h2><a href="https://github.com/ChainSafe/js-libp2p-noise/compare/v7.0.2...v7.0.3">7.0.3</a> (2022-08-03)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>correct type of it-length-prefixed 8.0.2 (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/178">#178</a>) (<a href="45c1d56dbc">45c1d56</a>)</li>
</ul>
<h3>Miscellaneous</h3>
<ul>
<li>correct type of it-length-prefixed 8.0.2 (<a href="45c1d56dbc">45c1d56</a>)</li>
</ul>
<h2>v7.0.2</h2>
<h2><a href="https://github.com/ChainSafe/js-libp2p-noise/compare/v7.0.1...v7.0.2">7.0.2</a> (2022-08-02)</h2>
<h3>Miscellaneous</h3>
<ul>
<li>bump <code>`@​libp2p/peer-collections</code>` from 1.0.3 to 2.0.0 (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/164">#164</a>) (<a href="7ffb5bddbc">7ffb5bd</a>)</li>
<li>clean up logic (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/165">#165</a>) (<a href="7a0d8c00c8">7a0d8c0</a>)</li>
<li>update node.js badge version in readme (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/167">#167</a>) (<a href="16caa6d59a">16caa6d</a>)</li>
<li>update protons and peer collections (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/172">#172</a>) (<a href="3ea9f33cc1">3ea9f33</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/ChainSafe/js-libp2p-noise/blob/master/CHANGELOG.md"><code>`@​chainsafe/libp2p-noise</code>'s` changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/ChainSafe/js-libp2p-noise/compare/v7.0.2...v7.0.3">7.0.3</a> (2022-08-03)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>correct type of it-length-prefixed 8.0.2 (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/178">#178</a>) (<a href="45c1d56dbc">45c1d56</a>)</li>
</ul>
<h3>Miscellaneous</h3>
<ul>
<li>correct type of it-length-prefixed 8.0.2 (<a href="45c1d56dbc">45c1d56</a>)</li>
</ul>
<h2><a href="https://github.com/ChainSafe/js-libp2p-noise/compare/v7.0.1...v7.0.2">7.0.2</a> (2022-08-02)</h2>
<h3>Miscellaneous</h3>
<ul>
<li>bump <code>`@​libp2p/peer-collections</code>` from 1.0.3 to 2.0.0 (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/164">#164</a>) (<a href="7ffb5bddbc">7ffb5bd</a>)</li>
<li>clean up logic (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/165">#165</a>) (<a href="7a0d8c00c8">7a0d8c0</a>)</li>
<li>update node.js badge version in readme (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/167">#167</a>) (<a href="16caa6d59a">16caa6d</a>)</li>
<li>update protons and peer collections (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/172">#172</a>) (<a href="3ea9f33cc1">3ea9f33</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d6e8745f32"><code>d6e8745</code></a> chore(master): release 7.0.3 (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/179">#179</a>)</li>
<li><a href="45c1d56dbc"><code>45c1d56</code></a> fix: correct type of it-length-prefixed 8.0.2 (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/178">#178</a>)</li>
<li><a href="201adcb34b"><code>201adcb</code></a> chore(master): release 7.0.2 (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/166">#166</a>)</li>
<li><a href="3ea9f33cc1"><code>3ea9f33</code></a> chore: update protons and peer collections (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/172">#172</a>)</li>
<li><a href="7ffb5bddbc"><code>7ffb5bd</code></a> chore: bump <code>`@​libp2p/peer-collections</code>` from 1.0.3 to 2.0.0 (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/164">#164</a>)</li>
<li><a href="16caa6d59a"><code>16caa6d</code></a> chore: update node.js badge version in readme (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/167">#167</a>)</li>
<li><a href="7a0d8c00c8"><code>7a0d8c0</code></a> chore: clean up logic (<a href="https://github-redirect.dependabot.com/ChainSafe/js-libp2p-noise/issues/165">#165</a>)</li>
<li>See full diff in <a href="https://github.com/ChainSafe/js-libp2p-noise/compare/v7.0.1...v7.0.3">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@chainsafe/libp2p-noise&package-manager=npm_and_yarn&previous-version=7.0.1&new-version=7.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 02:19:45 +00:00
dependabot[bot]
2d6700a77c
chore(deps): bump @chainsafe/libp2p-noise from 7.0.1 to 7.0.3
Bumps [@chainsafe/libp2p-noise](https://github.com/ChainSafe/js-libp2p-noise) from 7.0.1 to 7.0.3.
- [Release notes](https://github.com/ChainSafe/js-libp2p-noise/releases)
- [Changelog](https://github.com/ChainSafe/js-libp2p-noise/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ChainSafe/js-libp2p-noise/compare/v7.0.1...v7.0.3)

---
updated-dependencies:
- dependency-name: "@chainsafe/libp2p-noise"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 12:18:53 +10:00
fryorcraken.eth
f4474e195c
Merge pull request #880 from status-im/revert-bors-size 2022-08-08 12:18:07 +10:00
fryorcraken.eth
2c8eeb96bf
Revert "chore: add size task to bors"
This reverts commit 6e6c956af5453b1e55df64f95fd0049dcd197c8b.
2022-08-08 12:11:10 +10:00
fryorcraken.eth
7a46010d1f
Merge pull request #879 from status-im/dependabot-examples 2022-08-08 11:22:40 +10:00
fryorcraken.eth
787e11fca9
chore: remove dependabot for examples
Examples are being moved to waku-org/js-waku-examples
2022-08-08 11:13:49 +10:00
fryorcraken.eth
9bf3babda2
Merge pull request #878 from status-im/bors 2022-08-07 17:48:44 +10:00
fryorcraken.eth
6e6c956af5
chore: add size task to bors 2022-08-07 16:07:49 +10:00
fryorcraken.eth
b4e0fb59e2
Merge pull request #860 from status-im/organize-modules 2022-08-07 16:05:23 +10:00
fryorcraken.eth
035f1460d8
chore: update changelog 2022-08-07 12:03:05 +10:00
fryorcraken.eth
11e60aadd5
refactor: move predefined nodes out of dns discovery 2022-08-07 12:03:05 +10:00
fryorcraken.eth
5f1ac595b6
fix(examples): update using new bundles 2022-08-07 12:03:05 +10:00
fryorcraken.eth
d560f8ce0e
fix: bundling with exports map 2022-08-07 12:03:05 +10:00
fryorcraken.eth
8c27975830
fix: outdated doc & links 2022-08-07 12:03:05 +10:00
fryorcraken.eth
889ec4d45c
feat: split bootstrap logic
Split the bootstrap logic in 2 different classes that implement the
libp2p peer discovery class.

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

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

Finally, the `default` method is still available via the
`defaultBootstrap` option.
2022-08-07 12:03:05 +10:00
fryorcraken.eth
c1b158cbf0
feat: set tsbuildinfo file in dist directory
So that when deleting the `dist` directory, the file gets deleted too.
2022-08-07 12:03:05 +10:00
fryorcraken.eth
f929be064b
fix: filter import 2022-08-07 12:03:05 +10:00
fryorcraken.eth
080357355b
refactor: extract peer discovery static list 2022-08-07 12:03:05 +10:00
fryorcraken.eth
731318fa66
feat: export create_waku 2022-08-07 12:03:04 +10:00
fryorcraken.eth
69aee6c1cc
refactor: move createWaku to own module 2022-08-07 12:03:04 +10:00
status-bors-ng[bot]
9b34897bab
Merge #873
873: chore: rename test scripts r=fryorcraken a=fryorcraken

both tests are `unit`, also script name shouldn't change
if a different framework (karma) is used.

Co-authored-by: fryorcraken.eth <git@fryorcraken.xyz>
2022-08-05 15:03:18 +00:00
fryorcraken.eth
bcbf40ee10
chore: rename test scripts
both tests are `unit`, also script name shouldn't change
if a different framework (karma) is used.
2022-08-06 01:02:15 +10:00
fryorcraken.eth
f3ce58c176
Merge pull request #872 from status-im/pubsub-no-buffer 2022-08-05 21:36:37 +10:00
fryorcraken.eth
187287a28c
feat: all buffer dependencies have been removed 2022-08-05 21:31:41 +10:00
fryorcraken.eth
b7fa4d375a
chore: upgrade @libp2p/crypto
Removes iso-random-stream.
2022-08-05 21:31:41 +10:00
fryorcraken.eth
d0a975fecd
chore: uprade @libp2p/pubsub
Removes one import of iso-random-stream.
This library brings buffer.
2022-08-05 21:31:41 +10:00
status-bors-ng[bot]
12ef29161a
Merge #865
865: fix: remove nyc r=fryorcraken a=fryorcraken

Not used.

Co-authored-by: fryorcraken.eth <commits@fryorcraken.xyz>
2022-08-05 06:43:35 +00:00
fryorcraken.eth
334e331090
fix: remove nyc
Not used.
2022-08-05 16:43:05 +10:00
fryorcraken.eth
9f10a500d4
Merge pull request #867 from status-im/fix-size-2 2022-08-05 16:42:25 +10:00
fryorcraken.eth
548cb5b20f
fix: size-limit (install was skipped) 2022-08-05 16:28:55 +10:00
status-bors-ng[bot]
eeb501d35f
Merge #863
863: fix: size-limit by setting buffer false in webpack r=fryorcraken a=fryorcraken



Co-authored-by: fryorcraken.eth <commits@fryorcraken.xyz>
2022-08-03 06:47:39 +00:00
fryorcraken.eth
bf47803631
fix: size-limit by setting buffer false in webpack 2022-08-03 16:46:53 +10:00
fryorcraken.eth
69b3595d6f
chore: bump size-limit to 8.0.0 2022-08-03 16:46:53 +10:00
status-bors-ng[bot]
4fdbe8f2bf
Merge #864
864: style: lint cjs files r=fryorcraken a=fryorcraken



Co-authored-by: fryorcraken.eth <commits@fryorcraken.xyz>
2022-08-03 06:24:03 +00:00
fryorcraken.eth
b67848d2d5
style: lint cjs files 2022-08-03 16:05:36 +10:00
status-bors-ng[bot]
0ba251602a
Merge #862
862: fix: update GitHub user r=D4nte a=fryorcraken

d4nte is moving to fryorcraken account.

Co-authored-by: fryorcraken.eth <commits@fryorcraken.xyz>
2022-08-03 05:29:06 +00:00
fryorcraken.eth
8b5e29656f
Merge pull request #861 from status-im/libp2p-changelog 2022-08-03 15:27:08 +10:00
fryorcraken.eth
c646acf5a3
fix: update GitHub user
d4nte is moving to fryorcraken account.
2022-08-03 15:21:46 +10:00
fryorcraken.eth
67549aed4b
Update changelog as per #803 2022-08-03 15:18:25 +10:00
fryorcraken.eth
6017690403
Merge pull request #803 from status-im/libp2p-upgrade-2 2022-08-03 14:48:28 +10:00
fryorcraken.eth
8b7a97d502
fix: remove unneeded log 2022-08-03 09:30:41 +10:00
fryorcraken.eth
b05e8bef01
fix: cater for buffer transitive dependency
Does not seem to be actually used.
2022-08-03 09:30:41 +10:00
fryorcraken.eth
cd21c71b49
chore: bump wherearewe (transitive dep) 2022-08-03 09:30:40 +10:00
fryorcraken.eth
4680560971
fix(examples): add multiaddr dependency
Using older dependency for now.
2022-08-03 09:30:40 +10:00
Franck Royer
95deb6a331
fix: ensure types are available in doc 2022-08-03 09:30:40 +10:00
Franck Royer
8126e96f33
chore: remove multiformats (unused) 2022-08-03 09:30:40 +10:00
Franck Royer
2004bf193e
chore: remove @types/varint (unused) 2022-08-03 09:30:40 +10:00
Franck Royer
9297ad6021
chore: remove @types/secp256k1 (unused) 2022-08-03 09:30:40 +10:00
Franck Royer
157b5bd3c2
chore: remove webpack-cli 2022-08-03 09:30:40 +10:00
Franck Royer
3b93583848
fix: size-limit 2022-08-03 09:30:40 +10:00
Franck Royer
c3991a2987
fix: fix tsc incremental build feature
dist folder is deleted automatically but not tsbuildinfo file so nothing
is built as it is assumed already built by tsc.
2022-08-03 09:30:39 +10:00
Franck Royer
cc73ac0908
feat(example): migrate relay-js to esm 2022-08-03 09:30:39 +10:00
Franck Royer
e42b825672
feat(example): migrate store-js to esm 2022-08-03 09:30:39 +10:00
Franck Royer
8b350f4272
feat: remove node polyfilling
Does not seem necessary.
2022-08-03 09:30:39 +10:00
Franck Royer
98d14e08b0
feat!: Do not start libp2p automatically with createWaku
Reduce the number of actions `createWaku` does.
2022-08-03 09:30:39 +10:00
Franck Royer
b7b6a11f43
fix: export createWaku 2022-08-03 09:30:39 +10:00
Franck Royer
94a21bc75e
feat! remove esm package folder 2022-08-03 09:30:39 +10:00
Franck Royer
785a220dff
fix: remove unused stream-browserify 2022-08-03 09:30:39 +10:00
Franck Royer
50890b5206
feat: remove umd build, minimize esm bundle 2022-08-03 09:30:39 +10:00
Franck Royer
c4f1d90c7b
fix: no need to append .js to import for external packages 2022-08-03 09:30:38 +10:00
Franck Royer
338e3c9964
feat: add esm bundling 2022-08-03 09:30:38 +10:00
Franck Royer
d2703d081e
feat!: remove cjs build 2022-08-03 09:30:38 +10:00
Franck Royer
4054f6a751
style: format karma conf 2022-08-03 09:30:38 +10:00
Franck Royer
5c022da3ea
refactor(test): include webpack config in karma config
So it is clear that this webpack config is only necessary for Karma.
2022-08-03 09:30:38 +10:00
Franck Royer
e119fc46d6
fix: pass bootstrap to libp2p instance 2022-08-03 09:30:38 +10:00
Franck Royer
8922511cc9
fix: pass pubsub topic when creating waku filter 2022-08-03 09:30:38 +10:00
Franck Royer
275eb72959
fix: ignore store response unspecified error 2022-08-03 09:30:38 +10:00
Franck Royer
d18a5152ef
fix(test): check messages on custom pubsub topic 2022-08-03 09:30:38 +10:00
Franck Royer
4a193e49e0
style: use nullish coalescing instead of if/then 2022-08-03 09:30:38 +10:00
Franck Royer
a3e6850b2f
fix(test): compare peer ids using string format 2022-08-03 09:30:37 +10:00
Franck Royer
991a1cf747
fix(test): ensure nodes are cleaned up, use separate noise key 2022-08-03 09:30:37 +10:00
Franck Royer
ba1c7b86ea
fix: Use libp2p options passed to createWaku 2022-08-03 09:30:37 +10:00
Franck Royer
ee12ec0ab5
chore: bump dns-query to 0.11.2 2022-08-03 09:30:37 +10:00
Franck Royer
9965ba9059
chore: bump @libp2p/mplex to 4.0.1 2022-08-03 09:30:37 +10:00
Franck Royer
d7b08f7e24
fix: Wait for remote peer for Waku Relay
The promise resolves only if a remote peer is added to the gossipsub
mesh.
2022-08-03 09:30:37 +10:00
Franck Royer
2265a0099f
refactor: Use same code for store, lightpush and filter 2022-08-03 09:30:37 +10:00
Franck Royer
0a505659b7
fix: ensure node only enable protocol we are testing 2022-08-03 09:30:37 +10:00
Franck Royer
4c3da7bad2
refactor: Use common code for filter and light push 2022-08-03 09:30:36 +10:00
Franck Royer
811685e041
refactor!: Move waitForRemotePeer to own file 2022-08-03 09:30:36 +10:00
Franck Royer
da9b7b31f5
chore: bump @chainsafe/libp2p-gossipsub to 3.4.0 2022-08-03 09:30:36 +10:00
Franck Royer
4eeca93d47
chore: bump libp2p to next (0.38.0 rc) 2022-08-03 09:30:36 +10:00
Franck Royer
c346361940
chore: bump @libp2p/mplex to 4.0.0 2022-08-03 09:30:36 +10:00
Franck Royer
4669c4d149
chore: upgrade @chainsafe/libp2p-gossipsub to 3.3.0 2022-08-03 09:30:36 +10:00
Franck Royer
61e6ec8ed4
chore: upgrade rollup-plugin-polyfill-node 2022-08-03 09:30:36 +10:00
Franck Royer
1f9a12cddb
chore: upgrade libp2p-gossipsub and libp2p-noise 2022-08-03 09:30:36 +10:00
Franck Royer
bd7d01387d
chore: remove useless test 2022-08-03 09:30:36 +10:00
Franck Royer
f768686e51
fix: fix pipe usage 2022-08-03 09:30:33 +10:00
Franck Royer
f3833564f2
fix: Remove event listener once done 2022-07-28 10:43:37 +10:00
Franck Royer
51d5bc19a2
fix: removed usage of buffer in streams 2022-07-20 12:45:14 +10:00
Franck Royer
52616fb912
fix: move to usage of log 2022-07-20 12:44:48 +10:00
Franck Royer
d609b9c47b
fix: usage of libp2p and undefined options 2022-07-20 12:44:48 +10:00
Franck Royer
52d74a74b5
fix: remove test with no value 2022-07-20 12:44:48 +10:00
Franck Royer
a10d3ae7d3
fix: peer id / keypair conversion 2022-07-20 12:44:47 +10:00
Franck Royer
5d5e035edb
fix: use compress key
`marshal` return the compress key, `bytes` returned the protobuf
serialized key.
2022-07-20 12:44:47 +10:00
Franck Royer
fd030e0fbb
fix: Typo 2022-07-20 12:44:47 +10:00
Franck Royer
6d5c2acb99
fix: Multiaddr from fields function 2022-07-20 12:44:47 +10:00
Franck Royer
ab9919ba6d
fix: Imports paths
Import paths were not valid.
2022-07-20 12:44:47 +10:00
Franck Royer
157e42e148
fix: Do not use names import 2022-07-20 12:44:47 +10:00
Franck Royer
b9aef19a47
fix: new spellings 2022-07-20 12:44:47 +10:00
Franck Royer
9e27a0082e
Sort out ENR key generation, upgrade to @libp2p/crypto 2022-07-20 12:44:44 +10:00
Franck Royer
dcb3a65a5b
No more tsc error on prod code 2022-07-20 12:44:07 +10:00
Franck Royer
5d8ab6cf82
Sort ping 2022-07-20 12:43:42 +10:00
Franck Royer
e0a23bad44
Sort out createWaku and waitForRemotePeer 2022-07-20 12:43:42 +10:00
Franck Royer
4cf197e54d
Implement libp2p bootstrap interface 2022-07-20 12:43:40 +10:00
Franck Royer
081f62b07b
Upgrade libp2p-noise 2022-07-20 12:42:26 +10:00
Franck Royer
8e5318dc4a
Upgrade libp2p-gossipsub 2022-07-20 12:42:24 +10:00
Franck Royer
98c93c8283
Upgrade libp2p, peer-id, multiaddr
Use new packages and fix most compilation errors.
Remaining error to be dealt with in waku.ts.
2022-07-20 12:40:37 +10:00
Franck Royer
6c30e8d400
Use PeerId.toString() instead of toB58String()
New version of `PeerId` will only support `toString`
2022-07-20 11:55:43 +10:00
Franck R
3217b28063
Merge pull request #841 from status-im/doh-resolver 2022-07-19 17:38:18 +10:00
Franck Royer
0cec093a4d
chore!: upgrade dns-query 2022-07-19 16:31:21 +10:00
Franck R
9b4c3ecfb4
Merge pull request #786 from status-im/esm-no-libp2p-upgrade
Migrate package to ESM (no libp2p upgrade)
2022-06-20 15:09:11 +10:00
Franck Royer
862a397e81
Update changelog 2022-06-20 14:57:49 +10:00
Franck Royer
8a17631780
Re-introduce file used by Karma 2022-06-20 14:32:22 +10:00
Franck Royer
1fcf84b348
Fix size-limit 2022-06-20 14:32:22 +10:00
Franck Royer
3dde86fcb7
Revert to webpack for UMD 2022-06-20 14:32:22 +10:00
Franck Royer
b32246fa0a
Change exported name to waku for UMD and CJS 2022-06-20 14:32:22 +10:00
Franck Royer
7432aaca25
Add main and module properties 2022-06-20 14:32:22 +10:00
Franck Royer
e3b6292a6e
Use rollup instead of tsc to generate cjs files 2022-06-20 14:32:22 +10:00
Franck Royer
ebbb0a2713
Re-introduce cjs build 2022-06-20 14:32:22 +10:00
Franck Royer
53a3f7fcbf
Apply import update logic for external modules 2022-06-20 14:32:21 +10:00
Franck Royer
5ca3957b39
fix: options can be undefined 2022-06-20 14:32:21 +10:00
Franck Royer
7ea98c1af0
Script to add js extension to esm files 2022-06-20 14:32:21 +10:00
Franck Royer
58006e1e38
Include root source files 2022-06-20 14:32:21 +10:00
Franck Royer
43580dd093
Add types export 2022-06-20 14:32:21 +10:00
Franck Royer
792c84ec31
Fix exports field 2022-06-20 14:32:21 +10:00
Franck Royer
43e9de6fe2
cleanup: Migrate from ts-proto to protons 2022-06-20 14:32:21 +10:00
Franck Royer
ca11dbf90c
Format proto code after generation 2022-06-20 14:32:21 +10:00
Franck Royer
aaa0cef315
Remove dupe job 2022-06-20 14:32:21 +10:00
Franck Royer
ce24c2f530
Do not fail when receiving unspecified error 2022-06-20 14:32:20 +10:00
Franck Royer
9e8d4b9bb1
Mark all proto fields as optional
As expected in proto version 3.
2022-06-20 14:32:20 +10:00
Franck Royer
c4758a8737
Setup rollup, move files to dist/ 2022-06-20 14:32:20 +10:00
Franck Royer
82aba32f9e
Migrate from ts-proto to protons
The latter does not bring Buffer/Long and is ESM compatible.
2022-06-20 14:32:20 +10:00
Franck Royer
1bfc72fa2a
Fix include/exclude folders in tsconfig 2022-06-20 14:32:20 +10:00
Franck Royer
75d2cf1113
Fix size-limit 2022-06-20 14:32:20 +10:00
Franck Royer
35a4cba37a
Include src files in package
To remove source map warning
2022-06-20 14:32:20 +10:00
Franck Royer
4352cb923d
Replace karma-env-preproc with webpack 2022-06-20 14:32:20 +10:00
Franck Royer
cb10ca16d1
Migrate package to ESM 2022-06-20 14:32:20 +10:00
Franck R
10d2533caf
Merge pull request #793 from status-im/examples-react-17 2022-06-20 14:31:53 +10:00
Franck Royer
a5c61a4db3
Downgrade to avoid peer dep conflict with @livechat/ui-kit 2022-06-20 12:20:20 +10:00
Franck Royer
5ba93fb199
Base cache id on examples' lock files only 2022-06-17 16:43:57 +10:00
Franck Royer
856ca8c148
Remove netlify config
Not used.
2022-06-17 16:30:37 +10:00
Franck Royer
04fbc55fdf
Use npm ci in CI
So there is no attempt to update the lock file.
2022-06-17 16:30:03 +10:00
Franck Royer
612027a375
examples: Downgrade React to avoid peer dep conflict with mui
Material UI 4 is not compatible with React 18 and it looks like
some peer dep were recently changed, creating conflict issues
in CI.
2022-06-17 15:42:38 +10:00
status-bors-ng[bot]
6f5e1fa2aa
Merge #774
774: Use waitForRemotePeer directly r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-06-01 03:17:15 +00:00
Franck Royer
e8e6df767b
Use waitForRemotePeer directly 2022-06-01 13:16:06 +10:00
status-bors-ng[bot]
9b6fd5ec8b
Merge #773
773: Remove circular dependencies r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-06-01 02:52:57 +00:00
Franck Royer
9ffedd1fbf
Remove circular dependencies 2022-06-01 12:14:47 +10:00
status-bors-ng[bot]
d12c582032
Merge #772
772: Upgrade examples to js-waku@0.24.0 r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-06-01 01:23:40 +00:00
Franck Royer
49e08ff1c2
Upgrade examples to js-waku@0.24.0 2022-06-01 11:19:27 +10:00
status-bors-ng[bot]
6df972694c
Merge #767
767: Clear all timers on `Waku.stop` r=D4nte a=felicio

Resolves https://github.com/status-im/js-waku/issues/766

Co-authored-by: Felicio Mununga <felicio@users.noreply.github.com>
2022-05-30 07:25:17 +00:00
Felicio Mununga
793699ac73
update .cspell.json 2022-05-29 18:32:18 +02:00
Felicio Mununga
59bb9257c6
remove notes 2022-05-29 17:48:22 +02:00
Felicio Mununga
598a6a120e
add note 2022-05-29 17:41:55 +02:00
Felicio Mununga
3d67946fb0
move clearing to func 2022-05-29 17:39:51 +02:00
Felicio Mununga
606a2da96c
remove static props used for instance state 2022-05-29 15:01:36 +02:00
Felicio Mununga
911ce4a836
fix typo 2022-05-29 14:50:30 +02:00
Felicio Mununga
0ecd44aa0a
clear timers on stop 2022-05-29 13:46:12 +02:00
status-bors-ng[bot]
43d65bc4a8
Merge #759
759: Bump cspell from 5.18.4 to 6.0.0 in /examples/eth-pm-wallet-encryption r=D4nte a=dependabot[bot]

Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.4 to 6.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/streetsidesoftware/cspell/releases">cspell's releases</a>.</em></p>
<blockquote>
<h2>v6.0.0</h2>
<h2>Changes</h2>
<p>V5 is going into maintenance mode while V6 will continue to evolve where V5 left off.</p>
<p>Support for V4 has ended.</p>
<h2><strong>BREAKING</strong></h2>
<!-- raw HTML omitted -->
<h3>feat!: Drop support for Node 12 (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2873">#2873</a>)</h3>
<p>CSpell v6 requires Node 14 and above.</p>
<hr />
<!-- raw HTML omitted -->
<h2>Dictionary Updates</h2>
<!-- raw HTML omitted -->
<h3>ci: Workflow Bot -- Update Dictionaries (main) (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2885">#2885</a>)</h3>
<p>.../Azure/azure-rest-api-specs/snapshot.txt        |  4 +-
.../snapshots/TheAlgorithms/Python/report.yaml     |  7 +---
.../snapshots/TheAlgorithms/Python/snapshot.txt    |  5 +--
.../snapshots/django/django/report.yaml            | 46 ++++------------------
.../snapshots/django/django/snapshot.txt           | 38 ++----------------
.../snapshots/pycontribs/jira/report.yaml          |  3 +-
.../snapshots/pycontribs/jira/snapshot.txt         |  3 +-
packages/cspell-bundled-dicts/package-lock.json    | 14 +++----
packages/cspell-bundled-dicts/package.json         |  2 +-
9 files changed, 24 insertions(+), 98 deletions(-)</p>
<hr />
<!-- raw HTML omitted -->
<h2>Maintenance</h2>
<!-- raw HTML omitted -->
<h3>ci: Workflow Bot -- Update ALL Dependencies (main) (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2887">#2887</a>)</h3>
<p>integration-tests/package-lock.json                | 12 ++---
package-lock.json                                  | 50 +++++++++---------</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md">cspell's changelog</a>.</em></p>
<blockquote>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v6.0.0-alpha.0...v6.0.0">6.0.0</a> (2022-05-21)</h1>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v5.21.1...v6.0.0-alpha.0">6.0.0-alpha.0</a> (2022-05-20)</h1>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h2><a href="https://github.com/streetsidesoftware/cspell/compare/v5.21.0...v5.21.1">5.21.1</a> (2022-05-20)</h2>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v5.20.0...v5.21.0">5.21.0</a> (2022-05-17)</h1>
<h3>Bug Fixes</h3>
<ul>
<li>comments in CSpellSettingsDef.ts (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2821">#2821</a>) (<a href="b1f296d82a">b1f296d</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>Upgrade <code>cpp</code> dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2794">#2794</a>) (<a href="e51f7f49fd">e51f7f4</a>)</li>
<li>Upgrade <code>go</code> dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2792">#2792</a>) (<a href="778b8fe7dd">778b8fe</a>)</li>
<li>Upgrade C# dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2791">#2791</a>) (<a href="64c11da76e">64c11da</a>)</li>
</ul>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v5.19.7...v5.20.0">5.20.0</a> (2022-05-02)</h1>
<h3>Bug Fixes</h3>
<ul>
<li>Roll back glob to 7.2.0 to fix Windows (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2706">#2706</a>) (<a href="b42bbdd28c">b42bbdd</a>)</li>
<li>Update to glob 8 (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2707">#2707</a>) (<a href="07567cd709">07567cd</a>), closes <a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2706">#2706</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7fd3e4ff87"><code>7fd3e4f</code></a> v6.0.0</li>
<li><a href="252aaec4bc"><code>252aaec</code></a> Update cspell5-update-dependencies.yml</li>
<li><a href="d4a72657b2"><code>d4a7265</code></a> Update cspell5-update-dictionaries.yml</li>
<li><a href="f85f02d947"><code>f85f02d</code></a> ci: Workflow Bot -- Update ALL Dependencies (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2887">#2887</a>)</li>
<li><a href="0469bf5960"><code>0469bf5</code></a> ci: Workflow Bot -- Update Dictionaries (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2885">#2885</a>)</li>
<li><a href="aac66a1f3d"><code>aac66a1</code></a> Update release-drafter-cspell5.yml</li>
<li><a href="8b96958b2b"><code>8b96958</code></a> Update release-drafter-cspell5.yml</li>
<li><a href="a58abfe1c4"><code>a58abfe</code></a> ci: set release-drafter for cspell5</li>
<li><a href="e06ada3459"><code>e06ada3</code></a> ci: do not show cspell5 releases</li>
<li><a href="4c74a448e9"><code>4c74a44</code></a> ci: Workflow Bot -- Update ALL Dependencies (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2882">#2882</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/streetsidesoftware/cspell/compare/v5.18.4...v6.0.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cspell&package-manager=npm_and_yarn&previous-version=5.18.4&new-version=6.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-27 04:40:01 +00:00
status-bors-ng[bot]
6babb769f9
Merge #757 #758
757: Bump cspell from 5.20.0 to 6.0.0 in /examples/web-chat r=D4nte a=dependabot[bot]

Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.20.0 to 6.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/streetsidesoftware/cspell/releases">cspell's releases</a>.</em></p>
<blockquote>
<h2>v6.0.0</h2>
<h2>Changes</h2>
<p>V5 is going into maintenance mode while V6 will continue to evolve where V5 left off.</p>
<p>Support for V4 has ended.</p>
<h2><strong>BREAKING</strong></h2>
<!-- raw HTML omitted -->
<h3>feat!: Drop support for Node 12 (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2873">#2873</a>)</h3>
<p>CSpell v6 requires Node 14 and above.</p>
<hr />
<!-- raw HTML omitted -->
<h2>Dictionary Updates</h2>
<!-- raw HTML omitted -->
<h3>ci: Workflow Bot -- Update Dictionaries (main) (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2885">#2885</a>)</h3>
<p>.../Azure/azure-rest-api-specs/snapshot.txt        |  4 +-
.../snapshots/TheAlgorithms/Python/report.yaml     |  7 +---
.../snapshots/TheAlgorithms/Python/snapshot.txt    |  5 +--
.../snapshots/django/django/report.yaml            | 46 ++++------------------
.../snapshots/django/django/snapshot.txt           | 38 ++----------------
.../snapshots/pycontribs/jira/report.yaml          |  3 +-
.../snapshots/pycontribs/jira/snapshot.txt         |  3 +-
packages/cspell-bundled-dicts/package-lock.json    | 14 +++----
packages/cspell-bundled-dicts/package.json         |  2 +-
9 files changed, 24 insertions(+), 98 deletions(-)</p>
<hr />
<!-- raw HTML omitted -->
<h2>Maintenance</h2>
<!-- raw HTML omitted -->
<h3>ci: Workflow Bot -- Update ALL Dependencies (main) (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2887">#2887</a>)</h3>
<p>integration-tests/package-lock.json                | 12 ++---
package-lock.json                                  | 50 +++++++++---------</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md">cspell's changelog</a>.</em></p>
<blockquote>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v6.0.0-alpha.0...v6.0.0">6.0.0</a> (2022-05-21)</h1>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v5.21.1...v6.0.0-alpha.0">6.0.0-alpha.0</a> (2022-05-20)</h1>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h2><a href="https://github.com/streetsidesoftware/cspell/compare/v5.21.0...v5.21.1">5.21.1</a> (2022-05-20)</h2>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v5.20.0...v5.21.0">5.21.0</a> (2022-05-17)</h1>
<h3>Bug Fixes</h3>
<ul>
<li>comments in CSpellSettingsDef.ts (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2821">#2821</a>) (<a href="b1f296d82a">b1f296d</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>Upgrade <code>cpp</code> dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2794">#2794</a>) (<a href="e51f7f49fd">e51f7f4</a>)</li>
<li>Upgrade <code>go</code> dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2792">#2792</a>) (<a href="778b8fe7dd">778b8fe</a>)</li>
<li>Upgrade C# dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2791">#2791</a>) (<a href="64c11da76e">64c11da</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7fd3e4ff87"><code>7fd3e4f</code></a> v6.0.0</li>
<li><a href="252aaec4bc"><code>252aaec</code></a> Update cspell5-update-dependencies.yml</li>
<li><a href="d4a72657b2"><code>d4a7265</code></a> Update cspell5-update-dictionaries.yml</li>
<li><a href="f85f02d947"><code>f85f02d</code></a> ci: Workflow Bot -- Update ALL Dependencies (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2887">#2887</a>)</li>
<li><a href="0469bf5960"><code>0469bf5</code></a> ci: Workflow Bot -- Update Dictionaries (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2885">#2885</a>)</li>
<li><a href="aac66a1f3d"><code>aac66a1</code></a> Update release-drafter-cspell5.yml</li>
<li><a href="8b96958b2b"><code>8b96958</code></a> Update release-drafter-cspell5.yml</li>
<li><a href="a58abfe1c4"><code>a58abfe</code></a> ci: set release-drafter for cspell5</li>
<li><a href="e06ada3459"><code>e06ada3</code></a> ci: do not show cspell5 releases</li>
<li><a href="4c74a448e9"><code>4c74a44</code></a> ci: Workflow Bot -- Update ALL Dependencies (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2882">#2882</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/streetsidesoftware/cspell/compare/v5.20.0...v6.0.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cspell&package-manager=npm_and_yarn&previous-version=5.20.0&new-version=6.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

758: Bump cspell from 5.18.4 to 6.0.0 in /examples/eth-pm r=D4nte a=dependabot[bot]

Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.4 to 6.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/streetsidesoftware/cspell/releases">cspell's releases</a>.</em></p>
<blockquote>
<h2>v6.0.0</h2>
<h2>Changes</h2>
<p>V5 is going into maintenance mode while V6 will continue to evolve where V5 left off.</p>
<p>Support for V4 has ended.</p>
<h2><strong>BREAKING</strong></h2>
<!-- raw HTML omitted -->
<h3>feat!: Drop support for Node 12 (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2873">#2873</a>)</h3>
<p>CSpell v6 requires Node 14 and above.</p>
<hr />
<!-- raw HTML omitted -->
<h2>Dictionary Updates</h2>
<!-- raw HTML omitted -->
<h3>ci: Workflow Bot -- Update Dictionaries (main) (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2885">#2885</a>)</h3>
<p>.../Azure/azure-rest-api-specs/snapshot.txt        |  4 +-
.../snapshots/TheAlgorithms/Python/report.yaml     |  7 +---
.../snapshots/TheAlgorithms/Python/snapshot.txt    |  5 +--
.../snapshots/django/django/report.yaml            | 46 ++++------------------
.../snapshots/django/django/snapshot.txt           | 38 ++----------------
.../snapshots/pycontribs/jira/report.yaml          |  3 +-
.../snapshots/pycontribs/jira/snapshot.txt         |  3 +-
packages/cspell-bundled-dicts/package-lock.json    | 14 +++----
packages/cspell-bundled-dicts/package.json         |  2 +-
9 files changed, 24 insertions(+), 98 deletions(-)</p>
<hr />
<!-- raw HTML omitted -->
<h2>Maintenance</h2>
<!-- raw HTML omitted -->
<h3>ci: Workflow Bot -- Update ALL Dependencies (main) (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2887">#2887</a>)</h3>
<p>integration-tests/package-lock.json                | 12 ++---
package-lock.json                                  | 50 +++++++++---------</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md">cspell's changelog</a>.</em></p>
<blockquote>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v6.0.0-alpha.0...v6.0.0">6.0.0</a> (2022-05-21)</h1>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v5.21.1...v6.0.0-alpha.0">6.0.0-alpha.0</a> (2022-05-20)</h1>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h2><a href="https://github.com/streetsidesoftware/cspell/compare/v5.21.0...v5.21.1">5.21.1</a> (2022-05-20)</h2>
<p><strong>Note:</strong> Version bump only for package cspell-monorepo</p>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v5.20.0...v5.21.0">5.21.0</a> (2022-05-17)</h1>
<h3>Bug Fixes</h3>
<ul>
<li>comments in CSpellSettingsDef.ts (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2821">#2821</a>) (<a href="b1f296d82a">b1f296d</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>Upgrade <code>cpp</code> dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2794">#2794</a>) (<a href="e51f7f49fd">e51f7f4</a>)</li>
<li>Upgrade <code>go</code> dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2792">#2792</a>) (<a href="778b8fe7dd">778b8fe</a>)</li>
<li>Upgrade C# dictionary (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2791">#2791</a>) (<a href="64c11da76e">64c11da</a>)</li>
</ul>
<h1><a href="https://github.com/streetsidesoftware/cspell/compare/v5.19.7...v5.20.0">5.20.0</a> (2022-05-02)</h1>
<h3>Bug Fixes</h3>
<ul>
<li>Roll back glob to 7.2.0 to fix Windows (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2706">#2706</a>) (<a href="b42bbdd28c">b42bbdd</a>)</li>
<li>Update to glob 8 (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2707">#2707</a>) (<a href="07567cd709">07567cd</a>), closes <a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2706">#2706</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7fd3e4ff87"><code>7fd3e4f</code></a> v6.0.0</li>
<li><a href="252aaec4bc"><code>252aaec</code></a> Update cspell5-update-dependencies.yml</li>
<li><a href="d4a72657b2"><code>d4a7265</code></a> Update cspell5-update-dictionaries.yml</li>
<li><a href="f85f02d947"><code>f85f02d</code></a> ci: Workflow Bot -- Update ALL Dependencies (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2887">#2887</a>)</li>
<li><a href="0469bf5960"><code>0469bf5</code></a> ci: Workflow Bot -- Update Dictionaries (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2885">#2885</a>)</li>
<li><a href="aac66a1f3d"><code>aac66a1</code></a> Update release-drafter-cspell5.yml</li>
<li><a href="8b96958b2b"><code>8b96958</code></a> Update release-drafter-cspell5.yml</li>
<li><a href="a58abfe1c4"><code>a58abfe</code></a> ci: set release-drafter for cspell5</li>
<li><a href="e06ada3459"><code>e06ada3</code></a> ci: do not show cspell5 releases</li>
<li><a href="4c74a448e9"><code>4c74a44</code></a> ci: Workflow Bot -- Update ALL Dependencies (<a href="https://github-redirect.dependabot.com/streetsidesoftware/cspell/issues/2882">#2882</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/streetsidesoftware/cspell/compare/v5.18.4...v6.0.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cspell&package-manager=npm_and_yarn&previous-version=5.18.4&new-version=6.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-27 04:32:30 +00:00
Franck R
1ebb8c571f
Merge pull request #765 from status-im/release/0.24.0 2022-05-27 14:21:43 +10:00
Franck Royer
1a53a35358
Release 0.24.0 2022-05-27 23:46:18 +10:00
status-bors-ng[bot]
47bc8c8d23
Merge #764
764: build before publishing + build optimisation r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-05-27 04:03:03 +00:00
Franck Royer
ec10dcd0ad
Add prepublish script 2022-05-27 23:38:12 +10:00
Franck Royer
7b54dd1b59
Run build in parallel
They use to have intra-dependencies but not the case anymore.
2022-05-27 23:29:28 +10:00
Franck Royer
5baf42c76e
Remove build:dev
This is a type check, already done with `test:tsc`
2022-05-27 23:29:27 +10:00
Franck Royer
354ca4e7b5
Delete build folder before building 2022-05-27 23:24:04 +10:00
Franck R
ac56778950
Merge pull request #762 from status-im/waku-filter
Implement Waku Filter protocol
2022-05-27 11:09:50 +10:00
Franck Royer
7a2dcd9881
Update comments 2022-05-27 20:37:16 +10:00
Franck Royer
d3082c8dd8
Update changelog 2022-05-27 20:37:16 +10:00
Franck Royer
b93e535af9
Add wait for remote peer (filter) test 2022-05-27 20:37:15 +10:00
Franck Royer
2e09b6dec3
Use Map
Preferred to object when possible.
2022-05-27 20:37:15 +10:00
Franck Royer
5687908ca0
Reorder parameters
To match `waku.relay.addObserver`.
2022-05-27 20:37:15 +10:00
Franck Royer
4cf3d3ffd8
Add some awaits 2022-05-27 20:37:15 +10:00
Franck Royer
e5dde6f9e9
Minor fixes 2022-05-27 20:37:15 +10:00
Franck Royer
f7613febed
Simplify import 2022-05-27 20:37:15 +10:00
Franck Royer
4c640e0f93
Remove due filter 2022-05-27 20:37:15 +10:00
Franck Royer
e3015abce9
Add filter to dial 2022-05-27 20:37:15 +10:00
Nicholas Molnar
8aa966c2f6
Consolidate imports 2022-05-27 20:37:15 +10:00
Nicholas Molnar
cd71beb26b
Fix more comments 2022-05-27 20:37:15 +10:00
Nicholas Molnar
c534bd6cff
Add more comments 2022-05-27 20:37:14 +10:00
Nicholas Molnar
971d080ab5
Code cleanup 2022-05-27 20:37:14 +10:00
Nicholas Molnar
41f01c6d60
Fix comment 2022-05-27 20:37:14 +10:00
Nicholas Molnar
c77b74c10c
Add/delete decryption keys 2022-05-27 20:37:14 +10:00
Nicholas Molnar
5faa186b34
Add decryption keys 2022-05-27 20:37:14 +10:00
Nicholas Molnar
4734e4b7c7
Finish implementation 2022-05-27 20:37:14 +10:00
Nicholas Molnar
691de1a194
Add proto 2022-05-27 20:37:14 +10:00
Franck R
1dc4897b46
Merge pull request #760 from status-im/links 2022-05-26 19:31:41 +10:00
Franck Royer
03f0b512aa
Update Discord/TG links 2022-05-24 17:51:53 +10:00
dependabot[bot]
14a3faad41
Bump cspell from 5.18.4 to 6.0.0 in /examples/eth-pm-wallet-encryption
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.4 to 6.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/v5.18.4...v6.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>
2022-05-23 15:37:41 +00:00
dependabot[bot]
96a230dc14
Bump cspell from 5.18.4 to 6.0.0 in /examples/eth-pm
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.4 to 6.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/v5.18.4...v6.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>
2022-05-23 15:37:33 +00:00
dependabot[bot]
479735a23c
Bump cspell from 5.20.0 to 6.0.0 in /examples/web-chat
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.20.0 to 6.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/v5.20.0...v6.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>
2022-05-23 15:35:43 +00:00
status-bors-ng[bot]
2011c76b30
Merge #753
753: Clean up crypto/secp256k1 dupe code r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-05-20 02:24:36 +00:00
Franck Royer
2b378e7ca1
Update changelog 2022-05-20 12:22:41 +10:00
Franck Royer
c85c39a427
Consolidate signature verification logic 2022-05-20 12:06:14 +10:00
Franck Royer
2ed3580584
Remove dupe function 2022-05-20 11:49:00 +10:00
Franck Royer
6ace11f18f
Remove unused interface 2022-05-20 11:45:48 +10:00
Franck Royer
4cb8769271
Remove unused constant 2022-05-20 11:44:58 +10:00
Franck Royer
b93c876043
Consolidate compress public key functions 2022-05-20 11:42:01 +10:00
Franck Royer
479081f611
Remove unnecessary abstract class 2022-05-20 11:38:44 +10:00
Franck Royer
5e1cd78288
Remove unused code 2022-05-20 11:27:57 +10:00
Franck Royer
17c8335d6f
Remove file 2022-05-20 11:27:15 +10:00
Franck Royer
c6189170e0
Remove unused code 2022-05-20 11:05:44 +10:00
Franck Royer
ee8ba791cc
Move ecdsa sign to crypto.ts 2022-05-20 10:59:33 +10:00
Franck Royer
b3f4686da1
Use Uint8Array instead of hex string for hash 2022-05-20 10:59:32 +10:00
Franck Royer
595fb877eb
Move keccak256 function to crypto.ts 2022-05-20 10:59:32 +10:00
Franck Royer
20b3b5b667
Move common crypto functions to crypto.ts 2022-05-20 10:59:32 +10:00
status-bors-ng[bot]
e46369d968
Merge #726
726: Remove buffer usage r=D4nte a=D4nte

This only removes it from the code we wrote.

- `ts-proto` uses `Buffer`, the idea would be to review whether we can use the new `protons`
- Some dependencies are likely to use `Buffer`, will need review.

Co-authored-by: Franck Royer <franck@status.im>
2022-05-20 00:40:58 +00:00
Franck Royer
dbdf37a31d
Remove usage of Buffer from version_1.ts 2022-05-20 10:32:45 +10:00
Franck Royer
89de2e3c77
Remove buf variable 2022-05-20 10:32:45 +10:00
Franck Royer
06b4ab581d
Remove Buffer from isMessageSigned 2022-05-20 10:32:45 +10:00
Franck Royer
ce0c5cef07
Pass Uint8Array when possible 2022-05-20 10:32:45 +10:00
Franck Royer
5648f72d3d
Extract is message signed logic 2022-05-20 10:32:45 +10:00
Franck Royer
bd9d592fda
Remove Buffer from getPayloadSize 2022-05-20 10:32:45 +10:00
Franck Royer
33f52ef56d
Extract getPayloadSize logic 2022-05-20 10:32:45 +10:00
Franck Royer
95485f0a69
Remove Buffer from getSizeOfPayloadSizeField 2022-05-20 10:32:44 +10:00
Franck Royer
9e09de831f
Extract decoding of size of payload size field 2022-05-20 10:32:44 +10:00
Franck Royer
0964425a12
Remove Buffer from validateDataIntegrity 2022-05-20 10:32:44 +10:00
Franck Royer
64ea36faa3
Remove Buffer from ecRecoverPubKey 2022-05-20 10:32:44 +10:00
Franck Royer
76777744f0
Remove Buffer from decrypt* 2022-05-20 10:32:44 +10:00
Franck Royer
181ba489be
Remove Buffer from encrypt* 2022-05-20 10:32:44 +10:00
Franck Royer
5d32877357
Remove Buffer from getSignature, getHash, getPublicKey 2022-05-20 10:32:44 +10:00
Franck Royer
6929805425
Remove Buffer from clearEncode 2022-05-20 10:32:44 +10:00
Franck Royer
564fee29eb
Remove Buffer from addPayloadSizeField 2022-05-20 10:32:44 +10:00
Franck Royer
661c6227e7
Move type definition to the top 2022-05-20 10:32:43 +10:00
Franck Royer
ab3b23f100
Remove Buffer from symmetric.ts 2022-05-20 10:32:43 +10:00
Franck Royer
c66927668b
Run tsc as part of test script instead of building 2022-05-20 10:32:43 +10:00
status-bors-ng[bot]
8a84024c7d
Merge #745
745: update unique key to React list element in relay-reactjs-chat app r=D4nte a=tobyjaguar

## Problem

When running the app on a development server, the React list of mapped messages produces a warning that the children in a list should have a unique key prop:

<img width="1347" alt="Screen Shot 2022-05-17 at 4 02 23 PM" src="https://user-images.githubusercontent.com/16940072/168926247-ca331666-f23c-487b-9023-3c63eea35492.png">


## Solution

Add a unique key to the list element in the App.js component.

## Notes

Any unique key will do here, but the timestamp seems to work unless the maintainers refactor for a better id. 
A timestamp may not be ideal if multiple messages with the same timestamp come in. Perhaps a uuid would
work, but perhaps that is too heavy handed for an example, although this may be a choice for a production
implementation.


Co-authored-by: tobyjaguar <talgya@gmail.com>
Co-authored-by: Franck Royer <franck@status.im>
2022-05-20 00:32:21 +00:00
Franck R
d267d44b3b
Merge pull request #744 from status-im/improve-error
Improve `waitForRemotePeer` API
2022-05-19 16:30:38 +10:00
Franck Royer
aad678a708
Add a timeout to waitForRemotePeer 2022-05-19 16:04:38 +10:00
Franck Royer
06930c15dc
Remove unneeded variable 2022-05-19 16:04:06 +10:00
Franck Royer
d9940f4d9b
Simplify async iterator usage
The iterator will return only once there is a first item available.
Hence, there is no need to add an observer on `change:protocols` event.
2022-05-19 16:04:06 +10:00
Franck Royer
4b43db6daa
Change default to wait for Relay only
Store is not used by all applications, also, note all
nodes have store enabled.
Default value should prefer working software over feature complexity.
2022-05-19 16:04:04 +10:00
Franck R
7772c0afd6
Merge pull request #749 from status-im/release/0.23.0 2022-05-19 16:02:46 +10:00
Franck Royer
3ec3ad1fd9
Update changelog for release 0.23.0 2022-05-19 15:54:24 +10:00
Franck R
315de8b701
Merge pull request #748 from status-im/release/0.23.0 2022-05-19 15:53:25 +10:00
Franck Royer
7d9406bcfc
Release 0.23.0 2022-05-19 15:36:24 +10:00
Franck Royer
27a90d8204
Use timestamp in millisecond
It was implicitly using `toString` which return the timestamp in
readable format with a precision in seconds which meant messages sent
within the same second had the same key.
2022-05-19 15:32:06 +10:00
tobyjaguar
35cfd5679e
update unique key to React list element in relay-reactjs-chat app 2022-05-19 15:32:06 +10:00
Franck R
4a6e424a8c
Merge pull request #738 from status-im/remove-multihashes 2022-05-19 15:31:33 +10:00
Franck Royer
0ec6e6d2fb
Update changelog 2022-05-19 15:17:37 +10:00
Franck Royer
4639537fd6
Ensure ENR.create is used instead of the constructor 2022-05-19 15:17:19 +10:00
Franck Royer
95d1ef4b4a
Ignore imports when check spell 2022-05-19 15:17:18 +10:00
Franck Royer
1d8e3837ea
Replace deprecated multihashes with multiformats 2022-05-19 15:17:16 +10:00
Franck Royer
e8ba7f6440
Calculate peer id at creation
As the peer id method calculation method will become async.
2022-05-19 15:16:35 +10:00
Franck R
c5ca3d60b3
Merge pull request #746 from status-im/parcel
Add all used deps
2022-05-18 21:35:06 +10:00
Franck Royer
48efcc1562
Add all used deps 2022-05-18 20:41:10 +10:00
status-bors-ng[bot]
54044d4437
Merge #743
743: Remove jemboh as reviewers for dependabot r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-05-17 11:37:07 +00:00
Franck Royer
575e7a49fa
Remove jemboh as reviewers for dependabot 2022-05-17 18:26:36 +10:00
status-bors-ng[bot]
c2a160d0f5
Merge #731
731: Bump @testing-library/react from 12.1.2 to 13.2.0 in /examples/eth-pm r=D4nte a=dependabot[bot]

Bumps [`@testing-library/react](https://github.com/testing-library/react-testing-library)` from 12.1.2 to 13.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/react-testing-library/releases"><code>`@​testing-library/react</code>'s` releases</a>.</em></p>
<blockquote>
<h2>v13.2.0</h2>
<h1><a href="https://github.com/testing-library/react-testing-library/compare/v13.1.1...v13.2.0">13.2.0</a> (2022-05-03)</h1>
<h3>Features</h3>
<ul>
<li>Export RenderHookOptions type (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1062">#1062</a>) (<a href="46b28ade73">46b28ad</a>)</li>
</ul>
<h2>v13.1.1</h2>
<h2><a href="https://github.com/testing-library/react-testing-library/compare/v13.1.0...v13.1.1">13.1.1</a> (2022-04-15)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>TS:</strong> export interface RenderHookResult (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1049">#1049</a>) (<a href="9171163fcc">9171163</a>)</li>
</ul>
<h2>v13.1.0</h2>
<h1><a href="https://github.com/testing-library/react-testing-library/compare/v13.0.1...v13.1.0">13.1.0</a> (2022-04-15)</h1>
<h3>Features</h3>
<ul>
<li>Add <code>renderHook</code> (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/991">#991</a>) (<a href="9535eff82a">9535eff</a>)</li>
</ul>
<h2>v13.0.1</h2>
<h2><a href="https://github.com/testing-library/react-testing-library/compare/v13.0.0...v13.0.1">13.0.1</a> (2022-04-11)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Specify a non-* version for <code>`@​types/react-dom</code>` (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1040">#1040</a>) (<a href="2a889e8065">2a889e8</a>)</li>
</ul>
<h2>v13.0.0</h2>
<h1><a href="https://github.com/testing-library/react-testing-library/compare/v12.1.4...v13.0.0">13.0.0</a> (2022-03-31)</h1>
<h3>Features</h3>
<ul>
<li>Add support for React 18 (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1031">#1031</a>) (<a href="ccd8a0d97d">ccd8a0d</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<ul>
<li>Drop support for React 17 and earlier. We'll use the new <a href="https://github.com/reactwg/react-18/discussions/5"><code>createRoot</code> API</a> by default which comes with a set of <a href="https://github.com/reactwg/react-18/discussions/4">changes while also enabling support for concurrent features</a>.
To opt-out of this change you can use <code>render(ui, { legacyRoot: true } )</code>. But be aware that the legacy root API is deprecated in React 18 and its usage will trigger console warnings.</li>
</ul>
<h2>v13.0.0-alpha.7</h2>
<h1><a href="https://github.com/testing-library/react-testing-library/compare/v13.0.0-alpha.6...v13.0.0-alpha.7">13.0.0-alpha.7</a> (2022-03-30)</h1>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="00c89dce86"><code>00c89dc</code></a> docs: add mboettcher as a contributor for code (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1063">#1063</a>)</li>
<li><a href="46b28ade73"><code>46b28ad</code></a> feat: Export RenderHookOptions type (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1062">#1062</a>)</li>
<li><a href="9171163fcc"><code>9171163</code></a> fix(TS): export interface RenderHookResult (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1049">#1049</a>)</li>
<li><a href="9535eff82a"><code>9535eff</code></a> feat: Add <code>renderHook</code> (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/991">#991</a>)</li>
<li><a href="2c451b3468"><code>2c451b3</code></a> chore: Run release from 12.x branch (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1044">#1044</a>) (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1045">#1045</a>)</li>
<li><a href="c8c93f8322"><code>c8c93f8</code></a> docs: add Nokel81 as a contributor for bug, code (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1043">#1043</a>)</li>
<li><a href="2a889e8065"><code>2a889e8</code></a> fix: Specify a non-* version for <code>`@​types/react-dom</code>` (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1040">#1040</a>)</li>
<li><a href="93bc2c8afc"><code>93bc2c8</code></a> test(types): Don't assume implicit children (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1042">#1042</a>)</li>
<li><a href="ccd8a0d97d"><code>ccd8a0d</code></a> feat: Add support for React 18 (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1031">#1031</a>)</li>
<li><a href="0c4aabe0da"><code>0c4aabe</code></a> chore: Fix failing codesandbox/ci (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1026">#1026</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/testing-library/react-testing-library/compare/v12.1.2...v13.2.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@testing-library/react&package-manager=npm_and_yarn&previous-version=12.1.2&new-version=13.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-17 08:21:39 +00:00
Franck R
02f41a4b95
Merge pull request #732 from status-im/dependabot/npm_and_yarn/examples/eth-pm-wallet-encryption/testing-library/react-13.2.0
Bump @testing-library/react from 12.1.2 to 13.2.0 in /examples/eth-pm-wallet-encryption
2022-05-17 18:21:08 +10:00
dependabot[bot]
6313e3e4f7
Bump @testing-library/react from 12.1.2 to 13.2.0 in /examples/eth-pm
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 12.1.2 to 13.2.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v12.1.2...v13.2.0)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-16 15:40:25 +00:00
dependabot[bot]
a90d92937b
Bump @testing-library/react in /examples/eth-pm-wallet-encryption
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 12.1.2 to 13.2.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v12.1.2...v13.2.0)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-16 15:40:25 +00:00
Franck R
9fb9da0823
Merge pull request #740 from status-im/assert
Remove assert usage
2022-05-13 17:46:33 +10:00
Franck Royer
b708077483
Remove assert usage 2022-05-13 17:28:38 +10:00
Franck R
34d93a72d1
Merge pull request #736 from status-im/fix-jenkins 2022-05-13 16:32:58 +10:00
Franck Royer
58a92dcef0
Fix phrasing 2022-05-13 16:06:24 +10:00
Franck Royer
09986d4e2b
Publish simple HTML examples 2022-05-13 16:06:16 +10:00
Franck Royer
82f1b5a135
Publish store and relay ReactJS examples 2022-05-13 16:05:58 +10:00
status-bors-ng[bot]
e6a476ed2e
Merge #734
734: Upgrade examples to js-waku@0.22.0 r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-05-13 05:15:19 +00:00
Franck R
af9849c06f
Merge pull request #735 from status-im/build-examples 2022-05-13 15:09:03 +10:00
Franck Royer
df367d265f
Need to build examples before deploying 2022-05-12 15:17:53 +10:00
Franck Royer
b233247dba
store-reactjs-chat: Upgrade dependencies 2022-05-11 15:57:31 +10:00
Franck Royer
ec3b827e32
store-reactjs: npm audit fix 2022-05-11 15:54:55 +10:00
Franck Royer
0fd94cc3b6
store:reactjs: Remove crypto-browserify 2022-05-11 15:54:55 +10:00
Franck Royer
43d204c67e
store-reactjs: Upgrade js-waku to 0.22.0 2022-05-11 15:54:55 +10:00
Franck Royer
775628fbe7
relay-reactjs: Remove crypto-browserify 2022-05-11 15:54:55 +10:00
Franck Royer
701dccfc28
relay-reactjs: Upgrade js-waku to 0.22.0 2022-05-11 15:54:55 +10:00
Franck Royer
374b0b37b6
web-chat: Upgrade dependencies 2022-05-11 15:54:55 +10:00
Franck Royer
ead78ca6d3
web-chat: Remove crypto-browserify 2022-05-11 15:54:54 +10:00
Franck Royer
f681246d4e
web-chat: Upgrade js-waku to 0.22.0 2022-05-11 15:54:54 +10:00
Franck Royer
6cfcba0c6f
eth-pm-wallet: Run npm audit 2022-05-11 15:54:54 +10:00
Franck Royer
9c68204450
eth-pm-wallet: Remove crypto-browserify 2022-05-11 15:54:54 +10:00
Franck Royer
a891dc7989
eth-pm-wallet: Upgrade js-waku to 0.22.0 2022-05-11 15:54:54 +10:00
Franck Royer
d2bac03955
eth-pm: Remove crypto-browserify 2022-05-11 15:54:54 +10:00
Franck Royer
3a66593ac5
eth-pm: Run npm audit 2022-05-11 15:54:54 +10:00
Franck Royer
edc9f0ce17
eth-pm: Upgrade js-waku to 0.22.0 2022-05-11 15:54:51 +10:00
Franck R
9a65f9348e
Merge pull request #727 from status-im/release/0.22.0 2022-05-10 17:45:25 +10:00
Franck Royer
920668c54c
Release 0.22.0 2022-05-10 16:44:17 +10:00
Franck Royer
7b7ff78c7f
Fix changelog 2022-05-10 16:42:25 +10:00
Franck R
7a9b3bdb5a
Merge pull request #725 from status-im/clean-up-crypto
Use `@noble/secp2156k1`'s utils instead of redefining functions
2022-05-10 15:40:25 +10:00
Franck Royer
c41dfcba40
test: Increase timeout 2022-05-10 15:24:53 +10:00
Franck Royer
7a15fbf8f8
test: Ensure private key is not 0 2022-05-10 15:07:17 +10:00
Franck Royer
50fa2d881d
Use @noble/secp2156k1's sha3 util 2022-05-10 10:59:27 +10:00
Franck Royer
9829cc2cab
Use @noble/secp2156k1's random byte util 2022-05-10 10:47:13 +10:00
Franck R
0e42cf6d7f
Merge pull request #599 from status-im/remove-node-crypto 2022-05-10 09:57:29 +10:00
Franck Royer
00be6b147d
Remove crypto-browserify 2022-05-09 23:32:43 +10:00
Franck Royer
1fd32639b9
Private Key 0..0 is not valid 2022-05-09 23:10:16 +10:00
Franck Royer
1ca7215478
Improve error feedback when crypto/subtle is not available 2022-05-09 23:10:16 +10:00
Franck Royer
556e060335
Replace secp256k1 with @noble/secp256k1 2022-05-09 23:10:15 +10:00
Franck Royer
d3671b7167
Remove secp256k1 usage from entree.ts 2022-05-09 23:10:15 +10:00
Franck Royer
3f6d9fb590
Remove secp256k1 usage from secp256k1.ts 2022-05-09 23:10:14 +10:00
Franck Royer
ae6cb98d5d
Remove secp256k1 usage from enr.ts 2022-05-09 23:10:14 +10:00
Franck Royer
8e6f9e320e
Remove secp256k1 usage from version_1 2022-05-09 16:57:48 +10:00
Franck Royer
12528acaeb
Remove node crypto import 2022-05-09 16:05:22 +10:00
Franck Royer
111f31bb53
Remove node implementation 2022-05-09 16:05:22 +10:00
Franck Royer
9dae5168fc
Use browser (subtle) implementation for all env 2022-05-09 16:05:14 +10:00
Franck R
2e816918c3
Merge pull request #723 from status-im/release/0.21.0 2022-05-05 16:56:40 +10:00
Franck Royer
fd15b190d5
Release 0.21.0 2022-05-05 16:45:55 +10:00
Franck R
c4a62a4c03
Merge pull request #722 from status-im/audit 2022-05-05 16:33:05 +10:00
Franck Royer
b9d23d56e3
Run audit fix 2022-05-05 15:30:35 +10:00
status-bors-ng[bot]
97c3b65b5f
Merge #721
721: Changelog update for `waku2` ENR key r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-05-05 05:00:34 +00:00
Franck Royer
1a95efbb12
Changelog update for waku2 ENR key 2022-05-05 14:58:56 +10:00
status-bors-ng[bot]
5d24519f00
Merge #719 #720
719: Bump @testing-library/react from 12.1.2 to 13.2.0 in /examples/relay-reactjs-chat r=D4nte a=dependabot[bot]

Bumps [`@testing-library/react](https://github.com/testing-library/react-testing-library)` from 12.1.2 to 13.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/react-testing-library/releases"><code>`@​testing-library/react</code>'s` releases</a>.</em></p>
<blockquote>
<h2>v13.2.0</h2>
<h1><a href="https://github.com/testing-library/react-testing-library/compare/v13.1.1...v13.2.0">13.2.0</a> (2022-05-03)</h1>
<h3>Features</h3>
<ul>
<li>Export RenderHookOptions type (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1062">#1062</a>) (<a href="46b28ade73">46b28ad</a>)</li>
</ul>
<h2>v13.1.1</h2>
<h2><a href="https://github.com/testing-library/react-testing-library/compare/v13.1.0...v13.1.1">13.1.1</a> (2022-04-15)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>TS:</strong> export interface RenderHookResult (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1049">#1049</a>) (<a href="9171163fcc">9171163</a>)</li>
</ul>
<h2>v13.1.0</h2>
<h1><a href="https://github.com/testing-library/react-testing-library/compare/v13.0.1...v13.1.0">13.1.0</a> (2022-04-15)</h1>
<h3>Features</h3>
<ul>
<li>Add <code>renderHook</code> (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/991">#991</a>) (<a href="9535eff82a">9535eff</a>)</li>
</ul>
<h2>v13.0.1</h2>
<h2><a href="https://github.com/testing-library/react-testing-library/compare/v13.0.0...v13.0.1">13.0.1</a> (2022-04-11)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Specify a non-* version for <code>`@​types/react-dom</code>` (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1040">#1040</a>) (<a href="2a889e8065">2a889e8</a>)</li>
</ul>
<h2>v13.0.0</h2>
<h1><a href="https://github.com/testing-library/react-testing-library/compare/v12.1.4...v13.0.0">13.0.0</a> (2022-03-31)</h1>
<h3>Features</h3>
<ul>
<li>Add support for React 18 (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1031">#1031</a>) (<a href="ccd8a0d97d">ccd8a0d</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<ul>
<li>Drop support for React 17 and earlier. We'll use the new <a href="https://github.com/reactwg/react-18/discussions/5"><code>createRoot</code> API</a> by default which comes with a set of <a href="https://github.com/reactwg/react-18/discussions/4">changes while also enabling support for concurrent features</a>.
To opt-out of this change you can use <code>render(ui, { legacyRoot: true } )</code>. But be aware that the legacy root API is deprecated in React 18 and its usage will trigger console warnings.</li>
</ul>
<h2>v13.0.0-alpha.7</h2>
<h1><a href="https://github.com/testing-library/react-testing-library/compare/v13.0.0-alpha.6...v13.0.0-alpha.7">13.0.0-alpha.7</a> (2022-03-30)</h1>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="00c89dce86"><code>00c89dc</code></a> docs: add mboettcher as a contributor for code (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1063">#1063</a>)</li>
<li><a href="46b28ade73"><code>46b28ad</code></a> feat: Export RenderHookOptions type (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1062">#1062</a>)</li>
<li><a href="9171163fcc"><code>9171163</code></a> fix(TS): export interface RenderHookResult (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1049">#1049</a>)</li>
<li><a href="9535eff82a"><code>9535eff</code></a> feat: Add <code>renderHook</code> (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/991">#991</a>)</li>
<li><a href="2c451b3468"><code>2c451b3</code></a> chore: Run release from 12.x branch (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1044">#1044</a>) (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1045">#1045</a>)</li>
<li><a href="c8c93f8322"><code>c8c93f8</code></a> docs: add Nokel81 as a contributor for bug, code (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1043">#1043</a>)</li>
<li><a href="2a889e8065"><code>2a889e8</code></a> fix: Specify a non-* version for <code>`@​types/react-dom</code>` (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1040">#1040</a>)</li>
<li><a href="93bc2c8afc"><code>93bc2c8</code></a> test(types): Don't assume implicit children (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1042">#1042</a>)</li>
<li><a href="ccd8a0d97d"><code>ccd8a0d</code></a> feat: Add support for React 18 (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1031">#1031</a>)</li>
<li><a href="0c4aabe0da"><code>0c4aabe</code></a> chore: Fix failing codesandbox/ci (<a href="https://github-redirect.dependabot.com/testing-library/react-testing-library/issues/1026">#1026</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/testing-library/react-testing-library/compare/v12.1.2...v13.2.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@testing-library/react&package-manager=npm_and_yarn&previous-version=12.1.2&new-version=13.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

720: Bump @types/jasmine from 3.10.4 to 4.0.3 in /examples/relay-angular-chat r=D4nte a=dependabot[bot]

Bumps [`@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine)` from 3.10.4 to 4.0.3.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/jasmine&package-manager=npm_and_yarn&previous-version=3.10.4&new-version=4.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-05 04:50:46 +00:00
status-bors-ng[bot]
b0a03544a5
Merge #632
632: Waku2 key enr part two r=D4nte a=jemboh



Co-authored-by: Franck Royer <franck@status.im>
2022-05-05 04:41:59 +00:00
Franck Royer
a5219efc14
Support ENR waku2 field 2022-05-05 14:40:53 +10:00
Franck Royer
d30a918a44
Fix odd case where 0 is encoded as an empty byte array 2022-05-05 14:40:53 +10:00
dependabot[bot]
db345daaf8
Bump @types/jasmine from 3.10.4 to 4.0.3 in /examples/relay-angular-chat
Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.10.4 to 4.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 15:38:06 +00:00
dependabot[bot]
8a02ba657b
Bump @testing-library/react in /examples/relay-reactjs-chat
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 12.1.2 to 13.2.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v12.1.2...v13.2.0)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 15:30:17 +00:00
status-bors-ng[bot]
ba8139441c
Merge #718
718: Bump react and react-dom in examples r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-05-04 04:22:30 +00:00
Franck Royer
a26f9e2bda
Bump react and react-dom in examples 2022-05-04 14:21:30 +10:00
Franck R
94c8cdf016
Merge pull request #605 from status-im/examples-with-npmjs-waku-dependencies
Import js-waku from npmjs.com instead of locally for examples
2022-05-04 14:02:27 +10:00
Franck Royer
83ce3b5d00
Do not build js-waku for examples ci 2022-05-04 12:42:23 +10:00
Franck Royer
507413665a
Use js-waku from npmjs.com instead of local build 2022-05-03 10:47:13 +10:00
Franck Royer
3b15a32f12
Remove root build step when deploying examples 2022-05-02 16:37:27 +10:00
Franck Royer
a94351f265
Deploy all examples to wakuconnect.dev 2022-05-02 16:37:27 +10:00
Franck Royer
dee587d644
Remove unneeded dev dep 2022-05-02 16:37:27 +10:00
Franck Royer
882ddac94e
Run prettier on GitHub workflows 2022-05-02 16:37:25 +10:00
Franck R
5377bd6371
Merge pull request #717 from status-im/unexpected-token
Prefer the use of `BigInt` over integer literal (`n` postfix) to facilitate the use of a polyfill
2022-05-02 15:10:12 +10:00
Franck Royer
5de2f1996f
Facilitate the use of a polyfill for BigInt
By preferring the use of `BigInt` over integer literal (`n` postfix).
2022-05-02 14:51:14 +10:00
status-bors-ng[bot]
d0102d90b5
Merge #682
682: Bump @types/react-dom from 17.0.11 to 18.0.0 in /examples/web-chat r=D4nte a=dependabot[bot]

Bumps [`@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom)` from 17.0.11 to 18.0.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/react-dom&package-manager=npm_and_yarn&previous-version=17.0.11&new-version=18.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-14 03:06:55 +00:00
status-bors-ng[bot]
40462d40aa
Merge #706
706: Stop dependabot's auto rebase r=D4nte a=D4nte

It can race condition with bors. Let bors merge handle the
rebasing.

Co-authored-by: Franck Royer <franck@status.im>
2022-04-13 23:58:42 +00:00
dependabot[bot]
ec4cd8f152
Bump @types/react-dom from 17.0.11 to 18.0.0 in /examples/web-chat
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 17.0.11 to 18.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 15:17:31 +00:00
status-bors-ng[bot]
7a07b60e5d
Merge #685 #688
685: Bump @types/react-dom from 17.0.11 to 18.0.0 in /examples/eth-pm r=D4nte a=dependabot[bot]

Bumps [`@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom)` from 17.0.11 to 18.0.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/react-dom&package-manager=npm_and_yarn&previous-version=17.0.11&new-version=18.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

688: Bump @types/react-dom from 17.0.11 to 18.0.0 in /examples/eth-pm-wallet-encryption r=D4nte a=dependabot[bot]

Bumps [`@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom)` from 17.0.11 to 18.0.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/react-dom&package-manager=npm_and_yarn&previous-version=17.0.11&new-version=18.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-13 14:06:46 +00:00
Franck Royer
7ac6a5f9d6
Stop dependabot's auto rebase
It can race condition with bors. Let bors merge handle the
rebasing.
2022-04-13 22:33:43 +10:00
dependabot[bot]
9c2ea709b2
Bump @types/react-dom from 17.0.11 to 18.0.0 in /examples/eth-pm
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 17.0.11 to 18.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 10:54:08 +00:00
dependabot[bot]
cac2ae801f
Bump @types/react-dom in /examples/eth-pm-wallet-encryption
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 17.0.11 to 18.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 10:54:05 +00:00
status-bors-ng[bot]
9f9a59ec50
Merge #698 #699 #700
698: Bump @types/react from 17.0.39 to 18.0.2 in /examples/web-chat r=D4nte a=dependabot[bot]

Bumps [`@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)` from 17.0.39 to 18.0.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/react&package-manager=npm_and_yarn&previous-version=17.0.39&new-version=18.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

699: Bump @types/react from 17.0.39 to 18.0.2 in /examples/eth-pm r=D4nte a=dependabot[bot]

Bumps [`@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)` from 17.0.39 to 18.0.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/react&package-manager=npm_and_yarn&previous-version=17.0.39&new-version=18.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

700: Bump @types/react from 17.0.39 to 18.0.2 in /examples/eth-pm-wallet-encryption r=D4nte a=dependabot[bot]

Bumps [`@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)` from 17.0.39 to 18.0.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/react&package-manager=npm_and_yarn&previous-version=17.0.39&new-version=18.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-13 10:33:30 +00:00
status-bors-ng[bot]
bf59d871d3
Merge #694
694: Bump @testing-library/user-event from 13.5.0 to 14.1.0 in /examples/eth-pm-wallet-encryption r=D4nte a=dependabot[bot]

Bumps [`@testing-library/user-event](https://github.com/testing-library/user-event)` from 13.5.0 to 14.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/user-event/releases"><code>`@​testing-library/user-event</code>'s` releases</a>.</em></p>
<blockquote>
<h2>v14.1.0</h2>
<h2><a href="https://github.com/testing-library/user-event/compare/v14.0.4...v14.1.0">14.1.0</a> (2022-04-11)</h2>
<h3>Features</h3>
<ul>
<li>add <code>advanceTimers</code> option (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/907">#907</a>) (<a href="627a5cf22e">627a5cf</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>delete chars from value at <code>maxlength</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/909">#909</a>) (<a href="f5049c45c1">f5049c4</a>)</li>
<li>reset UI selection after programmatic value change (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/915">#915</a>) (<a href="8bc331036c">8bc3310</a>)</li>
<li>set initial value when setting UI value (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/918">#918</a>) (<a href="7b0643b52a">7b0643b</a>)</li>
</ul>
<h2>v14.0.4</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.3...v14.0.4">14.0.4</a> (2022-04-01)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>) (<a href="6d36828e22">6d36828</a>)</li>
</ul>
<h2>v14.0.3</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.2...v14.0.3">14.0.3</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li><strong>pointer:</strong> change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>) (<a href="06f12a6475">06f12a6</a>)</li>
</ul>
<h2>v14.0.2</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.1...v14.0.2">14.0.2</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>) (<a href="126d2e7b78">126d2e7</a>)</li>
</ul>
<h2>v14.0.1</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.0...v14.0.1">14.0.1</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>) (<a href="a7f99066a5">a7f9906</a>)</li>
<li><strong>pointer:</strong> support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>) (<a href="e23e559297">e23e559</a>)</li>
</ul>
<h2>v14.0.0</h2>
<h2><a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.0">14.0.0</a> (2022-03-29)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7b0643b52a"><code>7b0643b</code></a> fix: set initial value when setting UI value (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/918">#918</a>)</li>
<li><a href="8bc331036c"><code>8bc3310</code></a> fix: reset UI selection after programmatic value change (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/915">#915</a>)</li>
<li><a href="f5049c45c1"><code>f5049c4</code></a> fix: delete chars from value at <code>maxlength</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/909">#909</a>)</li>
<li><a href="627a5cf22e"><code>627a5cf</code></a> feat: add <code>advanceTimers</code> option (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/907">#907</a>)</li>
<li><a href="2b9d00f8b5"><code>2b9d00f</code></a> docs: add karolis-cekaitis as a contributor for bug, doc (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/914">#914</a>)</li>
<li><a href="6d36828e22"><code>6d36828</code></a> fix: track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>)</li>
<li><a href="f2e8f8e25f"><code>f2e8f8e</code></a> docs: add wKovacs64 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/896">#896</a>)</li>
<li><a href="06f12a6475"><code>06f12a6</code></a> fix(pointer): change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>)</li>
<li><a href="dff6d54882"><code>dff6d54</code></a> docs: add tbertrand7 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/893">#893</a>)</li>
<li><a href="126d2e7b78"><code>126d2e7</code></a> fix: work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@testing-library/user-event&package-manager=npm_and_yarn&previous-version=13.5.0&new-version=14.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-13 09:43:03 +00:00
dependabot[bot]
62a45b0f42
Bump @types/react in /examples/eth-pm-wallet-encryption
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.39 to 18.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 16:51:04 +00:00
dependabot[bot]
6a8decd4aa
Bump @types/react from 17.0.39 to 18.0.2 in /examples/eth-pm
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.39 to 18.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 16:50:27 +00:00
dependabot[bot]
2f7f5473fd
Bump @types/react from 17.0.39 to 18.0.2 in /examples/web-chat
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.39 to 18.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 16:49:58 +00:00
dependabot[bot]
b16d49eaf0
Bump @testing-library/user-event in /examples/eth-pm-wallet-encryption
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.5.0 to 14.1.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.1)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 15:57:02 +00:00
Franck R
1dcb4ee644
Merge pull request #679 from status-im/it-pipe 2022-04-06 13:50:22 +10:00
Franck Royer
277e11f781
Remove unneeded path from libp2p-noise import 2022-04-06 13:41:15 +10:00
Franck Royer
f953a41546
Declare it-pipe dependency, properly import
As it was implicitly using it-pipe@1.0.0 that has a different import
format.
2022-04-06 13:41:15 +10:00
Franck R
249d9bf1a4
Merge pull request #657 from status-im/nim-waku-v0.9 2022-04-06 13:39:44 +10:00
Franck
7bfbefa91a
Get system details before running nwaku 2022-04-06 12:39:19 +10:00
Franck
2511b7daec
Nwaku v0.9 is taking more time to start-up 2022-04-06 12:39:18 +10:00
Franck
dc90279905
Rename nim-waku to nwaku 2022-04-06 12:39:18 +10:00
Franck
ecd2445bf9
Update nim-waku to v0.9 2022-04-06 12:39:18 +10:00
Franck Royer
dc6d37a94e
test: Only use timestamps in the past for a more realistic test 2022-04-06 12:39:18 +10:00
Franck Royer
d95d773f45
Send nanoseconds timestamp in nim-waku RPC 2022-04-06 12:39:18 +10:00
Franck Royer
c07396c30b
Update nwaku RPC with nanoseconds timestamp 2022-04-06 12:39:18 +10:00
Franck Royer
a23d2be461
Upgrade nim-waku to 0.8 2022-04-06 12:39:18 +10:00
status-bors-ng[bot]
3b9e42fd67
Merge #675
675: Bump @testing-library/user-event from 13.5.0 to 14.0.4 in /examples/eth-pm r=D4nte a=dependabot[bot]

Bumps [`@testing-library/user-event](https://github.com/testing-library/user-event)` from 13.5.0 to 14.0.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/user-event/releases"><code>`@​testing-library/user-event</code>'s` releases</a>.</em></p>
<blockquote>
<h2>v14.0.4</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.3...v14.0.4">14.0.4</a> (2022-04-01)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>) (<a href="6d36828e22">6d36828</a>)</li>
</ul>
<h2>v14.0.3</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.2...v14.0.3">14.0.3</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li><strong>pointer:</strong> change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>) (<a href="06f12a6475">06f12a6</a>)</li>
</ul>
<h2>v14.0.2</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.1...v14.0.2">14.0.2</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>) (<a href="126d2e7b78">126d2e7</a>)</li>
</ul>
<h2>v14.0.1</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.0...v14.0.1">14.0.1</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>) (<a href="a7f99066a5">a7f9906</a>)</li>
<li><strong>pointer:</strong> support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>) (<a href="e23e559297">e23e559</a>)</li>
</ul>
<h2>v14.0.0</h2>
<h2><a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.0">14.0.0</a> (2022-03-29)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li><strong>APIs always return a Promise.</strong></li>
<li><strong>pointer:</strong> <code>skipPointerEvents</code> has been removed.
Use <code>pointerEventsCheck: PointerEventsCheckLevel.Never</code> instead.</li>
<li><strong>upload:</strong> <code>init</code> parameter has been removed from <code>userEvent.upload</code>.</li>
<li>The <code>userEvent.paste</code> API has new parameters.</li>
<li><code>{ctrl}</code>, <code>{del}</code>, <code>{esc}</code> no longer describe a key. Use <code>{Control}</code>, <code>{Delete}</code>, <code>{Escape}</code> instead.</li>
<li><code>{alt}</code>, <code>{ctrl}</code>, <code>{meta}</code>, <code>{shift}</code> no longer imply not releasing the key. Use <code>{Alt&gt;}</code>, <code>{Control&gt;}</code>, <code>{Meta&gt;}</code>, <code>{Shift&gt;}</code> instead.</li>
<li><code>init</code> parameter has been removed from these APIs:
<ul>
<li><code>userEvent.click</code></li>
<li><code>userEvent.dblClick</code></li>
<li><code>userEvent.tripleClick</code></li>
</ul>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6d36828e22"><code>6d36828</code></a> fix: track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>)</li>
<li><a href="f2e8f8e25f"><code>f2e8f8e</code></a> docs: add wKovacs64 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/896">#896</a>)</li>
<li><a href="06f12a6475"><code>06f12a6</code></a> fix(pointer): change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>)</li>
<li><a href="dff6d54882"><code>dff6d54</code></a> docs: add tbertrand7 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/893">#893</a>)</li>
<li><a href="126d2e7b78"><code>126d2e7</code></a> fix: work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>)</li>
<li><a href="810c0d856c"><code>810c0d8</code></a> chore: update test environment to React18 (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/891">#891</a>)</li>
<li><a href="886780c2a8"><code>886780c</code></a> docs: add robcaldecott as a contributor for bug, code (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/890">#890</a>)</li>
<li><a href="e23e559297"><code>e23e559</code></a> fix(pointer): support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>)</li>
<li><a href="a7f99066a5"><code>a7f9906</code></a> fix: maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>)</li>
<li><a href="f209a6f863"><code>f209a6f</code></a> chore: update link to CONTRIBUTORS</li>
<li>Additional commits viewable in <a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.4">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@testing-library/user-event&package-manager=npm_and_yarn&previous-version=13.5.0&new-version=14.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-05 07:15:33 +00:00
dependabot[bot]
3b9f691eb7
Bump @testing-library/user-event in /examples/eth-pm
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.5.0 to 14.0.4.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.4)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-05 03:10:14 +00:00
status-bors-ng[bot]
bb186929e0
Merge #672 #673 #674
672: Bump @testing-library/user-event from 13.5.0 to 14.0.4 in /examples/store-reactjs-chat r=D4nte a=dependabot[bot]

Bumps [`@testing-library/user-event](https://github.com/testing-library/user-event)` from 13.5.0 to 14.0.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/user-event/releases"><code>`@​testing-library/user-event</code>'s` releases</a>.</em></p>
<blockquote>
<h2>v14.0.4</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.3...v14.0.4">14.0.4</a> (2022-04-01)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>) (<a href="6d36828e22">6d36828</a>)</li>
</ul>
<h2>v14.0.3</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.2...v14.0.3">14.0.3</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li><strong>pointer:</strong> change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>) (<a href="06f12a6475">06f12a6</a>)</li>
</ul>
<h2>v14.0.2</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.1...v14.0.2">14.0.2</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>) (<a href="126d2e7b78">126d2e7</a>)</li>
</ul>
<h2>v14.0.1</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.0...v14.0.1">14.0.1</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>) (<a href="a7f99066a5">a7f9906</a>)</li>
<li><strong>pointer:</strong> support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>) (<a href="e23e559297">e23e559</a>)</li>
</ul>
<h2>v14.0.0</h2>
<h2><a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.0">14.0.0</a> (2022-03-29)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li><strong>APIs always return a Promise.</strong></li>
<li><strong>pointer:</strong> <code>skipPointerEvents</code> has been removed.
Use <code>pointerEventsCheck: PointerEventsCheckLevel.Never</code> instead.</li>
<li><strong>upload:</strong> <code>init</code> parameter has been removed from <code>userEvent.upload</code>.</li>
<li>The <code>userEvent.paste</code> API has new parameters.</li>
<li><code>{ctrl}</code>, <code>{del}</code>, <code>{esc}</code> no longer describe a key. Use <code>{Control}</code>, <code>{Delete}</code>, <code>{Escape}</code> instead.</li>
<li><code>{alt}</code>, <code>{ctrl}</code>, <code>{meta}</code>, <code>{shift}</code> no longer imply not releasing the key. Use <code>{Alt&gt;}</code>, <code>{Control&gt;}</code>, <code>{Meta&gt;}</code>, <code>{Shift&gt;}</code> instead.</li>
<li><code>init</code> parameter has been removed from these APIs:
<ul>
<li><code>userEvent.click</code></li>
<li><code>userEvent.dblClick</code></li>
<li><code>userEvent.tripleClick</code></li>
</ul>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6d36828e22"><code>6d36828</code></a> fix: track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>)</li>
<li><a href="f2e8f8e25f"><code>f2e8f8e</code></a> docs: add wKovacs64 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/896">#896</a>)</li>
<li><a href="06f12a6475"><code>06f12a6</code></a> fix(pointer): change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>)</li>
<li><a href="dff6d54882"><code>dff6d54</code></a> docs: add tbertrand7 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/893">#893</a>)</li>
<li><a href="126d2e7b78"><code>126d2e7</code></a> fix: work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>)</li>
<li><a href="810c0d856c"><code>810c0d8</code></a> chore: update test environment to React18 (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/891">#891</a>)</li>
<li><a href="886780c2a8"><code>886780c</code></a> docs: add robcaldecott as a contributor for bug, code (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/890">#890</a>)</li>
<li><a href="e23e559297"><code>e23e559</code></a> fix(pointer): support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>)</li>
<li><a href="a7f99066a5"><code>a7f9906</code></a> fix: maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>)</li>
<li><a href="f209a6f863"><code>f209a6f</code></a> chore: update link to CONTRIBUTORS</li>
<li>Additional commits viewable in <a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.4">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@testing-library/user-event&package-manager=npm_and_yarn&previous-version=13.5.0&new-version=14.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

673: Bump @testing-library/user-event from 13.5.0 to 14.0.4 in /examples/web-chat r=D4nte a=dependabot[bot]

Bumps [`@testing-library/user-event](https://github.com/testing-library/user-event)` from 13.5.0 to 14.0.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/user-event/releases"><code>`@​testing-library/user-event</code>'s` releases</a>.</em></p>
<blockquote>
<h2>v14.0.4</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.3...v14.0.4">14.0.4</a> (2022-04-01)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>) (<a href="6d36828e22">6d36828</a>)</li>
</ul>
<h2>v14.0.3</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.2...v14.0.3">14.0.3</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li><strong>pointer:</strong> change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>) (<a href="06f12a6475">06f12a6</a>)</li>
</ul>
<h2>v14.0.2</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.1...v14.0.2">14.0.2</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>) (<a href="126d2e7b78">126d2e7</a>)</li>
</ul>
<h2>v14.0.1</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.0...v14.0.1">14.0.1</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>) (<a href="a7f99066a5">a7f9906</a>)</li>
<li><strong>pointer:</strong> support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>) (<a href="e23e559297">e23e559</a>)</li>
</ul>
<h2>v14.0.0</h2>
<h2><a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.0">14.0.0</a> (2022-03-29)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li><strong>APIs always return a Promise.</strong></li>
<li><strong>pointer:</strong> <code>skipPointerEvents</code> has been removed.
Use <code>pointerEventsCheck: PointerEventsCheckLevel.Never</code> instead.</li>
<li><strong>upload:</strong> <code>init</code> parameter has been removed from <code>userEvent.upload</code>.</li>
<li>The <code>userEvent.paste</code> API has new parameters.</li>
<li><code>{ctrl}</code>, <code>{del}</code>, <code>{esc}</code> no longer describe a key. Use <code>{Control}</code>, <code>{Delete}</code>, <code>{Escape}</code> instead.</li>
<li><code>{alt}</code>, <code>{ctrl}</code>, <code>{meta}</code>, <code>{shift}</code> no longer imply not releasing the key. Use <code>{Alt&gt;}</code>, <code>{Control&gt;}</code>, <code>{Meta&gt;}</code>, <code>{Shift&gt;}</code> instead.</li>
<li><code>init</code> parameter has been removed from these APIs:
<ul>
<li><code>userEvent.click</code></li>
<li><code>userEvent.dblClick</code></li>
<li><code>userEvent.tripleClick</code></li>
</ul>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6d36828e22"><code>6d36828</code></a> fix: track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>)</li>
<li><a href="f2e8f8e25f"><code>f2e8f8e</code></a> docs: add wKovacs64 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/896">#896</a>)</li>
<li><a href="06f12a6475"><code>06f12a6</code></a> fix(pointer): change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>)</li>
<li><a href="dff6d54882"><code>dff6d54</code></a> docs: add tbertrand7 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/893">#893</a>)</li>
<li><a href="126d2e7b78"><code>126d2e7</code></a> fix: work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>)</li>
<li><a href="810c0d856c"><code>810c0d8</code></a> chore: update test environment to React18 (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/891">#891</a>)</li>
<li><a href="886780c2a8"><code>886780c</code></a> docs: add robcaldecott as a contributor for bug, code (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/890">#890</a>)</li>
<li><a href="e23e559297"><code>e23e559</code></a> fix(pointer): support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>)</li>
<li><a href="a7f99066a5"><code>a7f9906</code></a> fix: maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>)</li>
<li><a href="f209a6f863"><code>f209a6f</code></a> chore: update link to CONTRIBUTORS</li>
<li>Additional commits viewable in <a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.4">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@testing-library/user-event&package-manager=npm_and_yarn&previous-version=13.5.0&new-version=14.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

674: Bump @testing-library/user-event from 13.5.0 to 14.0.4 in /examples/relay-reactjs-chat r=D4nte a=dependabot[bot]

Bumps [`@testing-library/user-event](https://github.com/testing-library/user-event)` from 13.5.0 to 14.0.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/user-event/releases"><code>`@​testing-library/user-event</code>'s` releases</a>.</em></p>
<blockquote>
<h2>v14.0.4</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.3...v14.0.4">14.0.4</a> (2022-04-01)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>) (<a href="6d36828e22">6d36828</a>)</li>
</ul>
<h2>v14.0.3</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.2...v14.0.3">14.0.3</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li><strong>pointer:</strong> change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>) (<a href="06f12a6475">06f12a6</a>)</li>
</ul>
<h2>v14.0.2</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.1...v14.0.2">14.0.2</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>) (<a href="126d2e7b78">126d2e7</a>)</li>
</ul>
<h2>v14.0.1</h2>
<h3><a href="https://github.com/testing-library/user-event/compare/v14.0.0...v14.0.1">14.0.1</a> (2022-03-31)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>) (<a href="a7f99066a5">a7f9906</a>)</li>
<li><strong>pointer:</strong> support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>) (<a href="e23e559297">e23e559</a>)</li>
</ul>
<h2>v14.0.0</h2>
<h2><a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.0">14.0.0</a> (2022-03-29)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li><strong>APIs always return a Promise.</strong></li>
<li><strong>pointer:</strong> <code>skipPointerEvents</code> has been removed.
Use <code>pointerEventsCheck: PointerEventsCheckLevel.Never</code> instead.</li>
<li><strong>upload:</strong> <code>init</code> parameter has been removed from <code>userEvent.upload</code>.</li>
<li>The <code>userEvent.paste</code> API has new parameters.</li>
<li><code>{ctrl}</code>, <code>{del}</code>, <code>{esc}</code> no longer describe a key. Use <code>{Control}</code>, <code>{Delete}</code>, <code>{Escape}</code> instead.</li>
<li><code>{alt}</code>, <code>{ctrl}</code>, <code>{meta}</code>, <code>{shift}</code> no longer imply not releasing the key. Use <code>{Alt&gt;}</code>, <code>{Control&gt;}</code>, <code>{Meta&gt;}</code>, <code>{Shift&gt;}</code> instead.</li>
<li><code>init</code> parameter has been removed from these APIs:
<ul>
<li><code>userEvent.click</code></li>
<li><code>userEvent.dblClick</code></li>
<li><code>userEvent.tripleClick</code></li>
</ul>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6d36828e22"><code>6d36828</code></a> fix: track calls to <code>HTMLInputElement.select()</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/898">#898</a>)</li>
<li><a href="f2e8f8e25f"><code>f2e8f8e</code></a> docs: add wKovacs64 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/896">#896</a>)</li>
<li><a href="06f12a6475"><code>06f12a6</code></a> fix(pointer): change selection before dispatching <code>focus</code> (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/895">#895</a>)</li>
<li><a href="dff6d54882"><code>dff6d54</code></a> docs: add tbertrand7 as a contributor for bug (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/893">#893</a>)</li>
<li><a href="126d2e7b78"><code>126d2e7</code></a> fix: work around shadowed globals (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/892">#892</a>)</li>
<li><a href="810c0d856c"><code>810c0d8</code></a> chore: update test environment to React18 (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/891">#891</a>)</li>
<li><a href="886780c2a8"><code>886780c</code></a> docs: add robcaldecott as a contributor for bug, code (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/890">#890</a>)</li>
<li><a href="e23e559297"><code>e23e559</code></a> fix(pointer): support nested select (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/888">#888</a>)</li>
<li><a href="a7f99066a5"><code>a7f9906</code></a> fix: maintain UI value on controlled number input (<a href="https://github-redirect.dependabot.com/testing-library/user-event/issues/889">#889</a>)</li>
<li><a href="f209a6f863"><code>f209a6f</code></a> chore: update link to CONTRIBUTORS</li>
<li>Additional commits viewable in <a href="https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.4">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@testing-library/user-event&package-manager=npm_and_yarn&previous-version=13.5.0&new-version=14.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-05 03:04:06 +00:00
dependabot[bot]
9a43b86b4d
Bump @testing-library/user-event in /examples/relay-reactjs-chat
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.5.0 to 14.0.4.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.4)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 15:22:32 +00:00
dependabot[bot]
e848bf2e2c
Bump @testing-library/user-event in /examples/web-chat
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.5.0 to 14.0.4.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.4)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 15:22:27 +00:00
dependabot[bot]
c4a06eba8a
Bump @testing-library/user-event in /examples/store-reactjs-chat
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.5.0 to 14.0.4.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.0.4)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 15:22:02 +00:00
Franck R
3b77fa17ea
Merge pull request #666 from status-im/protons 2022-04-01 17:54:39 +11:00
Franck Royer
47277e5bb5
Replaces protons with protobufjs 2022-04-01 16:16:53 +11:00
Franck R
ddffe6ec67
Merge pull request #651 from status-im/release/0.20.0 2022-03-30 10:27:12 +11:00
Franck Royer
929f05968b
Release 0.20.0 2022-03-30 10:14:25 +11:00
status-bors-ng[bot]
7e61dd3031
Merge #644
644: Freeze `libp2p-gossipsub` version to 0.13.0 r=D4nte a=D4nte

0.13.2 moved heartbeat class which is a breaking change.

Cc `@jemboh` 

Co-authored-by: Franck Royer <franck@status.im>
2022-03-29 12:26:45 +00:00
Franck R
e45e62ff23
Merge pull request #645 from status-im/remove-workflow
Remove combine PR workflow
2022-03-29 22:55:13 +11:00
Franck Royer
d154683924
Remove combine PR workflow
Using bors instead.
2022-03-29 21:35:26 +11:00
Franck Royer
13d12f8284
Froze libp2p-gossipsub version to 0.13.0
0.13.2 moved heartbeat class which is a breaking change.
2022-03-29 21:28:03 +11:00
status-bors-ng[bot]
a53c728aaf
Merge #635
635: Bump webpack-cli from 4.9.1 to 4.9.2 r=jemboh a=dependabot[bot]

Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.1 to 4.9.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/webpack/webpack-cli/releases">webpack-cli's releases</a>.</em></p>
<blockquote>
<h2>v4.9.2</h2>
<h2><a href="https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.1...webpack-cli@4.9.2">4.9.2</a> (2022-01-24)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>respect <code>negatedDescription</code> for flags from schema (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3102">#3102</a>) (<a href="463b73115b">463b731</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md">webpack-cli's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.1...webpack-cli@4.9.2">4.9.2</a> (2022-01-24)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>respect <code>negatedDescription</code> for flags from schema (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3102">#3102</a>) (<a href="463b73115b">463b731</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="88cbb3fe6a"><code>88cbb3f</code></a> chore(release): publish new version</li>
<li><a href="463b73115b"><code>463b731</code></a> fix: respect <code>negatedDescription</code> for flags from schema (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3102">#3102</a>)</li>
<li><a href="8bb55fb68d"><code>8bb55fb</code></a> chore(deps-dev): bump lint-staged from 12.2.2 to 12.3.1 (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3103">#3103</a>)</li>
<li><a href="4650e66b14"><code>4650e66</code></a> docs: update webpack options (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3101">#3101</a>)</li>
<li><a href="a59de986d8"><code>a59de98</code></a> chore(deps-dev): bump lint-staged from 12.2.1 to 12.2.2 (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3100">#3100</a>)</li>
<li><a href="98270b4496"><code>98270b4</code></a> chore(deps-dev): bump typescript from 4.5.4 to 4.5.5 (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3098">#3098</a>)</li>
<li><a href="c2ef3acf02"><code>c2ef3ac</code></a> chore(deps-dev): bump <code>`@​commitlint/cli</code>` from 16.0.3 to 16.1.0 (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3099">#3099</a>)</li>
<li><a href="4dc2a6245d"><code>4dc2a62</code></a> chore(deps-dev): bump <code>`@​typescript-eslint/parser</code></li>`
<li><a href="5de8ffb76a"><code>5de8ffb</code></a> chore(deps-dev): bump <code>`@​commitlint/cli</code></li>`
<li><a href="953daa15bc"><code>953daa1</code></a> chore(deps-dev): bump lint-staged from 12.2.0 to 12.2.1 (<a href="https://github-redirect.dependabot.com/webpack/webpack-cli/issues/3096">#3096</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.1...webpack-cli@4.9.2">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=webpack-cli&package-manager=npm_and_yarn&previous-version=4.9.1&new-version=4.9.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 16:15:58 +00:00
dependabot[bot]
eb4dc84c18
Bump webpack-cli from 4.9.1 to 4.9.2
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.1...webpack-cli@4.9.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 15:23:30 +00:00
status-bors-ng[bot]
7fc70cff56
Merge #631
631: Bump ts-loader from 9.2.6 to 9.2.8 r=D4nte a=dependabot[bot]

Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.2.6 to 9.2.8.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/TypeStrong/ts-loader/releases">ts-loader's releases</a>.</em></p>
<blockquote>
<h2>v9.2.8</h2>
<ul>
<li><a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/pull/1439">Bug fix: support webpack 5 in ts-loader</a> <a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1438">#1438</a> - thanks <a href="https://github.com/einatbar"><code>`@​einatbar</code></a></li>`
</ul>
<h2>v9.2.7</h2>
<ul>
<li><a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/pull/1422">cater for change in resolveTypeReferenceDirective API in TypeScript 4.7</a>  <a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1421">#1421</a> - thanks <a href="https://github.com/johnnyreilly"><code>`@​johnnyreilly</code></a>` and <a href="https://github.com/cspotcode"><code>`@​cspotcode</code></a>` for inspiration in ts-node work here: <a href="https://github-redirect.dependabot.com/TypeStrong/ts-node/pull/1648">TypeStrong/ts-node#1648</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md">ts-loader's changelog</a>.</em></p>
<blockquote>
<h2>v9.2.8</h2>
<ul>
<li><a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/pull/1439">Bug fix: support webpack 5 in ts-loader</a> <a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1438">#1438</a> - thanks <a href="https://github.com/einatbar"><code>`@​einatbar</code></a></li>`
</ul>
<h2>v9.2.7</h2>
<ul>
<li><a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/pull/1422">cater for change in resolveTypeReferenceDirective API in TypeScript 4.7</a> <a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1421">#1421</a> - thanks <a href="https://github.com/johnny"><code>`@​johnny</code></a>_reilly` and <a href="https://github.com/cspotcode"><code>`@​cspotcode</code></a>` for inspiration in ts-node work here: <a href="https://github-redirect.dependabot.com/TypeStrong/ts-node/pull/1648">TypeStrong/ts-node#1648</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="12f4ffe738"><code>12f4ffe</code></a> Bug fix: support webpack 5 in ts-loader (<a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1439">#1439</a>)</li>
<li><a href="65bb27c617"><code>65bb27c</code></a> Bump lodash from 4.17.4 to 4.17.21 in /test/execution-tests/babel-es2015 (<a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1428">#1428</a>)</li>
<li><a href="e7a2ba6c8e"><code>e7a2ba6</code></a> Bump url-parse from 1.5.1 to 1.5.10 in /examples/vanilla (<a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1424">#1424</a>)</li>
<li><a href="96ddcc5675"><code>96ddcc5</code></a> Bump url-parse in /examples/fork-ts-checker-webpack-plugin (<a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1423">#1423</a>)</li>
<li><a href="ecdc9c1358"><code>ecdc9c1</code></a> Bump ajv in /examples/fork-ts-checker-webpack-plugin (<a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1412">#1412</a>)</li>
<li><a href="5858b5596e"><code>5858b55</code></a> feat/4.6 (<a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1426">#1426</a>)</li>
<li><a href="f09024d655"><code>f09024d</code></a> fix: cater for change in resolveTypeReferenceDirective API in TypeScript 4.7 ...</li>
<li><a href="dcec071c11"><code>dcec071</code></a> 4.5 (<a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1387">#1387</a>)</li>
<li><a href="8bc7b8b58b"><code>8bc7b8b</code></a> Create FUNDING.yml (<a href="https://github-redirect.dependabot.com/TypeStrong/ts-loader/issues/1381">#1381</a>)</li>
<li>See full diff in <a href="https://github.com/TypeStrong/ts-loader/compare/v9.2.6...v9.2.8">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ts-loader&package-manager=npm_and_yarn&previous-version=9.2.6&new-version=9.2.8)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 06:14:25 +00:00
status-bors-ng[bot]
0784cf2545
Merge #634
634: Replace conversion functions with `uint8arrays` r=D4nte a=D4nte

Resolves #603

Co-authored-by: Franck Royer <franck@status.im>
2022-03-25 06:08:53 +00:00
Franck Royer
49998c02bd
Ensure Uint8Array is passed to utf-8 conversion function
Proto unexpectedly returns an `Array<number>`.
2022-03-25 17:08:03 +11:00
Franck Royer
52009b7be9
Use concat to simplify code 2022-03-25 17:08:03 +11:00
Franck Royer
bf63e85e9e
Move utf-8 utils to utils 2022-03-25 17:08:03 +11:00
Franck Royer
638b96c17d
Replace custom utf-8 convert implementations with uint8arrays 2022-03-25 17:08:03 +11:00
Franck Royer
6ef0550433
Replace custom utf-8 convert implementations with uint8arrays 2022-03-25 17:08:03 +11:00
Franck Royer
33e6c3fe39
Replace custom hex implementations with uint8arrays 2022-03-25 17:08:02 +11:00
Franck Royer
a915acfcda
Remove deprecated utils functions 2022-03-25 17:08:02 +11:00
Franck Royer
c4d779d1db
Remove equalByteArrays 2022-03-25 17:08:02 +11:00
Franck R
7410e83798
Merge pull request #633 from status-im/603-uint8arrays 2022-03-25 11:38:01 +11:00
Franck Royer
d0dea3884b
Replace Base 64 buggy conversion functions with uint8arrays 2022-03-25 11:02:40 +11:00
dependabot[bot]
6bc963f372
Bump ts-loader from 9.2.6 to 9.2.8
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.2.6 to 9.2.8.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.6...v9.2.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 15:32:18 +00:00
Franck R
a67df28ae8
Merge pull request #630 from status-im/dependabot/npm_and_yarn/fast-check-2.23.2 2022-03-24 14:58:15 +11:00
dependabot[bot]
4b9a4fdb6f
Bump fast-check from 2.22.0 to 2.23.2
Bumps [fast-check](https://github.com/dubzzz/fast-check) from 2.22.0 to 2.23.2.
- [Release notes](https://github.com/dubzzz/fast-check/releases)
- [Changelog](https://github.com/dubzzz/fast-check/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dubzzz/fast-check/compare/v2.22.0...v2.23.2)

---
updated-dependencies:
- dependency-name: fast-check
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23 18:54:07 +00:00
Franck R
e91dc7bbda
Merge pull request #629 from status-im/dependabot/npm_and_yarn/ethersproject/rlp-5.6.0 2022-03-23 15:11:02 +11:00
dependabot[bot]
9d36bcaece
Bump @ethersproject/rlp from 5.5.0 to 5.6.0
Bumps [@ethersproject/rlp](https://github.com/ethers-io/ethers.js/tree/HEAD/packages/rlp) from 5.5.0 to 5.6.0.
- [Release notes](https://github.com/ethers-io/ethers.js/releases)
- [Changelog](https://github.com/ethers-io/ethers.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ethers-io/ethers.js/commits/v5.6.0/packages/rlp)

---
updated-dependencies:
- dependency-name: "@ethersproject/rlp"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 15:38:18 +00:00
Franck R
a6fce594e1
Merge pull request #627 from status-im/dependabot/npm_and_yarn/debug-4.3.4
Bump debug from 4.3.3 to 4.3.4
2022-03-22 19:53:53 +11:00
dependabot[bot]
dceba4e81b
Bump debug from 4.3.3 to 4.3.4
Bumps [debug](https://github.com/debug-js/debug) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/debug-js/debug/releases)
- [Commits](https://github.com/debug-js/debug/compare/4.3.3...4.3.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 15:31:29 +00:00
status-bors-ng[bot]
aa09b49b13
Merge #626
626: Fix typo r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-03-21 04:08:45 +00:00
Franck Royer
6f62ef84a7
Fix typo 2022-03-21 15:07:42 +11:00
status-bors-ng[bot]
bce9c156bc
Merge #623
623: Bump libp2p-websockets from 0.16.1 to 0.16.2 r=D4nte a=dependabot[bot]

Bumps [libp2p-websockets](https://github.com/libp2p/js-libp2p-websockets) from 0.16.1 to 0.16.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/libp2p/js-libp2p-websockets/releases">libp2p-websockets's releases</a>.</em></p>
<blockquote>
<h2>v0.16.2</h2>
<p>No release notes provided.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/libp2p/js-libp2p-websockets/blob/master/CHANGELOG.md">libp2p-websockets's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/libp2p/js-libp2p-websockets/compare/v0.16.1...v0.16.2">0.16.2</a> (2021-09-28)</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="b70e7231ad"><code>b70e723</code></a> chore: release version v0.16.2</li>
<li><a href="0c8bb6865b"><code>0c8bb68</code></a> chore: update contributors</li>
<li><a href="a7f243736a"><code>a7f2437</code></a> chore: update ipfs-utils (<a href="https://github-redirect.dependabot.com/libp2p/js-libp2p-websockets/issues/136">#136</a>)</li>
<li>See full diff in <a href="https://github.com/libp2p/js-libp2p-websockets/compare/v0.16.1...v0.16.2">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~achingbrain">achingbrain</a>, a new releaser for libp2p-websockets since your current version.</p>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=libp2p-websockets&package-manager=npm_and_yarn&previous-version=0.16.1&new-version=0.16.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 03:43:36 +00:00
status-bors-ng[bot]
e87ecc3531
Merge #625
625: Add JavaScript Relay example r=D4nte a=D4nte

Simple JavaScript app that uses Waku Relay.

Could be subject for a new guide (we don't have a pure JS guide at the moment).

Co-authored-by: Franck Royer <franck@status.im>
2022-03-21 01:34:18 +00:00
Franck Royer
98c1257585
Add JavaScript Relay example 2022-03-21 12:33:31 +11:00
Franck Royer
c44071fe5c
Rename Store JavaScript example 2022-03-21 12:26:39 +11:00
Franck R
21d2532a60
Merge pull request #624 from status-im/release/0.19.2 2022-03-21 11:06:28 +11:00
Franck Royer
483b11723c
Release 0.19.2 2022-03-21 10:36:27 +11:00
dependabot[bot]
f686f55d60
Bump libp2p-websockets from 0.16.1 to 0.16.2
Bumps [libp2p-websockets](https://github.com/libp2p/js-libp2p-websockets) from 0.16.1 to 0.16.2.
- [Release notes](https://github.com/libp2p/js-libp2p-websockets/releases)
- [Changelog](https://github.com/libp2p/js-libp2p-websockets/blob/master/CHANGELOG.md)
- [Commits](https://github.com/libp2p/js-libp2p-websockets/compare/v0.16.1...v0.16.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-18 15:26:47 +00:00
Franck R
eaca592806
Merge pull request #619 from status-im/dependabot/npm_and_yarn/puppeteer-13.5.1
Bump puppeteer from 13.3.1 to 13.5.1
2022-03-18 20:13:34 +11:00
dependabot[bot]
616612de5f
Bump puppeteer from 13.3.1 to 13.5.1
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 13.3.1 to 13.5.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v13.3.1...v13.5.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-18 07:42:50 +00:00
Franck R
e55177d78d
Merge pull request #621 from dao/master
Fix node compatibility
2022-03-18 18:41:55 +11:00
Franck Royer
d2e9a57604
Update changelog 2022-03-18 14:47:25 +11:00
Dylan Oliver
ff0cc1bc38
example relay-reactjs-chat app works importing whole package rather than subpath 2022-03-18 14:41:33 +11:00
Dylan Oliver
9cf2924f7b
check presence of window before using it and appease ts types 2022-03-18 14:41:32 +11:00
Dylan Oliver
565ffb18fb
fix package.json exports to work in node as well as browser 2022-03-18 14:41:23 +11:00
status-bors-ng[bot]
d879b68529
Merge #618
618: Bump lint-staged from 12.3.4 to 12.3.6 r=D4nte a=dependabot[bot]

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.4 to 12.3.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/okonet/lint-staged/releases">lint-staged's releases</a>.</em></p>
<blockquote>
<h2>v12.3.6</h2>
<h2><a href="https://github.com/okonet/lint-staged/compare/v12.3.5...v12.3.6">12.3.6</a> (2022-03-16)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>kill other running tasks on failure (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/1117">#1117</a>) (<a href="34fe319862">34fe319</a>)</li>
</ul>
<h2>v12.3.5</h2>
<h2><a href="https://github.com/okonet/lint-staged/compare/v12.3.4...v12.3.5">12.3.5</a> (2022-03-05)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>search all configs regardless of staged files (<a href="4b605cd369">4b605cd</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="34fe319862"><code>34fe319</code></a> fix: kill other running tasks on failure (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/1117">#1117</a>)</li>
<li><a href="517235d5e4"><code>517235d</code></a> chore: don't use touch on windows</li>
<li><a href="531275cbdb"><code>531275c</code></a> docs: add note about <code>ng lint</code> to README.md</li>
<li><a href="fa15d686de"><code>fa15d68</code></a> refactor: extract <code>parseGitZOutput</code> util</li>
<li><a href="4b605cd369"><code>4b605cd</code></a> fix: search all configs regardless of staged files</li>
<li>See full diff in <a href="https://github.com/okonet/lint-staged/compare/v12.3.4...v12.3.6">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=12.3.4&new-version=12.3.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-17 07:46:55 +00:00
dependabot[bot]
81499a97fd
Bump lint-staged from 12.3.4 to 12.3.6
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.4 to 12.3.6.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.3.4...v12.3.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-17 03:45:02 +00:00
status-bors-ng[bot]
7f2de93143
Merge #615
615: Bump @types/secp256k1 from 4.0.2 to 4.0.3 r=D4nte a=dependabot[bot]

Bumps [`@types/secp256k1](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/secp256k1)` from 4.0.2 to 4.0.3.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/secp256k1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/secp256k1&package-manager=npm_and_yarn&previous-version=4.0.2&new-version=4.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-17 03:38:56 +00:00
dependabot[bot]
bf72114f51
Bump @types/jasmine from 3.10.3 to 4.0.0 in /examples/relay-angular-chat (#617)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-17 11:09:44 +11:00
dependabot[bot]
21bc6c92f7
Bump @types/secp256k1 from 4.0.2 to 4.0.3
Bumps [@types/secp256k1](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/secp256k1) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/secp256k1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-15 15:25:17 +00:00
dependabot[bot]
5de498fe11
Bump libp2p-mplex from 0.10.5 to 0.10.7 (#614)
Bumps [libp2p-mplex](https://github.com/libp2p/js-libp2p-mplex) from 0.10.5 to 0.10.7.
- [Release notes](https://github.com/libp2p/js-libp2p-mplex/releases)
- [Changelog](https://github.com/libp2p/js-libp2p-mplex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/libp2p/js-libp2p-mplex/compare/v0.10.5...v0.10.7)

---
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>
2022-03-15 08:41:12 +11:00
Franck R
c806135810
Revert "Use BigInt constructor instead of happening n as it seems to have better browser support. (#611)" (#613)
This reverts commit f4e81dd29ce6a0c98a9c10d7a8bf3e6a3f17b0a0.
2022-03-13 20:33:47 +11:00
Franck R
f4e81dd29c
Use BigInt constructor instead of happening n as it seems to have better browser support. (#611) 2022-03-13 10:11:04 +11:00
Franck R
ac337855aa
Release 0.19.1 (#610) 2022-03-10 16:25:51 +11:00
Franck R
b904114d1f
Export protocols (#609) 2022-03-10 14:00:09 +11:00
Franck R
ed23332965
Allow passing multiaddr to bootstrap.peers (#608) 2022-03-09 18:38:28 +11:00
Franck R
e4024d5c72
Release 0.19.0 (#607) 2022-03-09 14:29:35 +11:00
Franck R
e649f772a7
WakuMessage.timestamp field must use nanoseconds (#606) 2022-03-09 12:00:02 +11:00
Franck R
2798376776
Remove ecies-geth (#598)
* test: specify encryption method

Makes debugging easier.

* Fix log typo

* Remove ecies-geth

Start removal of elliptic dependency and move towards exclusive usage to
CryptoSubtle.
2022-03-06 23:20:59 +11:00
Franck R
ad5b3ddc7f
New pubsub_topic field on the cursor of Waku Store queries (#596) 2022-03-04 16:47:23 +11:00
status-bors-ng[bot]
09c269da7f
Merge #590
590: Add exports field for node r=D4nte a=D4nte

While this library targets the browser, it is sometimes helpful to use
it in need for experiments.
For example: https://github.com/status-im/js-waku/pull/588

Co-authored-by: Franck Royer <franck@status.im>
2022-03-04 03:50:55 +00:00
Franck Royer
fe30449861
Add exports field for node
While this library targets the browser, it is sometimes helpful to use
it in need for experiments.
For example: https://github.com/status-im/js-waku/pull/588
2022-03-04 14:49:33 +11:00
status-bors-ng[bot]
acdd95b449
Merge #589
589: Handle errors thrown when converting to utf-8 r=D4nte a=D4nte

`bytesToUtf8` replaced a previously used library. The previous library did not throw when failing to decode whereas `bytesToUtf8` does. Need to handle those errors.

Co-authored-by: Franck Royer <franck@status.im>
2022-03-02 02:42:49 +00:00
status-bors-ng[bot]
6b0b71f08b
Merge #591
591: Get eslint to fix files in precommit git hook r=D4nte a=D4nte

We need the hook to fix things when possible.

Co-authored-by: Franck Royer <franck@status.im>
2022-03-02 02:35:57 +00:00
dependabot[bot]
58b85543f8
Bump secp256k1 from 4.0.2 to 4.0.3 (#592)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 13:34:50 +11:00
status-bors-ng[bot]
f224c8320c
Merge #587
587: Update contributing r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-03-01 10:58:52 +00:00
Franck Royer
8029200984
Get eslint to fix files in precommit git hook
We need the hook to fix things when possible.
2022-03-01 17:04:03 +11:00
Franck Royer
067ebebdf0
Remove unnecessary log
As it is unlikely to decode as utf-8.
2022-03-01 16:58:15 +11:00
Franck Royer
f73afc5244
Handle errors thrown when converting to utf-8 2022-03-01 16:58:15 +11:00
dependabot[bot]
35414eaffd
Bump ts-proto from 1.106.1 to 1.106.2 (#585)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 15:33:51 +11:00
Franck Royer
13fcba52af
Update contributing 2022-03-01 15:27:35 +11:00
status-bors-ng[bot]
b97adcadcf
Merge #578
578: Add git hook to format and lint staged files r=D4nte a=D4nte

Make life easier by not having to think about running prettier.

Co-authored-by: Franck Royer <franck@status.im>
2022-02-28 09:55:08 +00:00
status-bors-ng[bot]
f58f8c6d7b
Merge #584
584: Improve count of relay peers r=D4nte a=D4nte

Active relay peers are peer which are part of the gossip mesh.
Which means that it's not just a peer we are connect to but a peer on
subscribed to the same pubsub topic, with a good score, part of the
mesh, etc.

Mesh maintenance is done during the gossipsub hearbeat so it's the best
time to review the count.

A store peer is any peer we are connected to that support the store
protocol, so it can be counted when a new peer is added to the store.

This does not cater for store peers that disconnect, but we are not
handling those just yet.

Co-authored-by: Franck Royer <franck@status.im>
2022-02-28 09:48:41 +00:00
Franck Royer
e6d3c2f595
Improve count of relay peers
Active relay peers are peer which are part of the gossip mesh.
Which means that it's not just a peer we are connect to but a peer on
subscribed to the same pubsub topic, with a good score, part of the
mesh, etc.

Mesh maintenance is done during the gossipsub hearbeat so it's the best
time to review the count.

A store peer is any peer we are connected to that support the store
protocol, so it can be counted when a new peer is added to the store.

This does not cater for store peers that disconnect, but we are not
handling those just yet.
2022-02-28 17:23:30 +11:00
status-bors-ng[bot]
88a92e277c
Merge #582
582: Bump fast-check from 2.17.0 to 2.22.0 r=D4nte a=dependabot[bot]

Bumps [fast-check](https://github.com/dubzzz/fast-check) from 2.17.0 to 2.22.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dubzzz/fast-check/releases">fast-check's releases</a>.</em></p>
<blockquote>
<h2>Move to next generation of properties and unlock shrink on user definable examples</h2>
<p>[<a href="https://github.com/dubzzz/fast-check/tree/v2.19.0">Code</a>][<a href="https://github.com/dubzzz/fast-check/compare/v2.18.0...v2.19.0">Diff</a>]</p>
<h2>Features</h2>
<ul>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2391">PR#2391</a>) Automatically shrink user defined examples</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2393">PR#2393</a>) Support shrink on examples with unshrinkable parts</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2395">PR#2395</a>) Better shrinker for arrays requested minLength</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2423">PR#2423</a>) Make fixed sized arrays as biased as tuples</li>
</ul>
<h2>Fixes</h2>
<ul>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2371">PR#2371</a>) Refactor: Declare API and converters for the next gen property</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2372">PR#2372</a>) Refactor: Migrate runners to rely on next gen properties</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2373">PR#2373</a>) Refactor: Migrate UnbiasedProperty to next gen property</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2374">PR#2374</a>) Refactor: Migrate IgnoreEqualValuesProperty to next gen property</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2375">PR#2375</a>) Refactor: Migrate TimeoutProperty to next gen property</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2376">PR#2376</a>) Refactor: Migrate SkipAfterProperty to next gen property</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2387">PR#2387</a>) Refactor: Produce next gen properties via decorateProperty</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2388">PR#2388</a>) Refactor: Migrate property builders to produce next gen</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2377">PR#2377</a>) Typo: Typo in error thrown when invalid arguments passed to frequency</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2394">PR#2394</a>) Bug: Properly re-wrap values on shrink in properties</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2399">PR#2399</a>) Test: Ensure correct min/max for float32/64Arrays in tests</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2402">PR#2402</a>) Test: Reduce the maximal minLength requested in tests</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2415">PR#2415</a>) Refactor: Update the way we use flags for mixedCase</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2416">PR#2416</a>) Refactor: Do not favor numeric values over others in json arbitraries</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2403">PR#2403</a>) Test: Better asserts of shrinks by going deeper in path</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2417">PR#2417</a>) Bug: Unmapper function of hexa was not unmapping properly</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2421">PR#2421</a>) Bug: Accept already cloneable values as output of .map</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2424">PR#2424</a>) CI: Run tests with verbose flag enabled</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2426">PR#2426</a>) Doc: Document shrink of user definable values</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2427">PR#2427</a>) Test: Stop flakiness on legacy tests of float/double</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/dubzzz/fast-check/blob/main/CHANGELOG.md">fast-check's changelog</a>.</em></p>
<blockquote>
<h1>2.22.0</h1>
<p><em>Introduce the notion of <code>size</code> to avoid having to specify <code>maxLength</code> not being real constraints</em>
[<a href="https://github.com/dubzzz/fast-check/tree/v2.22.0">Code</a>][<a href="https://github.com/dubzzz/fast-check/compare/v2.21.0...v2.22.0">Diff</a>]</p>
<h2>Features</h2>
<ul>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2652">PR#2652</a>) Stop defaulting <code>maxLength</code> when not provided on arrays</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2664">PR#2664</a>) Support shrink of any length with <code>stringOf</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2666">PR#2666</a>) Introduce the notion of <code>size</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2668">PR#2668</a>) Introduce the notion of relative <code>size</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2669">PR#2669</a>) Add ability to configure a base size</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2670">PR#2670</a>) Add built-in support for <code>size</code> to <code>set</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2671">PR#2671</a>) Add ability to configure constraints on <code>dictionary</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2673">PR#2673</a>) Add support for size onto object arbitraries</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2672">PR#2672</a>) Add support for size onto string arbitraries</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2690">PR#2690</a>) Add support for <code>size</code> onto <code>sparseArray</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2699">PR#2699</a>) Forward size of <code>anything</code> to underlying <code>sparseArray</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2701">PR#2701</a>) Make ipV6 independent of size global settings</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2700">PR#2700</a>) Add support for size on typed arrays</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2703">PR#2703</a>) Add support for <code>size</code> onto <code>lorem</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2712">PR#2712</a>) Add support for sized webUrl and related</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2728">PR#2728</a>) Add support for <code>size</code> on <code>commands</code></li>
</ul>
<h2>Fixes</h2>
<ul>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2674">PR#2674</a>) Bug: <code>fc.object</code> not applying constraint <code>maxKeys</code> at root</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2675">PR#2675</a>) Bug: Don't shrink array with trailing hole when not supporting it</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2709">PR#2709</a>) Bug: Cap the max generated length with max length</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2725">PR#2725</a>) Bug: Pass length related constraints to internals in <code>anything</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2727">PR#2727</a>) Bug: Pass size to any key and default value in <code>anything</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2639">PR#2639</a>) CI: Properly define the tag when publishing versions</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2661">PR#2661</a>) CI: Support fire emoji in changelog</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2660">PR#2660</a>) Clean: Remove redundant computation in <code>sparseArray</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2649">PR#2649</a>) Refactor: Split maxLength into two facets inside the internal for arrays</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2676">PR#2676</a>) Test: Add more tests around shrinker of <code>sparseArray</code></li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2702">PR#2702</a>) Test: More stable test on StrictlyEqualSet</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2710">PR#2710</a>) Test: Add more tests on size related helpers</li>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2729">PR#2729</a>) Test: Stabilize tests of <code>adapter</code> by switching to <code>Object.is</code></li>
</ul>
<hr />
<h1>2.21.0</h1>
<p><em>More performant arbitrary for arrays of unique values</em>
[<a href="https://github.com/dubzzz/fast-check/tree/v2.21.0">Code</a>][<a href="https://github.com/dubzzz/fast-check/compare/v2.20.0...v2.21.0">Diff</a>]</p>
<h2>Features</h2>
<ul>
<li>(<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/pull/2600">PR#2600</a>) Improve performance of <code>set</code></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="c4a4c8d246"><code>c4a4c8d</code></a> 2.22.0</li>
<li><a href="350d5179fc"><code>350d517</code></a> 🔖 Update CHANGELOG.md for 2.22.0 (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2730">#2730</a>)</li>
<li><a href="b8127104bf"><code>b812710</code></a>  Stabilize tests of <code>adapter</code> by switching to <code>Object.is</code> (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2729">#2729</a>)</li>
<li><a href="4b3e581740"><code>4b3e581</code></a>  Add support for <code>size</code> on <code>commands</code> (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2728">#2728</a>)</li>
<li><a href="0d35c4c048"><code>0d35c4c</code></a> 🐛 Pass size to any key and default value in <code>anything</code> (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2727">#2727</a>)</li>
<li><a href="9f1f1d90a1"><code>9f1f1d9</code></a> ⬆️ Bump rollup in /test/esm/rollup-with-import (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2722">#2722</a>)</li>
<li><a href="ddc8da87ff"><code>ddc8da8</code></a> ⬆️ Bump actions/github-script from 5 to 6 (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2720">#2720</a>)</li>
<li><a href="5082c8f0f8"><code>5082c8f</code></a> ⬆️ Bump esbuild in /test/esm/esbuild-with-require (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2724">#2724</a>)</li>
<li><a href="6b27c4373f"><code>6b27c43</code></a> 🐛 Pass length related constraints to internals in <code>anything</code> (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2725">#2725</a>)</li>
<li><a href="ea64e1dad6"><code>ea64e1d</code></a> ⬆️ Bump follow-redirects in /.github/actions/deploy-netlify (<a href="https://github-redirect.dependabot.com/dubzzz/fast-check/issues/2723">#2723</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/dubzzz/fast-check/compare/v2.17.0...v2.22.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=fast-check&package-manager=npm_and_yarn&previous-version=2.17.0&new-version=2.22.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 05:09:45 +00:00
dependabot[bot]
61a2453b20
Bump fast-check from 2.17.0 to 2.22.0
Bumps [fast-check](https://github.com/dubzzz/fast-check) from 2.17.0 to 2.22.0.
- [Release notes](https://github.com/dubzzz/fast-check/releases)
- [Changelog](https://github.com/dubzzz/fast-check/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dubzzz/fast-check/compare/v2.17.0...v2.22.0)

---
updated-dependencies:
- dependency-name: fast-check
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-25 15:34:03 +00:00
status-bors-ng[bot]
782cf10419
Merge #581
581: Bump @types/node from 12.20.46 to 17.0.21 in /examples/relay-angular-chat r=D4nte a=dependabot[bot]

Bumps [`@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)` from 12.20.46 to 17.0.21.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=`@types/node&package-manager=npm_and_yarn&previous-version=12.20.46&new-version=17.0.21)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)`

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-25 09:00:54 +00:00
dependabot[bot]
53c80e2787
Bump chai from 4.3.4 to 4.3.6 (#580)
Bumps [chai](https://github.com/chaijs/chai) from 4.3.4 to 4.3.6.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.4...v4.3.6)

---
updated-dependencies:
- dependency-name: 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>
2022-02-25 19:36:34 +11:00
dependabot[bot]
0bcf7ed3aa
Bump @types/node in /examples/relay-angular-chat
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.20.46 to 17.0.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-25 03:26:03 +00:00
Franck Royer
0bbefe70f3
Add git hook to format & lint file 2022-02-25 14:18:46 +11:00
Franck Royer
61c89b30e5
Remove prettier ignore file 2022-02-25 14:18:46 +11:00
status-bors-ng[bot]
105ff6db6c
Merge #572
572: Ignore patches and minor updates for examples/Add dependabot to angular-relay-chat r=D4nte a=D4nte

Too much noise.

Co-authored-by: Franck Royer <franck@status.im>
2022-02-25 03:17:13 +00:00
Franck Royer
baadcc8d82
Add dependabot for relay-angular-chat 2022-02-25 14:16:21 +11:00
Franck Royer
c9652727ff
Add jemboh to reviewers 2022-02-25 14:15:04 +11:00
Franck Royer
a27e91c251
Ignore patches and minor updates for examples 2022-02-25 14:15:03 +11:00
status-bors-ng[bot]
e116fc2499
Merge #574
574: Setup bors r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
2022-02-25 03:00:09 +00:00
Franck Royer
9942d5462c
Correct jobs names 2022-02-25 13:35:39 +11:00
dependabot[bot]
5164ab13e9
Bump eslint-plugin-import from 2.25.3 to 2.25.4 (#577)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-25 12:40:01 +11:00
Franck R
d838f53c78
Release 0.18.0 (#576) 2022-02-24 16:40:14 +11:00
Franck R
a488988f37
Implement Waku Store 2.0.0-beta4 (#566) 2022-02-24 16:25:58 +11:00
Franck R
b50e211bae
Setup bors (#573) 2022-02-24 10:54:33 +11:00
dependabot[bot]
4bf9893666
Bump ts-proto from 1.100.0 to 1.106.1 (#567)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-24 10:34:24 +11:00
dependabot[bot]
b1c3662708
Bump typedoc from 0.22.11 to 0.22.12 (#565)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.11 to 0.22.12.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.11...v0.22.12)

---
updated-dependencies:
- dependency-name: typedoc
  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>
2022-02-23 17:07:39 +11:00
dependabot[bot]
058a0531a3
Bump @types/chai from 4.2.19 to 4.3.0 (#559)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-23 13:16:39 +11:00
Franck R
1867617acf
Re-work signature data (#557) 2022-02-23 13:06:13 +11:00
dependabot[bot]
c1c1858175
Bump @types/node from 17.0.18 to 17.0.19 in /examples/eth-pm (#560)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 14:33:20 +11:00
jemboh
da52903357
Angular js example for relay best practices (#549)
Co-authored-by: Franck Royer <franck@status.im>
2022-02-22 14:02:08 +11:00
c60811852d
ci: fix publish step conditional branch check
https://github.com/status-im/js-waku/issues/556

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-02-21 10:53:51 +01:00
dependabot[bot]
ad6d4b2298
Bump webpack from 5.69.0 to 5.69.1 (#554)
Bumps [webpack](https://github.com/webpack/webpack) from 5.69.0 to 5.69.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.69.0...v5.69.1)

---
updated-dependencies:
- dependency-name: webpack
  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>
2022-02-19 09:10:00 +11:00
dependabot[bot]
5651cfaf92
Bump eslint-plugin-functional from 4.0.2 to 4.2.0 (#551)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-18 10:31:09 +11:00
Franck R
3a4e98e184
Remove unnecessary use of Buffer (#548) 2022-02-17 13:23:39 +11:00
dependabot[bot]
d00c858ffe
Bump @chainsafe/libp2p-noise from 5.0.0 to 5.0.2 (#542)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-17 09:58:28 +11:00
dependabot[bot]
f60fcb54f6
Bump eslint from 8.8.0 to 8.9.0 in /examples/eth-pm-wallet-encryption (#523)
Bumps [eslint](https://github.com/eslint/eslint) from 8.8.0 to 8.9.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.8.0...v8.9.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>
2022-02-16 19:07:38 +11:00
dependabot[bot]
d25a843c2f
Bump eslint from 8.8.0 to 8.9.0 in /examples/eth-pm (#524)
Bumps [eslint](https://github.com/eslint/eslint) from 8.8.0 to 8.9.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.8.0...v8.9.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>
2022-02-16 18:17:45 +11:00
dependabot[bot]
cb702e4c3d
Bump @typescript-eslint/eslint-plugin from 5.8.1 to 5.12.0 (#540)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.8.1 to 5.12.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.12.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 16:45:45 +11:00
Franck R
5dbbf3faab
Add workflow to easily combine dependabot PRs in one PR (#541) 2022-02-16 15:29:00 +11:00
Franck R
64657a250f
Replace rlp with ethers' rlp (#526) 2022-02-16 14:08:48 +11:00
Franck R
297d65ce03
Reduce Buffer usage in ENR module (#522) 2022-02-16 12:11:54 +11:00
Franck R
9931011c93
Release 0.17.0 (#538) 2022-02-16 11:55:53 +11:00
Franck R
146c67e43e
Predefine bootstrap node (#528) 2022-02-16 11:43:57 +11:00
Franck R
9e6cb1faaa
Add size-limit to PR checks (#537) 2022-02-16 11:36:02 +11:00
Franck R
30faaf91d3
Add size-limit (#536) 2022-02-16 11:13:18 +11:00
dependabot[bot]
f780a76da3
Bump @types/node from 17.0.17 to 17.0.18 in /examples/eth-pm (#532)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 10:42:32 +11:00
dependabot[bot]
01d1b77b8c
Bump @types/node from 17.0.16 to 17.0.17 in /examples/web-chat (#512)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 14:58:54 +11:00
Franck R
cfc5eee4ff
Reduce buffer usage (#521) 2022-02-14 10:50:02 +11:00
Franck R
2dc8764be2
Remove axios (#520) 2022-02-14 09:26:22 +11:00
Franck R
160fea0e7b
Waku.dial accepts protocols expected from the peer. Defaults to Waku Relay only. (#516) 2022-02-13 19:04:50 +11:00
Franck R
0f678750df
Improve docs (#519) 2022-02-11 17:27:15 +11:00
Franck R
b432902fc9
Remove TODO, update code (#518) 2022-02-11 16:46:41 +11:00
dependabot[bot]
f5a693c601
Bump @types/node from 17.0.16 to 17.0.17 in /examples/eth-pm-wallet-encryption (#513)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-11 16:30:43 +11:00
dependabot[bot]
54d049f382
Bump @types/node from 17.0.16 to 17.0.17 in /examples/eth-pm (#514)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-11 11:28:32 +11:00
dependabot[bot]
a46b0e3f9e
Bump @types/node in /examples/eth-pm-wallet-encryption (#509)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.14 to 17.0.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-09 21:53:18 +11:00
dependabot[bot]
131e694d6a
Bump @types/node from 17.0.14 to 17.0.16 in /examples/web-chat (#508)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.14 to 17.0.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-09 21:28:53 +11:00
dependabot[bot]
ddcdf27782
Bump cspell from 5.18.2 to 5.18.4 in /examples/eth-pm (#505)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.2 to 5.18.4.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.18.2...v5.18.4)

---
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>
2022-02-09 19:43:40 +11:00
dependabot[bot]
8920602685
Bump cspell from 5.18.2 to 5.18.4 in /examples/web-chat (#503)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.2 to 5.18.4.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.18.2...v5.18.4)

---
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>
2022-02-09 18:50:40 +11:00
dependabot[bot]
0f8c3a43bb
Bump cspell from 5.18.2 to 5.18.4 in /examples/eth-pm-wallet-encryption (#504)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.2 to 5.18.4.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.18.2...v5.18.4)

---
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>
2022-02-09 17:48:55 +11:00
dependabot[bot]
1c71c1051d
Bump @types/node from 17.0.14 to 17.0.16 in /examples/eth-pm (#510)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-09 14:32:27 +11:00
Franck R
70aa593366
Make link works on npmjs.com homepage (#501) 2022-02-07 16:10:39 +11:00
dependabot[bot]
498125f958
Bump cspell from 5.18.0 to 5.18.2 in /examples/eth-pm-wallet-encryption (#495)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.0 to 5.18.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/v5.18.0...v5.18.2)

---
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>
2022-02-06 12:48:17 +11:00
dependabot[bot]
2724e41806
Bump cspell from 5.18.0 to 5.18.2 in /examples/web-chat (#493)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.18.0 to 5.18.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/v5.18.0...v5.18.2)

---
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>
2022-02-04 22:22:16 +11:00
dependabot[bot]
b32533529e
Bump @types/react from 17.0.38 to 17.0.39 in /examples/web-chat (#490)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.38 to 17.0.39.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  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>
2022-02-04 21:52:54 +11:00
dependabot[bot]
a2b66be2e6
Bump @types/react in /examples/eth-pm-wallet-encryption (#497)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.38 to 17.0.39.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  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>
2022-02-04 18:40:52 +11:00
dependabot[bot]
936759a509
Bump @types/react from 17.0.38 to 17.0.39 in /examples/eth-pm (#496)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.38 to 17.0.39.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  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>
2022-02-04 18:29:20 +11:00
dependabot[bot]
5115f473d9
Bump cspell from 5.18.0 to 5.18.2 in /examples/eth-pm (#498)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 16:34:11 +11:00
dependabot[bot]
a64e6449c0
Bump @testing-library/jest-dom from 5.16.1 to 5.16.2 in /examples/store-reactjs-chat (#491)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 15:56:41 +11:00
dependabot[bot]
6ce4e150af
Bump @testing-library/jest-dom from 5.16.1 to 5.16.2 in /examples/eth-pm (#494)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 14:52:42 +11:00
dependabot[bot]
42c5115a32
Bump @testing-library/jest-dom from 5.16.1 to 5.16.2 in /examples/relay-reactjs-chat (#489)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 14:25:53 +11:00
Franck R
4c80f7f0df
Remove odd prettier config (#500) 2022-02-04 14:12:00 +11:00
dependabot[bot]
4874bf134d
Bump @testing-library/jest-dom from 5.16.1 to 5.16.2 in /examples/web-chat (#492)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 13:19:38 +11:00
dependabot[bot]
2191d4ca82
Bump @testing-library/jest-dom from 5.16.1 to 5.16.2 in /examples/eth-pm-wallet-encryption (#499)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 11:23:08 +11:00
Franck R
e05e56261d
Use widen strategy (#488)
Update the npm manifest file to relax the version requirements as
js-waku is a library
2022-02-04 08:04:11 +11:00
dependabot[bot]
855cdf4fc7
Bump @types/jest from 26.0.23 to 27.4.0 in /examples/eth-pm (#481)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-03 22:17:39 +11:00
dependabot[bot]
c69aad7708
Bump @testing-library/react in /examples/eth-pm-wallet-encryption (#476)
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.2.7 to 12.1.2.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v11.2.7...v12.1.2)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  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>
2022-02-03 20:36:14 +11:00
dependabot[bot]
1679abaf04
Bump @types/node from 17.0.13 to 17.0.14 in /examples/eth-pm (#483)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.13 to 17.0.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-03 19:23:39 +11:00
Franck R
91d6e436d4
Do not run bootstrap live data test as part of normal CI (#468) 2022-02-03 16:58:53 +11:00
dependabot[bot]
fac4afac9d
Bump @types/node from 17.0.13 to 17.0.14 in /examples/web-chat (#482)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-03 16:22:33 +11:00
dependabot[bot]
ce9609a376
Bump @types/mocha from 8.2.2 to 9.1.0 (#486)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-03 15:57:36 +11:00
dependabot[bot]
88811d6cb5
Bump ethers from 5.5.3 to 5.5.4 in /examples/eth-pm (#480)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-03 12:38:08 +11:00
dependabot[bot]
56c423ce09
Bump ethers from 5.5.3 to 5.5.4 in /examples/eth-pm-wallet-encryption (#479)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-03 12:25:59 +11:00
dependabot[bot]
b02cd9559c
Bump cspell from 5.17.0 to 5.18.0 in /examples/eth-pm (#478)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.17.0 to 5.18.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.17.0...v5.18.0)

---
updated-dependencies:
- dependency-name: cspell
  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>
2022-02-03 07:56:24 +11:00
dependabot[bot]
8853393c53
Bump cspell from 5.17.0 to 5.18.0 in /examples/web-chat (#475)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.17.0 to 5.18.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.17.0...v5.18.0)

---
updated-dependencies:
- dependency-name: cspell
  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>
2022-02-02 22:53:28 +11:00
dependabot[bot]
f38233cae3
Bump @types/node in /examples/eth-pm-wallet-encryption (#484)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.13 to 17.0.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 22:06:58 +11:00
Franck R
69f0005445
Bump libp2p from 0.32.4 to 0.36.2, libp2p-gossipsub from 0.12.1 to 0.13.0 (#470)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 15:12:08 +11:00
Franck R
f2cf00bf44
Examples are now deployed in wakuconnect.dev (#485) 2022-02-02 11:56:40 +11:00
Jakub
e4888f779c
ci: build examples and deply in a subfolder (#432) 2022-02-02 11:35:28 +11:00
Franck R
b257885204
test: Fix flackiness (#474) 2022-02-01 12:54:54 +11:00
dependabot[bot]
2d4b3f1989
Bump cspell from 5.17.0 to 5.18.0 in /examples/eth-pm-wallet-encryption (#477)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 09:41:57 +11:00
Franck R
4be3d95535
Release 0.16.0 (#473) 2022-01-31 15:56:59 +11:00
Franck R
47c5565371
Wait for heartbeat before considering relay peer ready (#472) 2022-01-31 15:30:49 +11:00
Franck R
03491a892b
Fix waitForRemotePeer & test behaviour (#471) 2022-01-31 10:30:25 +11:00
Franck R
d9248dbc56
Replace waitForConnectedPeer with waitForRemotePeer (#469) 2022-01-30 21:56:21 +11:00
dependabot[bot]
fcfa9e28db
Bump @ethersproject/shims from 5.3.0 to 5.5.0 in /examples/eth-pm (#455)
Bumps [@ethersproject/shims](https://github.com/ethers-io/ethers.js/tree/HEAD/packages/shims) from 5.3.0 to 5.5.0.
- [Release notes](https://github.com/ethers-io/ethers.js/releases)
- [Changelog](https://github.com/ethers-io/ethers.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ethers-io/ethers.js/commits/v5.5.0/packages/shims)

---
updated-dependencies:
- dependency-name: "@ethersproject/shims"
  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>
2022-01-29 15:32:35 +11:00
dependabot[bot]
b2ed4c3b34
Bump ethers from 5.3.1 to 5.5.3 in /examples/eth-pm (#464)
Bumps [ethers](https://github.com/ethers-io/ethers.js/tree/HEAD/packages/ethers) from 5.3.1 to 5.5.3.
- [Release notes](https://github.com/ethers-io/ethers.js/releases)
- [Changelog](https://github.com/ethers-io/ethers.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ethers-io/ethers.js/commits/v5.5.3/packages/ethers)

---
updated-dependencies:
- dependency-name: ethers
  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>
2022-01-29 14:42:59 +11:00
dependabot[bot]
de6411a7ea
Bump @types/node from 17.0.12 to 17.0.13 in /examples/web-chat (#457)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.12 to 17.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-29 14:31:04 +11:00
dependabot[bot]
e8bbd30bb6
Bump cspell from 5.16.0 to 5.17.0 in /examples/web-chat (#439)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.16.0 to 5.17.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.16.0...v5.17.0)

---
updated-dependencies:
- dependency-name: cspell
  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>
2022-01-29 13:46:21 +11:00
dependabot[bot]
2ca6753e9b
Bump prettier from 2.3.1 to 2.5.1 in /examples/eth-pm-wallet-encryption (#449)
Bumps [prettier](https://github.com/prettier/prettier) from 2.3.1 to 2.5.1.
- [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.3.1...2.5.1)

---
updated-dependencies:
- dependency-name: prettier
  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>
2022-01-29 13:39:26 +11:00
dependabot[bot]
b9dad2959b
Bump eslint from 8.7.0 to 8.8.0 in /examples/eth-pm-wallet-encryption (#460)
Bumps [eslint](https://github.com/eslint/eslint) from 8.7.0 to 8.8.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.7.0...v8.8.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>
2022-01-29 13:29:50 +11:00
dependabot[bot]
c29f7052b2
Bump prettier from 2.3.1 to 2.5.1 in /examples/eth-pm (#442)
Bumps [prettier](https://github.com/prettier/prettier) from 2.3.1 to 2.5.1.
- [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.3.1...2.5.1)

---
updated-dependencies:
- dependency-name: prettier
  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>
2022-01-29 13:22:33 +11:00
dependabot[bot]
484a3014a0
Bump @testing-library/jest-dom from 5.14.1 to 5.16.1 in /examples/eth-pm (#466)
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.14.1 to 5.16.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.14.1...v5.16.1)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  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>
2022-01-29 13:02:49 +11:00
dependabot[bot]
082caa6b67
Bump cspell from 5.6.6 to 5.17.0 in /examples/eth-pm (#467)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.6.6 to 5.17.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.6.6...v5.17.0)

---
updated-dependencies:
- dependency-name: cspell
  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>
2022-01-29 12:52:21 +11:00
dependabot[bot]
c9efe30fda
Bump @types/node from 14.17.3 to 17.0.13 in /examples/eth-pm (#458)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.17.3 to 17.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-29 12:43:38 +11:00
dependabot[bot]
1fb6deed47
Bump eslint from 8.7.0 to 8.8.0 in /examples/eth-pm (#465)
Bumps [eslint](https://github.com/eslint/eslint) from 8.7.0 to 8.8.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.7.0...v8.8.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>
2022-01-29 12:34:43 +11:00
dependabot[bot]
7e8b417912
Bump @material-ui/core from 4.11.4 to 4.12.3 in /examples/eth-pm (#440)
Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.11.4 to 4.12.3.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/v4.12.3/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/v4.12.3/packages/material-ui)

---
updated-dependencies:
- dependency-name: "@material-ui/core"
  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>
2022-01-29 12:26:20 +11:00
dependabot[bot]
f9f8c2d5b6
Bump @types/jest in /examples/eth-pm-wallet-encryption (#452)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.23 to 27.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  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>
2022-01-29 12:13:23 +11:00
dependabot[bot]
f8410fa4bd
Bump @testing-library/react from 11.2.7 to 12.1.2 in /examples/eth-pm (#453)
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.2.7 to 12.1.2.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v11.2.7...v12.1.2)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  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>
2022-01-29 12:06:32 +11:00
dependabot[bot]
dd1839add6
Bump ethers from 5.3.1 to 5.5.3 in /examples/eth-pm-wallet-encryption (#456)
Bumps [ethers](https://github.com/ethers-io/ethers.js/tree/HEAD/packages/ethers) from 5.3.1 to 5.5.3.
- [Release notes](https://github.com/ethers-io/ethers.js/releases)
- [Changelog](https://github.com/ethers-io/ethers.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ethers-io/ethers.js/commits/v5.5.3/packages/ethers)

---
updated-dependencies:
- dependency-name: ethers
  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>
2022-01-29 11:56:01 +11:00
dependabot[bot]
d305497dee
Bump @types/react in /examples/eth-pm-wallet-encryption (#463)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.11 to 17.0.38.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  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>
2022-01-29 11:46:48 +11:00
dependabot[bot]
8a4675de8b
Bump @testing-library/user-event in /examples/eth-pm-wallet-encryption (#462)
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.8.3 to 13.5.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/beta/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v12.8.3...v13.5.0)

---
updated-dependencies:
- dependency-name: "@testing-library/user-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>
2022-01-29 11:37:34 +11:00
dependabot[bot]
fd41dcb78c
Bump @material-ui/core in /examples/eth-pm-wallet-encryption (#461)
Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.11.4 to 4.12.3.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/v4.12.3/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/v4.12.3/packages/material-ui)

---
updated-dependencies:
- dependency-name: "@material-ui/core"
  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>
2022-01-29 11:23:41 +11:00
dependabot[bot]
1d4e3f26a9
Bump @ethersproject/shims in /examples/eth-pm-wallet-encryption (#443)
Bumps [@ethersproject/shims](https://github.com/ethers-io/ethers.js/tree/HEAD/packages/shims) from 5.3.0 to 5.5.0.
- [Release notes](https://github.com/ethers-io/ethers.js/releases)
- [Changelog](https://github.com/ethers-io/ethers.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ethers-io/ethers.js/commits/v5.5.0/packages/shims)

---
updated-dependencies:
- dependency-name: "@ethersproject/shims"
  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>
2022-01-29 11:10:10 +11:00
dependabot[bot]
2c5877537d
Bump @types/node in /examples/eth-pm-wallet-encryption (#459)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.17.3 to 17.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-29 11:01:17 +11:00
Franck R
f44d700c11
Do not run bootstrap live data test as part of normal CI (#450) 2022-01-27 21:50:27 +11:00
dependabot[bot]
f99abfb32f
Bump @testing-library/user-event in /examples/eth-pm (#441)
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.8.3 to 13.5.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/beta/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v12.8.3...v13.5.0)

---
updated-dependencies:
- dependency-name: "@testing-library/user-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>
2022-01-27 18:47:04 +11:00
dependabot[bot]
c465a0c4e0
Bump @types/react-dom in /examples/eth-pm-wallet-encryption (#445)
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 17.0.7 to 17.0.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  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>
2022-01-27 18:39:50 +11:00
dependabot[bot]
7277a6e075
Bump @types/react from 17.0.11 to 17.0.38 in /examples/eth-pm (#446)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.11 to 17.0.38.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  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>
2022-01-27 18:25:51 +11:00
dependabot[bot]
325a3108a4
Bump @types/react-dom from 17.0.7 to 17.0.11 in /examples/eth-pm (#444)
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 17.0.7 to 17.0.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  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>
2022-01-27 17:45:54 +11:00
dependabot[bot]
c5d1ea86f1
Bump @testing-library/jest-dom in /examples/eth-pm-wallet-encryption (#448)
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.14.1 to 5.16.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.14.1...v5.16.1)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  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>
2022-01-27 17:38:03 +11:00
dependabot[bot]
fa0a2bd7ee
Bump cspell from 5.6.6 to 5.17.0 in /examples/eth-pm-wallet-encryption (#447)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-27 15:50:04 +11:00
Franck R
6cb2b6615b
Update to latest typescript (#438) 2022-01-27 15:25:17 +11:00
Franck R
95b3daf3e8
js-waku docs have a new location (#436) 2022-01-27 12:40:46 +11:00
dependabot[bot]
c4577827e0
Bump @types/node from 17.0.10 to 17.0.12 in /examples/web-chat (#434)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.10 to 17.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-26 21:02:47 +11:00
Jakub
671c757fa2
ci: add Jenkinsfile for building docs page (#410)
CI setup that builds the `master` branch and pushes it to `gh-pages`
branch in the repo which is published by GitHub pages.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-01-24 11:53:45 +01:00
dependabot[bot]
adcec18c3e
Bump typescript from 4.5.4 to 4.5.5 in /examples/web-chat (#425)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.4 to 4.5.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.4...v4.5.5)

---
updated-dependencies:
- dependency-name: typescript
  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>
2022-01-24 19:38:04 +11:00
dependabot[bot]
a821bbfa76
Bump cspell from 5.15.3 to 5.16.0 in /examples/web-chat (#423)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.15.3 to 5.16.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.15.3...v5.16.0)

---
updated-dependencies:
- dependency-name: cspell
  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>
2022-01-24 19:20:50 +11:00
Franck R
e0949dab04
Pass truly async function to getPeers, remove TODO (#428)
* Pass truly async function to `getPeers`

* Confirmed nim-waku's RPC API only returned managed peers
2022-01-24 18:46:06 +11:00
Franck R
41b7ef17e1
Remove web-vitals (#429) 2022-01-24 18:19:11 +11:00
Franck R
a037b79294
Remove automerge (#430) 2022-01-24 18:02:24 +11:00
Franck R
c7fe1bd789
Rename DappConnect to Waku Connect (#427) 2022-01-24 15:00:11 +11:00
Franck R
199a3c7218
Ensure relay peers are available before starting the test (#431) 2022-01-24 14:41:45 +11:00
dependabot[bot]
1f0f96e66f
Bump web-vitals from 2.1.3 to 2.1.4 in /examples/store-reactjs-chat (#426)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-24 11:08:16 +11:00
Franck R
c31972de02
Reorganize tests to ensure they all display under a section (#421) 2022-01-24 11:00:41 +11:00
dependabot[bot]
d4e72af664
Bump cspell from 5.15.2 to 5.15.3 in /examples/web-chat (#422)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 14:29:07 +11:00
Franck R
34e4cbba73
Use websocket instead of tcp in interop tests (#418) 2022-01-20 13:00:58 +11:00
Franck R
cba5212872
Upgrade nim-waku to v0.7 (#417) 2022-01-19 15:43:45 +11:00
dependabot[bot]
8a0ccd123b
Bump @types/node from 17.0.8 to 17.0.10 in /examples/web-chat (#416)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-19 14:36:01 +11:00
Franck R
8b06b6e1d5
Release 0.15.0 (#414) 2022-01-19 12:24:32 +11:00
Franck R
963e4c88fb
Add dependabot on reactjs guide examples (#412) 2022-01-17 14:31:21 +11:00
Franck R
e1629b1a96
Fix DNS Discovery (#411) 2022-01-17 14:21:23 +11:00
Franck R
96cf24d34e
Allow specifying decryption methods and content topic (#409) 2022-01-17 14:11:05 +11:00
Franck R
f9d066252c
Merge pull request #404 from status-im/eip-1459-2 2022-01-14 13:10:01 +11:00
Franck Royer
99763322db
Import Karma settings instead of duplicating them 2022-01-14 12:57:29 +11:00
Franck Royer
8e591f22db
Update changelog 2022-01-14 12:49:40 +11:00
Franck Royer
2c16f0befb
Separate tests that use DNS data in CI 2022-01-14 12:44:06 +11:00
Franck Royer
0bfe9c9a64
Do not run command on js-waku lib when running examples scripts
This was happening when `d=./examples/README.md`.
2022-01-13 16:40:11 +11:00
Franck Royer
4fd2db608b
Update caniuse in all examples 2022-01-13 16:40:11 +11:00
Franck Royer
b65ab17cb9
Expose types to ensure documentation is complete 2022-01-13 16:40:11 +11:00
Franck Royer
6276b1537f
Remove unnecessary declaration of Buffer
It's handled by the polyfill config in webpack.
2022-01-13 16:40:10 +11:00
Franck Royer
fa4e94750f
Make parseBootstrap a class
Makes it easier to use the resulting function and document defaults.
2022-01-13 16:40:10 +11:00
Franck Royer
ae0faa2146
Clarify default DNS servers 2022-01-13 16:39:52 +11:00
Franck Royer
f0eb9d1609
Rename libp2p bootstrap import
To avoid name conflict.
2022-01-13 16:39:52 +11:00
Franck Royer
e871da056f
Export enr, dns, entree modules 2022-01-13 16:39:52 +11:00
Franck Royer
4bfe060064
Export BootstrapOptions 2022-01-13 16:39:52 +11:00
Franck Royer
284644b822
Fix-up new bootstrap API 2022-01-13 16:39:52 +11:00
Franck Royer
e47335f4c0
Implement DNS Discovery and ENR tree 2022-01-13 15:38:22 +11:00
Franck Royer
e244bae03d
Renamed getBootstrapNodes to getNodesFromHostedJson
So that the name better matches the function's behaviour.
2022-01-13 15:33:37 +11:00
Franck Royer
f4f6b4a808
Create discovery submodule 2022-01-12 14:54:00 +11:00
Franck R
005309b824
Merge pull request #403 from status-im/dependabot/npm_and_yarn/examples/web-chat/cspell-5.15.2
Bump cspell from 5.15.1 to 5.15.2 in /examples/web-chat
2022-01-12 13:37:00 +11:00
dependabot[bot]
1a17523c1c
Bump cspell from 5.15.1 to 5.15.2 in /examples/web-chat
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.15.1 to 5.15.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/v5.15.1...v5.15.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-11 15:25:33 +00:00
Franck R
e2a35ca0b4
Merge pull request #392 from status-im/dependabot-config
Add daily PR but one at a time to avoid too much rebasing
2022-01-10 19:05:12 +11:00
Franck Royer
c967cabb77
Add daily PR but one at a time to avoid too much rebasing 2022-01-10 15:59:54 +11:00
Franck R
975d25e3f9
Merge pull request #402 from status-im/dependabot/npm_and_yarn/libp2p-bootstrap-0.14.0 2022-01-10 15:59:36 +11:00
dependabot[bot]
2bc4582765
Bump libp2p-bootstrap from 0.13.0 to 0.14.0
Bumps [libp2p-bootstrap](https://github.com/libp2p/js-libp2p-bootstrap) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/libp2p/js-libp2p-bootstrap/releases)
- [Changelog](https://github.com/libp2p/js-libp2p-bootstrap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/libp2p/js-libp2p-bootstrap/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: libp2p-bootstrap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 04:49:57 +00:00
Franck R
c58adff1c0
Merge pull request #401 from status-im/dependabot/npm_and_yarn/ts-proto-1.100.0 2022-01-10 15:49:01 +11:00
dependabot[bot]
7adb51a9cc
Bump ts-proto from 1.97.0 to 1.100.0
Bumps [ts-proto](https://github.com/stephenh/ts-proto) from 1.97.0 to 1.100.0.
- [Release notes](https://github.com/stephenh/ts-proto/releases)
- [Changelog](https://github.com/stephenh/ts-proto/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stephenh/ts-proto/compare/v1.97.0...v1.100.0)

---
updated-dependencies:
- dependency-name: ts-proto
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 15:31:46 +11:00
Franck R
432f27e5d7
Merge pull request #400 from status-im/dependabot/npm_and_yarn/istanbuljs/nyc-config-typescript-1.0.2 2022-01-10 14:48:18 +11:00
dependabot[bot]
c008e697b9
Bump @istanbuljs/nyc-config-typescript from 1.0.1 to 1.0.2
Bumps [@istanbuljs/nyc-config-typescript](https://github.com/istanbuljs/istanbuljs/tree/HEAD/packages/nyc-config-typescript) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/istanbuljs/istanbuljs/releases)
- [Changelog](https://github.com/istanbuljs/istanbuljs/blob/master/packages/nyc-config-typescript/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/istanbuljs/commits/istanbul-reports@1.0.2/packages/nyc-config-typescript)

---
updated-dependencies:
- dependency-name: "@istanbuljs/nyc-config-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 03:41:19 +00:00
Franck R
ff2a118f04
Merge pull request #382 from status-im/dependabot/npm_and_yarn/ts-node-10.4.0 2022-01-10 14:40:19 +11:00
dependabot[bot]
8f4e94e2b1
Bump ts-node from 9.1.1 to 10.4.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 9.1.1 to 10.4.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.1.1...v10.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 02:43:23 +00:00
Franck R
ee24a2953f
Merge pull request #383 from status-im/dependabot/npm_and_yarn/types/uuid-8.3.4 2022-01-10 13:41:59 +11:00
dependabot[bot]
220beff41b
Bump @types/uuid from 8.3.0 to 8.3.4
Bumps [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid) from 8.3.0 to 8.3.4.
- [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>
2022-01-10 02:10:41 +00:00
Franck R
71f368a5b7
Merge pull request #390 from status-im/dependabot/npm_and_yarn/examples/web-chat/cspell-5.15.1 2022-01-10 13:09:35 +11:00
dependabot[bot]
a4d8e01c09
Bump cspell from 5.14.0 to 5.15.1 in /examples/web-chat
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.14.0 to 5.15.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/v5.14.0...v5.15.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 01:59:38 +00:00
Franck R
d0dad219dd
Merge pull request #398 from status-im/automerge2 2022-01-10 12:58:34 +11:00
Franck Royer
2826d47cf2
Setup automerge action
https://github.com/marketplace/actions/merge-pull-requests-automerge-action
2022-01-10 12:51:30 +11:00
Franck R
fa28f46c15
Merge pull request #397 from status-im/rework-nim-waku-cache 2022-01-10 12:50:52 +11:00
Franck Royer
a1ad50f55b
Do not build nim-waku
But get the asset from GitHub.
2022-01-10 12:44:00 +11:00
Franck Royer
6d5ec49e5b
Debugging nim-waku caching
It always builds for some reason.
2022-01-10 12:42:03 +11:00
Franck R
484d83a136
Merge pull request #388 from status-im/example-upgrade 2022-01-10 12:40:07 +11:00
Franck Royer
a5259e04ae
Upgrade store example to react-scripts 5.0.0 2022-01-10 12:27:09 +11:00
Franck Royer
e55f7ac6db
Remove min-reactjs-chat
As it was done with old react-scripts 4.
Replaced by relay-reactjs-chat.
2022-01-10 12:27:09 +11:00
Franck Royer
aa4d66fab5
Add to CI 2022-01-10 12:27:09 +11:00
Franck Royer
b73efdb124
Update README 2022-01-10 12:27:09 +11:00
Franck Royer
dae4ca4345
Display received messages 2022-01-10 12:27:09 +11:00
Franck Royer
d643735296
Handle incoming messages 2022-01-10 12:27:09 +11:00
Franck Royer
5eb14d7826
Send message 2022-01-10 12:27:09 +11:00
Franck Royer
e8c0728a49
Wait for connected peers 2022-01-10 12:27:08 +11:00
Franck Royer
673869bdff
Use cra-webpack-rewired, display Waku status 2022-01-10 12:27:08 +11:00
Franck Royer
80c0ab5b20
Init relay-reactjs-chat
New example using create-react-app 5.
2022-01-10 12:27:08 +11:00
Franck Royer
c31bb83f6a
Add BigInt fix 2022-01-10 12:27:08 +11:00
Franck R
173831b554
Merge pull request #396 from status-im/remove-auto-merge 2022-01-10 12:18:29 +11:00
Franck Royer
822a888e03
Remove automerge bot
Not working.
2022-01-10 11:55:05 +11:00
F
95972db4bb
Merge pull request #395 from status-im/remove-macos-ci 2022-01-10 11:54:09 +11:00
Franck Royer
dbb3cdaa34
Remove run on macos
This is a browser library, there is little to no value to run the CI
on several OSes.
2022-01-10 11:42:59 +11:00
F
491c03fc31
Merge pull request #394 from status-im/automerge 2022-01-10 11:41:23 +11:00
Franck Royer
0d23817369
Fix actions/checkout version 2022-01-10 11:21:31 +11:00
F
08e0761e1b
Merge pull request #393 from status-im/auto-merge 2022-01-10 11:12:16 +11:00
Franck Royer
ae8db33cc7
Add automerge bot 2022-01-10 10:28:03 +11:00
Franck Royer
8aa09f8f9b
Add codeowners file for merge bot 2022-01-10 10:25:35 +11:00
F
7b4108d36e
Merge pull request #389 from status-im/dependabot/npm_and_yarn/tail-2.2.4 2022-01-10 09:31:29 +11:00
dependabot[bot]
4921d148a1
Bump tail from 2.2.3 to 2.2.4
Bumps [tail](https://github.com/lucagrulla/node-tail) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/lucagrulla/node-tail/releases)
- [Commits](https://github.com/lucagrulla/node-tail/compare/v2.2.3...v2.2.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-09 16:09:01 +00:00
F
f76f9fd076
Merge pull request #387 from status-im/dependabot/npm_and_yarn/axios-0.21.2 2022-01-07 17:23:42 +11:00
dependabot[bot]
dcbbd79c64
Bump axios from 0.21.1 to 0.21.2
Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-07 05:19:31 +00:00
F
eb9bd48562
Merge pull request #385 from status-im/dependabot/npm_and_yarn/webpack-cli-4.9.1 2022-01-07 16:18:35 +11:00
dependabot[bot]
3817ca8e3b
Bump webpack-cli from 4.9.0 to 4.9.1
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.0...webpack-cli@4.9.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-07 04:53:04 +00:00
F
c9a425aa28
Merge pull request #381 from status-im/web-chat-upgrade 2022-01-07 15:51:38 +11:00
Franck Royer
290828baff
Remove unneeded comments 2022-01-07 15:19:33 +11:00
Franck Royer
add78bce71
Format js config file 2022-01-07 15:18:37 +11:00
Franck Royer
e18c4f1619
Ignore source map warnings
This is for debugging purposes and out of scope for this example.
2022-01-07 15:17:31 +11:00
Franck Royer
eaae1e5372
Replace react-app-rewired with cra-webpack-rewired
The second is more appropriate for react 5
2022-01-07 15:05:40 +11:00
Franck Royer
8ed41fd7c1
Add web-chat to dependabot config 2022-01-06 17:43:09 +11:00
Franck Royer
6a372cd27f
Update other deps 2022-01-06 17:42:16 +11:00
Franck Royer
cd7a8784d3
Upgrade few dependencies 2022-01-06 17:39:08 +11:00
Franck Royer
761c92d28f
Run npm audit fix 2022-01-06 17:15:23 +11:00
Franck Royer
0de6b52e87
Update caniuse-lite 2022-01-06 17:10:58 +11:00
F
5e3a2e6529
Merge pull request #380 from status-im/node-16 2022-01-06 14:49:36 +11:00
Franck Royer
ddec271621
Make minimum support node version 16
A number of libp2p packages do not support node 14 anymore.
2022-01-06 14:17:17 +11:00
F
defcf133e4
Merge pull request #379 from status-im/refresh-gh-pages-cache 2022-01-06 14:16:15 +11:00
Franck Royer
3340207d60
Refresh GH pages cache
As it is needed for #377 to have effect.
2022-01-06 13:13:56 +11:00
F
594b92d919
Merge pull request #377 from status-im/358-cannot-convert-bigint
Fix Cannot convert BigInt value to a number
2022-01-05 17:39:32 +11:00
Franck Royer
942b3ded75
Fix Cannot convert BigInt value to a number
By not transpiling for older browsers that do not support BigInt.
2022-01-05 16:49:46 +11:00
F
92f5ad5b84
Merge pull request #376 from status-im/rename-to-master-2
`main` branch renamed to `master`
2022-01-05 13:23:42 +11:00
Franck
60f8839237
main branch renamed to master 2022-01-05 12:18:41 +11:00
F
676316c215
Merge pull request #373 from status-im/dependabot/npm_and_yarn/prettier-2.5.1 2022-01-05 12:17:42 +11:00
Franck
06d89418aa
Format change 2022-01-05 11:27:37 +11:00
Franck
c67664a21b
Debug changed files 2022-01-05 11:27:37 +11:00
dependabot[bot]
44cac7ff2b
Bump prettier from 2.3.1 to 2.5.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.3.1 to 2.5.1.
- [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.3.1...2.5.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-05 09:05:42 +11:00
F
eaee89edcc
Merge pull request #375 from status-im/dependabot/npm_and_yarn/cspell-5.14.0
Bump cspell from 4.2.8 to 5.14.0
2022-01-04 19:21:58 +11:00
Franck
8000afbc72
typo 2022-01-04 17:33:04 +11:00
dependabot[bot]
75b7341d2c
Bump cspell from 4.2.8 to 5.14.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 4.2.8 to 5.14.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/cspell@4.2.8...v5.14.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-04 17:32:19 +11:00
F
37025c5a0a
Merge pull request #370 from status-im/rename-to-master 2022-01-04 17:07:14 +11:00
Franck
5512cf309a
Rename main branch to master 2022-01-04 16:56:48 +11:00
F
ad163db862
Merge pull request #372 from status-im/dependabot/npm_and_yarn/chainsafe/libp2p-noise-5.0.0 2022-01-04 16:56:15 +11:00
dependabot[bot]
6e436ee4e2
Bump @chainsafe/libp2p-noise from 4.1.1 to 5.0.0
Bumps [@chainsafe/libp2p-noise](https://github.com/ChainSafe/js-libp2p-noise) from 4.1.1 to 5.0.0.
- [Release notes](https://github.com/ChainSafe/js-libp2p-noise/releases)
- [Changelog](https://github.com/ChainSafe/js-libp2p-noise/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ChainSafe/js-libp2p-noise/compare/v4.1.1...v5.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-04 02:54:41 +00:00
F
6e79436ae9
Merge pull request #371 from status-im/dependabot/npm_and_yarn/puppeteer-13.0.1 2022-01-04 13:53:49 +11:00
dependabot[bot]
fd38545659
Bump puppeteer from 10.1.0 to 13.0.1
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 10.1.0 to 13.0.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v10.1.0...v13.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 23:20:32 +00:00
F
e6f913c3b2
Merge pull request #366 from status-im/dependabot/npm_and_yarn/types/node-17.0.6
Bump @types/node from 14.17.3 to 17.0.6
2022-01-03 17:34:59 +11:00
dependabot[bot]
5bf25dfb76
Bump @types/node from 14.17.3 to 17.0.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.17.3 to 17.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 01:34:22 +00:00
F
b9b5fbf140
Merge pull request #368 from status-im/dependabot/npm_and_yarn/karma-typescript-5.5.2 2022-01-03 12:33:00 +11:00
dependabot[bot]
e0c20dc8df
Bump karma-typescript from 5.5.1 to 5.5.2
Bumps [karma-typescript](https://github.com/monounity/karma-typescript) from 5.5.1 to 5.5.2.
- [Release notes](https://github.com/monounity/karma-typescript/releases)
- [Commits](https://github.com/monounity/karma-typescript/compare/v5.5.1...v5.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 00:41:33 +00:00
F
24b5ffd6c4
Merge pull request #364 from status-im/dependabot/npm_and_yarn/ts-proto-1.97.0 2022-01-03 11:40:03 +11:00
Franck
fa3ab19176
Generate proto files withts-protoa 1.97.0 2022-01-03 10:56:37 +11:00
dependabot[bot]
7894366e63
Bump ts-proto from 1.82.5 to 1.97.0
Bumps [ts-proto](https://github.com/stephenh/ts-proto) from 1.82.5 to 1.97.0.
- [Release notes](https://github.com/stephenh/ts-proto/releases)
- [Changelog](https://github.com/stephenh/ts-proto/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stephenh/ts-proto/compare/v1.82.5...v1.97.0)

---
updated-dependencies:
- dependency-name: ts-proto
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 10:56:37 +11:00
F
2ffba97fbe
Merge pull request #369 from status-im/dependabot/npm_and_yarn/mocha-9.1.3 2022-01-03 10:48:43 +11:00
dependabot[bot]
525c0121b3
Bump mocha from 8.4.0 to 9.1.3
Bumps [mocha](https://github.com/mochajs/mocha) from 8.4.0 to 9.1.3.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v9.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-02 22:47:14 +00:00
F
ffbbdd2133
Merge pull request #367 from status-im/dependabot/npm_and_yarn/eslint-8.6.0 2022-01-03 09:46:12 +11:00
Franck
068325244d
Update all eslint plugins 2022-01-03 09:29:10 +11:00
dependabot[bot]
57292f79de
Bump eslint from 7.29.0 to 8.6.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.29.0 to 8.6.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/v7.29.0...v8.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 09:29:10 +11:00
F
238360f4c8
Merge pull request #360 from status-im/dependabot/npm_and_yarn/types/tail-2.2.1 2022-01-03 09:28:57 +11:00
dependabot[bot]
975a874085
Bump @types/tail from 2.2.0 to 2.2.1
Bumps [@types/tail](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/tail) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/tail)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-02 22:15:09 +00:00
F
a9b5cb0f75
Merge pull request #365 from status-im/dependabot/npm_and_yarn/libp2p-gossipsub-0.12.1 2022-01-03 09:13:48 +11:00
dependabot[bot]
01d605a292
Bump libp2p-gossipsub from 0.11.1 to 0.12.1
Bumps [libp2p-gossipsub](https://github.com/ChainSafe/js-libp2p-gossipsub) from 0.11.1 to 0.12.1.
- [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/v0.11.1...v0.12.1)

---
updated-dependencies:
- dependency-name: libp2p-gossipsub
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-02 15:11:19 +00:00
F
4d7061ceeb
Merge pull request #362 from status-im/dependabot/npm_and_yarn/webpack-5.65.0 2021-12-31 13:11:23 +11:00
dependabot[bot]
bc9a712f49
Bump webpack from 5.58.1 to 5.65.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.58.1 to 5.65.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.58.1...v5.65.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-26 15:13:06 +00:00
F
7d8d2b3e5f
Merge pull request #349 from status-im/dependabot/npm_and_yarn/karma-6.3.9 2021-12-21 16:38:36 +11:00
dependabot[bot]
217193b54c
Bump karma from 6.3.4 to 6.3.9
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.4 to 6.3.9.
- [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.3.4...v6.3.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-21 02:25:44 +00:00
F
f9de14acfd
Merge pull request #352 from status-im/dependabot/npm_and_yarn/eslint-config-prettier-8.3.0 2021-12-21 12:32:54 +11:00
Franck
cf025dea82
Adjust eslint settings
See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21
2021-12-21 12:08:16 +11:00
dependabot[bot]
7b2866c0d5
Bump eslint-config-prettier from 6.15.0 to 8.3.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 8.3.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v8.3.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-21 12:08:16 +11:00
F
2ec678c054
Merge pull request #356 from status-im/karma-timeout 2021-12-21 11:44:13 +11:00
Franck
3e85b4cdce
Increase Karma default timeout for mocha
As we have some fast-check tests.
2021-12-21 11:29:13 +11:00
F
4743491d6a
Merge pull request #351 from status-im/dependabot/npm_and_yarn/debug-4.3.3
Bump debug from 4.3.1 to 4.3.3
2021-12-20 21:38:58 +11:00
dependabot[bot]
4ef86314aa
Bump debug from 4.3.1 to 4.3.3
Bumps [debug](https://github.com/debug-js/debug) from 4.3.1 to 4.3.3.
- [Release notes](https://github.com/debug-js/debug/releases)
- [Commits](https://github.com/debug-js/debug/compare/4.3.1...4.3.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 10:21:48 +00:00
F
cb707cbf22
Merge pull request #354 from status-im/pr-workflow 2021-12-20 15:59:56 +11:00
Franck
97aa13292d
For dependabot PRs to be added to board. 2021-12-20 15:26:58 +11:00
F
bf49df79a7
Merge pull request #350 from status-im/dependabot/npm_and_yarn/ecies-geth-1.6.0 2021-12-20 15:26:25 +11:00
dependabot[bot]
1d573f2914
Bump ecies-geth from 1.5.2 to 1.6.0
Bumps [ecies-geth](https://github.com/cyrildever/ecies-geth) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/cyrildever/ecies-geth/releases)
- [Commits](https://github.com/cyrildever/ecies-geth/compare/v1.5.2...v1.6.0)

---
updated-dependencies:
- dependency-name: ecies-geth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 01:23:13 +00:00
F
56393c6947
Merge pull request #353 from status-im/dependabot/npm_and_yarn/libp2p-mplex-0.10.5 2021-12-20 12:12:51 +11:00
dependabot[bot]
14576029f0
Bump libp2p-mplex from 0.10.4 to 0.10.5
Bumps [libp2p-mplex](https://github.com/libp2p/js-libp2p-mplex) from 0.10.4 to 0.10.5.
- [Release notes](https://github.com/libp2p/js-libp2p-mplex/releases)
- [Changelog](https://github.com/libp2p/js-libp2p-mplex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/libp2p/js-libp2p-mplex/compare/v0.10.4...v0.10.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>
2021-12-20 00:44:59 +00:00
F
3532ecff65
Merge pull request #347 from status-im/dependabot 2021-12-20 11:09:52 +11:00
Franck
0097cf2311
Configure dependabot 2021-12-17 22:49:42 +11:00
F
4574e2e0b6
Merge pull request #338 from status-im/use-docs-website
Use docs website
2021-12-13 13:08:03 +11:00
F
07d2c81d1d
Example: rename file and point to docs website
- GitHub automatically print README.md file in folder.
- Point to docs website that contains some external examples.
2021-12-13 11:38:12 +11:00
F
048fc20719
Remove inline doc
Point to docs.dappconnect.dev instead.
2021-12-13 11:38:12 +11:00
F
cbb21108d8
Remove guides
They have been moved to the docs website.
2021-12-13 11:34:07 +11:00
F
e211d53d67
Merge pull request #324 from status-im/enr-multiaddrs 2021-12-07 11:49:38 +11:00
Franck
7a3e46a384
Add encoded value for reference for other implementations 2021-12-07 09:16:32 +11:00
Franck
eb1b384be4
Remove console.log 2021-12-06 14:32:18 +11:00
F
01c66f7e89
Add ENR with multiaddr
Imported from https://github.com/D4nte/discv5/pull/1
Replaced bcrypto backend with secp256k1.
2021-12-06 14:29:08 +11:00
F
96353fef0f
Use es 2020 for bigint 2021-12-06 14:28:29 +11:00
F
f6e7c63257
Merge pull request #340 from status-im/update-typedoc-deps
doc: Remove warnings
2021-12-03 08:37:42 +11:00
F
eb9057fc8f
doc: Remove warnings 2021-12-02 23:51:54 +11:00
F
05367e3704
Merge pull request #339 from status-im/update-typedoc-deps 2021-12-02 22:58:10 +11:00
F
235a05921b
Update typedoc deps
Needed to use markdown plugin in docs website.
2021-12-02 22:18:07 +11:00
F
6a3ca6e991
Merge pull request #336 from status-im/nim-waku-v0.6-changelog 2021-12-01 21:21:40 +11:00
Franck Royer
46abd4ca96
changelog: Upgrade nim-waku to v0.6 2021-12-01 16:25:23 +11:00
F
b5b0409a46
Merge pull request #333 from status-im/cache-build-buf 2021-12-01 16:24:42 +11:00
F
38d114da63
Do not cache bufbuild
It only takes few seconds and the cached bin was actually not used.
2021-12-01 15:26:40 +11:00
F
5706ab9ace
Merge pull request #334 from status-im/nim-waku-v0.6 2021-12-01 15:24:35 +11:00
Franck Royer
67b5d943ab
Upgrade nim-waku to v0.6 2021-11-30 14:45:34 +11:00
F
839a919ad8
Merge pull request #332 from status-im/release/0.14.2 2021-11-30 14:45:13 +11:00
F
60073ce4fc
Update links 2021-11-30 12:16:07 +11:00
F
31325bb673
Release 0.14.2
### Changed

- Examples: JS examples uses local ESM folder to replicate behaviour of
js-waku publish package.

### Fixed

- `TypeError` issue related to constructors using js-waku in a JS
project
  ([#323](https://github.com/status-im/js-waku/issues/323)).
2021-11-30 11:33:30 +11:00
F
04a9da6555
Merge pull request #328 from status-im/323-type-error 2021-11-26 21:41:32 +11:00
F
8909164f6d
Use ESM in JavaScript examples
As it is what JS projects would use when using the js-waku npm package.
2021-11-26 21:24:05 +11:00
F
de9b313b65
Use es6/es2015 target for ESM output
es5 does not support class constructors and hence lead to issues.
2021-11-26 21:23:50 +11:00
F
2d80d656af
Merge pull request #329 from status-im/setup-buf
ci: Upgrade bufbuild to 0.56.0
2021-11-26 19:42:42 +11:00
F
4b727d9138
ci: Upgrade bufbuild to 0.56.0 2021-11-26 16:31:10 +11:00
Franck Royer
f56e87a963
Merge pull request #322 from status-im/release/0.14.1 2021-10-22 15:14:48 +11:00
Franck Royer
0cf12f3b55
Release 0.14.1
### Fixed
- Issue when importing the `utils` module.
2021-10-22 14:40:38 +11:00
Franck Royer
6f61c19deb
Merge pull request #321 from status-im/exports 2021-10-20 13:14:07 +11:00
Franck Royer
5009792fca
Remove exports field
TypeScript does not play nice with it just yet:
https://github.com/microsoft/TypeScript/issues/33079
2021-10-19 15:22:38 +11:00
Franck Royer
0ccc43dabc
Merge pull request #317 from status-im/docs-gh-pages 2021-10-13 13:59:23 +11:00
Franck Royer
9bd5d98ed9
Do not delete subfolders
Which makes them unavailable until they are published.
2021-10-13 12:17:44 +11:00
Franck Royer
307469ef92
Merge pull request #316 from status-im/unpkg-link 2021-10-13 12:03:31 +11:00
Franck Royer
4ecd4fd377
Correct unpkg link
Latest release now contains UMD bundle.
2021-10-13 11:45:26 +11:00
Franck Royer
8551712c05
Merge pull request #315 from status-im/release/0.14.0 2021-10-13 11:41:43 +11:00
Franck Royer
2c1ff58f93
Release 0.14.0
### Added
- If the `callback` function passed to`WakuStore.queryHistory` returns
  `true`, then no further pages are retrieved from the store.
- Use webpack to build UMD bundle of the library, see
  [README](./README.md) for usage.

### Changed
- **Breaking**: Renamed `WakuStore.QueryOptions`'s `direction` to
  `pageDirection` (and its type) as it only affects the page ordering,
  not the ordering of messages with the page.

### Fixed
- Docs: Ensure that `WakuStore`'s `QueryOptions` documentation is
  available [online](https://status-im.github.io/js-waku/docs/).
2021-10-13 11:14:40 +11:00
Franck Royer
bafa30fb05
Add doc location for UMD bundle 2021-10-13 10:21:40 +11:00
Franck Royer
0db30efc5b
Merge pull request #313 from status-im/unpkg-example 2021-10-13 10:19:21 +11:00
Franck Royer
137c1dfcc0
Add jswaku 2021-10-13 08:09:55 +11:00
Franck Royer
cb0b93d3f1
Remove todo 2021-10-12 16:32:04 +11:00
Franck Royer
9a8ecd8611
Update README to include unpkg example 2021-10-12 16:31:04 +11:00
Franck Royer
0d86c91720
Add Pure JS example 2021-10-12 15:36:11 +11:00
Franck Royer
6823b98fc0
Merge pull request #314 from status-im/release/0.14.0-rc.0 2021-10-12 15:06:33 +11:00
Franck Royer
7e22d4cb76
Release Candidate 0.14.0-rc.0
### Added
- If the `callback` function passed to`WakuStore.queryHistory` returns
  `true`, then no further pages are retrieved from the store.
- Use webpack to build UMD bundle of the library.

### Changed
- **Breaking**: Renamed `WakuStore.QueryOptions`'s `direction` to
  `pageDirection` (and its type) as it only affects the page ordering,
  not the ordering of messages with the page.

### Fixed
- Docs: Ensure that `WakuStore`'s `QueryOptions` documentation is
  available [online](https://status-im.github.io/js-waku/docs/).
2021-10-12 14:23:41 +11:00
Franck Royer
6c18eafeac
Merge pull request #311 from status-im/minify-2 2021-10-12 13:38:13 +11:00
Franck Royer
b268f59c2e
Include ESM and UMD files in package 2021-10-12 12:01:14 +11:00
Franck Royer
4ff61f4bf9
Update changelog 2021-10-12 11:43:30 +11:00
Franck Royer
6ebcc46f9e
Remove ReactJS warning about webpack
Because this is not a monorepo, ReactJS projects are examples.
2021-10-12 11:43:29 +11:00
Franck Royer
a335091ccf
Add exports keyword 2021-10-12 11:43:29 +11:00
Franck Royer
b029692865
Use webpack for umd 2021-10-12 11:43:29 +11:00
Franck Royer
9488d28266
Merge pull request #310 from status-im/stop-store-query 2021-10-08 11:06:57 +11:00
Franck Royer
8d469ff842
Enable caller to abort store query
If the `callback` function passed to`WakuStore.queryHistory` returns
`true`, then no further pages are retrieved from the store.
2021-10-07 15:33:00 +11:00
Franck Royer
ec8d7ba9dc
Merge pull request #308 from status-im/store-guide 2021-10-07 15:19:57 +11:00
Franck Royer
2fbe926df2
Fix typos 2021-10-05 13:44:37 +11:00
Franck Royer
0d82b74854
Add and update time filter guides 2021-10-05 13:41:21 +11:00
Franck Royer
d6f180cf36
Use callback option in store guide 2021-10-05 13:36:04 +11:00
Franck Royer
6f4d765e30
Remove useless log 2021-10-05 13:36:04 +11:00
Franck Royer
62b30b3f33
Log queried store peer info 2021-10-05 13:36:04 +11:00
Franck Royer
899e0c89e7
Add time filter to the guide 2021-10-05 13:36:04 +11:00
Franck Royer
b216cd3b22
Update changelog 2021-10-05 13:36:04 +11:00
Franck Royer
92762deda2
Remove extra line 2021-10-05 13:36:03 +11:00
Franck Royer
4ae819357f
Correct doc for page direction 2021-10-05 13:36:03 +11:00
Franck Royer
92ee5b060c
doc: Move comments to ensure they appear in generated documentation 2021-10-05 13:36:03 +11:00
Franck Royer
f5a0416efd
Rename to page direction
As the direction only affects the page ordering,
not the message ordering in the pages.
2021-10-05 13:36:03 +11:00
Franck Royer
087f5bf774
guide/example: Demonstrate how to use the store callback option
This option is better than using the returned value.
This is because the returned value is returned only once **all** pages
are received, which can be very long if the `timeFilter` option is not
used.
2021-10-05 13:36:03 +11:00
Franck Royer
3f0af32c5a
Merge pull request #299 from status-im/readme-topic 2021-10-05 13:35:52 +11:00
Franck Royer
2ea9996603
Redirect to content topic guide 2021-10-05 11:32:30 +11:00
Franck Royer
a056227538
Merge pull request #304 from status-im/run-test-on-browser-by-default 2021-09-24 17:32:14 +10:00
Franck Royer
c990660fb9
Rename node only suites 2021-09-24 17:15:46 +10:00
Franck Royer
928d888ad8
Remove 'browser' from test filename
These tests are run both on node and in browser.
2021-09-24 17:09:34 +10:00
Franck Royer
d900945b6d
Add 'node' in test file names that only run on node 2021-09-24 17:09:34 +10:00
Franck Royer
0482239e8b
Merge pull request #303 from status-im/heartbeat
Fix hearbeat tick handler rounding issue
2021-09-24 15:41:08 +10:00
Franck Royer
d875994908
Fix hearbeat tick handler rounding issue
807bf282c5
2021-09-24 10:36:19 +10:00
Franck Royer
30e063a8eb
Merge pull request #302 from status-im/release/0.12.2 2021-09-22 11:19:25 +10:00
Franck Royer
6bc8136204
Merge branch 'main' of github.com:status-im/waku-js into release/0.12.2 2021-09-21 15:41:23 +10:00
Franck Royer
e3dce12ae8
Release 0.12.2 2021-09-21 15:33:42 +10:00
Franck Royer
ff8f151fbd
Update Changelog 2021-09-21 15:23:19 +10:00
Franck Royer
48bed9d2a2
Test default discovery as part of the CI 2021-09-21 15:23:19 +10:00
Franck Royer
d18c6eca83
Do not setup libp2p discovery module if we fail to retrieve node addrs 2021-09-21 15:23:19 +10:00
Franck Royer
ff829fc43e
Ensure node address is returned for Object type responses 2021-09-21 15:23:19 +10:00
Franck Royer
99ea50ed42
Merge pull request #301 from status-im/release/0.13.1
Release 0.13.1
2021-09-21 15:21:25 +10:00
Franck Royer
129b6a97d4
Release 0.13.1 2021-09-21 15:00:57 +10:00
Franck Royer
d432f08652
Merge pull request #298 from status-im/boostrap-true 2021-09-21 14:55:37 +10:00
Franck Royer
6b11bc7183
Update Changelog 2021-09-21 14:47:45 +10:00
Franck Royer
2eb88068ae
Test default discovery as part of the CI 2021-09-21 14:47:45 +10:00
Franck Royer
640a672257
Do not setup libp2p discovery module if we fail to retrieve node addrs 2021-09-21 14:47:45 +10:00
Franck Royer
a95315eeb5
Ensure node address is returned for Object type responses 2021-09-21 14:47:45 +10:00
Franck Royer
eef6ff89c3
Merge pull request #300 from status-im/release/0.12.0
Merge hotfix 0.12.1 to main
2021-09-21 14:47:24 +10:00
Franck Royer
5443e3b4a7
Merge branch 'main' of github.com:status-im/waku-js into release/0.12.0 2021-09-21 14:31:28 +10:00
Franck Royer
a0aa4395f9
Merge pull request #297 from status-im/release/0.12.1 2021-09-16 15:39:03 +10:00
Franck Royer
def38b4234
Release 0.12.1 2021-09-16 15:21:45 +10:00
Franck Royer
8a4e7f5f3c
Connects to a limited number of bootstrap nodes, defaults to 1 2021-09-16 15:16:32 +10:00
Franck Royer
a4ae4b4237
Merge pull request #295 from status-im/release/0.13.0 2021-09-16 15:13:51 +10:00
Franck Royer
6bd114f551
Release 0.13.0 2021-09-16 14:57:10 +10:00
Franck Royer
69778d065f
Merge pull request #294 from status-im/limit-connections
Connects to a limited number of bootstrap nodes, defaults to 1
2021-09-16 10:58:01 +10:00
Franck Royer
6504106a9e
Connects to a limited number of bootstrap nodes, defaults to 1 2021-09-16 10:38:01 +10:00
Franck Royer
1a9ab2ec77
Merge pull request #293 from status-im/182-async-await-syntax 2021-09-15 10:36:25 +10:00
Franck Royer
a352cb0b38
Examples with no async/await syntax
Useful for those using ClojureScript.

Resolves #182.
2021-09-07 14:44:33 +10:00
Franck Royer
898f93371c
Merge pull request #292 from status-im/store-guide-react-js 2021-09-07 14:36:37 +10:00
Franck Royer
c468bfd662
Minor correct, simplify code 2021-09-07 14:17:29 +10:00
Franck Royer
893e0b1af9
Add guide to use Waku Store in ReactJS 2021-09-07 14:17:29 +10:00
Franck Royer
064bad5a75
Remove interval 2021-09-07 14:17:29 +10:00
Franck Royer
f6aa758712
Small cleanup 2021-09-07 14:17:29 +10:00
Franck Royer
d6d52b72dd
Merge pull request #291 from status-im/upgrade-libp2p
Upgrade libp2p libraries
2021-09-06 11:27:52 +10:00
Franck Royer
ca09c34ac6
Upgrade libp2p libraries 2021-09-03 16:02:22 +10:00
Franck Royer
0b869ab07f
Merge pull request #289 from status-im/release/0.12.0
Release 0.12.0
2021-09-02 19:59:11 +10:00
Franck Royer
3bf7e2250c
Release 0.12.0 2021-09-02 16:38:56 +10:00
Franck Royer
189e8f6c4e
Merge pull request #288 from status-im/fix-typo
Fix typo
2021-09-02 16:38:29 +10:00
Franck Royer
d8bdbac2a5
Fix typo 2021-09-02 16:32:38 +10:00
Franck Royer
0d38e80497
Merge pull request #287 from status-im/wait-for-connected-peer
Added `Waku.waitForConnectedPeer` helper
2021-09-02 16:28:14 +10:00
Franck Royer
a21d641280
Added Waku.waitForConnectedPeer helper
To ensure that we are connected to Waku peers when using the bootstrap
option.
2021-09-02 15:46:23 +10:00
Franck Royer
524fbc9361
Merge pull request #286 from status-im/encryption-api 2021-09-02 15:45:53 +10:00
Franck Royer
3c0884a96e
Update changelog 2021-09-02 15:27:39 +10:00
Franck Royer
87fd5ac171
Update guide to pass decryption keys to the Waku instance
Make the guide and API simpler as there is no need to learn/use both
`WakuStore` and `WakuRelay` APIs to decrypt messages.
2021-09-02 15:20:44 +10:00
Franck Royer
75f605a676
Improve error text
To make it clearer what the issue is.
2021-09-02 15:20:44 +10:00
Franck Royer
50fb533e44
test: Increase timeouts + add debug logs 2021-09-02 15:20:43 +10:00
Franck Royer
cfb97b6bde
Allow passing decryption keys to Waku instance
Keys can be set at creation or at run time.
They are passed to `WakuStore` and `WakuRelay` instances.
2021-09-02 15:20:43 +10:00
Franck Royer
911ce5bab7
Allow passing decryption keys to WakuStore instance
To avoid having to pass them at every `queryHistory` call.
2021-09-02 15:17:40 +10:00
Franck Royer
f4cae60ef8
Fix documentation 2021-09-02 15:15:43 +10:00
Franck Royer
931a414a3c
Allow passing decryption keys in hex string format 2021-09-02 15:13:50 +10:00
Franck Royer
75352abcac
Promote dedicated symmetric key generation API
Using the private key API for symmetric key is confusing.
2021-09-02 15:09:31 +10:00
Franck Royer
f0183784a3
Merge pull request #283 from status-im/guide-encrypt-version-1
Add guide to encrypt messages using version 1
2021-08-30 20:01:08 +10:00
Franck Royer
c9678aa665
Fix link 2021-08-30 19:54:36 +10:00
Franck Royer
e0d199ef14
Add word 2021-08-30 15:13:03 +10:00
Franck Royer
4504de55f3
Use more precise terminology 2021-08-27 15:00:00 +10:00
Franck Royer
659e167c06
Mention CryptoSubtle for key storage/export 2021-08-27 14:40:46 +10:00
Franck Royer
6e5cbefc49
Mention Eth-PM 2021-08-26 16:34:32 +10:00
Franck Royer
cc84edca9c
Rephrase, typos 2021-08-26 16:34:32 +10:00
Franck Royer
880746a0df
Add guide to encrypt messages using version 1 2021-08-26 16:34:29 +10:00
Franck Royer
6dd54d2458
Merge pull request #282 from status-im/encrypt-eth-pm 2021-08-26 16:33:31 +10:00
Franck Royer
5af6d84852
Encrypt Public Key Messages using symmetric encryption 2021-08-26 16:12:53 +10:00
Franck Royer
2f2eada322
Log error when failing to encode Public Key Message 2021-08-26 16:12:53 +10:00
Franck Royer
398f34b57f
Fixed Buffer.concat error when using symmetric encryption in the browser 2021-08-26 16:12:53 +10:00
Franck Royer
489fc5af08
Merge pull request #281 from status-im/node-16
Run build with NodeJS 16
2021-08-26 15:25:36 +10:00
Franck Royer
4719de31b8
Run build with NodeJS 16 2021-08-26 13:02:09 +10:00
Franck Royer
37b8056a78
Merge pull request #280 from status-im/timestamp-chat
Demonstrate usage of history time filter in web chat
2021-08-26 13:01:32 +10:00
Franck Royer
5c1cda8b2a
Demonstrate usage of history time filter in web chat 2021-08-26 11:50:20 +10:00
Franck Royer
93afc969d3
Merge pull request #278 from status-im/update-ft-api
Both or neither time parameters must be passed
2021-08-26 10:25:01 +10:00
Franck Royer
5b34da6b5f
Both or neither time parameters must be passed
The protocol does not support open-ended time filtering windows. See
https://github.com/status-im/nim-waku/issues/706
2021-08-25 12:14:53 +10:00
Franck Royer
215177bb8c
Merge pull request #275 from status-im/warnings
Remove dev warning
2021-08-25 11:30:59 +10:00
Franck Royer
8ed55c43c1
Remove stub types definition 2021-08-20 14:08:52 +10:00
Franck Royer
e794fe1f18
Merge pull request #274 from status-im/release/0.11.0
Release 0.11.0
2021-08-20 13:47:46 +10:00
Franck Royer
8fce1ad884
Release 0.11.0
### Added
- Examples: New Ethereum Private Message Using Wallet Encryption
  [Web App](./examples/eth-pm-wallet-encryption/README.md)
  example that demonstrates the usage of `eth_encrypt` API (available on
  Metamask) and EIP-712 for typed structured data signing.
- New `bootstrap` option for `Waku.create` to easily connect to Waku
  nodes upon start up.
- Support for `startTime` and `endTime` in Store queries to filter by
  time window as per [21/WAKU2-FTSTORE](https://rfc.vac.dev/spec/21/).

### Changed
- Renamed `discover.getStatusFleetNodes` to
  `discovery.getBootstrapNodes`;
  Changed the API to allow retrieval of bootstrap nodes from other
  sources.
- Examples: Renamed `eth-dm` to `eth-pm`; "Direct Message" can lead to
  confusion with "Direct Connection" that
  refers to low latency network connections.
- Examples (eth-pm): Use sign typed data EIP-712 instead of personal
  sign.
- Upgraded dependencies to remove warning at installation.
- **Breaking**: Moved `DefaultPubSubTopic` to `waku.ts` and fixed the
  casing.
- **Breaking**: Rename all `pubsubTopic` occurrences to `pubSubTopic`,
  across all interfaces.

### Removed
- Examples (cli-chat): The focus of this library is Web environment;
  Several examples now cover usage of Waku Relay and Waku Store making cli-chat example obsolete;
  web-chat POC should be preferred to use the [TOY-CHAT](https://rfc.vac.dev/spec/22/) protocol.
- `ChatMessage` has been moved from js-waku to web-chat example;
  it is a type used for the [TOY-CHAT](https://rfc.vac.dev/spec/22/) protocol;
  js-waku users should not build on top if this toy protocol and instead design message data structures appropriate to their use case.
- Unused dependencies & scripts.
2021-08-20 12:15:23 +10:00
Franck Royer
707fe2e37c
Merge pull request #273 from status-im/npm-badge 2021-08-20 12:08:48 +10:00
Franck Royer
76e1175bf6
Merge pull request #272 from status-im/233-remove-deps 2021-08-20 12:08:05 +10:00
Franck Royer
27c4d5b1e3
Add badges
Allows user to quickly access npm page and Discord.
2021-08-20 11:02:09 +10:00
Franck Royer
ac03a9e54b
Update changelog 2021-08-20 10:54:13 +10:00
Franck Royer
057625223b
Add some relevant keywords 2021-08-20 10:54:13 +10:00
Franck Royer
11dbdf3033
Remove unused scripts 2021-08-20 10:54:12 +10:00
Franck Royer
5da1c6ca58
Remove codecov 2021-08-20 10:54:12 +10:00
Franck Royer
aaf6b7ee54
Remove unused dep 2021-08-20 10:54:12 +10:00
Franck Royer
a15069b3e3
Move ts-proto to dev dependencies
The output of ts-proto is committed and published, ts-proto is only
needed when proto files are changed.
2021-08-20 10:54:12 +10:00
Franck Royer
38df024fe1
Move libp2p-tcp to dev dependencies 2021-08-20 10:54:12 +10:00
Franck Royer
bad14d93e8
Merge pull request #271 from status-im/187-ft-store 2021-08-20 10:53:29 +10:00
Franck Royer
b7693853d2
Added support for startTime and endTime in Store queries 2021-08-20 10:37:58 +10:00
Franck Royer
c2109736d4
Merge pull request #270 from status-im/200-pubsub-topic
Moved `DefaultPubSubTopic` to `waku.ts` and fixed the casing
2021-08-20 10:36:40 +10:00
Franck Royer
1d48dc4372
Rename all pubsubTopic occurrences to pubSubTopic 2021-08-20 10:13:02 +10:00
Franck Royer
026aaaf67e
Remove default value
Default value is handled one layer above.
2021-08-20 10:12:56 +10:00
Franck Royer
60290e8d84
Moved DefaultPubSubTopic to waku.ts and fixed the casing
The pubsub topic is used by several protocol, not just relay.
2021-08-20 10:12:55 +10:00
Franck Royer
d97613bb83
Merge pull request #268 from status-im/deps 2021-08-19 13:46:17 +10:00
Franck Royer
0c09d60c91
Update changelog 2021-08-19 11:27:03 +10:00
Franck Royer
912d984fa0
Run audit fix 2021-08-19 11:26:34 +10:00
Franck Royer
3f95934250
Replace deprecated package for libp2p-noise 2021-08-19 11:26:34 +10:00
Franck Royer
e0d2b3d525
Merge pull request #269 from status-im/eth-pm-eip-712 2021-08-19 11:22:05 +10:00
Franck Royer
0b03952542
Update changelog 2021-08-19 11:13:34 +10:00
Franck Royer
7d738c787c
Use eth_signTypedData_v3 as it has broader wallet support 2021-08-19 11:12:04 +10:00
Franck Royer
16b79306d5
Remove dead code 2021-08-19 11:12:04 +10:00
Franck Royer
a8b29a2fac
Use sign typed data instead of personal sign 2021-08-18 16:48:28 +10:00
Franck Royer
455c5843f3
Merge pull request #266 from status-im/rename-eth-pm
Rename Eth-DM to Eth-PM
2021-08-18 16:45:45 +10:00
Franck Royer
d494558596
Rename "Direct" to "Private" in code 2021-08-18 16:37:30 +10:00
Franck Royer
0673edacb5
Change content topic 2021-08-17 16:20:06 +10:00
Franck Royer
9692b4af72
Rename Eth-DM to Eth-PM
"Direct Message" can lead to confusion with "Direct Connection" that
refers to low latency network connections.
2021-08-17 16:06:46 +10:00
Franck Royer
43f57aeb3e
Merge pull request #265 from status-im/update-changelog
Update changelog for Eth-PM Wallet Encryption changes
2021-08-13 20:09:21 +10:00
Franck Royer
0e8062d32e
Add caveat section 2021-08-13 16:48:32 +10:00
Franck Royer
0f0b083586
Update changelog for Eth-PM Wallet Encryption changes 2021-08-13 16:44:29 +10:00
Franck Royer
5be718ffdb
Merge pull request #262 from status-im/bootstrap 2021-08-13 16:27:32 +10:00
Franck Royer
6ded9630b2
Remove mention of Status in guide
Keep it in the code doc.
2021-08-13 16:18:03 +10:00
Franck Royer
6d42c39298
export values so they are included in the documentation 2021-08-13 16:18:03 +10:00
Franck Royer
bac26ea3da
fixup 2021-08-13 16:18:02 +10:00
Franck Royer
140791cc91
Provide easy way to bootstrap when creating Waku node 2021-08-13 16:18:00 +10:00
Franck Royer
c3855112d7
Rename getStatusFleetNodes
To make it more generic to allow retrieval of bootstrap nodes from
other sources.
2021-08-13 16:17:15 +10:00
Franck Royer
729c81430c
Merge pull request #264 from status-im/eth-pm-metamask 2021-08-13 16:12:31 +10:00
Franck Royer
28e4c9d78c
Rephrase 2021-08-13 15:58:40 +10:00
Franck Royer
f801538f71
Spelling 2021-08-13 15:58:40 +10:00
Franck Royer
31b007c398
Refresh peer stats every second 2021-08-13 15:58:39 +10:00
Franck Royer
076192aa66
Use EIP-712 to sign public key message 2021-08-13 15:58:39 +10:00
Franck Royer
01696d074c
Add to CI, upload to GH pages 2021-08-12 16:42:36 +10:00
Franck Royer
3b32987ecf
Add check in case user tries with incompatible wallet 2021-08-12 16:42:35 +10:00
Franck Royer
1e69811d8d
Use Web3 wallet for encryption instead of generated keys 2021-08-12 16:42:35 +10:00
Franck Royer
42ace51f35
Init commit Eth-PM Wallet 2021-08-12 16:06:09 +10:00
Franck Royer
85fd5f8f9f
Merge pull request #263 from status-im/eth-dm-cleanup-for-metamask 2021-08-12 15:25:55 +10:00
Franck Royer
6038007d40
No need for a wallet to send messages 2021-08-12 15:15:56 +10:00
Franck Royer
a1218c1223
Refresh peer stats every second 2021-08-12 15:14:15 +10:00
Franck Royer
278439df82
Store encryption public key as byte array 2021-08-12 15:14:15 +10:00
Franck Royer
0bbe52ebb1
Rename ethdm*key to encryption*key
The naming was just confusing.
2021-08-12 15:14:15 +10:00
Franck Royer
a2b6947b73
Add button to connect to wallet 2021-08-12 15:08:40 +10:00
Franck Royer
19c355e36b
Remove unnecessary parameter 2021-08-11 15:57:37 +10:00
Franck Royer
85231a288f
Simplify expression 2021-08-11 15:34:02 +10:00
Franck Royer
bc31089860
Merge pull request #255 from status-im/store-guide 2021-08-09 14:56:06 +10:00
Franck Royer
eb04acd1a0
Fix format 2021-08-09 14:40:57 +10:00
Franck Royer
332d05e31d
Not sure why npm does that 2021-08-09 14:22:14 +10:00
Franck Royer
fb89b78754
Do not run react tests
Unfortunately, there are issue with react-scripts (jest) and
multiformats: https://github.com/multiformats/js-multiformats/issues/110
2021-08-09 14:21:47 +10:00
Franck Royer
2381adfd17
Do not recommend protobuf
Yet provide guide on how to use protobuf.
2021-08-09 14:03:52 +10:00
Franck Royer
bb7ae2f30a
Improve wording 2021-08-09 12:36:53 +10:00
Franck Royer
b7bf47715b
Wording 2021-08-09 12:36:53 +10:00
Franck Royer
be771d6619
This would have failed if the first node we connect to is NOT store 2021-08-09 12:36:53 +10:00
Franck Royer
951e2e296b
Format 2021-08-09 12:36:53 +10:00
Franck Royer
5076fa553c
Enable spelling for guides and fix it 2021-08-09 12:36:53 +10:00
Franck Royer
b4dcb73e30
Add store react to example CI 2021-08-09 12:36:50 +10:00
Franck Royer
d3877ac26c
Simplify 2021-08-09 12:36:29 +10:00
Franck Royer
884190c971
Phrasing 2021-08-09 12:36:29 +10:00
Franck Royer
ee5d627d14
Correct grammar 2021-08-09 12:36:28 +10:00
Franck Royer
e52e564a31
Any value can be undefined 2021-08-09 12:36:28 +10:00
Franck Royer
8322d24ac1
Always clean up listeners! 2021-08-09 12:36:28 +10:00
Franck Royer
cecbaad4f2
Finish store guide 2021-08-09 12:36:28 +10:00
Franck Royer
a24e9c82c3
Fix protobuf def 2021-08-09 12:36:28 +10:00
Franck Royer
f700367e62
Demonstrate how to wait for a store node peer 2021-08-09 12:36:28 +10:00
Franck Royer
3767dd75a7
store-react-js retrieves messages from store 2021-08-09 12:36:27 +10:00
Franck Royer
dc9ea6dfac
Add Store example 2021-08-09 12:36:27 +10:00
Franck Royer
f83f3037f1
Start store guide 2021-08-09 12:36:27 +10:00
Franck Royer
319f44a0b1
WakuStore.queryHistory throws when encountering an error
Instead of returning a `null` value.
2021-08-09 12:36:24 +10:00
Franck Royer
b422c9a10b
Move contentTopics out the WakuStore.queryHistory's optional params 2021-08-09 12:36:12 +10:00
Franck Royer
55a36f2263
Merge pull request #260 from status-im/remove-chat-message 2021-08-09 12:35:15 +10:00
Franck Royer
355b8414d8
Separate shutdown process to pinpoint CI failure 2021-08-09 12:27:52 +10:00
Franck Royer
dcdab3203d
Replace nim-waku log grep with new pattern 2021-08-09 12:27:22 +10:00
Franck Royer
80cfa3c87a
Increase timeout to shutdown node 2021-08-09 12:09:21 +10:00
Franck Royer
c14951cb0e
Increase timeout for nim-waku starts
Took 5 seconds in CI run.
2021-08-09 11:58:58 +10:00
Franck Royer
ad9d629daa
ChatMessage has been moved from js-waku to web-chat example
It is a type used for the [TOY-CHAT](https://rfc.vac.dev/spec/22/)
 protocol;
js-waku users should not build on top if this toy protocol and instead
design message data structures appropriate to their use case.
2021-08-06 17:25:12 +10:00
Franck Royer
0c3995a810
Remove cli-chat example
The focus of this library is on Web environment; Several examples now
cover usage of Waku Relay and Waku Store; web-chat POC should be
preferred to use the [TOY-CHAT](https://rfc.vac.dev/spec/22/) protocol.
2021-08-06 17:25:11 +10:00
Franck Royer
0431088115
Merge pull request #259 from status-im/release/0.10.0
Release 0.10.0
2021-08-06 16:50:48 +10:00
Franck Royer
70c58c8c49
Release 0.10.0
### Added
- Relay and ReactJS guides and examples
  ([#56](https://github.com/status-im/js-waku/issues/56)).

### Changed
- **Breaking**: The `WakuMessage` APIs have been changed to move
  `contentTopic` out of the optional parameters.

### Removed
- Examples (web-chat): Remove broken `/fleet` command.
- **Breaking**: Removed `DefaultContentTopic` as developers must choose
  a content topic for their app; recommendations for content topic can
  be found at https://rfc.vac.dev/spec/23/.

### Fixed
- `WakuMessage.payloadAsUtf8` returning garbage on utf-8 non-ascii
  characters.
- `ChatMessage.payloadAsUtf8` returning garbage on utf-8 non-ascii
  characters.
2021-08-06 16:38:55 +10:00
Franck Royer
cbf3fc3f8e
Merge pull request #251 from status-im/rename-min-web-chat 2021-08-05 16:11:01 +10:00
Franck Royer
1b82c21297
Update changelog 2021-08-05 13:39:42 +10:00
Franck Royer
c13beae0d2
Include ReactJS in name min web chat name 2021-08-05 13:39:42 +10:00
Franck Royer
bc71247acf
Point to guide menu and remove example section 2021-08-05 13:39:41 +10:00
Franck Royer
016ccd4836
Merge pull request #256 from status-im/revert-p-tests 2021-08-05 13:38:51 +10:00
Franck Royer
d035359616
Workaround the fact that ni-waku does not accept integers as timestamp 2021-08-05 13:32:37 +10:00
Franck Royer
5a4d7cfb09
Revert "Run test tasks in parallel"
This reverts commit ed14311174b285f9647f05b73d5e3b7bc9214992.
2021-08-04 14:53:07 +10:00
Franck Royer
27feaaac4b
Revert "Run tests in parallel"
This reverts commit b8e7079b67a4b1783a6b8215c8fe1f118a4de405.
2021-08-04 14:53:07 +10:00
Franck Royer
a1da4ada7f
Merge pull request #250 from status-im/test-examples
Run test tasks in parallel
2021-08-02 14:34:14 +10:00
Franck Royer
b8e7079b67
Run tests in parallel
React build is quite long so best to run other linters in parallel.
2021-08-02 14:12:39 +10:00
Franck Royer
b828f7773c
Add helpers to test examples
Keep a separate CI task.
2021-08-02 14:11:05 +10:00
Franck Royer
ed14311174
Run test tasks in parallel 2021-08-02 14:03:41 +10:00
Franck Royer
8aadaacc54
Merge pull request #245 from status-im/guides 2021-08-02 13:35:32 +10:00
Franck Royer
495827ed63
Rephrased 2021-08-02 12:26:07 +10:00
Franck Royer
499b3e7cc0
Touch up 2021-08-02 12:22:18 +10:00
Franck Royer
dbc6662082
Touch up 2021-08-02 12:22:18 +10:00
Franck Royer
ef27afbbf9
Fix voca 2021-08-02 12:00:28 +10:00
Franck Royer
7b87ece951
Add ReactJS Relay to guide menu 2021-08-02 11:59:24 +10:00
Franck Royer
5a4f7d4468
Test by building
Cannot run react-scripts test with libp2p
due to
https://github.com/libp2p/js-libp2p/issues/961
2021-08-02 11:04:41 +10:00
Franck Royer
f0fe7dce02
Fix TextDecoder error in tests 2021-08-02 10:45:11 +10:00
Franck Royer
7d9f8c03c1
Move protocol support after examples 2021-08-02 10:45:11 +10:00
Franck Royer
975fb6245a
Run CI for min js web chat example 2021-08-02 10:45:10 +10:00
Franck Royer
943b1c2456
Add ReactJS Relay guide 2021-08-02 10:45:10 +10:00
Franck Royer
f95e52c2ea
Remove reducer, fix timestamp 2021-08-02 10:45:10 +10:00
Franck Royer
2306bb1708
Add breakdown of what examples demonstrate
Also move explanation to each readme.
2021-08-02 10:45:10 +10:00
Franck Royer
8a1babac6f
Fix capitalized titles 2021-08-02 10:45:10 +10:00
Franck Royer
b92b9009b9
Add choose content topic guide 2021-08-02 10:45:09 +10:00
Franck Royer
2dd399d6c6
Run Hemingway app 2021-08-02 10:45:09 +10:00
Franck Royer
97042388b2
Fix odd format 2021-08-02 10:45:09 +10:00
Franck Royer
1f370ae53e
Use protobuf 2021-08-02 10:45:09 +10:00
Franck Royer
3b71fd0b26
Show payload as utf8 usage 2021-08-02 10:45:09 +10:00
Franck Royer
7c715d8fa7
Display messages 2021-08-02 10:45:09 +10:00
Franck Royer
8a7f2401ea
Process incoming messages 2021-08-02 10:45:08 +10:00
Franck Royer
7c5382dfff
Send message 2021-08-02 10:45:08 +10:00
Franck Royer
3f6497634f
Bootstrap 2021-08-02 10:45:08 +10:00
Franck Royer
2ae9a6ca00
Create Waku 2021-08-02 10:45:08 +10:00
Franck Royer
1e64ac8f7c
create react app min-js-web-chat 2021-08-02 10:45:08 +10:00
Franck Royer
a3b7e37d8b
Merge pull request #249 from status-im/utf8
Fixed `payloadAsUtf8` returning garbage on utf-8 non-ascii characters
2021-08-02 10:44:45 +10:00
Franck Royer
45dc8f81c9
Fixed ChatMessage.payloadAsUtf8 returning garbage on utf-8 non-ascii 2021-08-02 10:36:50 +10:00
Franck Royer
1f692f1683
Fixed payloadAsUtf8 returning garbage on utf-8 non-ascii characters 2021-08-02 09:51:37 +10:00
Franck Royer
159a352088
Merge pull request #248 from status-im/fix-web-chat
Limit store retrievals
2021-07-29 20:05:07 +10:00
Franck Royer
d307342f7e
Simplify message handling to avoid re-rendering
Only retrieve historical messages when starting the app.

This allows avoid re-rendering issues. This is an example dApp. No need
to waste time on React optimisation.
2021-07-29 17:23:03 +10:00
Franck Royer
b4a440cb03
Merge pull request #247 from status-im/update-chats
Update discussion channels
2021-07-28 20:59:56 +10:00
Franck Royer
a5e91b3269
Update discussion channels 2021-07-28 17:12:03 +10:00
Franck Royer
aede51f752
Merge pull request #244 from status-im/remove-default-content-topic 2021-07-28 12:34:06 +10:00
Franck Royer
9aaac20981
Examples: Content Topic moved out of options parameter 2021-07-28 12:03:51 +10:00
Franck Royer
0cfdd34284
Removed DefaultContentTopic
As developers must choose a content topic for their app.
The`WakuMessage` APIs have been changed to move `contentTopic` out of
the optional parameters. Recommendations for content topic can be found
at https://rfc.vac.dev/spec/23/.
2021-07-28 12:03:51 +10:00
Franck Royer
5e056d8b81
Shorten imports, remove warning 2021-07-28 11:58:05 +10:00
Franck Royer
53ef23362c
Remove faulty fleet feature
It does not work as it can lead to infinite loops due to the handling of
the Waku instance. It should disconnect and reconnect to peers instead
of starting a new waku instance.
2021-07-28 11:58:02 +10:00
Franck Royer
b61e7311af
Merge pull request #243 from status-im/185-idle-stream-abort 2021-07-27 16:42:02 +10:00
Franck Royer
9638f6db10
Introduced new relayKeepAlive option
..on `Waku` with a default to 5min to send ping messages over relay
to ensure the relay stream stays open.

This is a workaround until
[js-libp2p#744](https://github.com/libp2p/js-libp2p/issues/744) is done
as there are issues when TCP(?) timeouts and the stream gets closed.
2021-07-27 16:24:04 +10:00
Franck Royer
ea33b9cd8a
Rename keepAlive option to pingKeepAlive
In preparation for introducing a relay keep alive feature.
2021-07-27 16:06:57 +10:00
Franck Royer
664e5f56a1
Merge pull request #241 from status-im/upgrade-libp2p
Upgrade to libp2p 0.32.0
2021-07-27 14:50:34 +10:00
Franck Royer
36a5a51aa8
Upgrade to libp2p 0.32.0 2021-07-27 14:31:06 +10:00
Franck Royer
5a6e4adf35
Merge pull request #242 from status-im/release/0.9.0
Release 0.9.0
2021-07-26 20:22:45 +10:00
Franck Royer
c35fe74dad
Release 0.9.0
### Changed
- **Breaking**: Store Response Protobuf changed to align with
  nim-waku v0.5
  ([nim-waku#676](https://github.com/status-im/nim-waku/pull/676)).
2021-07-26 16:49:30 +10:00
Franck Royer
4a85e62c80
Merge pull request #237 from status-im/nim-waku-v0.5 2021-07-26 14:30:51 +10:00
Franck Royer
c4d0501c6a
nim-waku v0.5 uses new waku relay protocol id 2021-07-26 11:35:08 +10:00
Franck Royer
5f7eee394b
Store Response Protobuf change to align with nim-waku
status-im/nim-waku#676
2021-07-26 11:35:08 +10:00
Franck Royer
6817a2f6b2
Pass timestamp to RPC call 2021-07-26 11:32:50 +10:00
Franck Royer
c944a802a5
Upgrade nim-waku submodule to v0.5 2021-07-26 11:32:50 +10:00
Franck Royer
1f0569580f
Merge pull request #240 from status-im/238-multiple-protocols 2021-07-22 10:40:08 +10:00
Franck Royer
be007f4839
Ensure there is no infinite loop on error 2021-07-21 15:44:00 +10:00
Franck Royer
92a76b3be0
Support multiple protocol id for relay
Support id of latest nim-waku release 0.4 and current master.
2021-07-21 15:43:30 +10:00
Franck Royer
6135127e5d
Correct name 2021-07-21 15:02:38 +10:00
Franck Royer
4e6848bb1c
Merge pull request #236 from status-im/doc 2021-07-21 14:59:32 +10:00
Franck Royer
3bff44432a
Remove some vulnerable packages
Thanks to `npm audit`.
2021-07-20 15:30:15 +10:00
Franck Royer
aea70dcea6
Fix title hierarchy 2021-07-20 15:30:14 +10:00
Franck Royer
29b726629d
Merge pull request #235 from status-im/release/0.8.1
Release 0.8.1
2021-07-16 12:14:20 +10:00
Franck Royer
0753184079
Release 0.8.1
### Added
- Examples (web-chat): New `/fleet` command to switch connection between
  Status prod and test fleets.
- Export `generatePrivateKey` and `getPublicKey` directly from the root.
- Usage of the encryption and signature APIs to the readme.

### Changed
- **Breaking**: Renamed `WakuRelay.(add|delete)PrivateDecryptionKey` to
  `WakuRelay.(add|delete)DecryptionKey` to make it clearer that it
  accepts both symmetric keys and asymmetric private keys.

### Fix
- Align `WakuMessage` readme example with actual code behaviour.
2021-07-16 12:00:43 +10:00
Franck Royer
228cdab89b
Merge pull request #234 from status-im/fix-doc 2021-07-16 11:58:01 +10:00
Franck Royer
7a641ec4a9
Fix typos 2021-07-16 11:26:37 +10:00
Franck Royer
dd79e0899f
Reword crypto libs 2021-07-16 11:22:48 +10:00
Franck Royer
4f796ab920
Add encryption/signature documentation 2021-07-16 11:19:38 +10:00
Franck Royer
455b568cde
Revamp documentation
Introduce sections, add some explanations.
2021-07-16 11:11:29 +10:00
Franck Royer
1d4137e2c4
Rename so that it does make dev thinks it's for asymmetric enc only 2021-07-16 10:24:29 +10:00
Franck Royer
07cba4f8ca
Update changelog for readme changes 2021-07-16 09:51:59 +10:00
Franck Royer
a3c4eed656
Update changelog for fleet command 2021-07-16 09:50:44 +10:00
Franck Royer
addf9543a2
Export generatePrivateKey and getPublicKey directly from the root 2021-07-16 09:43:10 +10:00
Franck Royer
db3403d88f
Update Waku Message examples 2021-07-15 15:02:16 +10:00
Franck Royer
5c790a41c9
Add network info in toolbar 2021-07-15 14:37:30 +10:00
Franck Royer
53412e2fb4
New /fleet command to change target Status fleet 2021-07-15 14:25:59 +10:00
Franck Royer
9ffb33cdde
Make fleet environment part of the state 2021-07-15 14:14:45 +10:00
Franck Royer
bc3b00b13e
Use const as setter should be used to change values 2021-07-15 14:11:00 +10:00
Franck Royer
a8e2b908ba
Cleanup observers
And name function to avoid commenting.
2021-07-15 14:09:58 +10:00
Franck Royer
6e22897f74
Rename stateWaku to waku
There should only be one.
2021-07-15 14:08:07 +10:00
Franck Royer
f3738b1eac
doc: Fix keep alive default value 2021-07-15 14:00:24 +10:00
Franck Royer
383dd04911
Merge pull request #232 from status-im/release/0.8.0
Release 0.8.0
2021-07-15 13:54:55 +10:00
Franck Royer
3a3e718749
Release 0.8.0
### Added
- `WakuRelay.deleteObserver` to allow removal of observers, useful when
  a React component add observers when mounting and needs to delete it
  when unmounting.
- Keep alive feature that pings host regularly, reducing the chance of
  connections being dropped due to idle.
  Can be disabled or default frequency (10s) can be changed when calling
  `Waku.create`.
- New `lib/utils` module for easy, dependency-less hex/bytes
  conversions.
- New `peers` and `randomPeer` methods on `WakuStore` and
  `WakuLightPush` to have a better idea of available peers;
  Note that it does not check whether Waku node is currently connected
  to said peers.
- Enable passing decryption private keys to `WakuStore.queryHistory`.
- Test: Introduce testing in browser environment (Chrome) using Karma.
- Add support for Waku Message version 1: Asymmetric encryption,
  symmetric encryption, and signature of the data.

### Changed
- **Breaking**: Auto select peer if none provided for store and light
  push protocols.
- Upgrade to `libp2p@0.31.7` and `libp2p-gossipsub@0.10.0` to avoid
  `TextEncoder` errors in ReactJS tests.
- Disable keep alive by default as latest nim-waku release does not
  support ping protocol.
- **Breaking**: Optional parameters for `WakuMessage.fromBytes` and
  `WakuMessage.fromUtf8String` are now passed in a single `Options`
   object.
- **Breaking**: `WakuMessage` static functions are now async to allow
  for encryption and decryption.
- **Breaking**: `WakuMessage` constructor is now private, `from*` and
  `decode*` function should be used.
- `WakuMessage` version 1 is partially supported, enabling asymmetrical
  encryption and signature of messages;
  this can be done by passing keys to `WakuMessage.from*` and
  `WakuMessage.decode*` methods.
- Examples (eth-dm): Use Waku Message version 1 encryption scheme
  instead of `eth-crypto`.
- Examples (eth-dm): Use Protobuf for direct messages instead of JSON
  ([#214](https://github.com/status-im/js-waku/issues/214)).

### Fixed
- Disable `keepAlive` if set to `0`.
2021-07-15 12:48:47 +10:00
Franck Royer
6bd93eef55
Merge pull request #231 from status-im/179-symmetric-encryption-store-relay 2021-07-15 12:40:22 +10:00
Franck Royer
0b3f1a33c2
test: Symmetric encryption with waku store 2021-07-15 12:26:05 +10:00
Franck Royer
44efd28ac1
Update terminology and docs to cater for both sym and asym encryption 2021-07-15 12:25:47 +10:00
Franck Royer
b74acd73dc
Remove unknown type 2021-07-15 12:16:21 +10:00
Franck Royer
75d1b3834c
Simplify expression 2021-07-15 12:16:03 +10:00
Franck Royer
13c8a0527b
Test symmetric encryption with nim-waku using relay 2021-07-15 12:12:43 +10:00
Franck Royer
d12430e19b
Merge karma tsconfig in karma conf 2021-07-15 11:10:19 +10:00
Franck Royer
2715fe0e8c
Merge pull request #229 from status-im/179-symmetric-encryption 2021-07-15 10:51:57 +10:00
Franck Royer
841b9dc89a
Mention fast-check 2021-07-15 10:36:25 +10:00
Franck Royer
302fc20243
Remove dupe tests 2021-07-15 10:36:24 +10:00
Franck Royer
6afecd9989
Mention encryption support 2021-07-15 10:36:24 +10:00
Franck Royer
9374de1931
Karma: Remove tests folder and use in place files & update contrib guide
*.browser.spec.ts files will be tested on both node and browser.
Other files only tested on node.
2021-07-15 10:36:24 +10:00
Franck Royer
25fccb4c9a
Add symmetric encryption support to Waku Message 2021-07-15 10:23:40 +10:00
Franck Royer
56c30059b2
Add comments on Waku Message Options 2021-07-15 10:23:34 +10:00
Franck Royer
57f65267c2
Implement and test symmetric encryption in the browser 2021-07-14 16:31:11 +10:00
Franck Royer
8c66022a18
Update changelog for Karma 2021-07-14 15:35:46 +10:00
Franck Royer
06ee0ac1d8
Symmetric encryption for node 2021-07-14 15:34:48 +10:00
Franck Royer
75fce5eed3
Merge pull request #230 from status-im/karma 2021-07-14 15:34:18 +10:00
Franck Royer
4dae00fe0d
Remove debug logs for Karma 2021-07-14 15:23:36 +10:00
Franck Royer
f20acb9bfd
Use ChromeHeadless 2021-07-14 15:17:16 +10:00
Franck Royer
ae051333de
Use puppeteer to make it work in the CI 2021-07-14 13:25:24 +10:00
Franck Royer
055247121a
Remove firefox for now 2021-07-14 13:14:04 +10:00
Franck Royer
ac4f0aab98
Only include lib files, segregate browser tests 2021-07-14 13:04:11 +10:00
Franck Royer
a9c83dac13
Do not use same key value for both constants 2021-07-14 13:03:22 +10:00
Franck Royer
e443237a81
Remove local type definitions for Karma to not return "not found" 2021-07-14 12:25:23 +10:00
Franck Royer
d24afafc82
Karma needs js files to be emitted 2021-07-14 12:13:03 +10:00
Franck Royer
7fa919273b
Set sourceMap instead of inline 2021-07-14 11:56:49 +10:00
Franck Royer
70058f0e36
Split browser and node tests 2021-07-14 11:56:48 +10:00
Franck Royer
4f8d8b099b
Setup Karma 2021-07-14 11:56:48 +10:00
Franck Royer
a0d3a21762
Improve importing of Muxed Stream type 2021-07-14 11:38:59 +10:00
Franck Royer
2f5e75166f
Merge pull request #228 from status-im/eth-dm-proto
Use protobuf instead of JSON for direct messages
2021-07-12 19:57:48 +10:00
Franck Royer
c2cef05c2d
Use protobuf instead of JSON for direct messages 2021-07-12 17:29:52 +10:00
Franck Royer
b8296648e4
Merge pull request #227 from status-im/179-eth-dm-encrypt 2021-07-12 17:27:06 +10:00
Franck Royer
4ca440d27e
List relay and light push peers numbers instead of any peer 2021-07-12 17:13:28 +10:00
Franck Royer
7a0b947553
Add logs on light push 2021-07-12 17:10:05 +10:00
Franck Royer
48bdb0b3f2
Use WakuMessage version 1 instead of eth-crypto 2021-07-12 17:09:44 +10:00
Franck Royer
3d219d005d
Merge pull request #225 from status-im/179-asymmetric-enc-store 2021-07-12 16:49:31 +10:00
Franck Royer
0e9c482a19
Enable decryption of messages retrieve via WakuStore.queryHistory 2021-07-12 13:15:19 +10:00
Franck Royer
d68ee3fb74
New peers and randomPeer methods to return available peers 2021-07-12 13:15:19 +10:00
Franck Royer
c5cb37ee49
Merge pull request #223 from status-im/ecies
Use ecies library that provide right ECIES parameters
2021-07-12 12:49:11 +10:00
Franck Royer
4fe0116039
Use ecies library that provide right ECIES parameters 2021-07-12 11:30:19 +10:00
Franck Royer
d0958c1c57
Merge pull request #221 from status-im/waku-msg-version-1 2021-07-09 16:35:47 +10:00
Franck Royer
63923f4368
Prefer usage of utils 2021-07-09 16:06:49 +10:00
Franck Royer
b70f7c5a95
Use DOM random generator if available 2021-07-09 16:06:49 +10:00
Franck Royer
1f6ed9b525
Prefer secp256k1 lib over ecies 2021-07-09 15:50:17 +10:00
Franck Royer
2b1a6dafea
Skip nim-waku interop tests
ecies-parity does not provide the same ECIES that waku:
ecies-parity uses a shared hmac of `[0,0]` whereas waku uses `[]`.

Work is needed to find or create a new library.
2021-07-09 15:50:17 +10:00
Franck Royer
8cd5a52eba
Provide hex/bytes utils as part of js-waku 2021-07-09 15:50:17 +10:00
Franck Royer
9ff1d87a8d
Use util function 2021-07-09 15:50:16 +10:00
Franck Royer
4f50ca1732
Align examples 2021-07-09 15:50:16 +10:00
Franck Royer
22c716e0e6
Add API to generate keys 2021-07-09 15:50:16 +10:00
Franck Royer
f123cd7e62
Test asymmetric encryption against nim-waku 2021-07-09 15:50:16 +10:00
Franck Royer
f95d9aec3c
Add version 1 support to waku relay, test decryption against nim-waku 2021-07-09 15:50:16 +10:00
Franck Royer
acdc032253
Simplify code 2021-07-09 15:50:16 +10:00
Franck Royer
34e6ac5247
Add version 1 support to WakuMessage 2021-07-09 15:50:15 +10:00
Franck Royer
2266f31d30
Move optional parameters to a single Options object. 2021-07-09 15:50:15 +10:00
Franck Royer
381333347e
Remove dupe code 2021-07-09 15:50:15 +10:00
Franck Royer
f2a2233c77
Add encrypt/decrypt asymmetric 2021-07-09 15:50:15 +10:00
Franck Royer
f97dc4de81
Implement Waku Message Version 1 encoding and signature 2021-07-09 14:49:09 +10:00
Franck Royer
7b5c8d6094
Move waku_message to dedicated folder 2021-07-09 14:49:09 +10:00
Franck Royer
c3b726cb99
Remove deprecated call 2021-07-09 14:49:08 +10:00
Franck Royer
7c47a6b215
Merge pull request #222 from status-im/eth-dm-observer-infinite-loop 2021-07-09 14:48:39 +10:00
Franck Royer
d00c1c874a
Do not fail if connection to one peer fails
As long as we connect to at least one peer then we can move forward.
2021-07-09 14:35:06 +10:00
Franck Royer
66d450ae36
Fix bad comparison logic 2021-07-09 14:35:06 +10:00
Franck Royer
44db58d2fd
Fix the dependencies 2021-07-09 14:35:04 +10:00
Franck Royer
eec6de9f0c
Remove InitWaku component
There was an issue where the observers are added/removed continously.
This is due to using `useEffect` on props.

By removing this component then `useEffect` ends only being called when
 waku changes, ie, at initialisation.
2021-07-09 14:34:33 +10:00
Franck Royer
db6bb95a9b
Merge pull request #220 from status-im/eth-dm-clean-up 2021-07-05 09:55:17 +10:00
Franck Royer
aaf3b1867e
Disable keep alive by default as latest nim-waku release does not
support ping protocol.
2021-07-05 09:40:07 +10:00
Franck Royer
707979bf4c
Only use Prod nodes
js-waku maintains compatibility with latest nim-waku release, deployed
in the prod fleet.

js-waku may not be compatible with nim-waku master branch if backward
compatible changes were introduced.
2021-07-02 15:28:26 +10:00
Franck Royer
354dcd66a5
Constructor is more appropriate when comparing function signatures 2021-07-02 13:52:50 +10:00
Franck Royer
c5419630fc
Define util function for hex<>buf conversions 2021-07-02 13:52:10 +10:00
Franck Royer
a4dd8771f6
re-arrange app bar and display address in use 2021-07-02 13:45:22 +10:00
Franck Royer
5c3f768c83
Do not crash if Ethereum is locked 2021-07-02 13:27:50 +10:00
Franck Royer
6bc79ad587
Merge pull request #218 from status-im/remove-json 2021-07-02 13:12:42 +10:00
Franck Royer
e59e9f4162
Fix typo 2021-07-02 11:44:04 +10:00
Franck Royer
e9a1d88512
Fix Public Key Message validation and use it 2021-07-02 11:29:42 +10:00
Franck Royer
2f2f89cf65
Fix filtering of own messages 2021-07-02 11:29:41 +10:00
Franck Royer
f020aa7a8c
Improve logging upon receiving messages 2021-07-02 10:54:56 +10:00
Franck Royer
3c618f435e
Fix typo 2021-07-02 10:52:46 +10:00
Franck Royer
f9174cd3d2
Do not process Public Key Message if field is missing 2021-07-02 10:52:35 +10:00
Franck Royer
370a347ff2
Actually disable keep alive if set to 0 2021-07-02 10:51:58 +10:00
Franck Royer
75297b9987
Display # of connections 2021-07-01 19:58:08 +10:00
Franck Royer
dc2c09bd41
Change public key message encoding to protobuf 2021-07-01 14:37:07 +10:00
Franck Royer
90e39d3e0a
Merge pull request #216 from status-im/213-derivation 2021-06-30 11:14:26 +10:00
Franck Royer
90cdd5385c
Fix typo 2021-06-29 16:38:54 +10:00
Franck Royer
8c62105d95
Replace empty div with react fragment 2021-06-29 16:38:43 +10:00
Franck Royer
4284be142f
Fix spelling 2021-06-29 16:21:32 +10:00
Franck Royer
b1a1c82de3
Use material ui list 2021-06-29 16:14:27 +10:00
Franck Royer
a46a05a5ea
Move messaging components to single component 2021-06-29 15:53:59 +10:00
Franck Royer
5bc0eddd3a
Move messaging components to module 2021-06-29 15:46:07 +10:00
Franck Royer
31d0efc8d2
Organise elements in fieldboxes 2021-06-29 15:32:29 +10:00
Franck Royer
5661c7d1ec
Do not attempt to decrypt other's messages 2021-06-29 12:46:42 +10:00
Franck Royer
6921242877
Extract waku initialisation in separate component 2021-06-29 12:30:57 +10:00
Franck Royer
5de030d3ca
Deconstruct properties for more concise code 2021-06-29 12:10:24 +10:00
Franck Royer
53182e834d
Extract Key Pair Handling as separate component 2021-06-29 12:05:16 +10:00
Franck Royer
b677b0eb7b
Use Key Pair terminology for eth-dm keypair 2021-06-29 11:56:49 +10:00
Franck Royer
f9152f24b0
Move key handling modules to common dir 2021-06-29 11:52:48 +10:00
Franck Royer
9a68cc2a86
Encrypt KeyPair before saving to storage 2021-06-28 16:18:12 +10:00
Franck Royer
47a27a0969
Replace deprecated method 2021-06-28 13:54:22 +10:00
Franck Royer
820307ef8c
Do not list own public key as recipient 2021-06-25 16:18:15 +10:00
Franck Royer
452f4285eb
Move most EthCrypto usage to crypto.ts 2021-06-25 16:18:15 +10:00
Franck Royer
93665feac8
Generate fresh new keypair, do not use signature as entropy 2021-06-25 16:18:15 +10:00
Franck Royer
bd0ad81d17
Disable generate button if key is already present 2021-06-25 16:18:15 +10:00
Franck Royer
d6d548a09e
Save private key in storage
In clear for now.
2021-06-25 16:18:14 +10:00
Franck Royer
fdb720eeed
Merge pull request #212 from status-im/eth-dm 2021-06-22 14:31:12 +10:00
Franck Royer
8cecfc205b
Use plain websocket in tests
Thanks to the libp2p upgrade, waku actually tries to listen to a
secure websocket. Using plain websocket for now, testing secure
websocket is tracked with #50.
2021-06-22 14:11:38 +10:00
Franck Royer
01c1c253b4
Install linter 2021-06-22 13:21:24 +10:00
Franck Royer
3a7c7a1bb7
Fix spelling 2021-06-22 13:21:23 +10:00
Franck Royer
ce2bfde12d
Remove webvitals 2021-06-22 13:21:23 +10:00
Franck Royer
b3bb363a50
Upgrade node types 2021-06-22 13:21:23 +10:00
Franck Royer
0425821ea3
Remove all tests
Issue with `TextDecoder is not defined` and we are not testing anything
at the moment.
2021-06-22 13:21:23 +10:00
Franck Royer
891897fe63
Remove test as not able to run it with waffle
The PoC works so we know the functionality is here, this was here
to prevent regression.
2021-06-22 13:21:23 +10:00
Franck Royer
6cb92dd4b9
Upgrade to latest libp2p versions
And few other packages
2021-06-22 13:21:23 +10:00
Franck Royer
dbab0cc582
Unnecessary and create conflicts due to disparity of version
Between libp2p-interfaces from libp2p and libp2p-gossipsub.
2021-06-22 10:08:02 +10:00
Franck Royer
68faba24c1
Move Eth-DM notes to root dir 2021-06-21 15:48:56 +10:00
Franck Royer
d9f875ca4a
Add Eth-DM to CI 2021-06-21 15:41:30 +10:00
Franck Royer
73abcdda46
Prod build uses prod fleet 2021-06-21 14:49:18 +10:00
Franck Royer
85b4879410
Concatenate signature to have enough entropy for eth-crypto 2021-06-21 13:51:11 +10:00
Franck Royer
af2b2691f1
The signature is an hex string, not utf-8 2021-06-21 13:26:33 +10:00
Franck Royer
4b70af1039
Merge pull request #210 from status-im/185-keep-alive 2021-06-21 13:16:46 +10:00
Franck Royer
381fc8b82c
Add keep alive feature
Using libp2p ping protocol.
2021-06-21 09:46:41 +10:00
Franck Royer
e3b4a42822
Add keep alive feature
Using libp2p ping protocol.
2021-06-21 09:46:29 +10:00
Franck Royer
a676dff148
Merge pull request #204 from status-im/72-eth-dm 2021-06-21 09:04:15 +10:00
Franck Royer
ec90bd021a
Deploy main HEAD eth-dm to GH pages 2021-06-18 16:51:11 +10:00
Franck Royer
f05e3a6bb3
Add key to list items 2021-06-18 15:18:37 +10:00
Franck Royer
c6f73199cb
Remove unused import 2021-06-18 15:12:12 +10:00
Franck Royer
66fcb2e48b
Enable recipient selection and message input 2021-06-18 15:11:54 +10:00
Franck Royer
0c825fe391
Use lightpush for all messages 2021-06-18 15:11:09 +10:00
Franck Royer
6e54e65131
Use material UI 2021-06-18 13:53:12 +10:00
Franck Royer
41533d51e5
Prettier message display 2021-06-18 10:04:38 +10:00
Franck Royer
11f92df0ba
Use light push instead of relay
See #209.
2021-06-17 16:24:05 +10:00
Franck Royer
0c6cb64b72
Ensure observers are deleted 2021-06-17 16:24:05 +10:00
Franck Royer
8e8e3a366c
Only use test fleet for now 2021-06-17 16:24:05 +10:00
Franck Royer
ddf6a9501a
Fix for metamask 2021-06-17 16:24:04 +10:00
Franck Royer
fc987f8f58
Publish eth-dm on GH pages 2021-06-17 16:24:04 +10:00
Franck Royer
7dcb52444b
Display waku readiness 2021-06-17 16:24:04 +10:00
Franck Royer
4e7f75868f
Clean up observer when component dismount 2021-06-17 10:41:00 +10:00
Franck Royer
1d3f0e4c8a
Use npm
As it better handles file dependencies by creating a symlink.
2021-06-17 10:41:00 +10:00
Franck Royer
3fa1574696
Display direct messages 2021-06-17 10:41:00 +10:00
Franck Royer
329ed71fb6
Remove unused component 2021-06-17 10:40:59 +10:00
Franck Royer
ed5b7ba542
Send Dummy messages 2021-06-17 10:40:59 +10:00
Franck Royer
69033f4ea5
Receive public key from network and verify it 2021-06-17 10:40:59 +10:00
Franck Royer
3bd6b76916
Publish public key to waku network 2021-06-17 10:40:59 +10:00
Franck Royer
ee38388326
Init repo, add crypto functions 2021-06-17 10:40:59 +10:00
Franck Royer
3ca365c6f8
Merge pull request #208 from status-im/auto-selection-of-peers 2021-06-17 10:40:03 +10:00
Franck Royer
939b5fb20a
Auto select peer if none provided for store and light push protocols 2021-06-16 23:51:20 +10:00
Franck Royer
60eb473047
Add WakuRelay.deleteObserver to allow removal of observers
Useful when a React component add observers when mounting and needs to
delete it when unmounting.
2021-06-16 16:37:04 +10:00
Franck Royer
af1e97fafe
Use Set to facilitate removal of observers 2021-06-16 16:37:04 +10:00
Franck Royer
9244674cf5
Merge pull request #207 from status-im/release/0.7.0
Release 0.7.0
2021-06-15 15:49:54 +10:00
Franck Royer
6ed7445d83
Release 0.7.0
### Changed
- Test: Upgrade nim-waku node to v0.4.
- Waku Light Push upgraded to `2.0.0-beta1`.
- Examples (web chat): Catch error if chat message decoding fails.
- Examples (web chat): Do not send message if shift/alt/ctrl is pressed,
 enabling multiline messages.
2021-06-15 15:36:47 +10:00
Franck Royer
c7991b3da2
Merge pull request #206 from status-im/nim-waku-v0.4 2021-06-11 15:23:21 +10:00
Franck Royer
c293e268e8
Do not send message if a modifier is pressed to enable multiline msgs 2021-06-11 14:38:31 +10:00
Franck Royer
8073021d82
Do not fail if a chat message is malformed 2021-06-11 14:38:22 +10:00
Franck Royer
bc544c8e0b
Update Light Push protocol string to match nim-waku v0.4 2021-06-11 14:38:08 +10:00
Franck Royer
ba8390f02a
Upgrade nim-waku to v0.4 2021-06-11 14:37:54 +10:00
Franck Royer
4eec3930d5
Merge pull request #202 from status-im/release/0.6.0
Release 0.6.0
2021-06-09 21:06:24 +10:00
Franck Royer
e75fb91d3f
Release 0.6.0
### Changed
- **Breaking**: Websocket protocol is not automatically added anymore
  if the user specifies a protocol in `libp2p.modules` when using
  `Waku.create`.
- **Breaking**: Options passed to `Waku.create` used to be passed to
  `Libp2p.create`; Now, only the `libp2p` property is passed to
  `Libp2p.create`, allowing for a cleaner interface.
- Examples (cli chat): Use tcp protocol instead of websocket.

### Added
- Enable access to `WakuMessage.timestamp`.
- Examples (web chat): Use `WakuMessage.timestamp` as unique key for
  list items.
- Doc: Link to new [topic guidelines](https://rfc.vac.dev/spec/23/) in
  README.
- Doc: Link to [Waku v2 Toy Chat specs](https://rfc.vac.dev/spec/22/) in
  README.
- Examples (web chat): Persist nick.
- Support for custom PubSub Topics to `Waku`, `WakuRelay`, `WakuStore`
  and `WakuLightPush`;
  Passing a PubSub Topic is optional and still defaults to
  `/waku/2/default-waku/proto`;
  JS-Waku currently supports one, and only, PubSub topic per instance.
2021-06-09 20:49:19 +10:00
Franck Royer
b0e9e88081
Merge pull request #203 from status-im/cli-chat-use-tcp
Use tcp protocol only for cli-chat
2021-06-09 17:46:44 +10:00
Franck Royer
2350ce5a6f
Clarify new libp2p modules transport behaviour 2021-06-09 16:59:27 +10:00
Franck Royer
1bb1f8f6b6
Use tcp protocol only
Due to #201, Websocket protocol is not added by default if the caller
specifies a protocol for libp2p.

In the case cli-chat. We were using both tcp and ws.
As the web-chat already demonstrates usage of websocket protocol, we
cli-chat to tcp only.
2021-06-09 16:58:08 +10:00
Franck Royer
0136720b48
Merge pull request #201 from status-im/174-custom-pubsub-topic 2021-06-09 16:31:54 +10:00
Franck Royer
5ce0717f05
Enable passing a custom pubsub topic
Note that we currently only support one, and only one, pubsub topic for
a given instance across the codebase. The PubSub topic needs to be set
when instantiating the Waku* classes.

At this stage, we believe that most DApp will use, and only use, the
default PubSub topic. Some application want to use an alternative topic
but not use the default one so this behaviour should be fine. See #174
for details.
2021-06-09 15:00:03 +10:00
Franck Royer
f0f14f9995
Rename type before introducing CreateOptions 2021-06-09 15:00:03 +10:00
Franck Royer
eb521b4dbd
Extract subscription logic from start method 2021-06-09 15:00:02 +10:00
Franck Royer
4366618bda
Exclude internal methods from doc
At this stage we don't want developers to use any GossipSub method but
iinstead improve the WakuRelay interface.
2021-06-09 15:00:02 +10:00
Franck Royer
d8629b7fbc
Define type for WakuRelay create options 2021-06-09 15:00:02 +10:00
Franck Royer
f17a008278
Separate the libp2p create options from Waku's 2021-06-09 15:00:02 +10:00
Franck Royer
e2e14167b3
Merge pull request #198 from status-im/discord-invite
Update discord link
2021-06-09 10:06:48 +10:00
Franck Royer
817c3b0c92
Update discord link 2021-06-08 21:12:46 +10:00
Franck Royer
8834f25111
Merge pull request #197 from status-im/split-use-effect
Split useEffect calls
2021-06-04 16:03:58 +10:00
Franck Royer
0d00328715
Split useEffect calls
Better React practice.
2021-06-04 15:25:53 +10:00
Franck Royer
ad4101f612
Merge pull request #196 from status-im/195-persist-nick 2021-06-04 15:25:43 +10:00
Franck Royer
6b48c55266
Persist nick 2021-06-04 15:15:07 +10:00
Franck Royer
b90b66c5f6
Add comment 2021-06-04 14:59:40 +10:00
Franck Royer
a8d922d19e
Merge pull request #191 from status-im/templates 2021-06-04 10:28:12 +10:00
Franck Royer
e163849c30
Update pull request template
Adopting a Problem/Solution format.
2021-06-04 10:18:54 +10:00
Franck Royer
50c50c852c
Update issue template
Adopting a Problem/Solution format.
2021-06-03 18:39:08 +10:00
Franck Royer
b5be35e057
Remove extra contributing file 2021-06-03 18:39:08 +10:00
Franck Royer
9a250954c8
Merge pull request #188 from status-im/toy-chat-content-topic
Update toy-chat content topic
2021-06-03 18:38:40 +10:00
Franck Royer
03febcc276
Update toy-chat content topic
As per https://github.com/status-im/nim-waku/pull/583
2021-06-03 17:54:46 +10:00
Franck Royer
0e4a891576
Merge pull request #190 from status-im/topic-guidelines 2021-06-02 14:07:24 +10:00
Franck Royer
39f96f4a56
Add link to Waku v2 Toy Chat specs 2021-06-01 16:35:52 +10:00
Franck Royer
5de796ea70
Add link to new topic usage recommendation 2021-06-01 16:35:52 +10:00
Franck Royer
fdda09973c
Merge pull request #189 from status-im/pr-board
Add new PRs to board
2021-06-01 16:33:36 +10:00
Franck Royer
1735beb798
Add new PRs to board 2021-06-01 16:03:37 +10:00
Franck Royer
7e77e7ae71
Merge pull request #183 from status-im/waku-message-timestam 2021-05-31 11:56:24 +10:00
Franck Royer
553c0154d9
Use waku message timestamp as better unique key 2021-05-28 22:38:00 +10:00
Franck Royer
9e64eec2a6
Enable test encoding and decoding of WakuMessage.timestamp 2021-05-28 22:35:59 +10:00
Franck Royer
3055881c57
Proto message is expected, not the wrapping class 2021-05-28 15:59:57 +10:00
Franck Royer
ed25f823e2
Merge pull request #181 from status-im/new-chat-topic
Update chat content topic to new testnet value
2021-05-28 14:46:34 +10:00
Franck Royer
ca74f7f87a
Update chat content topic to new testnet value
Resolves #180
2021-05-28 14:32:05 +10:00
Franck Royer
71f27d4411
Merge pull request #177 from status-im/release/0.5.0 2021-05-24 14:29:28 +10:00
Franck Royer
80e7ae9d1e
Release 0.5.0 2021-05-21 15:43:34 +10:00
Franck Royer
90c90dea11
Merge pull request #176 from status-im/doc-no-inherit
Do not inherit doc for Waku Relay
2021-05-21 15:40:11 +10:00
Franck Royer
b13ecdd45f
Do not inherit doc for Waku Relay
As it clutters the documentation and at this stage we do not expect
users to use inherited methods.
2021-05-21 11:47:17 +10:00
Franck Royer
f3c5a5dcec
Merge pull request #173 from status-im/do-not-start-unnecessary-nodes
Ensure that no unnecessary js node are started for interop tests
2021-05-21 10:16:12 +10:00
Franck Royer
c347ec28b4
Ensure that no unnecessary js node are started for interop tests
Indeed, the beforeEach/afterEach methods are called for all tests in the
block, including interop tests.
2021-05-20 15:49:13 +10:00
Franck Royer
0263a38e04
Merge pull request #172 from status-im/remove-warnings
Remove warning
2021-05-20 15:48:58 +10:00
Franck Royer
ed69122ac3
Remove warning 2021-05-19 12:55:39 +10:00
Franck Royer
8e1f82563e
Merge pull request #170 from status-im/151-light-push 2021-05-19 12:49:37 +10:00
Franck Royer
f23310aaf5
Remove outdated comment 2021-05-19 12:29:30 +10:00
Franck Royer
90e224577f
Add --help command 2021-05-19 12:29:30 +10:00
Franck Royer
2ea17bfdfa
Use light push to send messages if it's passed 2021-05-19 12:29:29 +10:00
Franck Royer
fb7e9f2b9e
Get messages from store in chronological order 2021-05-19 12:29:29 +10:00
Franck Royer
de3aea626a
Implement Light Push protocol 2021-05-19 12:29:29 +10:00
Franck Royer
a0699c423b
Merge pull request #169 from status-im/remove-mergify
Mergify does odd manipulation of tokens
2021-05-18 16:23:14 +10:00
Franck Royer
7e47e24884
Mergify does odd manipulation of tokens 2021-05-18 16:11:18 +10:00
Franck Royer
2825e785f1
Merge pull request #168 from status-im/release/0.4.0
Release 0.4.0
2021-05-18 14:26:08 +10:00
Franck Royer
85dd64b81e
Release 0.4.0 2021-05-18 14:14:18 +10:00
Franck Royer
85f2b84cd6
Merge pull request #167 from status-im/default-fleet 2021-05-18 14:10:36 +10:00
Franck Royer
c4c259f47a
Connect cli chat to prod fleet upon passing --prod 2021-05-18 13:51:11 +10:00
Franck Royer
a69c483c46
Connect to prod fleet by default, test fleet for local development 2021-05-18 13:51:11 +10:00
Franck Royer
2cd87b561d
Expose Enviroment & Protocol enums to pass to getStatusFleetNodes 2021-05-18 13:45:49 +10:00
Franck Royer
537a2b73a7
Use prod nodes by default instead of test 2021-05-18 13:26:42 +10:00
Franck Royer
fb99d6025d
Merge pull request #158 from status-im/138-web-chat-archived-messages 2021-05-18 13:20:25 +10:00
Franck Royer
3f5484f6ed
Use callback option in web-chat 2021-05-17 16:32:34 +10:00
Franck Royer
243b6629c3
Add callback option to store query 2021-05-17 16:32:34 +10:00
Franck Royer
4b6fe84392
Use one object as we are increasing the number of parameters 2021-05-17 16:32:33 +10:00
Franck Royer
d1ef76f7f9
Merge pull request #166 from status-im/fix-gh-actions
Fix actions/checkout@v2.3.3
2021-05-17 14:04:46 +10:00
Franck Royer
25cb167a6e
Fix actions/checkout@v2.3.3
As per https://github.com/actions/checkout/issues/417#issuecomment-775293723
2021-05-17 13:42:28 +10:00
Franck Royer
93f5a8e41e
Merge pull request #163 from status-im/upgrade-nim-waku-0.3 2021-05-16 18:08:21 +10:00
Franck Royer
703b50cfae
Upgrade nim-waku to v0.3 2021-05-16 14:43:07 +10:00
Franck Royer
c2266e0c46
Do not pull nim-waku master
Will try to keep compatibility with released versions instead.
2021-05-16 14:43:07 +10:00
Franck Royer
df4cc040e3
Merge pull request #164 from status-im/D4nte-patch-1
Fix link
2021-05-15 22:19:54 +10:00
Franck Royer
1f081718dd
Fix link 2021-05-15 22:00:29 +10:00
Franck Royer
712cb2759c
Merge pull request #162 from status-im/release/0.3.0
Release 0.3.0
2021-05-15 21:54:04 +10:00
Franck Royer
5ab9964191
Release 0.3.0 2021-05-15 21:25:20 +10:00
Franck Royer
e8fcc63e21
Merge pull request #161 from status-im/readme-update 2021-05-15 21:23:54 +10:00
Franck Royer
2f272634bc
Add link to release changelog 2021-05-15 21:04:19 +10:00
Franck Royer
6d957b62e1
Add doc for getStatusFleetNodes 2021-05-15 21:04:19 +10:00
Franck Royer
b53baf87ba
Mention discord channel 2021-05-15 20:41:05 +10:00
Franck Royer
2bd74386cf
Merge pull request #160 from status-im/remove-yarg
Remove unused deps
2021-05-15 20:09:13 +10:00
Franck Royer
9cf83585ed
Remove unused dependencies 2021-05-15 19:57:47 +10:00
Franck Royer
cab9be4782
Merge pull request #156 from status-im/55-auto-select 2021-05-15 19:57:32 +10:00
Franck Royer
79bef35460
Add and use getStatusFleetNodes to connect to Status' wakunodes 2021-05-15 19:52:05 +10:00
Franck Royer
c6ce32dc54
Enable dialing several nodes 2021-05-15 19:45:24 +10:00
Franck Royer
35fcb4d880
Merge pull request #159 from status-im/content-topic
Clarify content topic format
2021-05-15 19:43:19 +10:00
Franck Royer
eed1d39ec5 Clarify content topic format 2021-05-14 09:14:08 +00:00
Franck Royer
40cfeb9805
Merge pull request #157 from status-im/fleet
Use status fleet instead of jdev
2021-05-14 17:09:26 +10:00
Franck Royer
0dc2ee8d40
Use status fleet instead of jdev 2021-05-14 15:49:35 +10:00
Franck Royer
ddbd93225a
Merge pull request #155 from status-im/mergify
Replace bors with mergify
2021-05-14 13:25:01 +10:00
Franck Royer
752c21ecdd
Replace bors with mergify 2021-05-14 10:03:08 +10:00
Franck Royer
5e66f40cdb
Merge pull request #154 from status-im/release/0.2.0
Release 0.2.0
2021-05-14 09:58:46 +10:00
649 changed files with 97906 additions and 85606 deletions

View File

@ -1,73 +1,165 @@
{
"version": "0.1",
"version": "0.2",
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json",
"language": "en",
"words": [
"abortable",
"acks",
"Addrs",
"ahadns",
"Alives",
"alphabeta",
"arrayify",
"Arraylike",
"asym",
"autoshard",
"autosharding",
"backoff",
"backoffs",
"bitjson",
"bitauth",
"bitjson",
"bufbuild",
"chainsafe",
"cimg",
"cipherparams",
"ciphertext",
"circleci",
"circom",
"codecov",
"codegen",
"commitlint",
"cooldown",
"dependabot",
"dialable",
"dingpu",
"discv",
"Dlazy",
"dnsaddr",
"Dockerode",
"Dout",
"Dscore",
"ecies",
"editorconfig",
"Encrypters",
"enr",
"enrs",
"enrtree",
"ephem",
"esnext",
"ethersproject",
"execa",
"exponentiate",
"extip",
"fanout",
"floodsub",
"fontsource",
"globby",
"gossipsub",
"hackathons",
"huilong",
"iasked",
"ihave",
"ihaves",
"ineed",
"IPAM",
"ipfs",
"isready",
"iwant",
"jdev",
"jswaku",
"kdfparams",
"keccak",
"keypair",
"lamport",
"lastpub",
"libauth",
"libp",
"lightpush",
"LINEA",
"livechat",
"Merkle",
"mkdir",
"multiaddr",
"multiaddrs",
"multicodecs",
"mplex",
"multiaddr",
"multiaddresses",
"multiaddrs",
"multicodec",
"multicodecs",
"multiformats",
"multihashes",
"muxed",
"muxer",
"muxers",
"mvps",
"nodekey",
"nwaku",
"opendns",
"peerhave",
"portfinder",
"prettierignore",
"proto",
"protobuf",
"protoc",
"proxiable",
"reactjs",
"recid",
"rlnrelay",
"rlnv",
"roadmap",
"sandboxed",
"scanf",
"secio",
"seckey",
"secp",
"sharded",
"sscanf",
"Startable",
"staticnode",
"statusim",
"statusteam",
"submodule",
"submodules",
"supercrypto",
"transpiled",
"typedoc",
"undialable",
"unencrypted",
"unhandle",
"unmarshal",
"unmount",
"unmounts",
"unsubscription",
"untracked",
"upgrader",
"vacp",
"varint",
"viem",
"vkey",
"wagmi",
"waku",
"wakuconnect",
"wakunode",
"wakuorg",
"wakuv",
"webfonts",
"websockets"
"weboko",
"websockets",
"wifi",
"WTNS",
"xsalsa20",
"zerokit",
"Привет",
"مرحبا"
],
"flagWords": [
"pubSub: pubsub",
"pubSubTopics: pubsubTopics",
"pubSubTopic: pubsubTopic",
"PubSub: Pubsub",
"PubSubTopics: PubsubTopics",
"PubSubTopic: PubsubTopic",
"DefaultPubSubTopic: DefaultPubsubTopic"
],
"flagWords": [],
"ignorePaths": [
"package.json",
"package-lock.json",
@ -76,6 +168,23 @@
"node_modules/**",
"build",
"gen",
"proto"
"proto",
"*.spec.ts",
"*.log",
"CHANGELOG.md"
],
"patterns": [
{
"name": "import",
"pattern": "/import .*/"
},
{
"name": "multiaddr",
"pattern": "//dns4/.*/"
}
],
"ignoreRegExpList": [
"import",
"multiaddr"
]
}

24
.dockerignore Normal file
View File

@ -0,0 +1,24 @@
**/node_modules
**/.git
**/.vscode
**/dist
**/build
**/.DS_Store
**/.env*
**/*.log
# Exclude all packages except browser-tests and browser-container
packages/discovery/
packages/tests/
packages/utils/
packages/sds/
packages/sdk/
packages/relay/
packages/rln/
packages/message-hash/
packages/proto/
packages/enr/
packages/interfaces/
packages/message-encryption/
packages/core/
packages/build-utils/

View File

@ -1,42 +1,130 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": "./tsconfig.dev.json" },
"parserOptions": {
"project": ["./tsconfig.json"]
},
"env": { "es6": true },
"ignorePatterns": ["node_modules", "build", "coverage", "proto"],
"ignorePatterns": [
"node_modules",
"build",
"coverage",
"proto"
],
"plugins": ["import", "eslint-comments", "functional"],
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier",
"prettier/@typescript-eslint"
"plugin:prettier/recommended"
],
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
"rules": {
"@typescript-eslint/explicit-function-return-type": ["error"],
"no-restricted-imports": [
"error",
{
"paths": [{
"name": "debug",
"message": "The usage of 'debug' package directly is disallowed. Please use the custom logger from @waku/utils instead."
}]
}
],
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"prettier/prettier": [
"error",
{
"trailingComma": "none"
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"eslint-comments/disable-enable-pair": [
"error",
{ "allowWholeFile": true }
{
"allowWholeFile": true
}
],
"eslint-comments/no-unused-disable": "error",
"import/order": [
"error",
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
{
"newlines-between": "always",
"alphabetize": {
"order": "asc"
}
}
],
"no-constant-condition": ["error", { "checkLoops": false }],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.ts",
"**/*.spec.ts",
"**/tests/**",
"**/rollup.config.js",
"**/playwright.config.ts",
"**/.eslintrc.cjs",
"**/karma.conf.cjs"
]
}
],
"sort-imports": [
"error",
{ "ignoreDeclarationSort": true, "ignoreCase": true }
],
"no-console": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-explicit-any": "warn",
"id-match": ["error", "^(?!.*[pP]ubSub)"],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "always",
"tsx": "never"
}
]
},
"overrides": [
{
"files": ["*.spec.ts", "**/test_utils/*.ts"],
"files": ["*.spec.ts", "**/test_utils/*.ts", "*.js", "*.cjs"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off"
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
}
},
{
"files": ["*.ts", "*.mts", "*.cts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
]
}
},
{
"files": ["**/ci/*.js"],
"rules": {
"no-undef": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-floating-promises": "off",
"import/no-extraneous-dependencies": "off"
}
}
]

1
.github/CODEOWNERS vendored Normal file
View File

@ -0,0 +1 @@
* @waku-org/js-waku

View File

@ -1,3 +0,0 @@
# Example Contributing Guidelines
This is an example of GitHub's contributing guidelines file. Check out GitHub's [CONTRIBUTING.md help center article](https://help.github.com/articles/setting-guidelines-for-repository-contributors/) for more information.

View File

@ -1,9 +0,0 @@
- **I'm submitting a ...**
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
- **Summary**
- **Other information** (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

View File

@ -0,0 +1,53 @@
---
name: "\U0001F680 Feature request"
about: Suggest an idea for this project
title: 'feat:'
labels: ''
assignees: ''
---
<!--
Delete not needed sections below.
-->
### Description
<!--
What problem are you facing, or what improvement are you suggesting?
- Clearly describe the problem or need.
- Explain why this feature would be useful.
-->
### User Story
<!--
Describe the feature from the perspective of the user. Use the following format:
- As a [type of user], I want to [do something], so that [reason/benefit].
Examples:
- As a developer, I want to see detailed error logs, so that I can debug issues more effectively.
- As a user, I want to be able to subscribe to a content topic without manually specifying a peer.
-->
### Proposed Solution / Feature Design
<!--
Describe how the feature should work.
- Provide a high-level summary of the solution.
- Include details on the behavior, user interaction, and functionality.
-->
#### Optional: Diagram or Draft of Design
<!--
If applicable, include visual aids or drafts to clarify your proposal.
- Attach diagrams or design drafts to illustrate your idea.
Use Mermaid syntax - https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams
-->
### Notes
<!--
Anything relevant:
- issues or previous features;
- discussion threads;
- docs;
- features in other projects;
-->

View File

@ -0,0 +1,58 @@
---
name: "\U0001FAB3 Bug report"
about: Create a report about a problem, observation or feedback.
title: 'bug: '
labels: ''
assignees: ''
---
<!--
Delete not needed sections below.
-->
### Description
<!--
Provide a clear and concise description of the bug.
- What is happening?
- What did you expect to happen?
-->
### Expected Behavior
<!--
Describe what you expected to happen.
-->
### Steps to Reproduce
<!--
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
-->
### Environment Details
<!--
Include details about your environment, such as:
- Version of js-waku packages
- Browser/Node.js version
- Operating System
- Any other context that might be relevant
-->
<details>
<summary>Logs</summary>
<!--
Include any relevant logs or error messages here.
Ensure sensitive information is redacted.
Add following flag: `debug=waku:*`
- In browser to `localStorage`.
- In NodeJS as ENV.
-->
[Paste logs here]
</details>

View File

@ -1,7 +1,30 @@
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
### Problem / Description
<!--
What problem does this PR address?
Clearly describe the issue or feature the PR aims to solve.
-->
- **What is the current behavior?** (You can also link to an open issue here)
### Solution
<!--
Describe how the problem is solved in this PR.
- Provide an overview of the changes made.
- Highlight any significant design decisions or architectural changes.
-->
- **What is the new behavior (if this is a feature change)?**
### Notes
<!--
Additional context, considerations, or information relevant to this PR.
- Are there known limitations or trade-offs in the solution?
- Include links to related discussions, documents, or references.
-->
- Resolves
- Related to
- **Other information**:
---
#### Checklist
- [ ] Code changes are **covered by unit tests**.
- [ ] Code changes are **covered by e2e tests**, if applicable.
- [ ] **Dogfooding has been performed**, if feasible.
- [ ] A **test version has been published**, if required.
- [ ] All **CI checks** pass successfully.

10
.github/actions/npm/action.yml vendored Normal file
View File

@ -0,0 +1,10 @@
name: npm i
runs:
using: "composite"
steps:
- if: ${{ github.ref == 'refs/heads/master' || github.head_ref == 'release-please--branches--master' }}
run: npm i
shell: bash
- if: ${{ github.ref != 'refs/heads/master' && github.head_ref != 'release-please--branches--master' }}
uses: bahmutov/npm-install@v1

27
.github/actions/prune-vm/action.yml vendored Normal file
View File

@ -0,0 +1,27 @@
# Inspired by https://github.com/AdityaGarg8/remove-unwanted-software
# to free up disk space. Currently removes Dotnet, Android and Haskell.
name: Remove unwanted software
description: Default GitHub runners come with a lot of unnecessary software
runs:
using: "composite"
steps:
- name: Disk space report before modification
shell: bash
run: |
echo "==> Available space before cleanup"
echo
df -h
- name: Maximize build disk space
shell: bash
run: |
set -euo pipefail
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/.ghcup
- name: Disk space report after modification
shell: bash
run: |
echo "==> Available space after cleanup"
echo
df -h

11
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
open-pull-requests-limit: 2
schedule:
interval: "daily"
versioning-strategy: increase
commit-message:
prefix: "chore(deps)"
include: "scope"

View File

@ -1,15 +1,15 @@
name: Add new issues to js-waku project board
name: Add new issues to Waku project board
on:
issues:
types: [opened]
jobs:
add-new-issue-to-new-column:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: alex-page/github-project-automation-plus@v0.6.0
- uses: actions/add-to-project@v0.5.0
with:
project: js-waku
column: New
repo-token: ${{ secrets.GH_ACTION_PROJECT_MGMT }}
project-url: https://github.com/orgs/waku-org/projects/2
github-token: ${{ secrets.ADD_TO_PROJECT_20240815 }}

View File

@ -3,107 +3,155 @@ name: CI
on:
push:
branches:
- 'main'
- 'staging'
- 'trying'
- "master"
- "staging"
- "trying"
pull_request:
workflow_dispatch:
inputs:
nim_wakunode_image:
description: "Docker hub image name taken from https://hub.docker.com/r/wakuorg/nwaku/tags. Format: wakuorg/nwaku:v0.20.0"
required: false
type: string
env:
NODE_JS: "24"
jobs:
build_and_test:
env:
BUF_VERSION: '0.41.0'
strategy:
matrix:
node: [14]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
repository: waku-org/js-waku
- name: Get nim-waku HEAD
id: nim-waku-head
shell: bash
run: cd nim-waku && echo "::set-output name=ref::$(git rev-parse HEAD)"
- name: Cache nim-waku binary
id: cache-nim-waku
uses: actions/cache@v2
- uses: actions/setup-node@v3
with:
path: |
./nim-waku/build/wakunode2
./nim-waku/vendor/rln/target/debug
key: nim-waku-build-${{ matrix.os }}-v3-${{ steps.nim-waku-head.outputs.ref }}
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build
- run: npm run check
- run: npm run doc
- name: Install NodeJS
uses: actions/setup-node@v2
proto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
node-version: ${{ matrix.node }}
# This would have been done part of npm pretest but it gives better
# visibility in the CI if done as a separate step
- name: Build wakunode2
shell: bash
run: (cd nim-waku && ./build/wakunode2 --help) || npm run nim-waku:build
- name: Ensure wakunode2 is ready
shell: bash
run: cd nim-waku && ./build/wakunode2 --help
- name: Cache buf binary
id: cache-buf-bin
uses: actions/cache@v2
repository: waku-org/js-waku
- uses: actions/setup-node@v3
with:
path: /opt/hostedtoolcache/buf/
key: buf-bin-v${{ env.BUF_VERSION }}-ubuntu-latest-v1
- name: Install bufbuild
uses: mu-io/setup-buf@v2beta
with:
buf-version: ${{ env.BUF_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: node-${{ matrix.os }}-${{ matrix.node }}-v1-${{ hashFiles('**/package-lock.json') }}
- name: install using npm ci
uses: bahmutov/npm-install@v1
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- name: Generate protobuf code
run: npm run proto
run: |
npm run proto
npm run fix
- name: Check all protobuf code was committed
shell: bash
run: |
[ $(git status --short --ignore-submodules|wc -l) -eq 0 ]
res=$(git status --short --ignore-submodules)
echo -n "'$res'" # For debug purposes
[ $(echo -n "$res"|wc -l) -eq 0 ]
- name: build
run: npm run build
- name: Check no proto files changed
shell: bash
run: |
[ $(git status --short --ignore-submodules|wc -l) -eq 0 ]
- name: test
env:
DEBUG: "waku:nim-waku*,waku:test*"
run: npm run test
- name: Upload logs on failure
uses: actions/upload-artifact@v2
if: failure()
browser:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.56.1-jammy
env:
HOME: "/root"
steps:
- uses: actions/checkout@v3
with:
name: nim-waku-logs
path: log/
repository: waku-org/js-waku
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build:esm
- run: npm run test:browser
node:
uses: ./.github/workflows/test-node.yml
secrets: inherit
with:
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.36.0' }}
test_type: node
allure_reports: true
node_optional:
uses: ./.github/workflows/test-node.yml
with:
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.36.0' }}
test_type: node-optional
node_with_nwaku_master:
uses: ./.github/workflows/test-node.yml
with:
nim_wakunode_image: harbor.status.im/wakuorg/nwaku:latest
test_type: nwaku-master
maybe-release:
name: release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [check, proto, browser, node]
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.CI_TOKEN }}
- uses: actions/checkout@v3
with:
repository: waku-org/js-waku
if: ${{ steps.release.outputs.releases_created }}
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.releases_created }}
with:
node-version: ${{ env.NODE_JS }}
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v4
if: ${{ steps.release.outputs.releases_created }}
with:
version: 9
- run: npm install
if: ${{ steps.release.outputs.releases_created }}
- run: npm run build
if: ${{ steps.release.outputs.releases_created }}
- name: Setup Foundry
if: ${{ steps.release.outputs.releases_created }}
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Generate RLN contract ABIs
id: rln-abi
if: ${{ steps.release.outputs.releases_created }}
run: |
npm run setup:contract-abi -w @waku/rln || {
echo "::warning::Failed to generate contract ABIs, marking @waku/rln as private to skip publishing"
cd packages/rln
node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.private = true; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
echo "failed=true" >> $GITHUB_OUTPUT
}
- name: Rebuild with new ABIs
if: ${{ steps.release.outputs.releases_created && steps.rln-abi.outputs.failed != 'true' }}
run: |
npm install -w packages/rln
npm run build -w @waku/rln || {
echo "::warning::Failed to build @waku/rln, marking as private to skip publishing"
cd packages/rln
node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.private = true; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
}
- run: npm run publish
if: ${{ steps.release.outputs.releases_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }}

View File

@ -0,0 +1,29 @@
name: "Conventional PR"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
name: Validate Pull Request Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# fix: bug fix on prod code
# feat: new feature on prod code
# test: only modify test or test utils
# doc: only modify docs/comments
# chore: anything else
types: |
fix
feat
test
doc
chore

View File

@ -1,61 +0,0 @@
name: Webchat Deploy GH Pages
on:
push:
branches:
- 'main'
jobs:
deploy_gh_pages:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set git author identity
run: |
git config user.name "GitHub Action On js-waku Repo"
git config user.email "franck+ghpages@status.im"
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: node-v1-${{ hashFiles('**/package-lock.json') }}
- name: "[js-waku] install using npm ci"
uses: bahmutov/npm-install@v1
- name: "[js-waku] build"
run: npm run build
- name: install using npm i
run: npm install
working-directory: examples/web-chat
- name: build web app
run: npm run build
working-directory: examples/web-chat
- name: Deploy web chat app on gh pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./examples/web-chat/build
- name: Generate docs
run: npm run doc:html
- name: Deploy documentation on gh pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true # Do not delete web chat app
publish_dir: ./build/docs
destination_dir: docs

View File

@ -1,45 +0,0 @@
name: Examples CI
on:
push:
branches:
- 'main'
- 'staging'
- 'trying'
pull_request:
jobs:
examples_build_and_test:
strategy:
matrix:
example: [ cli-chat, web-chat ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: examples-node-v1-${{ hashFiles('**/package-lock.json') }}
- name: "[js-waku] install using npm ci"
uses: bahmutov/npm-install@v1
- name: "[js-waku] build"
run: npm run build
- name: ${{ matrix.example }} install using npm i
run: npm install
working-directory: examples/${{ matrix.example }}
- name: ${{ matrix.example }} test
run: npm run test
working-directory: examples/${{ matrix.example }}

26
.github/workflows/fleet-checker.yml vendored Normal file
View File

@ -0,0 +1,26 @@
on:
workflow_dispatch:
env:
NODE_JS: "22"
jobs:
pre-release:
name: fleet-checker
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v3
with:
repository: waku-org/js-waku
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_JS }}
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm run build
- run: node --unhandled-rejections=none ./ci/wss-checker.js

40
.github/workflows/playwright.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Playwright tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
NODE_JS: "22"
# Firefox in container fails due to $HOME not being owned by user running commands
# more details https://github.com/microsoft/playwright/issues/6500
HOME: "/root"
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.56.1-jammy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- name: Build entire monorepo
run: npm run build
- name: Run Playwright tests
run: npm run test --workspace=@waku/browser-tests
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

62
.github/workflows/pre-release.yml vendored Normal file
View File

@ -0,0 +1,62 @@
on:
workflow_dispatch:
env:
NODE_JS: "24"
permissions:
id-token: write
contents: read
jobs:
pre-release:
name: pre-release
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
with:
repository: waku-org/js-waku
ref: ${{ github.ref }}
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_JS }}
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v4
with:
version: 9
- run: npm install
- run: npm run build
- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Generate RLN contract ABIs
id: rln-abi
run: |
npm run setup:contract-abi -w @waku/rln || {
echo "::warning::Failed to generate contract ABIs, marking @waku/rln as private to skip publishing"
cd packages/rln
node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.private = true; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
echo "failed=true" >> $GITHUB_OUTPUT
}
- name: Rebuild with new ABIs
if: steps.rln-abi.outputs.failed != 'true'
run: |
npm install -w packages/rln
npm run build -w @waku/rln || {
echo "::warning::Failed to build @waku/rln, marking as private to skip publishing"
cd packages/rln
node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.private = true; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
}
- run: npm run publish -- --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }}

14
.github/workflows/size-limit.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: "size"
on:
pull_request:
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- uses: fryorcraken/size-limit-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

128
.github/workflows/test-node.yml vendored Normal file
View File

@ -0,0 +1,128 @@
# WARNING: This workflow is used by upstream workflows (jswaku, nwaku, gowaku) via workflow_call.
# DO NOT modify the name, inputs, or other parts of this workflow that might break upstream CI.
name: Run Test
on:
workflow_call:
# IMPORTANT: Do not change the name or properties of these inputs.
# If you add new required inputs make sure that they have default value or you make the change upstream as well
inputs:
nim_wakunode_image:
required: true
type: string
test_type:
required: true
type: string
debug:
required: false
type: string
default: ''
allure_reports:
required: false
type: boolean
default: false
env:
NODE_JS: "24"
# Ensure test type conditions remain consistent.
WAKU_SERVICE_NODE_PARAMS: ${{ (inputs.test_type == 'go-waku-master') && '--min-relay-peers-to-publish=0' || '' }}
DEBUG: ${{ inputs.debug }}
GITHUB_TOKEN: ${{ secrets.DEPLOY_TEST_REPORTS_PAT }}
jobs:
node:
runs-on: ubuntu-latest
env:
WAKUNODE_IMAGE: ${{ inputs.nim_wakunode_image }}
ALLURE_REPORTS: ${{ inputs.allure_reports }}
permissions:
contents: read
actions: read
checks: write
steps:
- uses: actions/checkout@v3
with:
repository: waku-org/js-waku
- name: Remove unwanted software
uses: ./.github/actions/prune-vm
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build:esm
- name: Run tests
timeout-minutes: 30
run: ${{ (inputs.test_type == 'node-optional') && 'npm run test:optional --workspace=@waku/tests' || 'npm run test:node' }}
- name: Merge allure reports
if: always() && env.ALLURE_REPORTS == 'true'
run: node ci/mergeAllureResults.cjs
- name: Get allure history
if: always() && env.ALLURE_REPORTS == 'true'
uses: actions/checkout@v3
continue-on-error: true
with:
repository: waku-org/allure-jswaku
ref: gh-pages
path: gh-pages
token: ${{ env.GITHUB_TOKEN }}
- name: Setup allure report
if: always() && env.ALLURE_REPORTS == 'true'
uses: simple-elf/allure-report-action@master
id: allure-report
with:
allure_results: allure-results
gh_pages: gh-pages
allure_history: allure-history
keep_reports: 30
- name: Deploy report to Github Pages
if: always() && env.ALLURE_REPORTS == 'true'
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ env.GITHUB_TOKEN }}
external_repository: waku-org/allure-jswaku
publish_branch: gh-pages
publish_dir: allure-history
- name: Upload debug logs on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ inputs.test_type }}-debug.log
path: debug.log
- name: Sanitize log filenames
if: failure()
run: |
find packages/tests/log/ -type f | while read fname; do
dir=$(dirname "$fname")
base=$(basename "$fname")
sanitized_base=$(echo $base | tr -d '\"*:<>?|' | sed 's/[\\/\r\n]/_/g' | sed 's/_$//')
if [ "$base" != "$sanitized_base" ]; then
mv "$fname" "$dir/$sanitized_base"
fi
done
- name: Upload logs on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ inputs.test_type }}-logs
path: packages/tests/log/
- name: Create test summary
if: always() && env.ALLURE_REPORTS == 'true'
run: |
echo "## Run Information" >> $GITHUB_STEP_SUMMARY
echo "- **NWAKU**: ${{ env.WAKUNODE_IMAGE }}" >> $GITHUB_STEP_SUMMARY
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
echo "Allure report will be available at: https://waku-org.github.io/allure-jswaku/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY

106
.github/workflows/test-reliability.yml vendored Normal file
View File

@ -0,0 +1,106 @@
name: Run Reliability Test
on:
workflow_dispatch:
inputs:
test_type:
description: 'Type of reliability test to run'
required: true
default: 'longevity'
type: choice
options:
- longevity
- high-throughput
- throughput-sizes
- network-latency
- low-bandwidth
- packet-loss
- all
env:
NODE_JS: "24"
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
checks: write
strategy:
matrix:
test_type: [longevity, high-throughput, throughput-sizes, network-latency, low-bandwidth, packet-loss]
fail-fast: false
if: ${{ github.event.inputs.test_type == 'all' }}
steps:
- uses: actions/checkout@v3
with:
repository: waku-org/js-waku
- name: Remove unwanted software
uses: ./.github/actions/prune-vm
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build:esm
- name: Run tests
timeout-minutes: 150
run: |
if [ "${{ matrix.test_type }}" = "high-throughput" ]; then
npm run test:high-throughput
elif [ "${{ matrix.test_type }}" = "throughput-sizes" ]; then
npm run test:throughput-sizes
elif [ "${{ matrix.test_type }}" = "network-latency" ]; then
npm run test:network-latency
elif [ "${{ matrix.test_type }}" = "low-bandwidth" ]; then
npm run test:low-bandwidth
elif [ "${{ matrix.test_type }}" = "packet-loss" ]; then
npm run test:packet-loss
else
npm run test:longevity
fi
single-test:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
checks: write
if: ${{ github.event.inputs.test_type != 'all' }}
steps:
- uses: actions/checkout@v3
with:
repository: waku-org/js-waku
- name: Remove unwanted software
uses: ./.github/actions/prune-vm
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build:esm
- name: Run tests
timeout-minutes: 150
run: |
if [ "${{ github.event.inputs.test_type }}" = "high-throughput" ]; then
npm run test:high-throughput
elif [ "${{ github.event.inputs.test_type }}" = "throughput-sizes" ]; then
npm run test:throughput-sizes
elif [ "${{ github.event.inputs.test_type }}" = "network-latency" ]; then
npm run test:network-latency
elif [ "${{ github.event.inputs.test_type }}" = "low-bandwidth" ]; then
npm run test:low-bandwidth
elif [ "${{ github.event.inputs.test_type }}" = "packet-loss" ]; then
npm run test:packet-loss
else
npm run test:longevity
fi

20
.gitignore vendored
View File

@ -1,9 +1,23 @@
.idea/*
.nyc_output
.angular
build
bundle
dist
node_modules
test
src/**.js
coverage
*.log
yarn.lock
*.tsbuildinfo
docs
test-results
playwright-report
example
packages/discovery/mock_local_storage
.cursorrules
.giga
.cursor
.DS_Store
CLAUDE.md
.env
postgres-data/
packages/rln/waku-rlnv2-contract/

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "nim-waku"]
path = nim-waku
url = https://github.com/status-im/nim-waku.git

1
.husky/pre-commit Normal file
View File

@ -0,0 +1 @@
npx lint-staged

View File

@ -1,6 +0,0 @@
{
"extension": ["ts"],
"spec": "src/**/*.spec.ts",
"require": "ts-node/register",
"exit": true
}

View File

@ -1,3 +1,9 @@
# package.json is formatted by package managers, so we ignore it here
package.json
gen
.github
.husky
.vscode
nwaku
*/**/build
*/**/bundle
*/**/dist
*/**/node_modules
*/**/CHANGELOG.md

View File

@ -0,0 +1,15 @@
{
"packages/utils": "0.0.27",
"packages/proto": "0.0.15",
"packages/interfaces": "0.0.34",
"packages/enr": "0.0.33",
"packages/core": "0.0.40",
"packages/message-encryption": "0.0.38",
"packages/relay": "0.0.23",
"packages/sdk": "0.0.36",
"packages/discovery": "0.0.13",
"packages/sds": "0.0.8",
"packages/rln": "0.1.10",
"packages/react": "0.0.8",
"packages/run": "0.0.2"
}

65
.size-limit.cjs Normal file
View File

@ -0,0 +1,65 @@
module.exports = [
{
name: "Waku node",
path: "packages/sdk/bundle/index.js",
import: "{ WakuNode }",
},
{
name: "Waku Simple Light Node",
path: ["packages/sdk/bundle/index.js", "packages/core/bundle/index.js"],
import: {
"packages/sdk/bundle/index.js":
"{ createLightNode, createEncoder, createDecoder, bytesToUtf8, utf8ToBytes, Decoder, Encoder, DecodedMessage, WakuNode }",
},
},
{
name: "ECIES encryption",
path: "packages/message-encryption/bundle/ecies.js",
import: "{ generatePrivateKey, createEncoder, createDecoder }",
},
{
name: "Symmetric encryption",
path: "packages/message-encryption/bundle/symmetric.js",
import: "{ generateSymmetricKey, createEncoder, createDecoder }",
},
{
name: "DNS discovery",
path: "packages/discovery/bundle/index.js",
import: "{ PeerDiscoveryDns }",
},
{
name: "Peer Exchange discovery",
path: "packages/discovery/bundle/index.js",
import: "{ wakuPeerExchangeDiscovery }",
},
{
name: "Peer Cache Discovery",
path: "packages/discovery/bundle/index.js",
import: "{ wakuPeerCacheDiscovery }",
},
{
name: "Privacy preserving protocols",
path: "packages/relay/bundle/index.js",
import: "{ Relay }",
},
{
name: "Waku Filter",
path: "packages/sdk/bundle/index.js",
import: "{ Filter }",
},
{
name: "Waku LightPush",
path: "packages/sdk/bundle/index.js",
import: "{ LightPush }",
},
{
name: "History retrieval protocols",
path: "packages/sdk/bundle/index.js",
import: "{ Store }",
},
{
name: "Deterministic Message Hashing",
path: ["packages/core/bundle/index.js"],
import: "{ messageHash }",
},
];

View File

@ -1,7 +1,11 @@
{
"cSpell.userWords": [], // only use words from .cspell.json
"cSpell.enabled": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": false, // Disable general format on save
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}

View File

@ -1,34 +0,0 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.2.0] - 2021-05-14
### Added
- `WakuRelay.getPeers` method.
- Use `WakuRelay.getPeers` in web chat app example to disable send button.
### Changed
- Enable passing `string`s to `addPeerToAddressBook`.
- Use `addPeerToAddressBook` in examples and usage doc.
- Settle on `js-waku` name across the board.
- **Breaking**: `RelayDefaultTopic` renamed to `DefaultPubsubTopic`.
## [0.1.0] - 2021-05-12
### Added
- Add usage section to the README.
- Support of [Waku v2 Relay](https://rfc.vac.dev/spec/11/).
- Support of [Waku v2 Store](https://rfc.vac.dev/spec/13/).
- [Node Chat App example](./examples/cli-chat).
- [ReactJS Chat App example](./examples/web-chat).
- [Typedoc Documentation](https://status-im.github.io/js-waku/docs).
[Unreleased]: https://github.com/status-im/js-waku/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/status-im/js-waku/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/status-im/js-waku/compare/f46ce77f57c08866873b5c80acd052e0ddba8bc9...v0.1.0

View File

@ -11,28 +11,35 @@ This project board is to prioritize the work of core contributors so do not be d
Do note that we have a [CI](./.github/workflows/ci.yml) powered by GitHub Action.
To help ensure your PR passes, just run before committing:
- `npm run fix`: To format your code,
- `npm run test`: To run all tests, including lint checks.
- `npm run fix`: To format your code,
- `npm run check`: To check your code for linting errors,
- `npm run test`: To run all tests
## Build & Test
To build and test this repository, you need:
- [Node.js & npm](https://nodejs.org/en/)
- [bufbuild](https://github.com/bufbuild/buf) (only if changing protobuf files)
- [protoc](https://grpc.io/docs/protoc-installation/) (only if changing protobuf files)
- [Node.js & npm](https://nodejs.org/en/).
- Chrome (for browser testing).
Run `npm run build` at least once so that intra-dependencies are resolved.
To ensure interoperability with [nim-waku](https://github.com/status-im/nim-waku/), some tests are run against a nim-waku node.
This is why `nim-waku` is present as a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules), which itself contain several submodules.
At this stage, it is not possible to exclude nim-waku tests, hence `git submodule update --init --recursive` is run before testing (see [`pretest` script](https://github.com/status-im/js-waku/blob/main/package.json)).
This is why the relevant docker images for the node is pulled as part of the `pretest` script that runs before `npm run test`.
To build nim-waku, you also need [Rust](https://www.rust-lang.org/tools/install).
If you do not want to run `npm run test`, you can still pull the relevant nim-waku docker image by running `npm run pretest`.
Note that we run tests in both NodeJS and browser environments (using [karma](https://karma-runner.github.io/)).
Files named `*.node.spec.ts` are only run in NodeJS environment;
Files named `*.spec.ts` are run in both NodeJS and browser environment.
## Guidelines
- Please follow [Chris Beam's commit message guide](https://chris.beams.io/posts/git-commit/),
- Usually best to test new code,
- Please follow [Chris Beam's commit message guide](https://chris.beams.io/posts/git-commit/) for commit patches,
- Please test new code, we use [mocha](https://mochajs.org/),
[chai](https://www.chaijs.com/),
[fast-check](https://github.com/dubzzz/fast-check)
and [karma](https://karma-runner.github.io/).
### Committing Patches
@ -56,3 +63,11 @@ Commit messages should never contain any `@` mentions (usernames prefixed with "
Please refer to the [Git manual](https://git-scm.com/doc) for more information
about Git.
### Releasing
`js-waku` has two types of releases:
- public releases;
- pre releases;
Public releases happen by merging PRs opened by `release-please` action.
Pre releases happen manually by triggering [this workflow](https://github.com/waku-org/js-waku/actions/workflows/pre-release.yml)

186
README.md
View File

@ -1,183 +1,59 @@
![GitHub Action](https://img.shields.io/github/actions/workflow/status/waku-org/js-waku/ci.yml?branch=master)
![Code Climate](https://img.shields.io/codeclimate/maintainability/waku-org/js-waku)
[![Discord chat](https://img.shields.io/discord/1110799176264056863.svg?logo=discord&colorB=7289DA)](https://discord.waku.org)
# js-waku
A JavaScript implementation of the [Waku v2 protocol](https://rfc.vac.dev/spec/10/).
A TypeScript implementation of the [Waku v2 protocol](https://rfc.vac.dev/spec/10/).
## Usage
## Documentation
Install `js-waku` package:
```shell
npm install js-waku
```
Start a waku node:
```javascript
import { Waku } from 'js-waku';
const waku = await Waku.create();
```
Connect to a new peer:
```javascript
import { multiaddr } from 'multiaddr';
import PeerId from 'peer-id';
// Directly dial a new peer
await waku.dial('/dns4/node-01.do-ams3.jdev.misc.statusim.net/tcp/7010/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ');
// Or, add peer to address book so it auto dials in the background
waku.addPeerToAddressBook(
'16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ',
['/dns4/node-01.do-ams3.jdev.misc.statusim.net/tcp/7010/wss']
);
```
The `contentTopic` is a metadata `string` that allows categorization of messages on the waku network.
Depending on your use case, you can either create a new `contentTopic` or look at the [RFCs](https://rfc.vac.dev/) and use an existing `contentTopic`.
See the [Waku v2 Message spec](https://rfc.vac.dev/spec/14/) for more details.
Listen to new messages received via [Waku v2 Relay](https://rfc.vac.dev/spec/11/), filtering the `contentTopic` to `waku/2/my-cool-app/proto`:
```javascript
waku.relay.addObserver((msg) => {
console.log("Message received:", msg.payloadAsUtf8)
}, ["waku/2/my-cool-app/proto"]);
```
Send a message on the waku relay network:
```javascript
import { WakuMessage } from 'js-waku';
const msg = WakuMessage.fromUtf8String("Here is a message!", "waku/2/my-cool-app/proto")
await waku.relay.send(msg);
```
The [Waku v2 Store protocol](https://rfc.vac.dev/spec/13/) enables full nodes to store messages received via relay
and clients to retrieve them (e.g. after resuming connectivity).
The protocol implements pagination meaning that it may take several queries to retrieve all messages.
Query a waku store peer to check historical messages:
```javascript
// Process messages once they are all retrieved:
const messages = await waku.store.queryHistory(storePeerId, ["waku/2/my-cool-app/proto"]);
messages.forEach((msg) => {
console.log("Message retrieved:", msg.payloadAsUtf8)
})
// Or, pass a callback function to be executed as pages are received:
waku.store.queryHistory(storePeerId, ["waku/2/my-cool-app/proto"],
(messages) => {
messages.forEach((msg) => {
console.log("Message retrieved:", msg.payloadAsUtf8)
})
});
```
Find more [examples](#examples) below
or checkout the latest `main` branch documentation at [https://status-im.github.io/js-waku/docs/](https://status-im.github.io/js-waku/docs/).
Docs can also be generated locally using:
- [Quick start](https://docs.waku.org/guides/js-waku/#getting-started)
- [Full documentation](https://docs.waku.org/guides/js-waku)
- [API documentation (`master` branch)](https://js.waku.org/)
- [Waku](https://waku.org/)
- [Vac](https://vac.dev/)
API Documentation can also be generated locally:
```shell
git clone https://github.com/waku-org/js-waku.git
cd js-waku
npm install
npm run doc
```
## Waku Protocol Support
You can track progress on the [project board](https://github.com/status-im/js-waku/projects/1).
- ✔: Supported
- 🚧: Implementation in progress
- ⛔: Support is not planned
| Spec | Implementation Status |
| ---- | -------------- |
|[6/WAKU1](https://rfc.vac.dev/spec/6)|⛔|
|[7/WAKU-DATA](https://rfc.vac.dev/spec/7)|⛔|
|[8/WAKU-MAIL](https://rfc.vac.dev/spec/8)|⛔|
|[9/WAKU-RPC](https://rfc.vac.dev/spec/9)|⛔|
|[10/WAKU2](https://rfc.vac.dev/spec/10)|🚧|
|[11/WAKU2-RELAY](https://rfc.vac.dev/spec/11)|✔|
|[12/WAKU2-FILTER](https://rfc.vac.dev/spec/12)||
|[13/WAKU2-STORE](https://rfc.vac.dev/spec/13)|✔ (querying node only)|
|[14/WAKU2-MESSAGE](https://rfc.vac.dev/spec/14)|✔|
|[15/WAKU2-BRIDGE](https://rfc.vac.dev/spec/15)||
|[16/WAKU2-RPC](https://rfc.vac.dev/spec/16)|⛔|
|[17/WAKU2-RLNRELAY](https://rfc.vac.dev/spec/17)||
|[18/WAKU2-SWAP](https://rfc.vac.dev/spec/18)||
# Using Nix shell
```shell
git clone https://github.com/waku-org/js-waku.git
cd js-waku
nix develop
npm install
npm run doc
```
## Bugs, Questions & Features
If you encounter any bug or would like to propose new features, feel free to [open an issue](https://github.com/status-im/js-waku/issues/new/).
If you encounter any bug or would like to propose new features, feel free to [open an issue](https://github.com/waku-org/js-waku/issues/new/).
For support, questions & more general topics, please join the discussion on the [Vac forum](https://forum.vac.dev/tag/js-waku) (use _\#js-waku_ tag).
For general discussion, get help or latest news, join us on [Vac Discord](https://discord.gg/Nrac59MfSX) or the [Waku Telegram Group](https://t.me/waku_org).
## Examples
## Roadmap
## Web Chat App (ReactJS)
A ReactJS chat app is provided as a showcase of the library used in the browser.
A deployed version is available at https://status-im.github.io/js-waku/
Find the code in the [examples folder](https://github.com/status-im/js-waku/tree/main/examples/web-chat).
To run a development version locally, do:
```shell
git clone https://github.com/status-im/js-waku/ ; cd js-waku
npm install # Install dependencies for js-waku
npm run build # Build js-waku
cd examples/web-chat
npm install # Install dependencies for the web app
npm run start # Start development server to serve the web app on http://localhost:3000/js-waku
```
Use `/help` to see the available commands.
## CLI Chat App (NodeJS)
A node chat app is provided as a working example of the library.
It is interoperable with the [nim-waku chat app example](https://github.com/status-im/nim-waku/blob/master/examples/v2/chat2.nim).
Find the code in the [examples folder](https://github.com/status-im/js-waku/tree/main/examples/cli-chat).
To run the chat app, first ensure you have [Node.js](https://nodejs.org/en/) v14 or above:
```shell
node --version
```
Then, install and run:
```shell
git clone https://github.com/status-im/js-waku/ ; cd js-waku
npm install # Install dependencies for js-waku
npm run build # Build js-waku
cd examples/cli-chat
npm install # Install dependencies for the cli app
npm run start -- --staticNode /ip4/134.209.139.210/tcp/30303/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ
```
You can also specify an optional `listenAddr` parameter (.e.g `--listenAddr /ip4/0.0.0.0/tcp/7777/ws`).
This is only useful if you want a remote node to dial to your chat app,
it is not necessary in normal usage when you just connect to the fleet.
You can track progress on the [project board](https://github.com/orgs/waku-org/projects/2/views/1).
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md).
See [CONTRIBUTING.md](https://github.com/waku-org/js-waku/blob/master/CONTRIBUTING.md).
## License
Licensed and distributed under either of
* MIT license: [LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT
- MIT license: [LICENSE-MIT](https://github.com/waku-org/js-waku/blob/master/LICENSE-MIT) or http://opensource.org/licenses/MIT
or
* Apache License, Version 2.0, ([LICENSE-APACHE-v2](LICENSE-APACHE-v2) or http://www.apache.org/licenses/LICENSE-2.0)
- Apache License, Version 2.0, ([LICENSE-APACHE-v2](https://github.com/waku-org/js-waku/blob/master/LICENSE-APACHE-v2) or http://www.apache.org/licenses/LICENSE-2.0)
at your option. These files may not be copied, modified, or distributed except according to those terms.

View File

@ -1,8 +1,8 @@
status = [
"build_and_test (14, ubuntu-latest)",
"build_and_test (14, macos-latest)",
"examples_build_and_test (web-chat)",
"examples_build_and_test (cli-chat)"
"check",
"proto",
"browser",
"node",
]
block_labels = ["work-in-progress"]
delete_merged_branches = true

View File

@ -1,6 +0,0 @@
version: v1beta1
plugins:
- name: ts_proto
out: ./src/proto
opt: grpc_js,esModuleInterop=true

View File

@ -1,5 +0,0 @@
version: v1beta1
build:
roots:
- ./proto

71
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,71 @@
#!/usr/bin/env groovy
library 'status-jenkins-lib@v1.9.27'
pipeline {
agent {
docker {
label 'linuxcontainer'
image 'harbor.status.im/infra/ci-build-containers:linux-base-1.0.0'
args '--volume=/nix:/nix ' +
'--volume=/etc/nix:/etc/nix ' +
'--user jenkins'
}
}
options {
disableConcurrentBuilds()
disableRestartFromStage()
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
environment {
GIT_AUTHOR_NAME = 'status-im-auto'
GIT_AUTHOR_EMAIL = 'auto@status.im'
PUPPETEER_SKIP_DOWNLOAD = 'true'
NO_COLOR = 'true'
}
stages {
stage('Deps') {
steps {
script {
nix.develop('npm install', pure: true)
}
}
}
stage('Packages') {
steps {
script {
nix.develop('npm run build', pure: true)
}
}
}
stage('Build') {
steps {
script {
nix.develop('npm run doc', pure: true)
}
}
}
stage('Publish') {
when { expression { GIT_BRANCH.endsWith('master') } }
steps {
sshagent(credentials: ['status-im-auto-ssh']) {
script {
nix.develop('npm run deploy', pure: false)
}
}
}
}
}
post {
always { cleanWs() }
}
}

11
ci/README.md Normal file
View File

@ -0,0 +1,11 @@
# Description
Configuration of CI builds executed under a Jenkins instance at https://ci.status.im/.
# Website
The `Jenkinsfile.gh-pages` file builds the documentation site with this job:
https://ci.infra.status.im/job/website/job/js.waku.org/
And deploys it via `gh-pages` branch and [GitHub Pages](https://pages.github.com/) to:
https://js.waku.org/

45
ci/deploy.js Normal file
View File

@ -0,0 +1,45 @@
import { promisify } from "util";
import { publish } from "gh-pages";
/* fix for "Unhandled promise rejections" */
process.on("unhandledRejection", (err) => {
throw err;
});
const ghpublish = promisify(publish);
const Args = process.argv.slice(2);
const USE_HTTPS = Args[0] && Args[0].toUpperCase() === "HTTPS";
const branch = "gh-pages";
const org = "waku-org";
const repo = "js-waku";
/* use SSH auth by default */
let repoUrl = USE_HTTPS
? `https://github.com/${org}/${repo}.git`
: `git@github.com:${org}/${repo}.git`;
/* alternative auth using GitHub user and API token */
if (typeof process.env.GH_USER !== "undefined") {
repoUrl =
"https://" +
process.env.GH_USER +
":" +
process.env.GH_TOKEN +
"@" +
`github.com/${org}/${repo}.git`;
}
const main = async (url, branch) => {
console.log(`Pushing to: ${url}`);
console.log(`On branch: ${branch}`);
await ghpublish("docs", {
repo: url,
branch: branch,
dotfiles: true,
silent: false
});
};
void main(repoUrl, branch);

19
ci/mergeAllureResults.cjs Normal file
View File

@ -0,0 +1,19 @@
const fs = require("fs-extra");
const glob = require("glob");
const ROOT_ALLURE_RESULTS = "./allure-results"; // Target directory in the root
fs.ensureDirSync(ROOT_ALLURE_RESULTS);
const directories = glob.sync("packages/**/allure-results");
directories.forEach((dir) => {
const files = fs.readdirSync(dir);
files.forEach((file) => {
const sourcePath = `${dir}/${file}`;
const targetPath = `${ROOT_ALLURE_RESULTS}/${file}`;
fs.copyFileSync(sourcePath, targetPath);
});
});
console.log("All allure-results directories merged successfully!");

178
ci/publish.js Normal file
View File

@ -0,0 +1,178 @@
import cp from "child_process";
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";
import { promisify } from "util";
const PACKAGE_JSON = "package.json";
// hack to get __dirname
const DIR = path.dirname(fileURLToPath(import.meta.url));
const NEXT_TAG = "next";
const LATEST_TAG = "latest";
const CURRENT_TAG = readPublishTag();
const exec = promisify(cp.exec);
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
run()
.then(() => {
console.info("Successfully published packages.");
})
.catch((err) => {
console.error("Failed at publishing packages with ", err.message);
});
async function run() {
const rootPackage = await readJSON(path.resolve(DIR, "../", PACKAGE_JSON));
const workspacePaths = rootPackage.workspaces;
if (CURRENT_TAG === NEXT_TAG) {
await makeReleaseCandidate();
}
const workspaces = await Promise.all(workspacePaths.map(readWorkspace));
if (CURRENT_TAG === NEXT_TAG) {
await upgradeWakuDependencies(workspaces);
}
await Promise.all(
workspaces
.filter(async (info) => {
const allowPublishing = await shouldBePublished(info);
if (allowPublishing) {
return true;
}
return false;
})
.map(async (info) => {
try {
await exec(
`npm publish --workspace ${info.workspace} --tag ${CURRENT_TAG} --access public`
);
console.info(
`Successfully published ${info.workspace} with version ${info.version}.`
);
} catch (err) {
console.error(
`Cannot publish ${info.workspace} with version ${info.version}. Error: ${err.message}`
);
}
})
);
}
async function readJSON(path) {
const rawJSON = await readFile(path, "utf-8");
return JSON.parse(rawJSON);
}
async function writeWorkspace(packagePath, text) {
const resolvedPath = path.resolve(DIR, "../", packagePath, PACKAGE_JSON);
await writeFile(resolvedPath, text);
}
async function readWorkspace(packagePath) {
const json = await readJSON(
path.resolve(DIR, "../", packagePath, PACKAGE_JSON)
);
return {
name: json.name,
private: !!json.private,
version: json.version,
workspace: packagePath,
rawPackageJson: json
};
}
async function shouldBePublished(info) {
if (info.private) {
console.info(`Skipping ${info.name} because it is private.`);
return false;
}
try {
const npmTag = `${info.name}@${info.version}`;
const { stdout } = await exec(`npm view ${npmTag} version`);
if (stdout.trim() !== info.version.trim()) {
return true;
}
console.info(`Workspace ${info.path} is already published.`);
} catch (err) {
if (err.message.includes("code E404")) {
return true;
}
console.error(
`Cannot check published version of ${info.path}. Received error: ${err.message}`
);
}
}
async function makeReleaseCandidate() {
try {
console.info("Marking workspace versions as release candidates.");
await exec(
`npm version prerelease --preid $(git rev-parse --short HEAD) --workspaces true`
);
} catch (e) {
console.error("Failed to mark release candidate versions.");
}
}
function readPublishTag() {
const args = process.argv.slice(2);
const tagIndex = args.indexOf("--tag");
if (tagIndex !== -1 && args[tagIndex + 1]) {
return args[tagIndex + 1];
}
return LATEST_TAG;
}
async function upgradeWakuDependencies(workspaces) {
console.log("Upgrading Waku dependencies in workspaces.");
const map = workspaces.reduce((acc, item) => {
if (!item.private) {
acc[item.name] = item;
}
return acc;
}, {});
const packageNames = Object.keys(map);
const promises = workspaces.map(async (info) => {
if (info.private) {
return;
}
["dependencies", "devDependencies", "peerDependencies"].forEach((type) => {
const deps = info.rawPackageJson[type];
if (!deps) {
return;
}
packageNames.forEach((name) => {
if (deps[name]) {
deps[name] = map[name].version;
}
});
});
try {
await writeWorkspace(info.workspace, JSON.stringify(info.rawPackageJson));
} catch (error) {
console.error(
`Failed to update package.json for ${info.name} with: `,
error
);
}
});
for (const promise of promises) {
await promise;
}
}

188
ci/wss-checker.js Normal file
View File

@ -0,0 +1,188 @@
import cp from "child_process";
import { promisify } from "util";
import { createLightNode } from "@waku/sdk";
const exec = promisify(cp.exec);
class Fleet {
static async create() {
const url = "https://fleets.status.im";
try {
const response = await fetch(url);
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
const fleet = await response.json();
if (!Fleet.isRecordValid(fleet)) {
throw Error("invalid_fleet_record");
}
return new Fleet(fleet);
} catch (error) {
console.error(`Error fetching data from ${url}:`, error);
throw error;
}
}
static isRecordValid(fleet) {
let isValid = true;
if (!fleet.fleets) {
console.error("No fleet records are present.");
isValid = false;
}
if (!fleet.fleets["waku.sandbox"]) {
console.error("No waku.sandbox records are present.");
isValid = false;
} else if (!fleet.fleets["waku.sandbox"]["wss/p2p/waku"]) {
console.error("No waku.sandbox WSS multi-addresses are present.");
isValid = false;
}
if (!fleet.fleets["waku.test"]) {
console.error("No waku.test records are present.");
isValid = false;
} else if (!fleet.fleets["waku.test"]["wss/p2p/waku"]) {
console.error("No waku.test WSS multi-addresses are present.");
isValid = false;
}
if (!isValid) {
console.error(`Got ${JSON.stringify(fleet)}`);
}
return isValid;
}
constructor(fleet) {
this.fleet = fleet;
}
get sandbox() {
return this.fleet.fleets["waku.sandbox"]["wss/p2p/waku"];
}
get test() {
return this.fleet.fleets["waku.test"]["wss/p2p/waku"];
}
}
class ConnectionChecker {
static waku;
static lock = false;
static async checkPlainWss(maddrs) {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "1";
const results = await Promise.all(
maddrs.map((v) => ConnectionChecker.dialPlainWss(v))
);
console.log(
"Raw WSS connection:\n",
results.map(([addr, result]) => `${addr}:\t${result}`).join("\n")
);
return results;
}
static async dialPlainWss(maddr) {
const { domain, port } = ConnectionChecker.parseMaddr(maddr);
return [
maddr,
await ConnectionChecker.spawn(`npx wscat -c wss://${domain}:${port}`)
];
}
static async checkWakuWss(maddrs) {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
const waku = await createLightNode({
defaultBootstrap: false,
libp2p: {
hideWebSocketInfo: true
}
});
const results = await Promise.all(
maddrs.map((v) => ConnectionChecker.dialWaku(waku, v))
);
console.log(
"Libp2p WSS connection:\n",
results.map(([addr, result]) => `${addr}:\t${result}`).join("\n")
);
return results;
}
static async dialWaku(waku, maddr) {
try {
await waku.dial(maddr);
return [maddr, "OK"];
} catch (e) {
return [maddr, "FAIL"];
}
}
static parseMaddr(multiaddr) {
const regex = /\/dns4\/([^/]+)\/tcp\/(\d+)/;
const match = multiaddr.match(regex);
if (!match) {
throw new Error(
"Invalid multiaddress format. Expected /dns4/domain/tcp/port pattern."
);
}
return {
domain: match[1],
port: parseInt(match[2], 10)
};
}
static async spawn(command) {
try {
console.info(`Spawning command: ${command}`);
const { stderr } = await exec(command);
return stderr || "OK";
} catch (e) {
return "FAIL";
}
}
}
async function run() {
const fleet = await Fleet.create();
const sandbox = Object.values(fleet.sandbox);
const test = Object.values(fleet.test);
let maddrs = [...sandbox, ...test];
const plainWssResult = await ConnectionChecker.checkPlainWss(maddrs);
const wakuWssResult = await ConnectionChecker.checkWakuWss(maddrs);
const plainWssFail = plainWssResult.some(([_, status]) => status === "FAIL");
const wakuWssFail = wakuWssResult.some(([_, status]) => status === "FAIL");
if (plainWssFail || wakuWssFail) {
process.exit(1);
}
process.exit(0);
}
(async () => {
try {
await run();
} catch (error) {
console.error("Unhandled error:", error);
process.exit(1);
}
})();

View File

@ -1,35 +0,0 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": "./tsconfig.json" },
"env": { "es6": true },
"ignorePatterns": ["node_modules"],
"plugins": ["import", "eslint-comments", "functional"],
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier",
"prettier/@typescript-eslint"
],
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"eslint-comments/disable-enable-pair": [
"error",
{ "allowWholeFile": true }
],
"eslint-comments/no-unused-disable": "error",
"import/order": [
"error",
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
],
"no-constant-condition": ["error", { "checkLoops": false }],
"sort-imports": [
"error",
{ "ignoreDeclarationSort": true, "ignoreCase": true }
]
}
}

View File

@ -1,4 +0,0 @@
# Generated directories:
.nyc_output/
node_modules/
/tsconfig.tsbuildinfo

View File

@ -1,5 +0,0 @@
{
"extension": ["ts"],
"spec": "src/**/*.spec.ts",
"require": "ts-node/register"
}

View File

@ -1,3 +0,0 @@
# A NodeJS CLI Chat App powered by js-waku
See js-waku [README](../../README.md#cli-chat-app-nodejs) for details.

File diff suppressed because it is too large Load Diff

View File

@ -1,76 +0,0 @@
{
"name": "js-waku-cli-chat",
"version": "0.1.0",
"description": "A NodeJS CLI Chat App powered by js-waku",
"main": "./index.ts",
"repository": "https://github.com/status-im/js-waku",
"license": "MIT OR Apache-2.0",
"keywords": [
"waku",
"decentralised",
"communication"
],
"scripts": {
"build": "run-s build:*",
"build:main": "tsc -p tsconfig.json",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --write",
"fix:lint": "eslint src --ext .ts --fix",
"start": "ts-node src/index.ts",
"test": "run-s build test:*",
"test:lint": "eslint src --ext .ts",
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different",
"test:spelling": "cspell \"{README.md,src/**/*.ts}\" -c ../../.cspell.json",
"test:unit": "nyc --silent mocha",
"watch:build": "tsc -p tsconfig.json -w",
"watch:test": "nyc --silent mocha --watch",
"version": "standard-version",
"reset-hard": "git clean -dfx && git reset --hard && npm i"
},
"engines": {
"node": ">=14"
},
"dependencies": {
"js-waku": "../../build/main",
"libp2p-tcp": "^0.15.4",
"prompt-sync": "^4.2.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/app-root-path": "^1.2.4",
"@types/chai": "^4.2.15",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.31",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"chai": "^4.3.4",
"cspell": "^4.1.0",
"eslint": "^7.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-functional": "^3.0.2",
"eslint-plugin-import": "^2.22.0",
"mocha": "^8.3.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "^2.1.1",
"standard-version": "^9.0.0",
"ts-node": "^9.1.1",
"typedoc": "^0.20.29",
"typescript": "^4.0.2"
},
"prettier": {
"singleQuote": true
},
"files": [
"!**/*.spec.*",
"!**/*.json",
"README.md"
],
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"exclude": [
"**/*.spec.js"
]
}
}

View File

@ -1,17 +0,0 @@
import { expect } from 'chai';
import { ChatMessage } from 'js-waku';
import { formatMessage } from './chat';
describe('CLI Chat app', () => {
it('Format message', () => {
const date = new Date(234325324);
const chatMessage = ChatMessage.fromUtf8String(
date,
'alice',
'Hello world!'
);
expect(formatMessage(chatMessage)).to.match(/^<.*> alice: Hello world!$/);
});
});

View File

@ -1,130 +0,0 @@
import readline from 'readline';
import util from 'util';
import { ChatMessage, StoreCodec, Waku, WakuMessage } from 'js-waku';
import TCP from 'libp2p-tcp';
import { multiaddr, Multiaddr } from 'multiaddr';
const ChatContentTopic = 'dingpu';
export default async function startChat(): Promise<void> {
const opts = processArguments();
const waku = await Waku.create({
listenAddresses: [opts.listenAddr],
modules: { transport: [TCP] },
});
console.log('PeerId: ', waku.libp2p.peerId.toB58String());
console.log('Listening on ');
waku.libp2p.multiaddrs.forEach((address) => {
console.log(`\t- ${address}`);
});
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
let nick = 'js-waku';
try {
const question = util.promisify(rl.question).bind(rl);
// Looks like wrong type definition of promisify is picked.
// May be related to https://github.com/DefinitelyTyped/DefinitelyTyped/issues/20497
nick = ((await question(
'Please choose a nickname: '
)) as unknown) as string;
} catch (e) {
console.log('Using default nick. Due to ', e);
}
console.log(`Hi, ${nick}!`);
waku.relay.addObserver(
(message) => {
if (message.payload) {
const chatMsg = ChatMessage.decode(message.payload);
console.log(formatMessage(chatMsg));
}
},
[ChatContentTopic]
);
if (opts.staticNode) {
console.log(`Dialing ${opts.staticNode}`);
await waku.dial(opts.staticNode);
}
// If we connect to a peer with WakuStore, we run the protocol
// TODO: Instead of doing it `once` it should always be done but
// only new messages should be printed
waku.libp2p.peerStore.once(
'change:protocols',
async ({ peerId, protocols }) => {
if (protocols.includes(StoreCodec)) {
console.log(
`Retrieving archived messages from ${peerId.toB58String()}`
);
const messages = await waku.store.queryHistory(peerId, [
ChatContentTopic,
]);
messages?.map((msg) => {
if (msg.payload) {
const chatMsg = ChatMessage.decode(msg.payload);
console.log(formatMessage(chatMsg));
}
});
}
}
);
console.log('Ready to chat!');
rl.prompt();
for await (const line of rl) {
rl.prompt();
const chatMessage = ChatMessage.fromUtf8String(new Date(), nick, line);
const msg = WakuMessage.fromBytes(chatMessage.encode(), ChatContentTopic);
await waku.relay.send(msg);
}
}
interface Options {
staticNode?: Multiaddr;
listenAddr: string;
}
function processArguments(): Options {
const passedArgs = process.argv.slice(2);
let opts: Options = { listenAddr: '/ip4/0.0.0.0/tcp/0' };
while (passedArgs.length) {
const arg = passedArgs.shift();
switch (arg) {
case '--staticNode':
opts = Object.assign(opts, {
staticNode: multiaddr(passedArgs.shift()!),
});
break;
case '--listenAddr':
opts = Object.assign(opts, { listenAddr: passedArgs.shift() });
break;
default:
console.log(`Unsupported argument: ${arg}`);
process.exit(1);
}
}
return opts;
}
export function formatMessage(chatMsg: ChatMessage): string {
const timestamp = chatMsg.timestamp.toLocaleString([], {
month: 'short',
day: 'numeric',
hour: 'numeric',
minute: '2-digit',
hour12: false,
});
return `<${timestamp}> ${chatMsg.nick}: ${chatMsg.payloadAsUtf8}`;
}

View File

@ -1,5 +0,0 @@
import startChat from './chat';
(async () => {
await startChat();
})();

View File

@ -1,5 +0,0 @@
declare module 'libp2p-tcp' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const TCP: any;
export = TCP;
}

View File

@ -1,54 +0,0 @@
{
"compilerOptions": {
"incremental": true,
"target": "es2017",
"rootDir": "src",
"noEmit": true,
"moduleResolution": "node",
"module": "commonjs",
"declaration": true,
"inlineSourceMap": true,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
"resolveJsonModule": true /* Include modules imported with .json extension. */,
"strict": true /* Enable all strict type-checking options. */,
/* Strict Type-Checking Options */
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
"strictNullChecks": true /* Enable strict null checks. */,
"strictFunctionTypes": true /* Enable strict checking of function types. */,
"strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
"alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
/* Additional Checks */
"noUnusedLocals": true /* Report errors on unused locals. */,
"noUnusedParameters": true /* Report errors on unused parameters. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
"forceConsistentCasingInFileNames": true,
/* Debugging Options */
"traceResolution": false /* Report module resolution log messages. */,
"listEmittedFiles": false /* Print names of generated files part of the compilation. */,
"listFiles": false /* Print names of files part of the compilation. */,
"pretty": true /* Stylize errors and messages using color and context. */,
// Due to broken types in indirect dependencies
"skipLibCheck": true,
/* Experimental Options */
// "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
"lib": ["es2017"],
"types": ["node", "mocha"],
"typeRoots": ["node_modules/@types", "src/types"]
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules/**"],
"compileOnSave": false,
"ts-node": {
"files": true
}
}

View File

@ -1,23 +0,0 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

View File

@ -1,3 +0,0 @@
# package.json is formatted by package managers, so we ignore it here
package.json
gen

View File

@ -1,3 +0,0 @@
# A React Web Chat App powered by js-waku
See js-waku [README](../../README.md#web-chat-app-reactjs) for details.

File diff suppressed because it is too large Load Diff

View File

@ -1,63 +0,0 @@
{
"name": "web-chat",
"version": "0.1.0",
"private": true,
"homepage": "/js-waku",
"dependencies": {
"@livechat/ui-kit": "*",
"js-waku": "../../build/main",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"server-name-generator": "^1.0.5",
"web-vitals": "^1.1.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/react": "^11.2.6",
"@testing-library/user-event": "^12.8.3",
"@types/jest": "^26.0.22",
"@types/node": "^12.20.7",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
"cspell": "^5.3.12",
"gh-pages": "^3.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"react-scripts": "4.0.3",
"typescript": "^4.2.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test:unit": "react-scripts test",
"eject": "react-scripts eject",
"fix": "run-s fix:*",
"test": "run-s build test:*",
"test:lint": "eslint src --ext .ts --ext .tsx",
"test:prettier": "prettier \"src/**/*.{ts,tsx}\" \"./*.json\" --list-different",
"test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.{ts,tsx},public/**/*.html}\" -c ../../.cspell.json",
"fix:prettier": "prettier \"src/**/*.{ts,tsx}\" \"./*.json\" --write",
"fix:lint": "eslint src --ext .ts --ext .tsx --fix",
"js-waku:build": "cd ../; npm run build",
"predeploy": "run-s js-waku:build build",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}

View File

@ -1,42 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<meta
name="description"
content="Chat app powered by js-waku"
/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Waku v2 chat app</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>

View File

@ -1,25 +0,0 @@
{
"short_name": "Waku v2 chat app",
"name": "Chat app powered by js-waku",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

View File

@ -1,3 +0,0 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

View File

@ -1,38 +0,0 @@
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View File

@ -1,160 +0,0 @@
import PeerId from 'peer-id';
import { useEffect, useState } from 'react';
import './App.css';
import { ChatMessage, WakuMessage, StoreCodec, Waku } from 'js-waku';
import handleCommand from './command';
import Room from './Room';
import { WakuContext } from './WakuContext';
import { ThemeProvider } from '@livechat/ui-kit';
import { generate } from 'server-name-generator';
const themes = {
AuthorName: {
css: {
fontSize: '1.1em',
},
},
Message: {
css: {
margin: '0em',
padding: '0em',
fontSize: '0.83em',
},
},
MessageText: {
css: {
margin: '0em',
padding: '0.1em',
paddingLeft: '1em',
fontSize: '1.1em',
},
},
MessageGroup: {
css: {
margin: '0em',
padding: '0.2em',
},
},
};
export const ChatContentTopic = 'dingpu';
export default function App() {
let [newMessages, setNewMessages] = useState<ChatMessage[]>([]);
let [archivedMessages, setArchivedMessages] = useState<ChatMessage[]>([]);
let [stateWaku, setWaku] = useState<Waku | undefined>(undefined);
let [nick, setNick] = useState<string>(generate());
useEffect(() => {
const handleRelayMessage = (wakuMsg: WakuMessage) => {
if (wakuMsg.payload) {
const chatMsg = ChatMessage.decode(wakuMsg.payload);
if (chatMsg) {
setNewMessages([chatMsg]);
}
}
};
const handleProtocolChange = async (
waku: Waku,
{ peerId, protocols }: { peerId: PeerId; protocols: string[] }
) => {
if (protocols.includes(StoreCodec)) {
console.log(`${peerId.toB58String()}: retrieving archived messages}`);
try {
const response = await waku.store.queryHistory(peerId, [
ChatContentTopic,
]);
console.log(`${peerId.toB58String()}: messages retrieved:`, response);
if (response) {
const messages = response
.map((wakuMsg) => wakuMsg.payload)
.filter((payload) => !!payload)
.map((payload) => ChatMessage.decode(payload as Uint8Array));
setArchivedMessages(messages);
}
} catch (e) {
console.log(
`${peerId.toB58String()}: error encountered when retrieving archived messages`,
e
);
}
}
};
if (!stateWaku) {
initWaku(setWaku)
.then(() => console.log('Waku init done'))
.catch((e) => console.log('Waku init failed ', e));
} else {
stateWaku.relay.addObserver(handleRelayMessage, [ChatContentTopic]);
stateWaku.libp2p.peerStore.on(
'change:protocols',
handleProtocolChange.bind({}, stateWaku)
);
// To clean up listener when component unmounts
return () => {
stateWaku?.libp2p.peerStore.removeListener(
'change:protocols',
handleProtocolChange.bind({}, stateWaku)
);
};
}
}, [stateWaku]);
return (
<div
className="chat-app"
style={{ height: '100vh', width: '100vw', overflow: 'hidden' }}
>
<WakuContext.Provider value={{ waku: stateWaku }}>
<ThemeProvider theme={themes}>
<Room
nick={nick}
newMessages={newMessages}
archivedMessages={archivedMessages}
commandHandler={(input: string) => {
const { command, response } = handleCommand(
input,
stateWaku,
setNick
);
const commandMessages = response.map((msg) => {
return ChatMessage.fromUtf8String(new Date(), command, msg);
});
setNewMessages(commandMessages);
}}
/>
</ThemeProvider>
</WakuContext.Provider>
</div>
);
}
async function initWaku(setter: (waku: Waku) => void) {
try {
const waku = await Waku.create({
config: {
pubsub: {
enabled: true,
emitSelf: true,
},
},
});
setter(waku);
waku.addPeerToAddressBook(
'16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ',
['/dns4/node-01.do-ams3.jdev.misc.statusim.net/tcp/7010/wss']
);
waku.addPeerToAddressBook(
'16Uiu2HAmSyrYVycqBCWcHyNVQS6zYQcdQbwyov1CDijboVRsQS37',
['/dns4/node-01.do-ams3.jdev.misc.statusim.net/tcp/7009/wss']
);
} catch (e) {
console.log('Issue starting waku ', e);
}
}

View File

@ -1,140 +0,0 @@
import { useEffect, useRef, useState } from 'react';
import { ChatMessage } from 'js-waku';
import {
Message,
MessageText,
MessageGroup,
MessageList,
} from '@livechat/ui-kit';
interface Props {
archivedMessages: ChatMessage[];
newMessages: ChatMessage[];
}
export default function ChatList(props: Props) {
const [messages, setMessages] = useState<ChatMessage[]>([]);
let updatedMessages;
if (IsThereNewMessages(props.newMessages, messages)) {
updatedMessages = messages.slice().concat(props.newMessages);
if (IsThereNewMessages(props.archivedMessages, updatedMessages)) {
updatedMessages = copyMergeUniqueReplace(
props.archivedMessages,
updatedMessages
);
}
} else {
if (IsThereNewMessages(props.archivedMessages, messages)) {
updatedMessages = copyMergeUniqueReplace(
props.archivedMessages,
messages
);
}
}
if (updatedMessages) {
setMessages(updatedMessages);
}
const messagesGroupedBySender = groupMessagesBySender(messages).map(
(currentMessageGroup) => (
<MessageGroup onlyFirstWithMeta>
{currentMessageGroup.map((currentMessage) => (
<Message
key={
currentMessage.timestamp.valueOf() +
currentMessage.nick +
currentMessage.payloadAsUtf8
}
authorName={currentMessage.nick}
date={formatDisplayDate(currentMessage)}
>
<MessageText>{currentMessage.payloadAsUtf8}</MessageText>
</Message>
))}
</MessageGroup>
)
);
return (
<MessageList active containScrollInSubtree>
{messagesGroupedBySender}
<AlwaysScrollToBottom newMessages={props.newMessages} />
</MessageList>
);
}
function groupMessagesBySender(messageArray: ChatMessage[]): ChatMessage[][] {
let currentSender = -1;
let lastNick = '';
let messagesBySender: ChatMessage[][] = [];
let currentSenderMessage = 0;
for (let currentMessage of messageArray) {
if (lastNick !== currentMessage.nick) {
currentSender++;
messagesBySender[currentSender] = [];
currentSenderMessage = 0;
lastNick = currentMessage.nick;
}
messagesBySender[currentSender][currentSenderMessage++] = currentMessage;
}
return messagesBySender;
}
function formatDisplayDate(message: ChatMessage): string {
return message.timestamp.toLocaleString([], {
month: 'short',
day: 'numeric',
hour: 'numeric',
minute: '2-digit',
hour12: false,
});
}
const AlwaysScrollToBottom = (props: { newMessages: ChatMessage[] }) => {
const elementRef = useRef<HTMLDivElement>();
useEffect(() => {
// @ts-ignore
elementRef.current.scrollIntoView();
}, [props.newMessages]);
// @ts-ignore
return <div ref={elementRef} />;
};
function IsThereNewMessages(
newValues: ChatMessage[],
currentValues: ChatMessage[]
): boolean {
if (newValues.length === 0) return false;
if (currentValues.length === 0) return true;
return !newValues.find((newMsg) =>
currentValues.find(isEqual.bind({}, newMsg))
);
}
function copyMergeUniqueReplace(
newValues: ChatMessage[],
currentValues: ChatMessage[]
) {
const copy = currentValues.slice();
newValues.forEach((msg) => {
if (!copy.find(isEqual.bind({}, msg))) {
copy.push(msg);
}
});
copy.sort((a, b) => a.timestamp.valueOf() - b.timestamp.valueOf());
return copy;
}
function isEqual(lhs: ChatMessage, rhs: ChatMessage): boolean {
return (
lhs.nick === rhs.nick &&
lhs.payloadAsUtf8 === rhs.payloadAsUtf8 &&
lhs.timestamp.toString() === rhs.timestamp.toString()
);
}

View File

@ -1,58 +0,0 @@
import { ChangeEvent, KeyboardEvent, useState } from 'react';
import { useWaku } from './WakuContext';
import {
TextInput,
TextComposer,
Row,
Fill,
Fit,
SendButton,
} from '@livechat/ui-kit';
interface Props {
sendMessage: ((msg: string) => Promise<void>) | undefined;
}
export default function MessageInput(props: Props) {
const [inputText, setInputText] = useState<string>('');
const { waku } = useWaku();
const sendMessage = async () => {
if (props.sendMessage) {
await props.sendMessage(inputText);
setInputText('');
}
};
const messageHandler = (event: ChangeEvent<HTMLInputElement>) => {
setInputText(event.target.value);
};
const keyPressHandler = async (event: KeyboardEvent<HTMLInputElement>) => {
if (event.key === 'Enter') {
await sendMessage();
}
};
// Enable the button if there are relay peers available or the user is sending a command
const activeButton =
(waku && waku.relay.getPeers().size !== 0) || inputText.startsWith('/');
return (
<TextComposer
onKeyDown={keyPressHandler}
onChange={messageHandler}
active={activeButton}
onButtonClick={sendMessage}
>
<Row align="center">
<Fill>
<TextInput value={inputText} />
</Fill>
<Fit>
<SendButton />
</Fit>
</Row>
</TextComposer>
);
}

View File

@ -1,62 +0,0 @@
import { ChatMessage, WakuMessage } from 'js-waku';
import { ChatContentTopic } from './App';
import ChatList from './ChatList';
import MessageInput from './MessageInput';
import { useWaku } from './WakuContext';
import { TitleBar } from '@livechat/ui-kit';
interface Props {
newMessages: ChatMessage[];
archivedMessages: ChatMessage[];
commandHandler: (cmd: string) => void;
nick: string;
}
export default function Room(props: Props) {
const { waku } = useWaku();
return (
<div
className="chat-container"
style={{ height: '98vh', display: 'flex', flexDirection: 'column' }}
>
<TitleBar title="Waku v2 chat app" />
<ChatList
newMessages={props.newMessages}
archivedMessages={props.archivedMessages}
/>
<MessageInput
sendMessage={
waku
? async (messageToSend) => {
return handleMessage(
messageToSend,
props.nick,
props.commandHandler,
waku.relay.send.bind(waku.relay)
);
}
: undefined
}
/>
</div>
);
}
async function handleMessage(
message: string,
nick: string,
commandHandler: (cmd: string) => void,
messageSender: (msg: WakuMessage) => Promise<void>
) {
if (message.startsWith('/')) {
commandHandler(message);
} else {
const chatMessage = ChatMessage.fromUtf8String(new Date(), nick, message);
const wakuMsg = WakuMessage.fromBytes(
chatMessage.encode(),
ChatContentTopic
);
return messageSender(wakuMsg);
}
}

View File

@ -1,9 +0,0 @@
import { createContext, useContext } from 'react';
import { Waku } from 'js-waku';
export type WakuContextType = {
waku?: Waku;
};
export const WakuContext = createContext<WakuContextType>({ waku: undefined });
export const useWaku = () => useContext(WakuContext);

View File

@ -1,30 +0,0 @@
import WakuMock, { Message } from './WakuMock';
test('Messages are emitted', async () => {
const wakuMock = await WakuMock.create();
let message: Message;
wakuMock.on('message', (msg) => {
message = msg;
});
await new Promise((resolve) => setTimeout(resolve, 2000));
// @ts-ignore
expect(message.message).toBeDefined();
});
test('Messages are sent', async () => {
const wakuMock = await WakuMock.create();
const text = 'This is a message.';
let message: Message;
wakuMock.on('message', (msg) => {
message = msg;
});
await wakuMock.send(text);
// @ts-ignore
expect(message.message).toEqual(text);
});

View File

@ -1,69 +0,0 @@
class EventEmitter<T> {
public callbacks: { [key: string]: Array<(data: T) => void> };
constructor() {
this.callbacks = {};
}
on(event: string, cb: (data: T) => void) {
if (!this.callbacks[event]) this.callbacks[event] = [];
this.callbacks[event].push(cb);
}
emit(event: string, data: T) {
let cbs = this.callbacks[event];
if (cbs) {
cbs.forEach((cb) => cb(data));
}
}
}
export interface Message {
timestamp: Date;
handle: string;
message: string;
}
export default class WakuMock extends EventEmitter<Message> {
index: number;
intervalId?: number | NodeJS.Timeout;
private constructor() {
super();
this.index = 0;
}
public static async create(): Promise<WakuMock> {
await new Promise((resolve) => setTimeout(resolve, 500));
const wakuMock = new WakuMock();
wakuMock.startInterval();
return wakuMock;
}
public async send(message: string): Promise<void> {
const timestamp = new Date();
const handle = 'me';
this.emit('message', {
timestamp,
handle,
message,
});
}
private startInterval() {
if (this.intervalId === undefined) {
this.intervalId = setInterval(this.emitMessage.bind(this), 1000);
}
}
private emitMessage() {
const handle = 'you';
const timestamp = new Date();
this.emit('message', {
timestamp,
handle,
message: `This is message #${this.index++}.`,
});
}
}

View File

@ -1,143 +0,0 @@
import { multiaddr } from 'multiaddr';
import PeerId from 'peer-id';
import { Waku } from 'js-waku';
function help(): string[] {
return [
'/nick <nickname>: set a new nickname',
'/info: some information about the node',
'/connect <Multiaddr>: connect to the given peer',
'/help: Display this help',
];
}
function nick(
nick: string | undefined,
setNick: (nick: string) => void
): string[] {
if (!nick) {
return ['No nick provided'];
}
setNick(nick);
return [`New nick: ${nick}`];
}
function info(waku: Waku | undefined): string[] {
if (!waku) {
return ['Waku node is starting'];
}
return [`PeerId: ${waku.libp2p.peerId.toB58String()}`];
}
function connect(peer: string | undefined, waku: Waku | undefined): string[] {
if (!waku) {
return ['Waku node is starting'];
}
if (!peer) {
return ['No peer provided'];
}
try {
const peerMultiaddr = multiaddr(peer);
const peerId = peerMultiaddr.getPeerId();
if (!peerId) {
return ['Peer Id needed to dial'];
}
waku.addPeerToAddressBook(PeerId.createFromB58String(peerId), [
peerMultiaddr,
]);
return [
`${peerId}: ${peerMultiaddr.toString()} added to address book, autodial in progress`,
];
} catch (e) {
return ['Invalid multiaddr: ' + e];
}
}
function peers(waku: Waku | undefined): string[] {
if (!waku) {
return ['Waku node is starting'];
}
let response: string[] = [];
waku.libp2p.peerStore.peers.forEach((peer, peerId) => {
response.push(peerId + ':');
let addresses = ' addresses: [';
peer.addresses.forEach(({ multiaddr }) => {
addresses += ' ' + multiaddr.toString() + ',';
});
addresses = addresses.replace(/,$/, '');
addresses += ']';
response.push(addresses);
let protocols = ' protocols: [';
protocols += peer.protocols;
protocols += ']';
response.push(protocols);
});
if (response.length === 0) {
response.push('Not connected to any peer.');
}
return response;
}
function connections(waku: Waku | undefined): string[] {
if (!waku) {
return ['Waku node is starting'];
}
let response: string[] = [];
waku.libp2p.connections.forEach(
(
connections: import('libp2p-interfaces/src/connection/connection')[],
peerId
) => {
response.push(peerId + ':');
let strConnections = ' connections: [';
connections.forEach((connection) => {
strConnections += JSON.stringify(connection.stat);
strConnections += '; ' + JSON.stringify(connection.streams);
});
strConnections += ']';
response.push(strConnections);
}
);
if (response.length === 0) {
response.push('Not connected to any peer.');
}
return response;
}
export default function handleCommand(
input: string,
waku: Waku | undefined,
setNick: (nick: string) => void
): { command: string; response: string[] } {
let response: string[] = [];
const args = parseInput(input);
const command = args.shift()!;
switch (command) {
case '/help':
help().map((str) => response.push(str));
break;
case '/nick':
nick(args.shift(), setNick).map((str) => response.push(str));
break;
case '/info':
info(waku).map((str) => response.push(str));
break;
case '/connect':
connect(args.shift(), waku).map((str) => response.push(str));
break;
case '/peers':
peers(waku).map((str) => response.push(str));
break;
case '/connections':
connections(waku).map((str) => response.push(str));
break;
default:
response.push(`Unknown Command '${command}'`);
}
return { command, response };
}
export function parseInput(input: string): string[] {
const clean = input.trim().replaceAll(/\s\s+/g, ' ');
return clean.split(' ');
}

View File

@ -1,30 +0,0 @@
@import-normalize; /* bring in normalize.css styles */
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
.room-row {
text-align: left;
margin-left: 20px;
}
.room-row:after {
clear: both;
content: "";
display: table;
}
.chat-room{
margin: 2px;
}

View File

@ -1,11 +0,0 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);

View File

@ -1 +0,0 @@
/// <reference types="react-scripts" />

View File

@ -1,5 +0,0 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

View File

@ -1 +0,0 @@
declare module '@livechat/ui-kit';

View File

@ -1,24 +0,0 @@
{
"compilerOptions": {
"incremental": true,
"target": "es2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"typeRoots": ["node_modules/@types", "src/types"]
},
"include": ["src"]
}

26
flake.lock generated Normal file
View File

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1761016216,
"narHash": "sha256-G/iC4t/9j/52i/nm+0/4ybBmAF4hzR8CNHC75qEhjHo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "481cf557888e05d3128a76f14c76397b7d7cc869",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-25.05",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

33
flake.nix Normal file
View File

@ -0,0 +1,33 @@
{
description = "Nix flake development shell.";
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.05";
};
outputs =
{ self, nixpkgs }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forEachSystem = nixpkgs.lib.genAttrs supportedSystems;
pkgsFor = forEachSystem (system: import nixpkgs { inherit system; });
in
rec {
formatter = forEachSystem (system: pkgsFor.${system}.nixpkgs-fmt);
devShells = forEachSystem (system: {
default = pkgsFor.${system}.mkShellNoCC {
packages = with pkgsFor.${system}.buildPackages; [
git # 2.44.1
openssh # 9.7p1
nodejs_20 # v20.15.1
];
};
});
};
}

72
karma.conf.cjs Normal file
View File

@ -0,0 +1,72 @@
/* eslint-env node */
const playwright = require("playwright");
const webpack = require("webpack");
if (!process.env.CHROME_BIN) {
process.env.CHROME_BIN = playwright.chromium.executablePath();
}
console.log("Using CHROME_BIN:", process.env.CHROME_BIN);
if (!process.env.FIREFOX_BIN) {
process.env.FIREFOX_BIN = playwright.firefox.executablePath();
}
console.log("Using FIREFOX_BIN:", process.env.FIREFOX_BIN);
module.exports = function (config) {
const configuration = {
frameworks: ["webpack", "mocha"],
files: ["src/**/!(node).spec.ts"],
preprocessors: {
"src/**/!(node).spec.ts": ["webpack"]
},
envPreprocessor: ["CI"],
reporters: ["progress"],
browsers: process.env.CI
? ["ChromeHeadlessCI", "FirefoxHeadless"]
: ["ChromeHeadless", "FirefoxHeadless"],
customLaunchers: {
ChromeHeadlessCI: {
base: "ChromeHeadless",
flags: [
"--no-sandbox",
"--disable-gpu",
"--disable-dev-shm-usage",
"--disable-software-rasterizer",
"--disable-extensions"
]
}
},
singleRun: true,
client: {
mocha: {
timeout: 6000 // Default is 2s
}
},
webpack: {
mode: "development",
module: {
rules: [{ test: /\.([cm]?ts|tsx)$/, loader: "ts-loader" }]
},
plugins: [
new webpack.DefinePlugin({
"process.env.CI": process.env.CI || false,
"process.env.DISPLAY": "Browser"
}),
new webpack.ProvidePlugin({
process: "process/browser.js"
})
],
resolve: {
extensions: [".ts", ".tsx", ".js"],
extensionAlias: {
".js": [".js", ".ts"],
".cjs": [".cjs", ".cts"],
".mjs": [".mjs", ".mts"]
}
},
stats: { warnings: false },
devtool: "inline-source-map"
}
};
config.set(configuration);
};

View File

@ -1,21 +0,0 @@
[build]
publish = "build/html/"
# Default build command.
command = '''
npm install
npm run build
npm run doc:html
cd examples/web-chat
npm install
npm run build
cd ../../
mkdir -p ./build/html
mv -v examples/web-chat/build ./build/html/js-waku
mv -v build/docs ./build/html/
'''
[[redirects]]
from = "/"
to = "/js-waku"
status = 200

@ -1 +0,0 @@
Subproject commit 7c5df3379b42f1e5ddad66e84e152aec6ebdf10d

53445
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,134 +1,83 @@
{
"name": "js-waku",
"version": "0.2.0",
"description": "TypeScript implementation of the Waku v2 protocol",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"repository": "https://github.com/status-im/js-waku",
"license": "MIT OR Apache-2.0",
"keywords": [
"waku",
"decentralised",
"communication"
"name": "@waku/root",
"private": true,
"type": "module",
"workspaces": [
"packages/proto",
"packages/interfaces",
"packages/utils",
"packages/enr",
"packages/core",
"packages/discovery",
"packages/message-encryption",
"packages/sds",
"packages/rln",
"packages/sdk",
"packages/relay",
"packages/run",
"packages/tests",
"packages/reliability-tests",
"packages/browser-tests",
"packages/build-utils",
"packages/react"
],
"scripts": {
"build": "run-s build:*",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"build:dev": "tsc -p tsconfig.dev.json",
"prepare": "husky",
"build": "npm run build --workspaces --if-present",
"build:esm": "npm run build:esm --workspaces --if-present",
"size": "npm run build && size-limit",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --write",
"fix:lint": "eslint src --ext .ts --fix",
"pretest": "run-s pretest:*",
"pretest:1-init-git-submodules": "[ -f './nim-waku/build/wakunode2' ] || git submodule update --init --recursive",
"pretest:2-build-nim-waku": "[ -f './nim-waku/build/wakunode2' ] || run-s nim-waku:build",
"nim-waku:build": "(cd nim-waku; NIMFLAGS=\"-d:chronicles_colors=off -d:chronicles_sinks=textlines -d:chronicles_log_level=TRACE\" make -j$(nproc --all 2>/dev/null || echo 2) wakunode2)",
"nim-waku:upgrade": "(cd nim-waku && git pull origin master && rm -rf ./build/ ./vendor && make -j$(nproc --all 2>/dev/null || echo 2) update) && run-s nim-waku:build",
"test": "run-s build test:*",
"test:lint": "eslint src --ext .ts",
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different",
"test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
"test:unit": "nyc --silent mocha",
"proto": "run-s proto:*",
"proto:lint": "buf lint",
"proto:build": "buf generate",
"check-cli": "run-s test diff-integration-tests check-integration-tests",
"check-integration-tests": "run-s check-integration-test:*",
"diff-integration-tests": "mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'",
"watch:build": "tsc -p tsconfig.json -w",
"watch:test": "nyc --silent mocha --watch",
"cov": "run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html",
"cov:html": "nyc report --reporter=html",
"cov:lcov": "nyc report --reporter=lcov",
"cov:send": "run-s cov:lcov && codecov",
"cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100",
"doc": "run-s doc:html && open-cli build/docs/index.html",
"doc:html": "typedoc --exclude **/*.spec.ts --out build/docs src/",
"doc:json": "typedoc src/ --exclude **/*.spec.ts --json build/docs/typedoc.json",
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
"version": "standard-version",
"reset-hard": "git clean -dfx && git reset --hard && npm i && npm run build && for d in examples/*; do (cd $d; npm i); done",
"prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish"
},
"engines": {
"node": ">=14"
},
"dependencies": {
"@bitauth/libauth": "^1.17.1",
"debug": "^4.3.1",
"it-concat": "^2.0.0",
"it-length-prefixed": "^5.0.2",
"libp2p": "^0.31.0",
"libp2p-gossipsub": "^0.9.0",
"libp2p-mplex": "^0.10.3",
"libp2p-noise": "^3.0.0",
"libp2p-tcp": "^0.15.4",
"libp2p-websockets": "^0.15.6",
"multiaddr": "^9.0.1",
"prompt-sync": "^4.2.0",
"ts-proto": "^1.79.7",
"uuid": "^8.3.2",
"yarg": "^1.0.8"
"fix:workspaces": "npm run fix --workspaces --if-present",
"check": "run-s check:*",
"check:workspaces": "npm run check --workspaces --if-present",
"check:ws": "[ $(ls -1 ./packages|wc -l) -eq $(cat package.json | jq '.workspaces | length') ] || exit 1 # check no packages left behind",
"test": "NODE_ENV=test npm run test --workspaces --if-present",
"test:browser": "NODE_ENV=test npm run test:browser --workspaces --if-present",
"test:node": "NODE_ENV=test npm run test:node --workspaces --if-present",
"test:longevity": "npm --prefix packages/reliability-tests run test:longevity",
"test:high-throughput": "npm --prefix packages/reliability-tests run test:high-throughput",
"test:throughput-sizes": "npm --prefix packages/reliability-tests run test:throughput-sizes",
"test:network-latency": "npm --prefix packages/reliability-tests run test:network-latency",
"test:low-bandwidth": "npm --prefix packages/reliability-tests run test:low-bandwidth",
"test:packet-loss": "npm --prefix packages/reliability-tests run test:packet-loss",
"proto": "npm run proto --workspaces --if-present",
"deploy": "node ci/deploy.js",
"doc": "run-s doc:*",
"doc:html": "typedoc --options typedoc.cjs",
"doc:cname": "echo 'js.waku.org' > docs/CNAME",
"publish": "node ./ci/publish.js"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/app-root-path": "^1.2.4",
"@types/axios": "^0.14.0",
"@types/chai": "^4.2.15",
"@types/google-protobuf": "^3.7.4",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.31",
"@types/tail": "^2.0.0",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"app-root-path": "^3.0.0",
"axios": "^0.21.1",
"chai": "^4.3.4",
"codecov": "^3.5.0",
"cspell": "^4.1.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.8.0",
"eslint-config-prettier": "^6.11.0",
"@size-limit/preset-big-lib": "^11.0.2",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-functional": "^3.0.2",
"eslint-plugin-import": "^2.22.0",
"fast-check": "^2.14.0",
"gh-pages": "^3.1.0",
"mocha": "^8.3.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"open-cli": "^6.0.1",
"p-timeout": "^4.1.0",
"prettier": "^2.1.1",
"standard-version": "^9.0.0",
"tail": "^2.2.0",
"ts-node": "^9.1.1",
"typedoc": "^0.20.29",
"typescript": "^4.0.2"
"eslint-plugin-functional": "^6.0.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^5.1.3",
"gh-pages": "^6.1.1",
"husky": "^9.0.11",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-firefox-launcher": "^2.1.3",
"karma-mocha": "^2.0.1",
"karma-webkit-launcher": "^2.4.0",
"karma-webpack": "github:codymikol/karma-webpack#2337a82beb078c0d8e25ae8333a06249b8e72828",
"lint-staged": "^15.4.3",
"playwright": "^1.40.1",
"size-limit": "^11.0.1",
"ts-loader": "9.5.2",
"ts-node": "10.9.2",
"typedoc": "0.28.5",
"typescript": "5.8.3",
"wscat": "^6.0.1"
},
"files": [
"build/main",
"build/module",
"!**/*.spec.*",
"!**/*.json",
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"prettier": {
"singleQuote": true
},
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"exclude": [
"**/*.spec.js"
"lint-staged": {
"*.{ts,js}": [
"eslint --fix"
]
}
},
"version": ""
}

View File

@ -0,0 +1,4 @@
node_modules
build
.DS_Store
*.log

View File

@ -0,0 +1,3 @@
EXAMPLE_TEMPLATE="headless"
EXAMPLE_NAME="headless"
EXAMPLE_PORT="8080"

View File

@ -0,0 +1,45 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2022,
sourceType: "module"
},
env: {
node: true,
browser: true,
es2021: true
},
plugins: ["import"],
extends: ["eslint:recommended"],
rules: {
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "ignoreRestSiblings": true }]
},
globals: {
process: true
},
overrides: [
{
files: ["*.spec.ts", "**/test_utils/*.ts"],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
}
},
{
files: ["*.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: "./tsconfig.dev.json"
}
},
{
files: ["*.d.ts"],
rules: {
"no-unused-vars": "off"
}
}
]
};

View File

@ -0,0 +1,72 @@
# syntax=docker/dockerfile:1
# Build stage - install all dependencies and build
FROM node:22-bullseye AS builder
WORKDIR /app
# Copy package.json and temporarily remove workspace dependencies that can't be resolved
COPY package.json package.json.orig
RUN sed '/"@waku\/tests": "\*",/d' package.json.orig > package.json
RUN npm install --no-audit --no-fund
COPY src ./src
COPY types ./types
COPY tsconfig.json ./
COPY web ./web
RUN npm run build
# Production stage - only runtime dependencies
FROM node:22-bullseye
# Install required system deps for Playwright Chromium
RUN apt-get update && apt-get install -y \
wget \
gnupg \
ca-certificates \
fonts-liberation \
libatk-bridge2.0-0 \
libatk1.0-0 \
libatspi2.0-0 \
libcups2 \
libdbus-1-3 \
libdrm2 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxfixes3 \
libxkbcommon0 \
libxrandr2 \
xdg-utils \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy package files and install only production dependencies
COPY package.json package.json.orig
RUN sed '/"@waku\/tests": "\*",/d' package.json.orig > package.json
RUN npm install --only=production --no-audit --no-fund
# Copy built application from builder stage
COPY --from=builder /app/dist ./dist
# Install Playwright browsers (Chromium only) at runtime layer
RUN npx playwright install --with-deps chromium
ENV PORT=8080 \
NODE_ENV=production
EXPOSE 8080
# Use a script to handle CLI arguments and environment variables
COPY scripts/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["npm", "run", "start:server"]

View File

@ -0,0 +1,174 @@
# Waku Browser Tests
This package provides a containerized Waku light node simulation server for testing and development. The server runs a headless browser using Playwright and exposes a REST API similar to the nwaku REST API. A Dockerfile is provided to allow programmatic simulation and "deployment" of js-waku nodes in any Waku orchestration environment that uses Docker (e.g. [10ksim](https://github.com/vacp2p/10ksim) ).
## Quick Start
### Build and Run
```bash
# Build the application
npm run build
# Start the server (port 8080)
npm run start:server
# Build and run Docker container
npm run docker:build
docker run -p 8080:8080 waku-browser-tests:local
```
## Configuration
Configure the Waku node using environment variables:
### Network Configuration
- `WAKU_CLUSTER_ID`: Cluster ID (default: 1)
- `WAKU_SHARD`: Specific shard number - enables static sharding mode (optional)
**Sharding Behavior:**
- **Auto-sharding** (default): Uses `numShardsInCluster: 8` across cluster 1
- **Static sharding**: When `WAKU_SHARD` is set, uses only that specific shard
### Bootstrap Configuration
- `WAKU_ENR_BOOTSTRAP`: Enable ENR bootstrap mode with custom bootstrap peers (comma-separated)
- `WAKU_LIGHTPUSH_NODE`: Preferred lightpush node multiaddr (Docker only)
### ENR Bootstrap Mode
When `WAKU_ENR_BOOTSTRAP` is set:
- Disables default bootstrap (`defaultBootstrap: false`)
- Enables DNS discovery using production ENR trees
- Enables peer exchange and peer cache
- Uses the specified ENR for additional bootstrap peers
```bash
# Example: ENR bootstrap mode
WAKU_ENR_BOOTSTRAP="enr:-QEnuEBEAyErHEfhiQxAVQoWowGTCuEF9fKZtXSd7H_PymHFhGJA3rGAYDVSHKCyJDGRLBGsloNbS8AZF33IVuefjOO6BIJpZIJ2NIJpcIQS39tkim11bHRpYWRkcnO4lgAvNihub2RlLTAxLmRvLWFtczMud2FrdXYyLnRlc3Quc3RhdHVzaW0ubmV0BgG73gMAODcxbm9kZS0wMS5hYy1jbi1ob25na29uZy1jLndha3V2Mi50ZXN0LnN0YXR1c2ltLm5ldAYBu94DACm9A62t7AQL4Ef5ZYZosRpQTzFVAB8jGjf1TER2wH-0zBOe1-MDBNLeA4lzZWNwMjU2azGhAzfsxbxyCkgCqq8WwYsVWH7YkpMLnU2Bw5xJSimxKav-g3VkcIIjKA" npm run start:server
```
## API Endpoints
The server exposes the following HTTP endpoints:
### Node Management
- `GET /`: Health check - returns server status
- `GET /waku/v1/peer-info`: Get node peer information
- `POST /waku/v1/wait-for-peers`: Wait for peers with specific protocols
### Messaging
- `POST /lightpush/v3/message`: Send message via lightpush
### Static Files
- `GET /app/index.html`: Web application entry point
- `GET /app/*`: Static web application files
### Examples
#### Send a Message (Auto-sharding)
```bash
curl -X POST http://localhost:8080/lightpush/v3/message \
-H "Content-Type: application/json" \
-d '{
"pubsubTopic": "",
"message": {
"contentTopic": "/test/1/example/proto",
"payload": "SGVsbG8gV2FrdQ==",
"version": 1
}
}'
```
#### Send a Message (Explicit pubsub topic)
```bash
curl -X POST http://localhost:8080/lightpush/v3/message \
-H "Content-Type: application/json" \
-d '{
"pubsubTopic": "/waku/2/rs/1/4",
"message": {
"contentTopic": "/test/1/example/proto",
"payload": "SGVsbG8gV2FrdQ==",
"version": 1
}
}'
```
#### Wait for Peers
```bash
curl -X POST http://localhost:8080/waku/v1/wait-for-peers \
-H "Content-Type: application/json" \
-d '{
"timeoutMs": 30000,
"protocols": ["lightpush", "filter"]
}'
```
#### Get Peer Info
```bash
curl -X GET http://localhost:8080/waku/v1/peer-info
```
## CLI Usage
Run with CLI arguments:
```bash
# Custom cluster and shard
node dist/src/server.js --cluster-id=2 --shard=0
```
## Testing
The package includes several test suites:
```bash
# Basic server functionality tests (default)
npm test
# Docker testing workflow
npm run docker:build
npm run test:integration
# All tests
npm run test:all
# Individual test suites:
npm run test:server # Server-only tests
npm run test:e2e # End-to-end tests
```
**Test Types:**
- `server.spec.ts` - Tests basic server functionality and static file serving
- `integration.spec.ts` - Tests Docker container integration with external services
- `e2e.spec.ts` - Full end-to-end tests using nwaku nodes
## Docker Usage
The package includes Docker support for containerized testing:
```bash
# Build image
docker build -t waku-browser-tests:local .
# Run with ENR bootstrap
docker run -p 8080:8080 \
-e WAKU_ENR_BOOTSTRAP="enr:-QEnuE..." \
-e WAKU_CLUSTER_ID="1" \
waku-browser-tests:local
# Run with specific configuration
docker run -p 8080:8080 \
-e WAKU_CLUSTER_ID="2" \
-e WAKU_SHARD="0" \
waku-browser-tests:local
```
## Development
The server automatically:
- Creates a Waku light node on startup
- Configures network settings from environment variables
- Enables appropriate protocols (lightpush, filter)
- Handles peer discovery and connection management
All endpoints are CORS-enabled for cross-origin requests.

View File

@ -0,0 +1,42 @@
{
"name": "@waku/browser-tests",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"start": "npm run start:server",
"start:server": "PORT=8080 node ./dist/src/server.js",
"test": "npx playwright test tests/server.spec.ts --reporter=line",
"test:all": "npx playwright test --reporter=line",
"test:server": "npx playwright test tests/server.spec.ts --reporter=line",
"test:integration": "npx playwright test tests/integration.spec.ts --reporter=line",
"test:e2e": "npx playwright test tests/e2e.spec.ts --reporter=line",
"build:server": "tsc -p tsconfig.json",
"build:web": "esbuild web/index.ts --bundle --format=esm --platform=browser --outdir=dist/web && cp web/index.html dist/web/index.html",
"build": "npm-run-all -s build:server build:web",
"docker:build": "docker build -t waku-browser-tests:local . && docker tag waku-browser-tests:local waku-browser-tests:latest"
},
"dependencies": {
"@playwright/test": "^1.51.1",
"@waku/discovery": "^0.0.11",
"@waku/interfaces": "^0.0.33",
"@waku/sdk": "^0.0.34",
"@waku/utils": "0.0.27",
"cors": "^2.8.5",
"dotenv-flow": "^0.4.0",
"express": "^4.21.2",
"filter-obj": "^2.0.2",
"it-first": "^3.0.9"
},
"devDependencies": {
"@types/cors": "^2.8.15",
"@types/express": "^4.17.21",
"@types/node": "^20.10.0",
"@waku/tests": "*",
"axios": "^1.8.4",
"esbuild": "^0.21.5",
"npm-run-all": "^4.1.5",
"testcontainers": "^10.9.0",
"typescript": "5.8.3"
}
}

View File

@ -0,0 +1,39 @@
import { defineConfig, devices } from "@playwright/test";
import { Logger } from "@waku/utils";
const log = new Logger("playwright-config");
if (!process.env.CI) {
try {
await import("dotenv-flow/config.js");
} catch (e) {
log.warn("dotenv-flow not found; skipping env loading");
}
}
const EXAMPLE_PORT = process.env.EXAMPLE_PORT || "8080";
const BASE_URL = `http://127.0.0.1:${EXAMPLE_PORT}`;
const TEST_IGNORE = process.env.CI ? ["tests/e2e.spec.ts"] : [];
export default defineConfig({
testDir: "./tests",
testIgnore: TEST_IGNORE,
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 2 : undefined,
reporter: "html",
use: {
baseURL: BASE_URL,
trace: "on-first-retry"
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] }
}
]
});

View File

@ -0,0 +1,54 @@
#!/bin/bash
# Docker entrypoint script for waku-browser-tests
# Handles CLI arguments and converts them to environment variables
# Supports reading discovered addresses from /etc/addrs/addrs.env (10k sim pattern)
echo "docker-entrypoint.sh"
echo "Using address: $addrs1"
# Only set WAKU_LIGHTPUSH_NODE if it's not already set and addrs1 is available
if [ -z "$WAKU_LIGHTPUSH_NODE" ] && [ -n "$addrs1" ]; then
export WAKU_LIGHTPUSH_NODE="$addrs1"
fi
echo "Num Args: $#"
echo "Args: $@"
echo "WAKU_LIGHTPUSH_NODE=$WAKU_LIGHTPUSH_NODE"
# Parse command line arguments
while [[ $# -gt 0 ]]; do
case $1 in
--cluster-id=*)
export WAKU_CLUSTER_ID="${1#*=}"
echo "Setting WAKU_CLUSTER_ID=${WAKU_CLUSTER_ID}"
shift
;;
--shard=*)
export WAKU_SHARD="${1#*=}"
echo "Setting WAKU_SHARD=${WAKU_SHARD}"
shift
;;
--lightpushnode=*)
export WAKU_LIGHTPUSH_NODE="${1#*=}"
echo "Setting WAKU_LIGHTPUSH_NODE=${WAKU_LIGHTPUSH_NODE}"
shift
;;
--enr-bootstrap=*)
export WAKU_ENR_BOOTSTRAP="${1#*=}"
echo "Setting WAKU_ENR_BOOTSTRAP=${WAKU_ENR_BOOTSTRAP}"
shift
;;
*)
# Unknown argument, notify user and keep it for the main command
echo "Warning: Unknown argument '$1' will be passed to the main command"
break
;;
esac
done
# If no specific command is provided, use the default CMD
if [ $# -eq 0 ]; then
set -- "npm" "run" "start:server"
fi
# Execute the main command
exec "$@"

View File

@ -0,0 +1,67 @@
import { Browser, chromium, Page } from "@playwright/test";
import { Logger } from "@waku/utils";
const log = new Logger("browser-test");
let browser: Browser | undefined;
let page: Page | undefined;
export async function initBrowser(appPort: number): Promise<void> {
try {
const launchArgs = ["--no-sandbox", "--disable-setuid-sandbox"];
browser = await chromium.launch({
headless: true,
args: launchArgs
});
if (!browser) {
throw new Error("Failed to initialize browser");
}
page = await browser.newPage();
// Forward browser console to server logs
page.on('console', msg => {
const type = msg.type();
const text = msg.text();
log.info(`[Browser Console ${type.toUpperCase()}] ${text}`);
});
page.on('pageerror', error => {
log.error('[Browser Page Error]', error.message);
});
await page.goto(`http://localhost:${appPort}/app/index.html`, {
waitUntil: "networkidle",
});
await page.waitForFunction(
() => {
return window.wakuApi && typeof window.wakuApi.createWakuNode === "function";
},
{ timeout: 30000 }
);
log.info("Browser initialized successfully with wakuApi");
} catch (error) {
log.error("Error initializing browser:", error);
throw error;
}
}
export function getPage(): Page | undefined {
return page;
}
export function setPage(pageInstance: Page | undefined): void {
page = pageInstance;
}
export async function closeBrowser(): Promise<void> {
if (browser) {
await browser.close();
browser = undefined;
page = undefined;
}
}

View File

@ -0,0 +1,87 @@
import { Router } from "express";
import { Logger } from "@waku/utils";
import {
createEndpointHandler,
validators,
errorHandlers,
} from "../utils/endpoint-handler.js";
interface LightPushResult {
successes: string[];
failures: Array<{ error: string; peerId?: string }>;
}
const log = new Logger("routes:waku");
const router = Router();
const corsEndpoints = [
"/waku/v1/wait-for-peers",
"/waku/v1/peer-info",
"/lightpush/v3/message",
];
corsEndpoints.forEach((endpoint) => {
router.head(endpoint, (_req, res) => {
res.status(200).end();
});
});
router.post(
"/waku/v1/wait-for-peers",
createEndpointHandler({
methodName: "waitForPeers",
validateInput: (body: unknown) => {
const bodyObj = body as { timeoutMs?: number; protocols?: string[] };
return [
bodyObj.timeoutMs || 10000,
bodyObj.protocols || ["lightpush", "filter"],
];
},
transformResult: () => ({
success: true,
message: "Successfully connected to peers",
}),
}),
);
router.get(
"/waku/v1/peer-info",
createEndpointHandler({
methodName: "getPeerInfo",
validateInput: validators.noInput,
}),
);
router.post(
"/lightpush/v3/message",
createEndpointHandler({
methodName: "pushMessageV3",
validateInput: (body: unknown): [string, string, string] => {
const validatedRequest = validators.requireLightpushV3(body);
return [
validatedRequest.message.contentTopic,
validatedRequest.message.payload,
validatedRequest.pubsubTopic,
];
},
handleError: errorHandlers.lightpushError,
transformResult: (result: unknown) => {
const lightPushResult = result as LightPushResult;
if (lightPushResult && lightPushResult.successes && lightPushResult.successes.length > 0) {
log.info("[Server] Message successfully sent via v3 lightpush!");
return {
success: true,
result: lightPushResult,
};
} else {
return {
success: false,
error: "Could not publish message: no suitable peers",
};
}
},
}),
);
export default router;

View File

@ -0,0 +1,244 @@
import { fileURLToPath } from "url";
import * as path from "path";
import cors from "cors";
import express, { Request, Response } from "express";
import { Logger } from "@waku/utils";
import wakuRouter from "./routes/waku.js";
import { initBrowser, getPage, closeBrowser } from "./browser/index.js";
import {
DEFAULT_CLUSTER_ID,
DEFAULT_NUM_SHARDS,
Protocols,
AutoSharding,
StaticSharding,
} from "@waku/interfaces";
import { CreateNodeOptions } from "@waku/sdk";
import type { WindowNetworkConfig } from "../types/global.js";
interface NodeError extends Error {
code?: string;
}
const log = new Logger("server");
const app = express();
app.use(cors());
app.use(express.json());
import * as fs from "fs";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const distRoot = path.resolve(__dirname, "..");
const webDir = path.resolve(distRoot, "web");
app.get("/app/index.html", (_req: Request, res: Response) => {
try {
const htmlPath = path.join(webDir, "index.html");
let htmlContent = fs.readFileSync(htmlPath, "utf8");
const networkConfig: WindowNetworkConfig = {};
if (process.env.WAKU_CLUSTER_ID) {
networkConfig.clusterId = parseInt(process.env.WAKU_CLUSTER_ID, 10);
}
if (process.env.WAKU_SHARD) {
networkConfig.shards = [parseInt(process.env.WAKU_SHARD, 10)];
log.info("Using static shard:", networkConfig.shards);
}
const lightpushNode = process.env.WAKU_LIGHTPUSH_NODE || null;
const enrBootstrap = process.env.WAKU_ENR_BOOTSTRAP || null;
log.info("Network config on server start, pre headless:", networkConfig);
const configScript = ` <script>
window.__WAKU_NETWORK_CONFIG = ${JSON.stringify(networkConfig)};
window.__WAKU_LIGHTPUSH_NODE = ${JSON.stringify(lightpushNode)};
window.__WAKU_ENR_BOOTSTRAP = ${JSON.stringify(enrBootstrap)};
</script>`;
const originalPattern =
' <script type="module" src="./index.js"></script>';
const replacement = `${configScript}\n <script type="module" src="./index.js"></script>`;
htmlContent = htmlContent.replace(originalPattern, replacement);
res.setHeader("Content-Type", "text/html");
res.send(htmlContent);
} catch (error) {
log.error("Error serving dynamic index.html:", error);
res.status(500).send("Error loading page");
}
});
app.use("/app", express.static(webDir, { index: false }));
app.use(wakuRouter);
async function startAPI(requestedPort: number): Promise<number> {
try {
app.get("/", (_req: Request, res: Response) => {
res.json({ status: "Waku simulation server is running" });
});
app
.listen(requestedPort, () => {
log.info(`API server running on http://localhost:${requestedPort}`);
})
.on("error", (error: NodeError) => {
if (error.code === "EADDRINUSE") {
log.error(
`Port ${requestedPort} is already in use. Please close the application using this port and try again.`,
);
} else {
log.error("Error starting server:", error);
}
throw error;
});
return requestedPort;
} catch (error) {
log.error("Error starting server:", error);
throw error;
}
}
async function startServer(port: number = 3000): Promise<void> {
try {
const actualPort = await startAPI(port);
await initBrowser(actualPort);
try {
log.info("Auto-starting node with CLI configuration...");
const hasEnrBootstrap = Boolean(process.env.WAKU_ENR_BOOTSTRAP);
const networkConfig: AutoSharding | StaticSharding = process.env.WAKU_SHARD
? ({
clusterId: process.env.WAKU_CLUSTER_ID
? parseInt(process.env.WAKU_CLUSTER_ID, 10)
: DEFAULT_CLUSTER_ID,
shards: [parseInt(process.env.WAKU_SHARD, 10)],
} as StaticSharding)
: ({
clusterId: process.env.WAKU_CLUSTER_ID
? parseInt(process.env.WAKU_CLUSTER_ID, 10)
: DEFAULT_CLUSTER_ID,
numShardsInCluster: DEFAULT_NUM_SHARDS,
} as AutoSharding);
const createOptions: CreateNodeOptions = {
defaultBootstrap: false,
...(hasEnrBootstrap && {
discovery: {
dns: true,
peerExchange: true,
peerCache: true,
},
}),
networkConfig,
};
log.info(
`Bootstrap mode: ${hasEnrBootstrap ? "ENR-only (defaultBootstrap=false)" : "default bootstrap (defaultBootstrap=true)"}`,
);
if (hasEnrBootstrap) {
log.info(`ENR bootstrap peers: ${process.env.WAKU_ENR_BOOTSTRAP}`);
}
log.info(
`Network config: ${JSON.stringify(networkConfig)}`,
);
await getPage()?.evaluate((config) => {
return window.wakuApi.createWakuNode(config);
}, createOptions);
await getPage()?.evaluate(() => window.wakuApi.startNode());
try {
await getPage()?.evaluate(() =>
window.wakuApi.waitForPeers?.(5000, [Protocols.LightPush]),
);
log.info("Auto-start completed with bootstrap peers");
} catch (peerError) {
log.info(
"Auto-start completed (no bootstrap peers found - may be expected with test ENRs)",
);
}
} catch (e) {
log.warn("Auto-start failed:", e);
}
} catch (error) {
log.error("Error starting server:", error);
}
}
process.on("uncaughtException", (error) => {
log.error("Uncaught Exception:", error);
if (process.env.NODE_ENV !== "production") {
process.exit(1);
}
});
process.on("unhandledRejection", (reason, promise) => {
log.error("Unhandled Rejection at:", promise, "reason:", reason);
if (process.env.NODE_ENV !== "production") {
process.exit(1);
}
});
const gracefulShutdown = async (signal: string) => {
log.info(`Received ${signal}, gracefully shutting down...`);
try {
await closeBrowser();
} catch (e) {
log.warn("Error closing browser:", e);
}
process.exit(0);
};
process.on("SIGINT", () => gracefulShutdown("SIGINT"));
process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
function parseCliArgs() {
const args = process.argv.slice(2);
let clusterId: number | undefined;
let shard: number | undefined;
for (const arg of args) {
if (arg.startsWith("--cluster-id=")) {
clusterId = parseInt(arg.split("=")[1], 10);
if (isNaN(clusterId)) {
log.error("Invalid cluster-id value. Must be a number.");
process.exit(1);
}
} else if (arg.startsWith("--shard=")) {
shard = parseInt(arg.split("=")[1], 10);
if (isNaN(shard)) {
log.error("Invalid shard value. Must be a number.");
process.exit(1);
}
}
}
return { clusterId, shard };
}
const isMainModule = process.argv[1] === fileURLToPath(import.meta.url);
if (isMainModule) {
const port = process.env.PORT ? parseInt(process.env.PORT, 10) : 3000;
const cliArgs = parseCliArgs();
if (cliArgs.clusterId !== undefined) {
process.env.WAKU_CLUSTER_ID = cliArgs.clusterId.toString();
log.info(`Using CLI cluster ID: ${cliArgs.clusterId}`);
}
if (cliArgs.shard !== undefined) {
process.env.WAKU_SHARD = cliArgs.shard.toString();
log.info(`Using CLI shard: ${cliArgs.shard}`);
}
void startServer(port);
}

View File

@ -0,0 +1,197 @@
import { Request, Response } from "express";
import { Logger } from "@waku/utils";
import { getPage } from "../browser/index.js";
import type { ITestBrowser } from "../../types/global.js";
const log = new Logger("endpoint-handler");
export interface LightpushV3Request {
pubsubTopic: string;
message: {
payload: string;
contentTopic: string;
version: number;
};
}
export interface LightpushV3Response {
success?: boolean;
error?: string;
result?: {
successes: string[];
failures: Array<{
error: string;
peerId?: string;
}>;
};
}
export interface EndpointConfig<TInput = unknown, TOutput = unknown> {
methodName: string;
validateInput?: (_requestBody: unknown) => TInput;
transformResult?: (_sdkResult: unknown) => TOutput;
handleError?: (_caughtError: Error) => { code: number; message: string };
preCheck?: () => Promise<void> | void;
logResult?: boolean;
}
export function createEndpointHandler<TInput = unknown, TOutput = unknown>(
config: EndpointConfig<TInput, TOutput>,
) {
return async (req: Request, res: Response) => {
try {
let input: TInput;
try {
input = config.validateInput
? config.validateInput(req.body)
: req.body;
} catch (validationError) {
return res.status(400).json({
code: 400,
message: `Invalid input: ${validationError instanceof Error ? validationError.message : String(validationError)}`,
});
}
if (config.preCheck) {
try {
await config.preCheck();
} catch (checkError) {
return res.status(503).json({
code: 503,
message: checkError instanceof Error ? checkError.message : String(checkError),
});
}
}
const page = getPage();
if (!page) {
return res.status(503).json({
code: 503,
message: "Browser not initialized",
});
}
const result = await page.evaluate(
({ methodName, params }) => {
const testWindow = window as ITestBrowser;
if (!testWindow.wakuApi) {
throw new Error("window.wakuApi is not available");
}
const wakuApi = testWindow.wakuApi as unknown as Record<string, unknown>;
const method = wakuApi[methodName];
if (typeof method !== "function") {
throw new Error(`window.wakuApi.${methodName} is not a function`);
}
if (params === null || params === undefined) {
return method.call(testWindow.wakuApi);
} else if (Array.isArray(params)) {
return method.apply(testWindow.wakuApi, params);
} else {
return method.call(testWindow.wakuApi, params);
}
},
{ methodName: config.methodName, params: input },
);
if (config.logResult !== false) {
log.info(
`[${config.methodName}] Result:`,
JSON.stringify(result, null, 2),
);
}
const finalResult = config.transformResult
? config.transformResult(result)
: result;
res.status(200).json(finalResult);
} catch (error) {
if (config.handleError) {
const errorResponse = config.handleError(error as Error);
return res.status(errorResponse.code).json({
code: errorResponse.code,
message: errorResponse.message,
});
}
log.error(`[${config.methodName}] Error:`, error);
res.status(500).json({
code: 500,
message: `Could not execute ${config.methodName}: ${error instanceof Error ? error.message : String(error)}`,
});
}
};
}
export const validators = {
requireLightpushV3: (body: unknown): LightpushV3Request => {
// Type guard to check if body is an object
if (!body || typeof body !== "object") {
throw new Error("Request body must be an object");
}
const bodyObj = body as Record<string, unknown>;
if (
bodyObj.pubsubTopic !== undefined &&
typeof bodyObj.pubsubTopic !== "string"
) {
throw new Error("pubsubTopic must be a string if provided");
}
if (!bodyObj.message || typeof bodyObj.message !== "object") {
throw new Error("message is required and must be an object");
}
const message = bodyObj.message as Record<string, unknown>;
if (
!message.contentTopic ||
typeof message.contentTopic !== "string"
) {
throw new Error("message.contentTopic is required and must be a string");
}
if (!message.payload || typeof message.payload !== "string") {
throw new Error(
"message.payload is required and must be a string (base64 encoded)",
);
}
if (
message.version !== undefined &&
typeof message.version !== "number"
) {
throw new Error("message.version must be a number if provided");
}
return {
pubsubTopic: (bodyObj.pubsubTopic as string) || "",
message: {
payload: message.payload as string,
contentTopic: message.contentTopic as string,
version: (message.version as number) || 1,
},
};
},
noInput: () => null,
};
export const errorHandlers = {
lightpushError: (error: Error) => {
if (
error.message.includes("size exceeds") ||
error.message.includes("stream reset")
) {
return {
code: 503,
message:
"Could not publish message: message size exceeds gossipsub max message size",
};
}
return {
code: 500,
message: `Could not publish message: ${error.message}`,
};
},
};

View File

@ -0,0 +1,117 @@
import { test, expect } from "@playwright/test";
import axios from "axios";
import { StartedTestContainer } from "testcontainers";
import { DefaultTestRoutingInfo } from "@waku/tests";
import {
startBrowserTestsContainer,
stopContainer
} from "./utils/container-helpers.js";
import {
createTwoNodeNetwork,
getDockerAccessibleMultiaddr,
stopNwakuNodes,
TwoNodeNetwork
} from "./utils/nwaku-helpers.js";
import {
ENV_BUILDERS,
TEST_CONFIG,
ASSERTIONS
} from "./utils/test-config.js";
test.describe.configure({ mode: "serial" });
let container: StartedTestContainer;
let nwakuNodes: TwoNodeNetwork;
let baseUrl: string;
test.beforeAll(async () => {
nwakuNodes = await createTwoNodeNetwork();
const lightPushPeerAddr = await getDockerAccessibleMultiaddr(nwakuNodes.nodes[0]);
const result = await startBrowserTestsContainer({
environment: {
...ENV_BUILDERS.withLocalLightPush(lightPushPeerAddr),
DEBUG: "waku:*",
WAKU_LIGHTPUSH_NODE: lightPushPeerAddr,
},
networkMode: "waku",
});
container = result.container;
baseUrl = result.baseUrl;
});
test.afterAll(async () => {
await Promise.all([
stopContainer(container),
stopNwakuNodes(nwakuNodes?.nodes || []),
]);
});
test("WakuHeadless can discover nwaku peer and use it for light push", async () => {
test.setTimeout(TEST_CONFIG.DEFAULT_TEST_TIMEOUT);
const contentTopic = TEST_CONFIG.DEFAULT_CONTENT_TOPIC;
const testMessage = TEST_CONFIG.DEFAULT_TEST_MESSAGE;
await new Promise((r) => setTimeout(r, TEST_CONFIG.WAKU_INIT_DELAY));
const healthResponse = await axios.get(`${baseUrl}/`, { timeout: 5000 });
ASSERTIONS.serverHealth(healthResponse);
try {
await axios.post(`${baseUrl}/waku/v1/wait-for-peers`, {
timeoutMs: 10000,
protocols: ["lightpush"],
}, { timeout: 15000 });
} catch {
// Ignore errors
}
const peerInfoResponse = await axios.get(`${baseUrl}/waku/v1/peer-info`);
ASSERTIONS.peerInfo(peerInfoResponse);
const routingInfo = DefaultTestRoutingInfo;
const subscriptionResults = await Promise.all([
nwakuNodes.nodes[0].ensureSubscriptions([routingInfo.pubsubTopic]),
nwakuNodes.nodes[1].ensureSubscriptions([routingInfo.pubsubTopic])
]);
expect(subscriptionResults[0]).toBe(true);
expect(subscriptionResults[1]).toBe(true);
await new Promise((r) => setTimeout(r, TEST_CONFIG.SUBSCRIPTION_DELAY));
const base64Payload = btoa(testMessage);
const pushResponse = await axios.post(`${baseUrl}/lightpush/v3/message`, {
pubsubTopic: routingInfo.pubsubTopic,
message: {
contentTopic,
payload: base64Payload,
version: 1,
},
});
ASSERTIONS.lightPushV3Success(pushResponse);
await new Promise((r) => setTimeout(r, TEST_CONFIG.MESSAGE_PROPAGATION_DELAY));
const [node1Messages, node2Messages] = await Promise.all([
nwakuNodes.nodes[0].messages(contentTopic),
nwakuNodes.nodes[1].messages(contentTopic)
]);
const totalMessages = node1Messages.length + node2Messages.length;
expect(totalMessages).toBeGreaterThanOrEqual(1);
const receivedMessages = [...node1Messages, ...node2Messages];
expect(receivedMessages.length).toBeGreaterThan(0);
const receivedMessage = receivedMessages[0];
ASSERTIONS.messageContent(receivedMessage, testMessage, contentTopic);
});

View File

@ -0,0 +1,134 @@
import { test, expect } from "@playwright/test";
import axios from "axios";
import { StartedTestContainer } from "testcontainers";
import {
createLightNode,
LightNode,
Protocols,
IDecodedMessage,
} from "@waku/sdk";
import { DEFAULT_CLUSTER_ID, DEFAULT_NUM_SHARDS } from "@waku/interfaces";
import { startBrowserTestsContainer, stopContainer } from "./utils/container-helpers.js";
import { ENV_BUILDERS, TEST_CONFIG } from "./utils/test-config.js";
test.describe.configure({ mode: "serial" });
let container: StartedTestContainer;
let baseUrl: string;
let wakuNode: LightNode;
test.beforeAll(async () => {
const result = await startBrowserTestsContainer({
environment: {
...ENV_BUILDERS.withProductionEnr(),
DEBUG: "waku:*",
},
});
container = result.container;
baseUrl = result.baseUrl;
});
test.afterAll(async () => {
if (wakuNode) {
try {
await wakuNode.stop();
} catch {
// Ignore errors
}
}
await stopContainer(container);
});
test("cross-network message delivery: SDK light node receives server lightpush", async () => {
test.setTimeout(TEST_CONFIG.DEFAULT_TEST_TIMEOUT);
const contentTopic = TEST_CONFIG.DEFAULT_CONTENT_TOPIC;
const testMessage = TEST_CONFIG.DEFAULT_TEST_MESSAGE;
wakuNode = await createLightNode({
defaultBootstrap: true,
discovery: {
dns: true,
peerExchange: true,
peerCache: true,
},
networkConfig: {
clusterId: DEFAULT_CLUSTER_ID,
numShardsInCluster: DEFAULT_NUM_SHARDS,
},
libp2p: {
filterMultiaddrs: false,
},
});
await wakuNode.start();
await wakuNode.waitForPeers(
[Protocols.Filter, Protocols.LightPush],
30000,
);
const messages: IDecodedMessage[] = [];
const decoder = wakuNode.createDecoder({ contentTopic });
if (
!(await wakuNode.filter.subscribe([decoder], (message) => {
messages.push(message);
}))
) {
throw new Error("Failed to subscribe to Filter");
}
await new Promise((r) => setTimeout(r, 2000));
const messagePromise = new Promise<void>((resolve) => {
const originalLength = messages.length;
const checkForMessage = () => {
if (messages.length > originalLength) {
resolve();
} else {
setTimeout(checkForMessage, 100);
}
};
checkForMessage();
});
await axios.post(`${baseUrl}/waku/v1/wait-for-peers`, {
timeoutMs: 30000, // Increased timeout
protocols: ["lightpush", "filter"],
});
await new Promise((r) => setTimeout(r, 10000));
const base64Payload = btoa(testMessage);
const pushResponse = await axios.post(`${baseUrl}/lightpush/v3/message`, {
pubsubTopic: decoder.pubsubTopic,
message: {
contentTopic,
payload: base64Payload,
version: 1,
},
});
expect(pushResponse.status).toBe(200);
expect(pushResponse.data.success).toBe(true);
await Promise.race([
messagePromise,
new Promise((_, reject) =>
setTimeout(() => {
reject(new Error("Timeout waiting for message"));
}, 45000),
),
]);
expect(messages).toHaveLength(1);
const receivedMessage = messages[0];
expect(receivedMessage.contentTopic).toBe(contentTopic);
const receivedPayload = new TextDecoder().decode(receivedMessage.payload);
expect(receivedPayload).toBe(testMessage);
});

View File

@ -0,0 +1,82 @@
import { test, expect } from "@playwright/test";
import axios from "axios";
import { spawn, ChildProcess } from "child_process";
import { fileURLToPath } from "url";
import { dirname, join } from "path";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
test.describe.configure({ mode: "serial" });
test.describe("Server Tests", () => {
let serverProcess: ChildProcess;
let baseUrl = "http://localhost:3000";
test.beforeAll(async () => {
const serverPath = join(__dirname, "..", "dist", "src", "server.js");
serverProcess = spawn("node", [serverPath], {
stdio: "pipe",
env: { ...process.env, PORT: "3000" }
});
serverProcess.stdout?.on("data", (_data: Buffer) => {
});
serverProcess.stderr?.on("data", (_data: Buffer) => {
});
await new Promise((resolve) => setTimeout(resolve, 3000));
let serverReady = false;
for (let i = 0; i < 30; i++) {
try {
const res = await axios.get(`${baseUrl}/`, { timeout: 2000 });
if (res.status === 200) {
serverReady = true;
break;
}
} catch {
// Ignore errors
}
await new Promise((r) => setTimeout(r, 1000));
}
expect(serverReady).toBe(true);
});
test.afterAll(async () => {
if (serverProcess) {
serverProcess.kill("SIGTERM");
await new Promise((resolve) => setTimeout(resolve, 1000));
}
});
test("server health endpoint", async () => {
const res = await axios.get(`${baseUrl}/`);
expect(res.status).toBe(200);
expect(res.data.status).toBe("Waku simulation server is running");
});
test("static files are served", async () => {
const htmlRes = await axios.get(`${baseUrl}/app/index.html`);
expect(htmlRes.status).toBe(200);
expect(htmlRes.data).toContain("Waku Test Environment");
const jsRes = await axios.get(`${baseUrl}/app/index.js`);
expect(jsRes.status).toBe(200);
expect(jsRes.data).toContain("WakuHeadless");
});
test("Waku node auto-started", async () => {
try {
const infoRes = await axios.get(`${baseUrl}/waku/v1/peer-info`);
expect(infoRes.status).toBe(200);
expect(infoRes.data.peerId).toBeDefined();
expect(infoRes.data.multiaddrs).toBeDefined();
} catch (error) {
expect(error.response?.status).toBe(400);
}
});
});

View File

@ -0,0 +1,128 @@
import axios from "axios";
import { GenericContainer, StartedTestContainer } from "testcontainers";
import { Logger } from "@waku/utils";
const log = new Logger("container-helpers");
export interface ContainerSetupOptions {
environment?: Record<string, string>;
networkMode?: string;
timeout?: number;
maxAttempts?: number;
}
export interface ContainerSetupResult {
container: StartedTestContainer;
baseUrl: string;
}
/**
* Starts a waku-browser-tests Docker container with proper health checking.
* Follows patterns from @waku/tests package for retry logic and cleanup.
*/
export async function startBrowserTestsContainer(
options: ContainerSetupOptions = {}
): Promise<ContainerSetupResult> {
const {
environment = {},
networkMode = "bridge",
timeout = 2000,
maxAttempts = 60
} = options;
log.info("Starting waku-browser-tests container...");
let generic = new GenericContainer("waku-browser-tests:local")
.withExposedPorts(8080)
.withNetworkMode(networkMode);
// Apply environment variables
for (const [key, value] of Object.entries(environment)) {
generic = generic.withEnvironment({ [key]: value });
}
const container = await generic.start();
// Set up container logging - stream all output from the start
const logs = await container.logs();
logs.on("data", (b) => process.stdout.write("[container] " + b.toString()));
logs.on("error", (err) => log.error("[container log error]", err));
// Give container time to initialize
await new Promise((r) => setTimeout(r, 5000));
const mappedPort = container.getMappedPort(8080);
const baseUrl = `http://127.0.0.1:${mappedPort}`;
// Wait for server readiness with retry logic (following waku/tests patterns)
const serverReady = await waitForServerReady(baseUrl, maxAttempts, timeout);
if (!serverReady) {
await logFinalContainerState(container);
throw new Error("Container failed to become ready");
}
log.info("✅ Browser tests container ready");
await new Promise((r) => setTimeout(r, 500)); // Final settling time
return { container, baseUrl };
}
/**
* Waits for server to become ready with exponential backoff and detailed logging.
* Follows retry patterns from @waku/tests ServiceNode.
*/
async function waitForServerReady(
baseUrl: string,
maxAttempts: number,
timeout: number
): Promise<boolean> {
for (let i = 0; i < maxAttempts; i++) {
try {
const res = await axios.get(`${baseUrl}/`, { timeout });
if (res.status === 200) {
log.info(`Server is ready after ${i + 1} attempts`);
return true;
}
} catch (error) {
if (i % 10 === 0) {
log.info(`Attempt ${i + 1}/${maxAttempts} failed:`, error.code || error.message);
}
}
await new Promise((r) => setTimeout(r, 1000));
}
return false;
}
/**
* Logs final container state for debugging, following waku/tests error handling patterns.
*/
async function logFinalContainerState(container: StartedTestContainer): Promise<void> {
try {
const finalLogs = await container.logs({ tail: 50 });
log.info("=== Final Container Logs ===");
finalLogs.on("data", (b) => log.info(b.toString()));
await new Promise((r) => setTimeout(r, 1000));
} catch (logError) {
log.error("Failed to get container logs:", logError);
}
}
/**
* Gracefully stops containers with retry logic, following teardown patterns from waku/tests.
*/
export async function stopContainer(container: StartedTestContainer): Promise<void> {
if (!container) return;
log.info("Stopping container gracefully...");
try {
await container.stop({ timeout: 10000 });
log.info("Container stopped successfully");
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
log.warn(
"Container stop had issues (expected):",
message
);
}
}

Some files were not shown because too many files have changed in this diff Show More