Commit Graph

86 Commits

Author SHA1 Message Date
Akim
702ad605a8
fix(deps)!: Update avm to 0.62 (#438)
* Update avm

* Update nox image

* Fix lint

* Bump marine

* fix lint

* update tag
2024-02-24 01:37:00 +07:00
Akim
3b1371f968
chore: Rename master to main (#437)
Update branch
2024-02-23 17:09:25 +07:00
Ivan Boldyrev
8ac029b6d3
feat(js-client)!: Multiformat MsgPack for particle data (#422)
* feat(particle)!: Multiformat MsgPack for particle data

* Fix types

* fix(ci): use nox with msgpack protocol

* fix(avm): avm 0.59.0

* Fix uint64

* Fix

* fix(ci): enable nox debug logs

* Fix commonJS import

* Revert "fix(ci): enable nox debug logs"

This reverts commit ce5bc2e263.

---------

Co-authored-by: Akim Mamedov <akim99999999@gmail.com>
Co-authored-by: folex <0xdxdy@gmail.com>
Co-authored-by: Akim <59872966+akim-bow@users.noreply.github.com>
2024-01-30 00:20:59 +07:00
Akim
165e96b702
fix: Install before build (#406)
* Try to fix CI

* Try to fix CI
2023-12-19 17:46:11 +07:00
Akim
44eb1493b3
feat(js-client): Update libp2p ecosystem [fixes DXJ-551] (#393)
* Update libp2p ecosystem
2023-12-06 10:52:28 +00:00
Akim
f4a550dd22
feat(js-client)!: Segregation of responsibility between js-client packages [fixes DXJ-525] (#378)
Schema validation in js-client
2023-11-19 09:04:10 +07:00
Akim
f5e9923974
fix(js-client): Fix CDN flow and move it in modules [fixes DXJ-527] (#376)
* Use type module in html

* Fix autocommit

* Try fix template

* Try fix template

* Try fix template

* Try fix template

* Try fix template

* Fix test

* Update packages/@tests/smoke/web/public/index.html

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

* Minify es bundle

* Remove autocommit

* Fix lint

* Remove minimal

* Change nox version

* Change nox version

* Fix CDN

---------

Co-authored-by: shamsartem <shamsartem@gmail.com>
2023-11-10 21:29:49 +07:00
Akim
b460491fbd
fix: JS-client bugs and tech debt [fixes DXJ-520] (#374)
Fix various bugs and a pair of TODO's
2023-11-06 11:42:24 +01:00
Anatolios Laskaris
1266a90737
chore: Fix pnpm install when running in e2e (#365)
Fix installation when running in e2e
2023-10-19 18:05:33 +03:00
Akim
919c7d6ea1
feat(js-client)!: Adding strictes eslint and ts config to all packages [fixes DXJ-464] (#355)
* introduce eslint

* Fix all eslint errors

* Eslint fix and some touches

* Fix tests

* Fix misc errors

* change semver

* change semver #2

* Fix path

* Fix path #2

* freeze lock file in CI

* fix package install

* Fix formatting of surrounding files

* Add empty prettier config

* Fix formatting

* Fix build errors

* Remove unused deps

* remove changelog from formatting

* deps cleanup

* make resource importers async

* Refactor

* Fix error message

* remove comment

* more refactoring

* Update packages/core/js-client/src/compilerSupport/registerService.ts

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

* refactoring

* refactoring fix

* optimize import

* Update packages/@tests/smoke/node/src/index.ts

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

* Revert package

* Fix pnpm lock

* Lint-fix

* Fix CI

* Update tests

* Fix build

* Fix import

* Use forked threads dep

* Use fixed version

* Update threads

* Fix lint

* Fix test

* Fix test

* Add polyfill for assert

* Add subpath import

* Fix tests

* Fix deps

---------

Co-authored-by: shamsartem <shamsartem@gmail.com>
2023-10-17 22:14:08 +07:00
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
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
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
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
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
Anatolios Laskaris
4ef0d312ca
chore: Rename fluence-cli to flox (#319)
* Trigger

* Rename to flox
2023-07-10 10:22:06 +03:00
Anatolios Laskaris
82da491f3d
chore: Renaming things (#316)
* Renaming

* Fix

* Fix

* Fix

* Use main
2023-07-10 09:40:48 +03:00
Anatolios Laskaris
c991f0908f
chore: Release packages as unstable (#318)
Release packages as unstable
2023-07-03 10:53:59 +03: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
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
Anatolios Laskaris
d22017c6b0
chore: no-frozen-lock-file (#303)
* Regenerate lock file

* Fix?
2023-05-04 16:43:29 +03:00
Anatolios Laskaris
c2d25b329e
chore: Use pnpmfile.js to override dependencies (#302)
* Use pnpmfile.js to override dependencies

* Typo

* Fix
2023-05-04 15:25:41 +03:00
Anatolios Laskaris
3bc94e4195
chore(ci): Run snapshot on builder (#301)
Run snapshot on builder
2023-04-26 13:30:50 +03:00
Anatolios Laskaris
00b62f1459
chore(e2e): e2e update [fixes FLU-297, FLU-298, FLU-267] (#296)
* Add fluence-cli

* Update e2e

* Run on labeled

* Cleanup

* Use main branch
2023-04-03 15:06:02 +03:00
Anatolios Laskaris
b6e7a9cf55
chore: Temporary workaround for e2e version set (#294)
* Temporary workaround for e2e version set

* fix
2023-03-31 11:31:39 +03:00
Anatolios Laskaris
a664d233f0
chore: Set packages version with action [fixes FLU-290] (#293)
* Test setting version with action

* Cleanup
2023-03-28 15:46:23 -03:00
Anatolios Laskaris
9345040b87
chore: Try running install with -r (#286)
Try running install with -r
2023-03-16 13:59:31 -03:00
Anatolios Laskaris
31d567094c
chore(e2e): Use fluencelabs/rust-peer image (#288)
Use fluencelabs/rust-peer image
2023-03-16 13:59:07 -03:00
Pavel
43f39d5ac1
chore(ci): Release public packages as latest (#287) 2023-03-09 22:25:58 +03:00
Anatolios Laskaris
faf1f7d238
chore(ci): Setup chromium (#284)
* Setup chromium

* Run commentedout tests
2023-03-09 11:39:43 +02:00
Anatolios Laskaris
3fbeb0df8e
chore(ci): Use aqua-playground master (#281)
Use aqua-playground master
2023-03-04 13:53:17 +04:00
Anatolios Laskaris
dd7f4b69be
chore: Update e2e (#273)
* Update e2e

* Fixes
2023-03-04 10:13:37 +02:00
Anatolios Laskaris
35dfb1bfbc
chore: Fix typo in release command (#254)
Fix typo in release command
2023-02-16 15:18:18 +07:00
Anatolios Laskaris
63a3579ee6
chore: Add release-please (#240)
* Add release-please

* Fix

* Fix ci.js

* Rename fluence-js

* Run pnpm i

* Fix

* Update workflows

* Fix
2023-02-15 16:45:04 +02:00
Pavel
d4bb8fb429
feat!: Expose updated JS Client API via js-client.api package (#246) 2023-02-15 03:00:42 +03:00
Pavel
9667c4fec6
feat!: Standalone web JS Client (#243)
- Move marine-related part into FJS repo (fixes DXJ-184)
- Move towards component-oriented architecture (fixes DXJ-183)
- Different JS Client distros for node.js and web (fixes DXJ-185)
- Update libp2p to 0.42.2 (fixes DXJ-26)
- Add JS Client API (fixes DXJ-196, fixes DXJ-177, fixes DXJ-60)
- Add Smoke test for JS Client web (fixes DXJ-253)

---------

Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
2023-02-13 21:41:35 +07:00
Anatolios Laskaris
e02c506d7f
chore(ci): Set timeout and add e2e / status check [fixes FLU-222, FLU-194 and FLU-196] (#238)
* Update renovate config

* Update
2023-02-01 17:56:48 +07:00
renovate[bot]
b5e92dfe08
chore(deps): update pnpm/action-setup action to v2.2.4 (#217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-20 11:38:47 +02:00
Anatolios Laskaris
6a9aa2fcae
chore(ci): Add fluence-cli to E2E (#230)
* Add fluence-cli to E2E

* Add missing fluence-js in needs

* Test branch with fix

* Typo

* Use main branch

* Test

* Use main branch
2022-12-20 12:32:36 +03:00
renovate[bot]
421318f47c
chore(deps): update all github-actions to v3 (#223)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-15 12:21:30 +03:00
Anatolios Laskaris
298e7c50a9
ci: Workaround for empty npm package version in e2e (#208) 2022-12-05 15:10:44 +03:00
Anatolios Laskaris
acc50d1d31
Fix git ref in e2e (#219) 2022-12-01 20:03:02 +03:00
Pavel
208067eecf
Fix failing tests in AquaVM (#207) 2022-11-28 13:59:07 +03:00
Anatolios Laskaris
1f5fa892e3
ci: Remove v prefix from snapshot version output (#206) 2022-11-25 17:50:37 +03:00
Anatolios Laskaris
b2f2c69f02
ci: Use npm actions in e2e (#205)
* Use npm actions in e2e

* Update test workflow

* Typo

* Prepend verions with v

* Use main branch
2022-11-25 10:49:38 +03:00
Anatolios Laskaris
aa502de62b
ci: Add marine-js (#204)
* Add marine-js

* Add marine-js input
2022-11-22 19:07:58 +03:00