Commit Graph

95 Commits

Author SHA1 Message Date
Akim
c0b73fec4a
feat(js-client)!: Particle signatures [fixes DXJ-466] (#353)
* Introduce particle signatures

* Fix particle id field in particle context

* Fix types

* Fix review comments

* Remove init_peer_id from signature

* Fix typo

* Fix error msg

* Fix async promise constructor antipattern

* Refactor utils

* Move text encoder outside

* Use async/await

* Update packages/core/js-client/src/connection/RelayConnection.ts

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

* Hide crypto implementation beside KeyPair

* Fix verify method

* Comment verify method

* Use particle signature instead of id

* remove async/await from method

* Fix type

* Update packages/core/js-client/src/particle/interfaces.ts

Co-authored-by: folex <0xdxdy@gmail.com>

* Update packages/core/js-client/src/particle/Particle.ts

Co-authored-by: folex <0xdxdy@gmail.com>

* Fix review comment

* Update pipe

* set logging

* try cache

---------

Co-authored-by: shamsartem <shamsartem@gmail.com>
Co-authored-by: folex <0xdxdy@gmail.com>
2023-10-02 19:39:13 +07:00
Akim
15a2c91917
chore: fix build [fixes DXJ-482] (#352)
* Remove additional node targeted build

* Fix test errors

* Typo fix

* Remove headless

* Prevent JSON error

* Cache json parsing

* Remove resource test as it's not working in new nox

* Fix test output

* enable smoke tests

* add puppeteer to deps

* Remove headless option
2023-09-29 16:23:06 +07:00
fluencebot
63e4ce3f84
chore: release master (#351) 2023-09-22 10:24:58 +00:00
renovate[bot]
945908a992
fix(deps): update dependency @fluencelabs/avm to v0.48.0 (#350)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-22 16:58:56 +07:00
fluencebot
d35eccc80d
chore: release master (#349) 2023-09-22 06:52:43 +00:00
Akim
7fff3b1c03
feat(aqua-compiler)!: JS-client aqua wrapper [fixes DXJ-461] (#347)
* Implement wrapper compiler

* Small formatting fixes

* Add simple test

* Package rename

* Add new package to release-please

* Misc fixes

* Fix object type

* Update package name

* Revert "Fix object type"

This reverts commit 572f1e10e2.

* Set string type

* Make generator func async

* Cleanup

* Code refactoring

* Fix PR comments

* Fix file path

* Refactor generate module

* Change header text

* Rename package

* Move some deps to devDeps

* Add a comment

* New index file

* Move aqua-api to devDeps

* Add desc

* Fix header

* Change return type

* Fix all tests

* Fix func

* Fix index file

* Add file entry

* Change package name (again)

* Snapshot testing

* Add func name

* Fix return type

* Fix nox images

* Update aurora image

* Conditional services

* Use function instead classes

* Refactor header

* Import same type

* Make named export

* Type generator array
2023-09-21 15:32:27 +07:00
fluencebot
580aff0042
chore: release master (#345) 2023-09-15 14:39:01 +00:00
renovate[bot]
f186f20936
fix(deps): update dependency @fluencelabs/avm to v0.47.0 (#341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-15 21:26:20 +07:00
fluencebot
ba3dfa7d39
chore: release master (#344) 2023-09-14 18:08:14 +00:00
Akim
88fcf02d5f
fix(libp2p): Add fluence protocol to local peer store protocols [fixes DXJ-471] (#343)
Add fluence protocol to local peer store protocols
2023-09-14 19:53:37 +07:00
fluencebot
31dab07e6d
chore: release master (#340)
Co-authored-by: Akim <59872966+akim-bow@users.noreply.github.com>
2023-09-14 17:54:03 +07:00
Akim
e0a970d86a
fix: Fire and forget [fixes DXJ-446] (#336)
* Add test for particle and try to fix it

* Fix build

* Fix tests

* Fix stop order

* FluencePeer refactoring

* mplex to yamux

* Small fixes

* Refactor connections

* Update packages/core/js-client/src/jsPeer/FluencePeer.ts

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

* Remove redundant checks

* Update packages/core/js-client/src/jsPeer/FluencePeer.ts

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

* Suppress very long output of raw data

* Test for parallel execution

* Fix test

* Misc optimization

* Add minRepr

* Fix reset error

* Latest default nox image

---------

Co-authored-by: shamsartem <shamsartem@gmail.com>
2023-09-14 10:22:59 +07:00
fluencebot
b79039dff3
chore: release master (#339) 2023-09-07 13:05:34 +00:00
renovate[bot]
8e6918c4da
fix(deps): update dependency @fluencelabs/avm to v0.46.0 (#338)
* fix(deps): update dependency @fluencelabs/avm to v0.46.0

* Set nox image

* Add nox image to other file

* bump nox

* Update .github/workflows/e2e.yml

* Update .github/workflows/e2e.yml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Akim Mamedov <akim99999999@gmail.com>
Co-authored-by: Akim <59872966+akim-bow@users.noreply.github.com>
Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
Co-authored-by: shamsartem <shamsartem@gmail.com>
2023-09-07 14:48:05 +02:00
fluencebot
8155e3487e
chore: release master (#335) 2023-09-07 11:19:08 +07:00
Akim
e7e617661f
feat: remove obsolete packages [fixes DXJ-462] (#337)
* Remove api package

* Not publish interface package

* Refactoring of interface package

* Fix aqua imports

* Change impl of isFluencePeer

* Remove unused property
2023-09-05 21:38:59 +07:00
Akim
18a972b573
fix(logger): Change formatter that collides with new libp2p version [fixes DXJ-459] (#334)
* Change formatter that collides with new libp2p version
2023-08-29 23:32:10 +07:00
fluencebot
ea62bafc45
chore: release master (#329)
* chore: release master

* chore: Regenerate pnpm lock file
2023-08-29 20:20:16 +07:00
Akim
477c6f0c15
fix: Use info log level instead trace [Fixes DXJ-457] (#328)
Use info log level instead trace
2023-08-25 16:42:56 +00:00
fluencebot
f2e5beeca5
chore: release master (#325)
* chore: release master

* chore: Regenerate pnpm lock file
2023-08-25 00:50:55 +07:00
Akim
97c24918d8
feat!: Unify all packages (#327)
* * Separate marine worker as a package
* Trying to fix tests

* Finalizing test fixes

* fix: rename back to Fluence CLI (#320)

chore: rename back to Fluence CLI

* fix(deps): update dependency @fluencelabs/avm to v0.43.1 (#322)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: release master (#324)

* chore: release master

* chore: Regenerate pnpm lock file

* feat: use marine-js 0.7.2 (#321)

* use marine-js 0.5.0

* increace some timeouts

* increace some timeouts

* use latest marine + remove larger timeouts

* propagate CallParameters type

* use marine 0.7.2

* Temp use node 18 and 20

* Comment out node 20.x

---------

Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>

* chore: Fix test with node 18/20 error message (#323)

* Fix test with node 18/20 error message

* Run tests on node 18 and 20

* Enhance description

* Fix type and obj property

---------

Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>

* * Separate marine worker as a package
* Trying to fix tests

* Finalizing test fixes

* * Refactoring packages.
* Using CDN to load .wasm deps.
* Setting up tests for new architecture

* Fix almost all tests

* Fix last strange test

* Remove package specific packages

* Remove avm class as it looks excessive

* marine worker new version

* misc refactoring/remove console.log's

* Rename package js-peer to js-client

* Move service info to marine worker

* Change CDN path

* Fix worker race confition

* Remove buffer type

* Remove turned off headless mode in platform tests

* Remove async keyword to make tests pass

* Remove util package

* Make js-client.api package just reexport interface from js-client main package

* Update package info in CI

* Fix review comments

* Remove test entry from marine-worker package

* Misc fixes

* Fix worker type

* Add fetchers

* Specify correct versions for js-client package

* Set first ver for js-client

* Update libp2p and related dep versions to the latest

* Build all deps into package itself

* Fix review

* Refine package

* Fix comment

* Update packages/core/js-client/src/fetchers/browser.ts

* Update packages/core/js-client/src/fetchers/index.ts

* Update packages/core/js-client/src/fetchers/node.ts

* Update packages/core/js-client/src/jsPeer/FluencePeer.ts

* Update packages/core/js-client/src/keypair/__test__/KeyPair.spec.ts

* Update packages/core/js-client/src/jsPeer/FluencePeer.ts

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

* Delete outdated file

* Need types for build to work

* Inline func call

* Add comments to replacement lines.
P.S. we can remove some of them after update libp2p

---------

Co-authored-by: shamsartem <shamsartem@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fluencebot <116741523+fluencebot@users.noreply.github.com>
Co-authored-by: Valery Antopol <valery.antopol@gmail.com>
Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
2023-08-25 00:15:49 +07:00
Akim
2d2f5591cf
chore: Fix test with node 18/20 error message (#323)
* Fix test with node 18/20 error message

* Run tests on node 18 and 20

* Enhance description

* Fix type and obj property

---------

Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
2023-08-09 16:04:22 +03:00
Valery Antopol
c99a509c87
feat: use marine-js 0.7.2 (#321)
* use marine-js 0.5.0

* increace some timeouts

* increace some timeouts

* use latest marine + remove larger timeouts

* propagate CallParameters type

* use marine 0.7.2

* Temp use node 18 and 20

* Comment out node 20.x

---------

Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
2023-08-09 15:38:40 +03:00
fluencebot
f82a37ee96
chore: release master (#324)
* chore: release master

* chore: Regenerate pnpm lock file
2023-08-09 13:34:57 +03:00
renovate[bot]
c1d1fa6659
fix(deps): update dependency @fluencelabs/avm to v0.43.1 (#322)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-08 09:45:40 -05:00
fluencebot
d9b2c00c79
chore: release master (#317)
* chore: release master

* chore: Regenerate pnpm lock file
2023-06-29 13:03:49 -06:00
folex
8bae6e24e6
fix(avm): avm 0.40.0 (#315)
* fix(avm): avm 0.40.0

* fix: remove avm.tgz

* chore(ci): change rust-peer container

* fix: nix tag typo

* Update tests.yml

* try increasing timeout

* even more

* add loggs

* fix error message

* increase default ttl

* revert increased timeouts and ttls

* chore(ci): disable DEBUG=*

* chore(ci): use unstable_minimal for aqua-playground

* chore(ci): fix nox image

---------

Co-authored-by: Anatolios Laskaris <github_me@nahsi.dev>
Co-authored-by: Artsiom Shamsutdzinau <shamsartem@gmail.com>
2023-06-29 12:48:24 -06:00
fluencebot
97177a2b94
chore: release master (#311)
* chore: release master

* chore: Regenerate pnpm lock file
2023-06-20 15:10:59 -06:00
shamsartem
a60dfe0d68
feat: support signatures [fixes DXJ-389] (#310)
* feat: support signatures [fixes DXJ-389]

* chore(ci): use nox with avm 0.39.1

---------

Co-authored-by: folex <0xdxdy@gmail.com>
2023-06-20 13:52:41 -06:00
fluencebot
b9f549f54a
chore: release master (#308)
* chore: release master

* chore: Regenerate pnpm lock file
2023-06-15 14:57:34 +02:00
InversionSpaces
771086fddf
feat: Add tracing service [fixes DXJ-388] (#307)
* Add default tracing service

* fix formatting and logger

* use console.log back again

* Add default tracing service

* fix formatting and logger

* use console.log back again

* update compiled aqua

---------

Co-authored-by: Artsiom Shamsutdzinau <shamsartem@gmail.com>
2023-06-14 15:12:27 +02:00
shamsartem
9821183d53
feat: improve ttl error message (#300) 2023-06-12 17:56:26 +02:00
fluencebot
2615d5cefd
chore: release master (#306)
* chore: release master

* chore: Regenerate pnpm lock file
2023-05-31 10:35:53 +02:00
shamsartem
cf1f02963c
feat: add run-console (#305) 2023-05-30 16:17:51 +02:00
fluencebot
ac25f497b1
chore: release master (#297)
* chore: release master

* chore: Regenerate pnpm lock file
2023-04-04 12:50:50 +02:00
Pavel
0b2f12d8ac
feat: Cleaning up technical debts (#295) 2023-04-03 20:52:40 +03:00
fluencebot
9e0eb8d3bf
chore: release master (#283)
* chore: release master

* chore: Regenerate pnpm lock file
2023-03-31 16:13:43 +03:00
Pavel
58ad3ca6f6
fix(test): All tests are working with vitest [DXJ-306] (#291) 2023-03-23 15:10:51 +03:00
Pavel
e95c34a792
feat(logs): Use debug.js library for logging [DXJ-327] (#285) 2023-03-10 23:03:34 +03:00
Anatolios Laskaris
faf1f7d238
chore(ci): Setup chromium (#284)
* Setup chromium

* Run commentedout tests
2023-03-09 11:39:43 +02:00
Pavel
10d7eaed80
feat(test): Automate smoke tests for JS Client [DXJ-293] (#282) 2023-03-07 19:07:52 +03:00
fluencebot
baf367e88a
chore: release master (#279)
* chore: release master

* chore: Regenerate pnpm lock file
2023-03-03 14:15:57 +03:00
Dima
1ccc483532
fix: Increase number of inbound and outbound streams to 1024 (#280) 2023-03-03 13:59:17 +03:00
Pavel
9ed1e2eafc
fix(docs): Use link to specific page in error message about incorrect JS Client library installation [DXJ 271] (#278) 2023-03-01 21:07:31 +03:00
fluencebot
e3548e9062
chore: release master (#272)
* chore: release master

* chore: Regenerate pnpm lock file
2023-02-22 13:48:55 +03:00
Dima
78d98f15c1
fix: nodenext moduleResolution for js peer (#271) 2023-02-22 13:46:14 +03:00
fluencebot
40c881be5c
chore: release master (#265) 2023-02-16 20:35:10 +03:00
Dima
a899a531fd
fix: Add .npmignore to js-client.node (#264) 2023-02-16 20:33:36 +03:00
fluencebot
7979db85c8
chore: release master (#263) 2023-02-16 16:41:45 +02:00
Anatolios Laskaris
47abf38829
fix: Trigger release to publish packages that were built (#262)
Trigger release to publish packages that were built
2023-02-16 21:40:16 +07:00