Commit Graph

21 Commits

Author SHA1 Message Date
Danish Arora d483644a4b
chore!: remove filter v1 (#1433)
* rm: v1

* fix v2 imports

* remove tests for filter v1

* set filter v1 as default and rm v2 completely

* change import name for filter v2

* rename FilterV2 to Filter completely

* fix run check
2023-07-26 11:30:48 +05:30
Danish Arora 951ebdac9d
feat!: rename package from @waku/create to @waku/sdk (#1386)
* feat!(@waku/sdk): rename package from @waku/create to @waku/sdk

* feat: proxy @waku/core and @waku/utils through @waku/sdk

* address comments

* update package-lock

* Update .size-limit.cjs

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>

* integrate to release please

---------

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
Co-authored-by: Sasha <oleksandr@status.im>
2023-06-05 13:40:13 +02:00
Danish Arora 8d0e647966
feat!: filter v2 (#1332)
* implement proto

* implement filter v2

* add tests

* minor improvements
- make unsubscribe functions private in
filter
- enable all tests

* enable all tests

* readd multiaddrinput

* address comment removals

* unsubscribe based on contentFilters passed

* update unsubscribe function parameters in test

* reset interfaces & filter v1

* refactor filterv2 into 2 classes
- removes generics from types on filter which means
manual typecasting to filter version is required on
consumer side
- defaults to filterv2
- splits filterv2 into 2 classes:
  - one to create the subscription object with a
peer which returns the second class
  - the other to manage all subscription functions

* updates filter tests for the new API
- also fixes an interface import

* update `toAsyncIterator` test for Filter V1

* implement IReceiver on FilterV2

* remove return values from subscription functions

* update `to_async_iterator`

* address variable naming

* add tsdoc comments for hidden function

* address minor comments

* update docs to default to filter v2

* address comments

* rename `wakuFilter` to `wakuFilterV1`

* chore: Remove static variables (#1371)

* chore: Remove static variables

- Remove internal types from `@core/interfaces`
- Remove data being redundantly stored (pubsub topic)
- Remove usage of static variables
- Clean up callbacks and decoders when using `unsubscribe`
- Clean up callbacks and decoders when using `unsubscribeAll`

* fix setting activeSubscription

---------

Co-authored-by: danisharora099 <danisharora099@gmail.com>

* make activeSub getter and setter private

* update size-limit

---------

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2023-05-23 16:06:46 +05:30
Danish Arora 50c2c2540f
feat!: @waku/relay (#1316)
* move constants & core's func to @waku/utils

* setup @waku/relay

* use @waku/relay for create

* address: principal review

* fix: size-limit

* move all constants to @waku/core

* move TopicOnlyDecoder to relay

* merge: master

* fix: tests

* Move constants out of core (#1340)

* update package.lock

* change constants folder into a ts file

* use dependency version as * instead of version number

* add constants import from @waku/core

* add empty changelog file for relay

---------

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2023-05-11 14:08:00 +05:30
fryorcraken.eth fe57461329
feat: implement deterministic message hash logic 2023-05-06 13:50:20 +10: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 1fff8962b0
chore: fix size-limit 2022-12-12 22:15:49 +11:00
fryorcraken.eth 98ac346325
chore: prettier cjs files in root dir 2022-12-12 22:15:20 +11:00
fryorcraken.eth f80c3ded0f
chore: fix size-limit 2022-12-05 15:14:51 +11:00
fryorcraken.eth 3346dbbe57
chore: fix size config 2022-11-04 13:34:01 +11:00
fryorcraken.eth 16cca33a59
chore: fix size-limit 2022-11-03 23:04:33 +11:00
fryorcraken.eth ef2475ffb8
chore: fix size-limit 2022-11-02 14:20:20 +11:00
fryorcraken.eth 2cef9d43ea
chore: move size-limit to root 2022-10-31 09:32:46 +11:00
fryorcraken.eth 2f8eb0fbcc
chore: move hidden files to ./core 2022-10-30 21:03:23 +11:00
fryorcraken.eth b2c7e4185f
feat: make message encoding more generic 2022-09-20 12:23:01 +10:00
fryorcraken.eth 6ef0a69d07
ci: fix size-limit config 2022-09-08 18:35:21 +10: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
fryorcraken.eth 11e60aadd5
refactor: move predefined nodes out of dns discovery 2022-08-07 12:03:05 +10:00
fryorcraken.eth d560f8ce0e
fix: bundling with exports map 2022-08-07 12:03:05 +10:00
fryorcraken.eth 187287a28c
feat: all buffer dependencies have been removed 2022-08-05 21:31:41 +10:00
fryorcraken.eth bf47803631
fix: size-limit by setting buffer false in webpack 2022-08-03 16:46:53 +10:00