Commit Graph

2405 Commits

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