Commit Graph

2907 Commits

Author SHA1 Message Date
Arseniy Klempner 789a5e1bef
feat: only dial a peer if it has a wss multiaddr 2024-04-25 22:18:26 -07: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