38 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
Anatolios Laskaris
e8417d069a
fix: Rename testnet to dar (#433)
Rename testnet to dar
2024-02-23 02:54:43 +02:00
Akim
d7070fd71e
fix(js-client): Handle null as user input value (#431)
Handle null as user input value
2024-02-09 17:19:56 +07:00
Akim
2b1d0f7f05
fix(js-client): Improve logging of conversion API (#429)
* Improve logging of conversion API

* Fix arg name
2024-02-09 07:49:33 +07:00
Akim
fa38328fdd
fix: Dial interval (#421)
Fix dial interval
2024-01-31 14:32:37 +01: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 ce5bc2e26346ceaead466d2ceaeb25d22a75fe49.

---------

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
a8a14735b3
fix: Update libp2p deps (#419)
* Update libp2p packages

* Try another libp2p version

* Add test resolutions

* Bump ver

* remove override

* redo removing override

* fix

* Fix

* Fix

* Fix

* Fix

* Deny connections from internal nox network

* Fix eslint

* Fix review
2024-01-19 09:25:12 +00:00
Akim
5696e3beba
fix(js-client): Improve logging (#418)
* Improve logging

* Improve further connection logs
2024-01-17 18:30:10 +07:00
Akim
15f96dc5f7
feat(js-client)!: Remove getter for secret key (#416)
* Remove secret key

* Node -> Relay

* Fix doc
2024-01-12 08:25:45 +00:00
Akim
4d90414190
fix(js-client): Remove union with undefined of methods for getting random peer (#417)
Fix types
2024-01-11 22:20:08 +07:00
Akim
f5425b4746
fix: Enable async loading of all dependency resources (#408)
* Async loading

* Fix lint
2023-12-29 03:33:28 +07:00
Akim
86a73027e5
feat(js-client): Add fire-and-forget flag [DXJ-562] (#400)
* Add fire-and-forget flag

* Fix test

* Store particle behavior in queue item

* Fix tests
2023-12-16 01:21:31 +07:00
Akim
9b629eef2e
fix(js-client): Remove log truncation. (#403)
Remove log truncation.
Introducing additional log level
2023-12-15 17:20:28 +00:00
Akim
d6008110cf
feat(npm-aqua-compiler): create package (#401)
* Add npm-aqua-compiler package

* Release new package

* Remove noUncheckedIndexedAccess from tsconfig.json

* Fix a test script

* Fix length checks

* Fix

* Update error description

* Try to choose a nicer err message

* New import format and API

* Fix error message

* Improve test

* Don't add empty string key when globalImports prop is empty

* Fix exports
2023-12-15 23:14:07 +07:00
Akim
1578b791ac
feat: Support instance context [fixes DXJ-541] (#392)
* Support context

* Update doc

* Refactor

* Cover by doc

* Fix lint
2023-12-06 16:03:20 +01: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 Mamedov
fdd0ca0ea2 feat: Additional export from js-client 2023-11-24 02:36:12 +07:00
Akim Mamedov
8dd30ea35b Additional export from js-client 2023-11-24 02:29:46 +07:00
Akim
b5a6296225
feat: Temporarily expose internal js client API (#386)
Expose
2023-11-24 00:49:12 +07:00
Akim
98462bfdf6
chore: Review fixes at #378 (#383)
* Review fixes

* remove logs

* Fixes

* Todo to remove prefix later

* Refactor service signatures

* Fixes

* Update lock file

* Fix lockfile

* Update deps

* More fixes and renames

* Fix compiler

* Peer refactoring and cutting onConnectionChange API

* Revert deleted API
2023-11-23 04:18:10 +07: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
Akim
a605d757f9
fix(deps): Use published threads package (#369)
Use published threads package
2023-10-25 14:38:44 +00:00
Akim
f9abc6419c
chore(js-client)!: Simplify/optimize js-client and update README [fixes DXJ-490] (#366)
* Update README

* Improve build experience

* Fix eslint

* Fix eslint

* Fix eslint

* Fix tooling

* Fix formatting

* Fix formatting

* Fix test resource name

* Remove async

* Fix comments

* Add ts-check

* Add new line

* Fix arg

* add todo's

* Fix lint

* Fix typo

* Type module

* Add deps to isomorphic package

* Extract function type

* Fix newline

* Remove private

* Use prepare hook instead of postinstall
2023-10-25 19:02:42 +07:00
Akim
36c7619b4a
fix(tests): Repair integration tests [fixes DXJ-506] (#364)
* Add test server

* remove headless

* Support for web-cra

* Review fixes and bug fixes

* Add error message
2023-10-18 08:38:49 +07:00
Akim
29ec812fc1
chore!: Bump avm (#361)
* Bump avm

* Fix lint
2023-10-17 23:52:30 +07: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
a8e5eb6c1e
fix(signatures): Add signature checks [fixes DXJ-488] (#357)
Add signature checks
2023-10-12 21:01:41 +07:00
Akim
230f47d27e
fix(chore): Additional test for particle signature (#356)
* Additional test for particle signature

* remove .only

* Fix bs58

* Fix bs58 #2

* update test

* update test

* fix test

* remove only

* refactor

* refactor

---------

Co-authored-by: Aleksey Proshutisnkiy <justprosh@users.noreply.github.com>
Co-authored-by: Alexey Proshutinskiy <alexey.prosh@fluence.one>
2023-10-10 16:26:44 +00: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
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
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
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
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
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