Commit Graph

96 Commits

Author SHA1 Message Date
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
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] 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
Franck R ed23332965
Allow passing multiaddr to `bootstrap.peers` (#608) 2022-03-09 18:38:28 +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 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
Franck R 146c67e43e
Predefine bootstrap node (#528) 2022-02-16 11:43:57 +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
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] 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] 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
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] 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] 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
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 d9248dbc56
Replace `waitForConnectedPeer` with `waitForRemotePeer` (#469) 2022-01-30 21:56:21 +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] 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
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
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
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 Royer 4fd2db608b
Update caniuse in all examples 2022-01-13 16:40:11 +11:00
Franck Royer 284644b822
Fix-up new bootstrap API 2022-01-13 16:39:52 +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
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 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 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
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
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 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 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 4719de31b8
Run build with NodeJS 16 2021-08-26 13:02:09 +10:00
Franck Royer 5c1cda8b2a
Demonstrate usage of history time filter in web chat 2021-08-26 11:50:20 +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 eb04acd1a0
Fix format 2021-08-09 14:40:57 +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 319f44a0b1
`WakuStore.queryHistory` throws when encountering an error
Instead of returning a `null` value.
2021-08-09 12:36:24 +10:00