Commit Graph

24 Commits

Author SHA1 Message Date
Akim Mamedov
57f8a851eb JSON stringify errors 2023-12-18 22:36:36 +07:00
Akim Mamedov
61964ccb1e Attempt to improve error logging 2023-12-18 22:27:41 +07:00
Akim Mamedov
fd23160f81 Fix logging for web tests 2023-12-18 22:11:15 +07: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
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 Mamedov
34bd267989 Add request handlers 2023-10-18 11:48:58 +07:00
Akim Mamedov
3c1b422ed5 Add request logs 2023-10-18 10:54:14 +07:00
Akim Mamedov
f4e0a23cb1 Add browser message 2023-10-18 10:19:58 +07:00
Akim Mamedov
c1f2ba25b8 Add browser logs 2023-10-18 09:50:35 +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
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
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
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
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
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
Pavel
0b2f12d8ac
feat: Cleaning up technical debts (#295) 2023-04-03 20:52:40 +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
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
Pavel
0bf8eb2f1b
Fix issue when FluenceJS was not working in webpack-based web projects (#176) 2022-09-05 18:24:19 +03:00