Commit Graph

216 Commits

Author SHA1 Message Date
dependabot[bot]
4760d9b302 deps: bump @types/node from 20.12.7 to 20.14.8 in /js-peer (#166)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
2024-06-24 09:55:54 -05:00
dependabot[bot]
a834022f8d deps: bump @types/react from 18.3.2 to 18.3.3 in /js-peer (#164)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
2024-06-17 08:50:38 -05:00
dependabot[bot]
4d972d6247 deps: bump libp2p from 1.5.1 to 1.6.1 in /js-peer (#162)
Bumps [libp2p](https://github.com/libp2p/js-libp2p) from 1.5.1 to 1.6.1.
- [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/libp2p-v1.5.1...libp2p-v1.6.1)

---
updated-dependencies:
- dependency-name: libp2p
  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-06-12 14:12:45 +02:00
dependabot[bot]
4025ed5008 deps: bump @libp2p/webtransport from 4.0.30 to 4.0.32 in js-peer (#161)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
2024-06-10 08:33:23 -05:00
dependabot[bot]
4a5466fdcc deps: bump eslint-config-next from 14.2.2 to 14.2.3 in /js-peer (#159)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
2024-06-03 04:03:38 -05:00
dependabot[bot]
b5093a2d13 deps: bump github.com/multiformats/go-multiaddr in /go-peer (#155)
Bumps [github.com/multiformats/go-multiaddr](https://github.com/multiformats/go-multiaddr) from 0.12.3 to 0.12.4.
- [Release notes](https://github.com/multiformats/go-multiaddr/releases)
- [Commits](https://github.com/multiformats/go-multiaddr/compare/v0.12.3...v0.12.4)

---
updated-dependencies:
- dependency-name: github.com/multiformats/go-multiaddr
  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-05-28 15:00:12 -07:00
dependabot[bot]
0761920fc4 deps: bump react-dom and @types/react-dom in /js-peer (#158)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
2024-05-27 11:07:36 -05:00
dependabot[bot]
d205aa1ad6 deps: bump next from 14.2.2 to 14.2.3 in /js-peer (#151)
Bumps [next](https://github.com/vercel/next.js) from 14.2.2 to 14.2.3.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v14.2.2...v14.2.3)

---
updated-dependencies:
- dependency-name: next
  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-05-23 11:02:55 +02:00
dependabot[bot]
293116d9bf deps: bump react and @types/react in /js-peer (#152)
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react). These dependencies needed to be updated together.

Updates `react` from 18.2.0 to 18.3.1
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v18.3.1/packages/react)

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

---
updated-dependencies:
- dependency-name: react
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: "@types/react"
  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-05-22 10:40:22 +02:00
Daniel Norman
415cfe8d5a feat: bind to ipv6 interfaces (#148)
Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-10 14:49:11 +02:00
Daniel Norman
6636f2bd12 feat: add chat peer list (#147)
fixes #21

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-08 17:44:08 +02:00
Daniel Norman
ba9c27ca3e ci: run rust and go ci conditionally when they change (#146)
Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-08 13:00:36 +02:00
Daniel Norman
5d26f8662f feat: add proper logger (#144)
Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-08 13:00:10 +02:00
Daniel Norman
da56cf364f fix: upgrade libp2p deps (#145)
* chore: upgrade libp2p deps

* chore: remove libp2p/kad-dht

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-08 12:52:18 +02:00
dependabot[bot]
e9df860ddf deps: bump @libp2p/identify from 1.0.19 to 2.0.0 in js-peer (#140)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
2024-05-07 11:47:35 -05:00
dependabot[bot]
6bdb1fc69b deps: bump @libp2p/websockets from 8.0.20 to 8.0.22 in js-peer (#139)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
2024-05-07 11:46:44 -05:00
Daniel Norman
de4a938160 chore: remove no-op buttons (#143)
* chore: remove no-op buttons

* chore: format code

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-07 17:51:25 +02:00
Daniel Norman
76af2f7c6d feat: improve peer list styling (#142)
* refactor: remove unnecessary contexts

* feat: improve peer list

* chore: remove commented code

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-07 15:57:55 +02:00
@RandyMcMillan
2dec2d483d ci update libp2p/uci (#134)
* rust-peer/src/main.rs:remove unused time::Instant

* .github/workflows/ci.yml:link to libp2p/uci/.github/workflows
2024-05-07 13:41:28 +02:00
Daniel Norman
bcce1fbb80 feat: add pubsub browser peer discovery (#133)
* rust-peer: do not add externally observed maddrs

Might fix #131

* feat: subscribe go peer to peer discovery topic

* feat: add pubsub peer discovery to js peer

* fix: build

* fix: use peer:discovery event to hook to peer discovery events

* fix: remove idb datastore

no real reason to use it for now

* feat: dial peers discovered through pubsub

* chore: simplify code and move out fn

* feat: autodial discovered with connection manager

* chore: remove connection manager logs

* refactor: simplify code further

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-07 12:24:55 +02:00
Daniel Norman
2246b251a1 fix: styling (#138)
Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-03 17:57:18 +02:00
Daniel Norman
f6a399d8aa add disconnect button (#137)
* feat: create circuit relay reservations on bootstrappers

* feat: persistent peer id in js-peer

* fix: pass relay listen addrs to libp2p

* Revert "feat: persistent peer id in js-peer"

Turns out this is a bad idea in a browser that can have multiple tabs
open and you don't want them to share the same peer ID

This reverts commit 50175a2fc9aff0668c399f88dc3f16636a39ee57.

* fix: import missing type

* chore: clean up bootstrap connection code

* fix: allow zero connections

avoid libp2p trying to establish connections automatically after
disconnecting

* feat: add disconnect button to peers

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-03 17:29:47 +02:00
Daniel Norman
eef2cf4fe9 chore: clean up bootstrap connection code (#136)
* feat: create circuit relay reservations on bootstrappers

* feat: persistent peer id in js-peer

* fix: pass relay listen addrs to libp2p

* Revert "feat: persistent peer id in js-peer"

Turns out this is a bad idea in a browser that can have multiple tabs
open and you don't want them to share the same peer ID

This reverts commit 50175a2fc9aff0668c399f88dc3f16636a39ee57.

* fix: import missing type

* chore: clean up bootstrap connection code

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-03 16:17:16 +02:00
Daniel Norman
6354a4abb2 feat: create circuit relay reservations on bootstrappers (#118)
* feat: create circuit relay reservations on bootstrappers

* feat: persistent peer id in js-peer

* fix: pass relay listen addrs to libp2p

* Revert "feat: persistent peer id in js-peer"

Turns out this is a bad idea in a browser that can have multiple tabs
open and you don't want them to share the same peer ID

This reverts commit 50175a2fc9aff0668c399f88dc3f16636a39ee57.

* fix: import missing type

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-05-03 16:13:24 +02:00
dependabot[bot]
d6aa4c8d49 chore(deps): bump it-map from 3.0.5 to 3.1.0 in /js-peer (#126)
Bumps [it-map](https://github.com/achingbrain/it) from 3.0.5 to 3.1.0.
- [Release notes](https://github.com/achingbrain/it/releases)
- [Commits](https://github.com/achingbrain/it/compare/it-map-v3.0.5...it-map-3.1.0)

---
updated-dependencies:
- dependency-name: it-map
  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-05-02 12:23:38 +02:00
dependabot[bot]
d2f9cdef04 chore(deps): bump @libp2p/bootstrap from 10.0.20 to 10.0.21 in /js-peer (#129)
Bumps [@libp2p/bootstrap](https://github.com/libp2p/js-libp2p) from 10.0.20 to 10.0.21.
- [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/mdns-v10.0.20...mdns-v10.0.21)

---
updated-dependencies:
- dependency-name: "@libp2p/bootstrap"
  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-04-29 16:19:18 +02:00
dependabot[bot]
0655ce6b96 chore(deps): bump @libp2p/webtransport from 4.0.27 to 4.0.28 in /js-peer (#130)
Bumps [@libp2p/webtransport](https://github.com/libp2p/js-libp2p) from 4.0.27 to 4.0.28.
- [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/webrtc-v4.0.27...webrtc-v4.0.28)

---
updated-dependencies:
- dependency-name: "@libp2p/webtransport"
  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-04-29 16:19:08 +02:00
Daniel N
0d235e7eaa chore: move daniel to js-peer codeowners 2024-04-29 15:10:50 +02:00
Daniel N
3a8453c9e0 chore: consolidate dependabots files
limit no of prs to 2 per peer
2024-04-29 15:07:19 +02:00
Daniel Norman
94136cd2b6 add dependabot.yml 2024-04-29 14:58:57 +02:00
Daniel Norman
9be51a387b Update CODEOWNERS
Add daniel as global code-owner
2024-04-29 13:56:44 +02:00
Daniel Norman
ce411c6ff7 feat: connect to bootstrap nodes (#114)
Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-04-26 15:11:48 +02:00
Daniel Norman
86462f2b4c JS peer improvements (#116)
* feat: delegated routing for bootstrap multiaddrs

* feat: allow getting messages when not on chat page

also clean up and refactor some of the logic

* docs: add log line

* chore: disable eslint warning

* chore: enable indexeddb datastore

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-04-26 14:56:39 +02:00
Daniel Norman
31a99ed91e chore: remove tick message (#117)
Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-04-26 14:50:59 +02:00
Daniel Norman
7c90820741 feat: enable circuit relay v2 in go peer (#115)
this should help browser peers establish direct p2p connections through
the circuit relay v2 reservation

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-04-26 10:35:56 +02:00
Daniel Norman
5a7f5421c3 feat: use ipfs dht (#113)
* feat: use ipfs dht

* fix: use ipfs dht and with auto mode

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-04-25 13:58:12 +02:00
Daniel Norman
958e2755e9 Update js deps (#112)
* chore: remove fly.io deployment

Due to their networking layer, web transport wasn't working anyways

* chore: upgrade deps

---------

Co-authored-by: Daniel N <2color@users.noreply.github.com>
2024-04-24 16:54:40 +02:00
Daniel N
c771f56413 chore: update bootstrap nodes 2024-04-24 15:48:10 +02:00
dozyio
7bb6e3d96b deps: bump go dependencies (#111)
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
2024-04-23 12:44:21 -05:00
dozyio
893c57c326 chore: js-peer bump deps including libp2p to 1.x (#110) 2024-03-13 08:53:30 -07:00
GitHub
8d08a8582f chore: Update .github/workflows/stale.yml [skip ci] 2024-01-31 16:49:25 +00:00
GitHub
51f1821f7e chore: Update .github/CODEOWNERS [skip ci] 2024-01-31 16:49:09 +00:00
dozyio
5c2d93e9c9 feat: log connection errors & add spinner (#107)
* chore: connection errors and spinner

* chore: dialing -> dialling

* chore: connecting text during dial

* chore: move spinner to new component

* chore: fmt svg props
2023-12-11 11:48:43 +01:00
dozyio
28ee7ba01b chore: bump deps (#106) 2023-12-05 09:56:33 -05:00
Daniel N
758f4ae641 Add dual MIT and Apache-2 license 2023-11-23 12:42:21 +01:00
Chad Nehemiah
e2d673e71c deps: upgrade js-peer to latest libp2p (#103)
Co-authored-by: Daniel N <2color@users.noreply.github.com>
2023-11-14 16:40:20 +03:00
Daniel N
83110e01d1 add header link to source repo 2023-11-14 14:54:32 +03:00
Daniel Norman
3fab26e04a update webrtc bootstrapper 2023-11-13 13:11:09 +03:00
Daniel N
51dedf69c4 change default boostrap node 2023-11-13 11:21:33 +03:00
Thomas Eizinger
c922cee8b5 feat(rust): add memory-based connection limits (#102) 2023-10-09 08:10:32 +11:00