This repository was archived by the owner on Jul 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
2f316cc
Fix aqua-to-js, start to split responsibility
akim-bow 426f154
Remove schema from js-client
akim-bow 9272773
Adapt js-client ecosystem to the new API.
akim-bow 3a039cd
Refactor tests
akim-bow d6eb91b
Fix all tests
akim-bow 942a203
Fix tests
akim-bow 90dbffa
Remove file
akim-bow 91bde89
JS-client to dev deps
akim-bow bdf6644
Fix lint
akim-bow 12eea31
Review fixes
akim-bow 83f2239
Fix
akim-bow 8eb5393
Ignore warnings
akim-bow d7c074e
Remove import
akim-bow 889741b
Fix templates
akim-bow 2a23052
Fix lint
akim-bow 357726a
Fix condition
akim-bow c14344e
Use new param
akim-bow ff5de6a
Merge branch 'master' into DXJ-525
akim-bow 34ab91d
Fix type
akim-bow 3d8f233
Async loading
akim-bow 6ab6e9d
Allow to use ^
akim-bow e647ab0
Fix comments
akim-bow 166475e
Merge remote-tracking branch 'origin/DXJ-525' into DXJ-525
akim-bow 26bfc36
Fix more comments
akim-bow ec830bc
Refactor
akim-bow 20edd89
Fix
akim-bow 2641379
Add validation to api
akim-bow 0c8bed2
Remove validator.ts
akim-bow 4717c20
Typo
akim-bow d3678c5
Remove marine-js from js-client
akim-bow 1669750
Update generated code
akim-bow 05bec9d
Bug fix
akim-bow 3e0b45e
Fix tests
akim-bow 741a017
Fix review
akim-bow 242ff5c
Fix return type
akim-bow 4ce35e4
Lint fix
akim-bow 5b3fe66
Fix api
akim-bow c3eba6a
Fix types
akim-bow 74e635a
Different nox image
akim-bow de96163
Revert "Different nox image"
akim-bow 17962de
Remove unused import
akim-bow 22a0cc2
Add doc
akim-bow 56620ab
Review fixes
akim-bow f20f02b
Small fix
akim-bow 711fbe1
Comment
akim-bow c42beaa
Improve error message
akim-bow 3912056
Adjust error message
akim-bow 9cb9923
Typo
akim-bow 7c24805
Update e2e v
akim-bow 327375f
Remove fire and forget
akim-bow f8650db
Update compiler
akim-bow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| /** | ||
| * Copyright 2023 Fluence Labs Limited | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| import { writeFile } from "fs/promises"; | ||
| import { join, dirname } from "path"; | ||
| import { fileURLToPath } from "url"; | ||
|
|
||
| import { compileFromPath } from "@fluencelabs/aqua-api"; | ||
| import aquaToJs from "@fluencelabs/aqua-to-js"; | ||
|
|
||
| const files = ["smoke_test", "finalize_particle"]; | ||
|
|
||
| for (const file of files) { | ||
| const cr = await compileFromPath({ | ||
shamsartem marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| filePath: join( | ||
| dirname(fileURLToPath(import.meta.url)), | ||
| "_aqua", | ||
| file + ".aqua", | ||
| ), | ||
| targetType: "air", | ||
| imports: [fileURLToPath(new URL("./node_modules", import.meta.url))], | ||
| }); | ||
|
|
||
| if (cr.errors.length > 0) { | ||
| throw new Error(cr.errors.join("\n")); | ||
| } | ||
|
|
||
| const res = await aquaToJs(cr, "ts"); | ||
|
|
||
| if (res == null) { | ||
| throw new Error("AquaToJs gave null value after compilation"); | ||
| } | ||
|
|
||
| await writeFile( | ||
| fileURLToPath(new URL(join("src", "_aqua", file + ".ts"), import.meta.url)), | ||
| res.sources, | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| "type": "module", | ||
| "scripts": { | ||
| "build": "tsc", | ||
| "compile-aqua": "fluence aqua -i ./_aqua -o ./src/_aqua" | ||
| "compile-aqua": "node --loader ts-node/esm compile-aqua.ts" | ||
| }, | ||
| "repository": "https://github.com/fluencelabs/fluence-js", | ||
| "author": "Fluence Labs", | ||
|
|
@@ -20,10 +20,12 @@ | |
| "base64-js": "1.5.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@fluencelabs/aqua-api": "0.12.4-main-cee4448-2196-1", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe use normal version here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will replace them later after releases in aqua and registry. Just don't want to block on them
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added a todos on these |
||
| "@fluencelabs/aqua-lib": "0.6.0", | ||
| "@fluencelabs/cli": "0.7.2", | ||
| "@fluencelabs/js-client": "workspace:^", | ||
| "@fluencelabs/registry": "0.8.2", | ||
| "@fluencelabs/trust-graph": "3.1.2" | ||
| "@fluencelabs/aqua-to-js": "workspace:*", | ||
| "@fluencelabs/js-client": "workspace:*", | ||
| "@fluencelabs/registry": "0.8.8-1", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this version also looks interesting. I wonder why |
||
| "@fluencelabs/trust-graph": "3.1.2", | ||
| "ts-node": "10.9.1" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this mean? What does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file bumps version in ci to support e2e testing. Here i added support for workspace symbol.