Danish Arora
2389977a98
chore!: refactor store protocol for readability ( #1456 )
...
* refactor store protocol for readability
* update interface
* fix: test
* rm: comments
* Update packages/core/src/lib/store/index.ts
Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
* fix commit
---------
Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
2023-08-28 13:19:47 +05:30
Danish Arora
87717981eb
chore: upgrade libp2p and related deps ( #1482 )
...
* chore: update noise
* update: package.lock
* update: @chainsafe/libp2p-gossipsub
* rm unwanted libp2p interface deps & bump up libp2p
* refactor code for new deps
* update: new package.lock
* setup prettier, refactor eslint and rm trailing commas
* update package.lock
* fix build
* import type for interface
* fix imports for merge
* update typedoc exports
* add: CustomEvent import
* use new libp2p interface
* add aegir as dev dep for tests
2023-08-16 20:18:13 +05:30
Sasha
51f9261a16
chore: update dependencies ( #1460 )
...
* update to latest prettier
* fix with prettier: added trailing comma
* remove deps from test package, add sinon types, fix type hack in a test, update esling prettier config
* update typescript eslint plugins
* update package-locks
2023-08-11 15:14:02 +02:00
fryorcraken.eth
008bb6ca2e
test: topics arg renamed to topic in nwaku
2023-06-30 15:14:01 +10:00
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
60304bc908
chore: rename file to node.ts ( #1363 )
...
* rename file to node.ts
* update imports
2023-05-19 01:38:43 +05:30
Danish Arora
d80042fc47
fix: failing px tests for nwaku master ( #1355 )
...
* move dockerode into a separate class
* rename `nwaku` to `WakuNode` to generalise
- nwaku and go-waku were running through
`nwaku.ts`
* move wakunode and docker into one subdir
* rename node to `NimGoNode` and update imports in tests
* update docker to host all containers in a specific network
* update the peer exchange test
* assign static IPs to containers
* enable relay on px interop
* fix px compliance tests
* fix import
2023-05-19 01:28:49 +05:30
Danish Arora
dc3774c0ed
feat: use nwaku/go-waku docker images instead of building binaries ( #1259 )
...
* merge: master
* fix: CI
* use: js script instead of shell script to run precheck and mocha
* use `console.log` instead of `debug.log` for `run-tests.js`
2023-04-17 10:29:36 +05:30
Sasha
0f6a594644
feat!: use ISender and deprecate Light Push .push ( #1217 )
2023-03-21 02:07:59 +01:00
Danish Arora
a30b2bd747
chore!: add exports map to @waku/utils ( #1201 )
...
* add exports map
* merge: master
* export subdir with default export path
* import according to the export path
2023-03-14 10:10:38 +05:30
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
da1b18d995
feat: export Decoder, Encoder and DecodedMessage types from root
...
Fixes #1010
2023-03-08 09:52:27 +11:00
fryorcraken.eth
5cf8ed2030
chore!: update message.proto: payload and content topic are always defined
...
Ref: https://github.com/vacp2p/waku
2023-02-27 14:00:33 +11:00
Danish Arora
b33306655a
chore: move libp2p and byte utils to a single utils package ( #1149 )
...
* move libp2p and byte utils to a single `utils`
package
* set package version to 0.0.1
2023-02-06 11:22:36 +05:30
Danish Arora
8910a6d76a
chore: move args for createEncoder into non-repeating options & fix typedoc ( #1146 )
...
* move args for `createEncoder` into non-repeating `options` & fix typedoc
* update tests with new API
2023-02-02 11:37:28 +05:30
fryorcraken.eth
f743cfd1ca
chore: rename node interfaces to include Node in name
...
Also rename node with only relay to `RelayNode`.
2022-12-12 22:36:14 +11:00
fryorcraken.eth
cc691e26ce
feat: added I prefix to message/codec interfaces
...
To make it easier to differentiate with their implementations.
2022-12-12 22:13:46 +11:00
Danish Arora
d6de62a391
chore: remove relay as default when starting nwaku for tests ( #1044 )
...
* chore: redeploy
* remove: relay as default for nwaku
* address: comments
* remove relay as default and add where needed
* Update packages/tests/tests/light_push.node.spec.ts
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
2022-12-12 11:08:08 +05:30
fryorcraken.eth
33ed43c068
feat: waitForRemotePeer can now be directly imported from @waku/core
2022-12-05 15:14:51 +11:00
fryorcraken.eth
f7fabec8b3
feat: easy import by having an export map for each type of encryption
2022-12-05 15:14:17 +11:00
fryorcraken.eth
e8efd5e962
feat!: export user functions from package root
...
`createEncoder`, `createDecoder` and `DecodedMessage` are function/types
useful to the user so they should have easy access to it.
We still export `Decoder` and `Encoder` but in a path so it cam be
re-used by `@waku/message-encryption`.
2022-12-05 09:34:17 +11:00
fryorcraken.eth
ad15f861c3
feat!: hide Decoder/Encoder classes to user
...
Reasoning: by exposing the `Decoder` and `Encoder` classes to the user,
the user may care about them, try to use the method etc.
By "hiding" them away and providing `create*` help, the aim is for the
user to just call a function instead of instantiating a class.
Also, `V0` does not provide much information to the user so removing it.
2022-12-05 09:34:17 +11:00
fryorcraken.eth
88c6ec6ef4
chore: add '.js' extensions to local import
...
As per ESM standard.
2022-12-02 15:54:30 +11:00
fryorcraken.eth
2a0b06f361
test: use createLightNode instead of a full node
...
As full node was only necessary due to an issue nwaku v0.11.
Ref: https://github.com/status-im/nwaku/pull/1090
2022-11-21 10:52:33 +11:00
danisharora099
100eb4c4b4
Merge branch 'master' into danisharora/cursor-support-store
2022-11-17 13:00:48 +05:30
fryorcraken.eth
c8e286a42a
test: Fix flaky ephemeral test and general improvement
...
The messages were sent at the same time over light push so there was
no strong order preservation from the behaviour.
Correction: order does not matter, just check that messages aren't
present.
Messages were only checked for `ephemeral` being false + one test was
doing several checks.
Correction: split the test and use light push + filter to check
ephemeral field value preservation.
2022-11-17 12:31:33 +11:00
fryorcraken.eth
b6faebc422
test: fix flaky test
2022-11-17 12:31:32 +11:00
danisharora099
0e0660f5b1
revert: timeout
2022-11-16 19:06:32 +05:30
danisharora099
5c4118041e
fix: cursor
2022-11-16 18:57:46 +05:30
Danish Arora
9613e9c41d
Merge branch 'master' into danisharora/cursor-support-store
2022-11-16 13:26:35 +05:30
fryorcraken.eth
59992832fe
feat!: add Waku Message ephemeral support
2022-11-16 11:00:43 +11:00
danisharora099
8f243eb325
fix: git diff
2022-11-15 18:07:29 +05:30
danisharora099
69b64af548
add: tests
2022-11-15 17:30:35 +05:30
fryorcraken.eth
74d7bb90c7
test: compare all messages at once
...
Makes it easier to understand the order mismatch.
2022-11-15 22:01:27 +11:00
fryorcraken.eth
11c9823a9d
test: use byte payload to more easily read nwaku's logs
2022-11-15 22:01:27 +11:00
fryorcraken.eth
c3c3833b1b
test: nwaku's store now reject messages older than 20s
2022-11-15 22:01:27 +11:00
fryorcraken.eth
9cdc9f96ac
test: nwaku's --persist-message is now deprecated
...
`--store=true` is enough to enable message persist for waku store.
2022-11-15 22:01:26 +11:00
danisharora099
0169a0ccb1
functionality works! test wip
2022-11-15 05:17:24 +05:30
fryorcraken.eth
a60f2e529c
test: remove todo now that @multiformats/multiaddr@11 is used by all deps
2022-11-09 14:47:13 +11:00
fryorcraken.eth
1a09aa18d5
chore: fix tests
2022-11-04 11:45:15 +11:00
fryorcraken.eth
e901e7f69d
chore: fix tests build
2022-11-03 21:48:04 +11:00
fryorcraken.eth
b11d465a9d
chore: move tests to remove circular dep
2022-11-01 21:31:53 +11:00
fryorcraken.eth
3d08cb28c8
chore: move tests to separate package
2022-11-01 20:13:09 +11:00