Commit Graph

2264 Commits

Author SHA1 Message Date
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